/*
Theme Name: ATCF
Description: Theme ATCF — layanan nonton pertarungan ayam Wala vs Meron dengan empat arena. Data arena dan konten dikelola plugin ATCF Core + halaman WordPress.
Version: 0.4.0
Author: Muse for Ian
*/

:root {
  --bg: #0f1115;
  --bg2: #12151b;
  --panel: #171a20;
  --panel2: #1c2028;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f4f6f8;
  --muted: #a7adb8;
  --faint: #767e8c;
  --wala: #2e7cf6;
  --meron: #e5484d;
  --live: #ff3b30;
  --green: #2fbf71;
  --radius: 8px;
  --body: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgba(46,124,246,.13), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(229,72,77,.11), transparent 32rem),
    linear-gradient(180deg, #11141a 0%, var(--bg) 52%, #0c0e12 100%);
  color: var(--text);
  font-family: var(--body);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15,17,21,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo-main {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--text);
}
.logo-divider {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}
.logo-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.lang-toggle a { color: var(--muted); padding: 7px 10px; font-weight: 800; font-size: 12px; text-decoration: none; }
.lang-toggle a.active { background: var(--text); color: #111318; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #111318; font-weight: 900; }
.user-chip strong { display: block; font-size: 13px; line-height: 1; }
.user-chip small { display: block; font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { border-color: rgba(255,255,255,.34); }
.btn-primary { background: var(--text); color: #111318; border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; }
.btn-blue { background: var(--wala); border-color: var(--wala); color: #fff; }
.btn-red { background: var(--meron); border-color: var(--meron); color: #fff; }
.btn-wide { width: 100%; padding: 12px 16px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 30px 22px 42px; flex: 1 0 auto; }
html:has(body.home) { height: 100%; overflow: hidden; }
body.home { position: fixed; inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; overflow: hidden; }
body.home .site-header, body.home .site-footer { flex: 0 0 auto; }
body.home .site-header { position: relative; }
body.home .wrap { flex: 1 1 auto; min-height: 0; overflow: hidden; max-width: 1440px; padding-top: 16px; padding-bottom: 16px; }
.home-shell { height: 100%; min-height: 0; display: grid; grid-template-columns: 218px minmax(0, 1fr) 300px; gap: 16px; overflow: hidden; }
.home-center { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.home-side { min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.side-panel { border: 1px solid var(--line); border-radius: 8px; background: rgba(23,26,32,.82); padding: 14px; overflow: hidden; }
.side-panel h2 { margin: 0 0 12px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 800; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a span { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.side-status div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 800; }
.side-status div:first-of-type { border-top: 0; }
.side-status strong { color: #fff; }
.chat-preview p, .activity-preview p { margin: 0 0 9px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.chat-preview p:last-child, .activity-preview p:last-child { margin-bottom: 0; }
.support-panel .support-actions { margin-top: 12px; }
.home-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(46,124,246,.12), rgba(255,255,255,.035) 46%, rgba(229,72,77,.12));
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.home-status-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.home-status-item strong { color: #fff; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 5px rgba(255,59,48,.14); }
.home-status-match { margin-left: auto; font-weight: 900; letter-spacing: .05em; white-space: nowrap; }
.home-status-match .w { color: #6ea8ff; }
.home-status-match .m { color: #ff7a7e; }
.home-status-match .vs { color: var(--faint); font-size: .78em; }
.arena-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.home .arena-card { min-height: 0; height: 100%; }
body.home .arena-preview { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
body.home .arena-card-body { flex: 0 0 auto; padding: 13px 16px 14px; }
body.home .arena-card-top strong { font-size: 19px; }
body.home .arena-card-match { padding-top: 10px; }
.arena-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%), var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.arena-card:hover { border-color: rgba(255,255,255,.34); transform: translateY(-3px); box-shadow: 0 24px 64px rgba(0,0,0,.34); }
.arena-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070b;
}
.arena-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.arena-card:hover .arena-preview img { transform: scale(1.035); }
.preview-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,11,.05), rgba(5,7,11,.28) 52%, rgba(5,7,11,.72)); }
.preview-live {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--live);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.preview-viewers {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(5,7,11,.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.preview-round {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(5,7,11,.76);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.arena-card-variant-2 .arena-preview img { filter: saturate(1.08) contrast(1.04); }
.arena-card-variant-3 .arena-preview img { filter: saturate(1.05) contrast(1.03); }
.arena-card-variant-4 .arena-preview img { filter: grayscale(.35) brightness(.72); }
.preview-play, .player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(5,7,11,.58);
}
.preview-play::after, .player-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.arena-card:hover .preview-play, .player-stage:hover .player-play { background: var(--live); border-color: var(--live); }
.preview-play-muted { opacity: .72; }
.preview-score {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.preview-score b { padding: 5px 8px; color: #fff; }
.preview-score b:first-child { background: var(--wala); }
.preview-score b:last-child { background: var(--meron); }
.preview-state, .preview-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  border-radius: 5px;
  background: rgba(5,7,11,.78);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.preview-state { top: auto; bottom: 12px; transform: translateX(-50%); }
.arena-card-empty .arena-preview img { filter: grayscale(1) brightness(.45); }
.arena-card-body { display: flex; flex-direction: column; gap: 8px; padding: 17px 18px 18px; }
.arena-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.arena-card-top strong { font-size: 21px; line-height: 1.15; font-weight: 900; }
.arena-card-meta { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.arena-card-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.arena-card-detail { color: var(--muted); font-size: 13px; font-weight: 800; text-align: right; }
.arena-card-support { display: flex; height: 5px; overflow: hidden; border-radius: 99px; background: var(--panel2); }
.arena-card-support .support-wala { background: var(--wala); }
.arena-card-support .support-meron { background: var(--meron); }
.duel { font-size: 15px; font-weight: 900; letter-spacing: .04em; }
.duel .w, .matchbar .w, .schedule-main .w { color: #6ea8ff; }
.duel .m, .matchbar .m, .schedule-main .m { color: #ff7a7e; }
.duel .vs, .matchbar .vs, .schedule-main .vs { color: var(--faint); font-size: .78em; }

.chip { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip-live { background: var(--live); color: #fff; border-color: var(--live); }
.chip-upcoming { color: #fff; border-color: var(--line-strong); }

.page-title-row { margin: 2px 0 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.page-title-row h1, .panel-title { font-size: 24px; line-height: 1.15; margin: 0; font-weight: 900; letter-spacing: .01em; }
.page-title-row span { color: var(--muted); font-size: 13px; font-weight: 800; }
.arena-directory { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(23,26,32,.72); }
.arena-directory-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px 150px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background .16s ease;
}
.arena-directory-row:last-child { border-bottom: 0; }
.arena-directory-row:hover { background: rgba(255,255,255,.045); }
.directory-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #05070b; }
.directory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.directory-live { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.arena-directory-empty .directory-thumb img { filter: grayscale(1) brightness(.5); }
.directory-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.directory-main strong { font-size: 19px; line-height: 1.15; }
.directory-main small { color: var(--muted); font-weight: 800; }
.directory-schedule { display: flex; flex-direction: column; gap: 5px; }
.directory-time { font-size: 20px; font-weight: 900; }
.directory-detail { color: var(--muted); font-size: 13px; font-weight: 800; }
.directory-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.directory-open { color: #fff; font-size: 13px; font-weight: 900; }

.back-link { display: inline-flex; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; }
.back-link:hover { color: var(--text); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; }
.panel, .live-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.live-section { padding: 18px; margin-bottom: 18px; }
.panel { padding: 18px; margin-bottom: 18px; }
.sidebar .panel { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }

.matchbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.match-kicker { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.matchbar h1 { font-size: 38px; line-height: 1; margin: 6px 0 0; font-weight: 900; letter-spacing: .01em; }
.match-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta-chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel2); color: var(--muted); font-size: 12px; font-weight: 800; }

.player { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #05070b; }
.player-media iframe, .player-media video, .player-media .wp-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background-image: linear-gradient(180deg, rgba(5,7,11,.1), rgba(5,7,11,.66)), var(--arena-img);
  background-size: cover;
  background-position: center;
}
.player-stage.is-guest-match { cursor: pointer; }
.player-top-left { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; align-items: center; }
.live-pill { padding: 6px 9px; border-radius: 4px; background: var(--live); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.round-pill, .player-viewers { padding: 6px 9px; border-radius: 4px; background: rgba(5,7,11,.72); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.player-viewers { position: absolute; top: 14px; right: 14px; }
.player-play { width: 68px; height: 68px; }
.player-play::after { left: 27px; top: 21px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
.scorebug { position: absolute; left: 14px; bottom: 52px; display: flex; overflow: hidden; border-radius: 4px; font-weight: 900; letter-spacing: .03em; }
.scorebug span { padding: 7px 10px; }
.score-wala { background: var(--wala); color: #fff; }
.score-sep { background: var(--meron); color: #fff; }
.player-controls { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 14px; align-items: center; color: #fff; font-family: var(--mono); font-size: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.player-note, .player-state {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(5,7,11,.82);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
  text-align: center;
}
.player-note { top: auto; bottom: 84px; transform: translateX(-50%); padding: 10px 14px; font-size: 13px; font-weight: 800; }
.player-state strong { display: block; color: #fff; font-size: 20px; margin-bottom: 8px; }
.player-state-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.player-state-links a { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }

.support { margin-top: 16px; margin-bottom: 0; }
.support-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.support-head h2 { font-size: 19px; margin: 0; font-weight: 900; }
.support-head span { color: var(--muted); }
.support-head b { color: var(--text); }
.support-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.support-actions .btn, .support-actions form .btn { width: 100%; }
.tugbar { display: flex; height: 14px; overflow: hidden; border-radius: 99px; background: var(--panel2); margin: 14px 0 10px; border: 1px solid var(--line); }
.tug-wala { background: var(--wala); }
.tug-meron { background: var(--meron); }
.tug-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.tug-labels b { color: var(--text); }

.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel2);
  text-decoration: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.schedule-row:hover, .schedule-row.active { border-color: rgba(255,255,255,.3); }
.schedule-time strong { display: block; color: var(--text); font-size: 20px; line-height: 1; font-weight: 900; }
.schedule-time small { color: var(--faint); font-weight: 800; }
.schedule-main strong { display: block; color: var(--text); font-size: 16px; letter-spacing: .02em; }
.schedule-main small { color: var(--muted); }
.next-chip { color: var(--muted); font-weight: 800; font-size: 13px; }
.next-chip b { color: var(--text); font-family: var(--mono); }

.online-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.online-chip i { width: 7px; height: 7px; border-radius: 99px; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.chat-list { height: 360px; overflow-y: auto; padding: 4px 2px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg { font-size: 13.5px; line-height: 1.45; color: var(--muted); overflow-wrap: break-word; }
.msg .name { font-weight: 900; }
.name-wala { color: #7fb2ff; }
.name-meron { color: #ff9d9d; }
.msg .time { color: var(--faint); font-size: 11px; margin-left: 6px; }
.chat-form { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-form input, .auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg2);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.chat-lock { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.chat-lock button { padding: 0; border: 0; background: none; color: #fff; font-weight: 900; cursor: pointer; }
.act-list { display: flex; flex-direction: column; gap: 10px; }
.act-item { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.act-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 900; flex: 0 0 auto; }
.act-text { display: block; color: var(--text); }
.act-item small { color: var(--faint); }

.page-shell { max-width: 860px; margin: 0 auto; }
.auth-shell { max-width: 540px; }
.page-panel { margin-bottom: 0; }
.page-content { color: var(--muted); line-height: 1.7; }
.page-content h3 { color: var(--text); margin: 18px 0 6px; }
.page-content h3:first-child { margin-top: 0; }
.page-content ul { margin: 0; padding-left: 20px; }
.page-content li { margin: 8px 0; }
.auth-card { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.auth-lead { color: var(--muted); margin-top: 0; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; color: var(--text); font-weight: 800; font-size: 14px; }
.auth-form .checkline { flex-direction: row; align-items: flex-start; color: var(--muted); font-weight: 500; }
.auth-form .checkline input { margin-top: 3px; }
.auth-error { padding: 11px 12px; border-radius: 6px; background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.45); color: #ffd7d8; margin-bottom: 14px; }
.auth-switch { color: var(--muted); margin-bottom: 0; }
.auth-switch a, .auth-back a { color: #fff; font-weight: 900; text-decoration: none; }
.auth-back { margin-top: 16px; }

.register-modal[hidden] { display: none; }
.register-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.register-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.72); backdrop-filter: blur(8px); }
.register-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.register-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.register-context { margin: 0 42px 8px 0; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.register-dialog h2 { margin: 0 42px 8px 0; font-size: 26px; line-height: 1.15; }
.register-lead { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }

.site-footer { border-top: 1px solid var(--line); background: #0c0e12; margin-top: auto; }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 54px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1080px) {
  .home-shell { grid-template-columns: 184px minmax(0, 1fr) 252px; gap: 12px; }
  .arena-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 760px) {
  .header-inner { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .wrap { padding: 18px 14px 28px; }
  body.home .wrap { padding: 12px; }
  .home-shell { grid-template-columns: 1fr; }
  .home-side { display: none; }
  .home-status { gap: 10px; padding: 8px 10px; font-size: 11px; overflow: hidden; }
  .home-status-match { display: none; }
  .arena-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.home .arena-card-body { padding: 9px 10px 10px; gap: 4px; }
  body.home .arena-card-top { align-items: flex-start; flex-direction: column; gap: 5px; }
  body.home .arena-card-top strong { font-size: 14px; }
  body.home .arena-card-meta, body.home .arena-card-detail { font-size: 11px; }
  body.home .duel { font-size: 12px; }
  body.home .arena-card-match { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 7px; }
  body.home .arena-card-detail { text-align: left; }
  .arena-directory-row { grid-template-columns: 1fr; gap: 12px; }
  .directory-action { align-items: flex-start; flex-direction: row; }
  .support-actions { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; }
  .player-stage { min-height: 320px; }
  .matchbar h1 { font-size: 30px; }
}
