/* ==========================================================================
   SEASON CUP · CS2 — style
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Russo One';
  src: url('/fonts/russo-one-cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Russo One';
  src: url('/fonts/russo-one-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07080a;
  --bg-deep: #050607;
  --panel: #0e1014;
  --panel-2: #14171d;
  --panel-3: #191d24;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f3f5;
  --muted: #8e95a2;
  --muted-2: #5f6673;
  --accent: #ff2b3a;
  --accent-soft: #ff7a86;
  --accent-dark: #c40f24;
  --gold: #ffc94a;
  --silver: #cbd4e1;
  --bronze: #d98a52;
  --danger: #ff5c5c;
  --success: #63d391;
  --radius: 18px;
  --container: 1220px;
  --font-display: 'Russo One', 'Arial Black', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(255, 43, 58, 0.09), transparent 62%),
    radial-gradient(900px 520px at -5% 34%, rgba(83, 104, 255, 0.045), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-admin {
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(255, 43, 58, 0.07), transparent 60%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(255, 43, 58, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #08090b;
}

::-webkit-scrollbar-thumb {
  background: #22262e;
  border-radius: 8px;
  border: 2px solid #08090b;
}

::-webkit-scrollbar-thumb:hover {
  background: #30353f;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -3px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8a2f, var(--accent));
  color: #090a0c;
  box-shadow: 0 8px 28px rgba(255, 43, 58, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff5c68, #ff2b3a);
  box-shadow: 0 10px 34px rgba(255, 43, 58, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-danger {
  background: rgba(255, 92, 92, 0.08);
  border-color: rgba(255, 92, 92, 0.3);
  color: #ff9a9a;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-xs {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 8px;
  gap: 6px;
}

.btn-xs .icon {
  width: 13px;
  height: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  gap: 11px;
  color: var(--accent-soft);
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn-danger:hover {
  color: #ff9a9a;
  border-color: rgba(255, 92, 92, 0.4);
  background: rgba(255, 92, 92, 0.1);
}

.icon-btn .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 22px rgba(255, 43, 58, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.07em;
  line-height: 1.05;
}

.brand-text small {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  transition: 0.2s ease;
}

.user-chip:hover {
  border-color: rgba(255, 43, 58, 0.35);
  background: rgba(255, 43, 58, 0.06);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.user-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255, 43, 58, 0.1);
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-form {
  display: flex;
}

.login-btn {
  border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07080a;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(820px 560px at 76% 44%, rgba(255, 43, 58, 0.24), transparent 64%),
    radial-gradient(520px 380px at 16% 4%, rgba(255, 43, 58, 0.09), transparent 68%),
    linear-gradient(180deg, #0b0c10 0%, #07080a 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 92% at 50% 28%, #000 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 24px;
  min-height: 540px;
  padding: 66px 0 58px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 70px rgba(255, 43, 58, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-agents {
  position: relative;
  align-self: stretch;
  min-height: 430px;
}

.hero-agent-glow {
  position: absolute;
  left: 54%;
  bottom: -8%;
  width: 118%;
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 43, 58, 0.3), rgba(255, 43, 58, 0.07) 58%, transparent 80%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-agent {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.62));
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  user-select: none;
}

.hero-agent-t {
  right: 28%;
  bottom: 3%;
  z-index: 1;
  width: 72%;
  transform: rotate(-2.5deg);
  opacity: 0.92;
}

.hero-agent-ct {
  right: -12%;
  bottom: -5%;
  z-index: 2;
  width: 84%;
  transform: rotate(1.5deg);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-head h2,
.clan-toolbar h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.section-head > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Podium
   -------------------------------------------------------------------------- */

.podium-section {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 72%);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}

.podium-grid.count-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.podium-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 26px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.podium-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rank-color), transparent);
  opacity: 0.8;
}

.podium-card::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  width: 220px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--rank-glow);
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.podium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.podium-card.p1 {
  --rank-color: var(--gold);
  --rank-glow: rgba(255, 201, 74, 0.9);
  order: 2;
  padding-top: 36px;
  border-color: rgba(255, 201, 74, 0.22);
  transform: translateY(-22px);
}

.podium-card.p2 {
  --rank-color: var(--silver);
  --rank-glow: rgba(203, 212, 225, 0.9);
  order: 1;
}

.podium-card.p3 {
  --rank-color: var(--bronze);
  --rank-glow: rgba(217, 138, 82, 0.9);
  order: 3;
}

.podium-card.p1:hover {
  transform: translateY(-28px);
}

.podium-rank {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--rank-color);
  text-shadow: 0 0 34px var(--rank-glow);
}

.podium-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 132px;
  margin: 12px 0 16px;
}

.podium-logo {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--panel-2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.028), 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.podium-card:hover .podium-logo {
  transform: scale(1.045) rotate(-2deg);
  border-color: var(--rank-color);
}

.laurel {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 112px;
  color: var(--rank-color);
  opacity: 0.72;
  transform: translateY(-50%);
  pointer-events: none;
}

.laurel.left {
  right: calc(50% + 48px);
}

.laurel.right {
  left: calc(50% + 48px);
  transform: translateY(-50%) scaleX(-1);
}

.laurel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-fallback {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 43, 58, 0.25), transparent 60%),
    #12151a;
  border: 1px solid rgba(255, 43, 58, 0.2);
}

.podium-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}

.podium-meta .tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.podium-meta .sep {
  color: var(--muted-2);
}

.podium-name {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.podium-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.podium-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 8px;
}

.podium-stat + .podium-stat {
  border-left: 1px solid var(--line);
}

.podium-stat span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.podium-stat strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.podium-stat .icon {
  width: 14px;
  height: 14px;
  color: var(--rank-color);
}

/* --------------------------------------------------------------------------
   Clan list
   -------------------------------------------------------------------------- */

.clans-section {
  padding-top: 84px;
}

.clan-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 290px;
  flex: none;
}

.search .icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: 0.2s ease;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input:focus {
  border-color: rgba(255, 43, 58, 0.55);
  background: rgba(255, 43, 58, 0.035);
  box-shadow: 0 0 0 3px rgba(255, 43, 58, 0.08);
}

.clan-list {
  border-top: 1px solid var(--line-strong);
}

.clan-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) 118px 132px 38px;
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.clan-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.clan-row:hover {
  background: linear-gradient(90deg, rgba(255, 43, 58, 0.06), rgba(255, 255, 255, 0.015) 42%, transparent);
}

.clan-row:hover::before {
  opacity: 1;
}

.clan-rank {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.clan-row:hover .clan-rank {
  color: var(--accent);
}

.clan-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

span.clan-logo {
  font-size: 14px;
}

.clan-ident {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.clan-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.clan-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-desc {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.clan-stat span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.clan-stat strong {
  font-size: 14px;
  font-weight: 700;
}

.clan-stat-wins strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
}

.clan-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: 0.2s ease;
}

.clan-arrow .icon {
  width: 15px;
  height: 15px;
}

.clan-row:hover .clan-arrow {
  color: #08090b;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(3px);
}

.empty-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 42px 20px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Upcoming matches (home)
   -------------------------------------------------------------------------- */

.next-matches {
  padding: 0 0 96px;
}

.match-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.match-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: 0.2s ease;
}

.match-mini:hover {
  border-color: rgba(255, 43, 58, 0.32);
  background: rgba(255, 43, 58, 0.035);
}

.mini-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
}

.mini-date b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.mini-date span {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.match-mini-info {
  min-width: 0;
}

.match-mini-teams {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-mini-teams em {
  margin: 0 4px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9px;
  color: var(--muted-2);
  text-transform: lowercase;
}

.match-mini-meta {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Clan page
   -------------------------------------------------------------------------- */

.clan-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.clan-hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(52px) saturate(1.1);
  opacity: 0.18;
  transform: scale(1.15);
}

.clan-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.3), #07080a 94%),
    radial-gradient(800px 380px at 12% 0%, rgba(255, 43, 58, 0.11), transparent 68%);
}

.clan-hero-agent {
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -14%;
  width: min(460px, 36vw);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}

.clan-hero-agent img {
  width: 100%;
  height: auto;
  filter: grayscale(0.65) brightness(0.6) contrast(1.08) drop-shadow(0 22px 46px rgba(0, 0, 0, 0.55));
}

.clan-hero .container {
  position: relative;
  z-index: 2;
  padding: 32px 0 54px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.icon-back {
  transform: rotate(180deg);
  width: 14px;
  height: 14px;
}

.clan-hero-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.clan-hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: var(--panel-2);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(255, 255, 255, 0.025);
}

span.clan-hero-logo {
  display: inline-grid;
  place-items: center;
  font-size: 34px;
}

.clan-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rank-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rank-chip {
  color: var(--gold);
  border: 1px solid rgba(255, 201, 74, 0.24);
  background: rgba(255, 201, 74, 0.07);
}

.rank-chip .icon {
  width: 12px;
  height: 12px;
}

.tag-chip {
  color: var(--accent);
  border: 1px solid rgba(255, 43, 58, 0.22);
  background: rgba(255, 43, 58, 0.07);
}

.clan-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.clan-hero-info p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}

.clan-hero-stats {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.clan-hero-stat {
  min-width: 118px;
  padding: 17px 22px;
  text-align: center;
}

.clan-hero-stat + .clan-hero-stat {
  border-left: 1px solid var(--line);
}

.clan-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.clan-hero-stat span {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Proof gallery
   -------------------------------------------------------------------------- */

.proofs-section {
  padding-top: 76px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 58, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.proof-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0b0d;
}

.proof-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proof-card:hover .proof-image img {
  transform: scale(1.045);
}

.proof-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.05) 35%, rgba(7, 8, 10, 0.66) 100%);
}

.proof-date {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}

.proof-date .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.proof-zoom {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #08090b;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.2s ease;
}

.proof-zoom .icon {
  width: 15px;
  height: 15px;
}

.proof-card:hover .proof-zoom {
  opacity: 1;
  transform: scale(1);
}

.proof-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px 17px;
}

.proof-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
}

.proof-opponent {
  font-size: 10px;
  color: var(--muted);
}

.proof-opponent b {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(4, 5, 7, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.lightbox figcaption strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
}

.lightbox-date {
  padding: 5px 9px;
  border: 1px solid rgba(255, 43, 58, 0.3);
  border-radius: 7px;
  background: rgba(255, 43, 58, 0.08);
  color: var(--accent);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 43, 58, 0.15);
  border-color: rgba(255, 43, 58, 0.4);
  color: var(--accent);
}

body.lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Schedule page
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 12px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, #07080a 100%),
    radial-gradient(680px 320px at 84% 18%, rgba(255, 43, 58, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 78%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-agent {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 0;
  width: min(390px, 31vw);
  height: auto;
  opacity: 0.55;
  filter: saturate(0.95) contrast(1.05) drop-shadow(0 22px 44px rgba(0, 0, 0, 0.55));
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 86%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 86%);
  pointer-events: none;
  user-select: none;
}

.page-hero h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.page-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.page-hero-lead {
  max-width: 540px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: 0.2s ease;
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tab.is-active {
  color: #08090b;
  background: var(--accent);
  border-color: var(--accent);
}

.tab-count {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 9px;
}

.schedule-section {
  padding: 26px 0 96px;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.match-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
}

.match-card.is-live {
  border-color: rgba(255, 92, 92, 0.3);
  box-shadow: inset 3px 0 0 rgba(255, 92, 92, 0.55);
}

.match-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
}

.match-day {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.match-month {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.match-weekday {
  margin-top: 1px;
  font-size: 8px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.match-time {
  width: 100%;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-logo {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

span.team-logo {
  display: inline-grid;
  place-items: center;
  font-size: 9px;
}

.team-logo-fallback {
  font-family: var(--font-display);
  color: var(--accent);
  background: rgba(255, 43, 58, 0.08);
  border-color: rgba(255, 43, 58, 0.2);
}

.team-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-score {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
}

.match-score.is-winner {
  color: var(--accent);
}

.match-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-upcoming {
  color: var(--accent-soft);
  border: 1px solid rgba(255, 43, 58, 0.25);
  background: rgba(255, 43, 58, 0.08);
}

.status-live {
  color: #ff8b8b;
  border: 1px solid rgba(255, 92, 92, 0.3);
  background: rgba(255, 92, 92, 0.1);
}

.status-finished {
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 8px #ff5c5c;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.match-map,
.match-stage,
.match-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}

.match-map {
  color: var(--text);
}

.match-map .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.match-stage,
.match-note {
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Empty & error states
   -------------------------------------------------------------------------- */

.empty-state {
  padding: 62px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 43, 58, 0.2);
  border-radius: 50%;
  background: rgba(255, 43, 58, 0.07);
  color: var(--accent);
}

.empty-icon .icon {
  width: 26px;
  height: 26px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 390px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px - 96px);
  padding: 60px 0;
}

.error-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(255, 43, 58, 0.09), transparent 65%),
    rgba(255, 255, 255, 0.015);
  text-align: center;
}

.error-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 150px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 43, 58, 0.5);
}

.error-card .kicker {
  justify-content: center;
  margin-top: 22px;
}

.error-card .kicker::before {
  display: none;
}

.error-card h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  text-transform: uppercase;
}

.error-card p {
  max-width: 440px;
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.admin-page {
  min-height: 68vh;
  padding: 44px 0 96px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-head h1 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.admin-head .back-link {
  margin-bottom: 14px;
}

.admin-subtitle {
  max-width: 540px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.admin-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  padding: 12px 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s ease;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.stat-card span {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.stat-card > .icon {
  position: absolute;
  right: 16px;
  bottom: 15px;
  width: 26px;
  height: 26px;
  color: rgba(255, 43, 58, 0.35);
}

.panel {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.panel-note {
  color: var(--muted-2);
  font-size: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.admin-grid > .panel {
  margin-bottom: 20px;
}

.admin-clan-list,
.admin-clan-table {
  display: flex;
  flex-direction: column;
}

.admin-clan-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-clan-table .admin-clan-row {
  grid-template-columns: 28px 44px minmax(0, 1fr) 118px auto;
}

.admin-clan-row:last-child {
  border-bottom: 0;
}

.admin-rank {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted-2);
}

.admin-clan-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

span.admin-clan-logo {
  font-size: 11px;
}

.admin-clan-ident {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-clan-ident .tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.admin-clan-ident strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-clan-ident small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-clan-stats {
  text-align: center;
}

.admin-clan-stats span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted-2);
}

.admin-clan-stats strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.admin-actions form {
  display: flex;
}

.admin-match-list {
  display: flex;
  flex-direction: column;
}

.admin-match-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.admin-match-row:last-child {
  border-bottom: 0;
}

.admin-match-row:hover {
  color: var(--accent);
}

.admin-match-date {
  display: flex;
  flex-direction: column;
  flex: none;
  min-width: 52px;
}

.admin-match-date b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.admin-match-date span {
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted-2);
  white-space: nowrap;
}

.admin-match-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
}

.admin-match-teams strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.admin-match-teams em {
  font-style: normal;
  font-size: 8px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-match-row .status-badge {
  margin-left: auto;
  flex: none;
}

.admin-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-proof-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-proof {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.admin-proof > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.admin-proof-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 10px;
  font-size: 9px;
}

.admin-proof-info strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-proof-info span {
  color: var(--muted);
}

.admin-proof-info small {
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-proof-delete {
  position: absolute;
  top: 7px;
  right: 7px;
}

.admin-proof-delete .icon-btn {
  width: 29px;
  height: 29px;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(6px);
}

.proof-date-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent) !important;
  font-weight: 600;
}

.proof-date-text .icon {
  width: 11px;
  height: 11px;
}

.inline-empty {
  padding: 26px 18px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.inline-empty a {
  color: var(--accent);
  font-weight: 600;
}

.admin-clan-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.admin-clan-summary img,
.admin-clan-summary .logo-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.admin-clan-summary .logo-fallback {
  font-size: 8px;
}

.admin-clan-summary b {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 10px;
}

.summary-stat .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Admin forms
   -------------------------------------------------------------------------- */

.form-card {
  max-width: 850px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.form-card-compact {
  max-width: none;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-grid-single {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b0d10;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  min-height: 105px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 43, 58, 0.6);
  background: #0c0e12;
  box-shadow: 0 0 0 3px rgba(255, 43, 58, 0.09);
}

.form-field input[type='file'] {
  padding: 9px;
  font-size: 11px;
  color: var(--muted);
}

.form-field input[type='file']::file-selector-button {
  margin-right: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.form-hint {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-errors {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: 11px;
  background: rgba(255, 92, 92, 0.07);
  color: #ff9a9a;
  font-size: 11px;
}

.form-errors > .icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.form-errors p + p {
  margin-top: 3px;
}

.current-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
}

.current-logo img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

.logo-preview-wrap img {
  border-radius: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.proof-admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.proof-admin-layout > .panel {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Admin schedule
   -------------------------------------------------------------------------- */

.admin-schedule-list {
  display: flex;
  flex-direction: column;
}

.admin-schedule-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 150px auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-schedule-row:last-child {
  border-bottom: 0;
}

.admin-schedule-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-schedule-team {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.admin-schedule-team img,
.admin-schedule-team .team-logo {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.admin-schedule-team strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-vs {
  font-size: 8px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.admin-schedule-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
}

.admin-score {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
}

.admin-map {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Login / denied
   -------------------------------------------------------------------------- */

.login-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px - 96px);
  padding: 56px 0;
  overflow: hidden;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 440px at 50% 44%, rgba(255, 43, 58, 0.08), transparent 72%);
  pointer-events: none;
}

.login-wrap > .container {
  position: relative;
  z-index: 2;
}

.login-agents {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.login-agent {
  position: absolute;
  bottom: -8%;
  width: min(430px, 32vw);
  height: auto;
  opacity: 0.26;
  filter: grayscale(0.35) brightness(0.85) contrast(1.05) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 88%);
  user-select: none;
}

.login-agent-left {
  left: -5%;
  transform: scaleX(-1) rotate(2deg);
}

.login-agent-right {
  right: -5%;
  transform: rotate(-2deg);
}

.login-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 44px 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(255, 43, 58, 0.1), transparent 66%),
    rgba(255, 255, 255, 0.018);
  text-align: center;
}

.login-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 43, 58, 0.25);
  border-radius: 18px;
  background: rgba(255, 43, 58, 0.08);
  color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 43, 58, 0.1);
}

.login-icon .icon {
  width: 28px;
  height: 28px;
}

.login-card .kicker {
  justify-content: center;
}

.login-card .kicker::before {
  display: none;
}

.login-card h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  text-transform: uppercase;
}

.login-card > p {
  max-width: 390px;
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.btn-discord {
  width: 100%;
  min-height: 48px;
}

.btn-discord .icon {
  width: 20px;
  height: 20px;
}

.login-note {
  display: block;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.setup-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 193, 74, 0.28);
  border-radius: 12px;
  background: rgba(255, 193, 74, 0.06);
  text-align: left;
}

.setup-note strong {
  display: block;
  color: #ffd27a;
  font-size: 12px;
}

.setup-note p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.setup-note code {
  color: var(--accent-soft);
  font-size: 10px;
}

.code-block {
  display: block;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 10px;
  word-break: break-all;
}

.login-denied .denied-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 92, 92, 0.4);
  box-shadow: 0 0 40px rgba(255, 92, 92, 0.12);
}

.denied-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   Flash
   -------------------------------------------------------------------------- */

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 11px;
  font-size: 11px;
}

.flash > .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.flash-success {
  color: #8fe0ad;
  border-color: rgba(99, 211, 145, 0.26);
  background: rgba(99, 211, 145, 0.07);
}

.flash-error {
  color: #ff9a9a;
  border-color: rgba(255, 92, 92, 0.26);
  background: rgba(255, 92, 92, 0.07);
}

.flash-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  opacity: 0.6;
}

.flash-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.flash-close .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.footer-note {
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .clan-row {
    grid-template-columns: 38px 54px minmax(0, 1fr) 100px 118px 34px;
    gap: 14px;
  }

  .match-card {
    grid-template-columns: 84px minmax(0, 1fr) 185px;
    gap: 18px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .proof-admin-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .admin-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-schedule-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .admin-schedule-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-schedule-row > .admin-actions {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 10px;
    min-height: 460px;
    padding: 56px 0 46px;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero-agents {
    min-height: 350px;
  }

  .clan-hero-agent {
    display: none;
  }

  .page-hero-agent {
    width: 300px;
    right: 1%;
    opacity: 0.35;
  }

  .podium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .podium-card {
    padding: 22px 14px 16px;
  }

  .podium-card.p1 {
    padding-top: 30px;
    transform: translateY(-10px);
  }

  .podium-rank {
    font-size: 42px;
  }

  .podium-logo {
    width: 84px;
    height: 84px;
  }

  .laurel {
    width: 38px;
    height: 90px;
  }

  .laurel.left {
    right: calc(50% + 38px);
  }

  .laurel.right {
    left: calc(50% + 38px);
  }

  .podium-stats {
    grid-template-columns: 1fr;
  }

  .podium-stat + .podium-stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .clan-hero-main {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
  }

  .clan-hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }

  .clan-hero-stats {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
  }

  .clan-hero-stat {
    flex: 1;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-inner {
    height: 66px;
    gap: 16px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    margin-left: auto;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-right {
    margin-left: 0;
  }

  .user-name {
    display: none;
  }

  .user-chip {
    padding-right: 5px;
  }

  .login-btn span {
    display: none;
  }

  .login-btn {
    width: 36px;
    padding: 0;
  }

  .login-agents {
    display: none;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 46px 0 0;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(48px, 14vw, 78px);
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-agents {
    height: 260px;
    min-height: 0;
    margin-top: -64px;
  }

  .hero-agent-t {
    right: 40%;
    bottom: 0;
    width: 66%;
    opacity: 0.75;
  }

  .hero-agent-ct {
    right: -10%;
    bottom: -4%;
    width: 90%;
  }

  .hero-agent-glow {
    left: 52%;
    bottom: -4%;
    height: 92%;
  }

  .page-hero-agent {
    right: -4%;
    width: 260px;
    opacity: 0.28;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 28px;
  }

  .section-head > p {
    max-width: none;
    margin-top: 12px;
  }

  .podium-grid,
  .podium-grid.count-1,
  .podium-grid.count-2 {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .podium-card.p1,
  .podium-card.p2,
  .podium-card.p3 {
    order: initial;
    transform: none;
  }

  .podium-card.p1:hover {
    transform: translateY(-6px);
  }

  .podium-card.p1 {
    padding-top: 26px;
  }

  .podium-stats {
    grid-template-columns: 1fr 1fr;
  }

  .podium-stat + .podium-stat {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .clan-toolbar {
    display: block;
  }

  .search {
    width: 100%;
    margin-top: 16px;
  }

  .clan-row {
    grid-template-columns: 30px 46px minmax(0, 1fr) 56px 30px;
    gap: 10px;
    padding: 13px 10px;
  }

  .clan-logo {
    width: 44px;
    height: 44px;
  }

  .clan-stat:not(.clan-stat-wins) {
    display: none;
  }

  .clan-stat-wins span {
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .clan-stat-wins strong {
    font-size: 15px;
  }

  .clan-desc {
    display: none;
  }

  .clan-arrow {
    width: 28px;
    height: 28px;
  }

  .match-mini-grid {
    grid-template-columns: 1fr;
  }

  .next-matches {
    padding-bottom: 64px;
  }

  .clan-hero .container {
    padding: 24px 0 36px;
  }

  .clan-hero-main {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
  }

  .clan-hero-logo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  span.clan-hero-logo {
    font-size: 24px;
  }

  .clan-hero h1 {
    font-size: 32px;
  }

  .clan-hero-info p {
    font-size: 11px;
  }

  .clan-hero-stats {
    border-radius: 14px;
  }

  .clan-hero-stat {
    min-width: 0;
    padding: 13px 8px;
  }

  .clan-hero-stat strong {
    font-size: 19px;
  }

  .clan-hero-stat span {
    font-size: 7px;
  }

  .proofs-section {
    padding-top: 56px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 54px;
  }

  .schedule-tabs {
    margin-top: 22px;
  }

  .match-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .match-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .match-score {
    font-size: 17px;
  }

  .admin-page {
    padding-top: 32px;
  }

  .admin-head {
    display: block;
  }

  .admin-head .btn {
    margin-top: 16px;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-tab {
    white-space: nowrap;
    padding: 11px 13px;
  }

  .admin-clan-table .admin-clan-row {
    grid-template-columns: 24px 40px minmax(0, 1fr);
    gap: 9px;
  }

  .admin-clan-table .admin-clan-stats {
    grid-column: 2 / 3;
    text-align: left;
  }

  .admin-clan-table .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .admin-clan-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-clan-row .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-proof-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-schedule-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-schedule-meta {
    grid-column: 2;
  }

  .admin-schedule-row > .admin-actions {
    grid-row: auto;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .login-card {
    padding: 34px 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .error-card {
    padding: 36px 22px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    gap: 10px;
  }

  .nav-link {
    padding: 8px 8px;
  }

  .nav-link.is-active::before {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-agents {
    height: 290px;
  }

  .hero-agent-t {
    right: 44%;
    width: 60%;
    opacity: 0.7;
  }

  .hero-agent-ct {
    width: 82%;
  }

  .page-hero-agent {
    display: none;
  }

  .clan-row {
    grid-template-columns: 26px 42px minmax(0, 1fr) 52px 26px;
    gap: 8px;
  }

  .clan-stat-wins span {
    font-size: 6.5px;
  }

  .clan-row .clan-arrow {
    width: 26px;
    height: 26px;
  }

  .clan-name {
    font-size: 14px;
  }

  .clan-hero-tags {
    gap: 5px;
  }

  .rank-chip,
  .tag-chip {
    padding: 5px 8px;
    font-size: 8px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-proof-grid,
  .admin-proof-grid-wide {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .match-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 10px;
  }

  .match-day {
    font-size: 20px;
  }

  .match-month,
  .match-weekday {
    margin-top: 0;
  }

  .match-time {
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
  }

  .match-meta {
    grid-column: 1;
  }
}

@media (max-width: 389px) {
  .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Clan roster (public)
   -------------------------------------------------------------------------- */

.roster-section {
  padding-bottom: 0;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roster-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.roster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.roster-card-avatar {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

.roster-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  background: rgba(255, 43, 58, 0.08);
}

.roster-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.roster-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.roster-card-name strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-card-role {
  align-self: flex-start;
  padding: 1px 7px;
  border: 1px solid rgba(255, 43, 58, 0.25);
  border-radius: 5px;
  background: rgba(255, 43, 58, 0.08);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.roster-card-body small {
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.roster-card-meta span {
  position: relative;
}

.roster-card-meta span + span::before {
  content: '·';
  position: absolute;
  left: -6px;
  color: var(--muted-2);
}

.roster-card-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.roster-card:hover .roster-card-arrow {
  color: var(--accent);
  border-color: rgba(255, 43, 58, 0.3);
}

.roster-card-arrow .icon {
  width: 13px;
  height: 13px;
}

.roster-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster-badge-danger {
  color: #ff8b8b;
  border: 1px solid rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.12);
}

/* --------------------------------------------------------------------------
   Disqualification
   -------------------------------------------------------------------------- */

.dq-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(255, 92, 92, 0.35);
  border-radius: 5px;
  background: rgba(255, 92, 92, 0.1);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8b8b;
  white-space: nowrap;
}

.clan-row.is-disqualified {
  opacity: 0.62;
}

.clan-row.is-disqualified:hover {
  opacity: 0.9;
}

.clan-rank.is-dq,
.admin-rank.is-dq {
  color: #ff8b8b;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.rank-chip-danger {
  color: #ff8b8b;
  border-color: rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.1);
}

.rank-chip-prize {
  color: var(--gold);
  border-color: rgba(255, 201, 74, 0.3);
  background: rgba(255, 201, 74, 0.08);
}

.clan-dq-note {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 2px solid rgba(255, 92, 92, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 92, 92, 0.06);
  color: #ff9d9d;
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Prizes
   -------------------------------------------------------------------------- */

.prize-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.prize-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.prize-medal {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--bg);
  background: var(--muted);
}

.prize-place-1 .prize-medal {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 201, 74, 0.35);
}

.prize-place-2 .prize-medal {
  background: var(--silver);
}

.prize-place-3 .prize-medal {
  background: var(--bronze);
}

.prize-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.prize-text small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.prize-text b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.prize-note {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted-2);
}

.podium-prize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 201, 74, 0.22);
  border-radius: 7px;
  background: rgba(255, 201, 74, 0.07);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.podium-prize b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
}

.podium-prize .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Substitutions (public schedule)
   -------------------------------------------------------------------------- */

.match-subs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.match-subs-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.match-subs-title .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.match-subs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.sub-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 10px;
}

.sub-player img,
.sub-player .sub-avatar-fallback {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.sub-avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 7px;
  color: var(--accent);
  background: rgba(255, 43, 58, 0.1);
}

.sub-player-out s {
  color: var(--muted-2);
  text-decoration-color: rgba(255, 92, 92, 0.5);
}

.sub-player-in b {
  color: var(--success);
  font-weight: 600;
}

.sub-arrow {
  font-size: 11px;
  color: var(--muted-2);
}

.sub-reason {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 8px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Admin roster editor
   -------------------------------------------------------------------------- */

.roster-editor {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.roster-add {
  display: flex;
  gap: 8px;
}

.roster-add input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
}

.roster-add input:focus {
  outline: none;
  border-color: rgba(255, 43, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 43, 58, 0.1);
}

.roster-add .btn {
  flex: none;
}

.roster-add .btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.roster-editor .form-hint {
  display: block;
  margin-top: 9px;
}

.roster-error {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: 9px;
  background: rgba(255, 92, 92, 0.08);
  color: #ff9d9d;
  font-size: 11px;
}

.roster-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.roster-item-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
}

.roster-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-item-ident {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 150px;
}

.roster-item-ident strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-item-ident small {
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-item-ident a {
  font-size: 10px;
  color: var(--accent-soft);
}

.roster-item-ident a:hover {
  text-decoration: underline;
}

.roster-role {
  flex: 0 1 190px;
  min-width: 110px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 11px;
}

.roster-role:focus {
  outline: none;
  border-color: rgba(255, 43, 58, 0.5);
}

.roster-empty {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Admin prizes
   -------------------------------------------------------------------------- */

.prizes-panel {
  margin-bottom: 20px;
}

.prizes-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.prize-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prize-field span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.prize-field input {
  width: 120px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
}

.prize-field input:focus {
  outline: none;
  border-color: rgba(255, 43, 58, 0.5);
}

/* --------------------------------------------------------------------------
   Admin substitutions
   -------------------------------------------------------------------------- */

.subs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.subs-layout > .panel {
  margin-bottom: 0;
}

.admin-vs-inline {
  font-size: 0.55em;
  color: var(--muted-2);
  vertical-align: middle;
}

.steam-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.steam-quick-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.steam-quick-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.steam-quick-team {
  margin-right: 2px;
  font-size: 9px;
  color: var(--accent-soft);
}

.steam-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.steam-chip:hover {
  color: var(--text);
  border-color: rgba(255, 43, 58, 0.4);
}

.steam-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.sub-admin-list {
  display: flex;
  flex-direction: column;
}

.sub-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sub-admin-row:last-child {
  border-bottom: 0;
}

.sub-admin-players {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sub-admin-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sub-admin-player img,
.sub-admin-player .sub-avatar-fallback {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.sub-admin-ident {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sub-admin-ident small {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sub-admin-ident strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-player-out .sub-admin-ident strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 92, 92, 0.5);
}

.sub-player-in .sub-admin-ident strong {
  color: var(--success);
}

.sub-admin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.sub-admin-meta form {
  display: flex;
}

/* --------------------------------------------------------------------------
   Responsive: roster, prizes, substitutions
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subs-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .roster-item {
    flex-wrap: wrap;
  }

  .roster-role {
    flex: 1 1 100%;
  }

  .roster-add {
    flex-direction: column;
  }

  .roster-add .btn {
    width: 100%;
    justify-content: center;
  }

  .prize-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .prize-strip {
    gap: 7px;
  }

  .prize-item {
    padding: 6px 10px 6px 6px;
  }

  .match-subs {
    flex-direction: column;
    align-items: flex-start;
  }
}

