/* ============================================================
   Светлая серо-голубая тема (по мотивам турнирной таблицы)
   ============================================================ */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f7;
  --bg-soft: #e6edf5;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-2: #f4f7fb;
  --panel-3: #e9eff6;
  --line: #d6e0ea;
  --line-strong: #bccbdb;
  --text: #1f2a37;
  --muted: #5d7085;
  --muted-2: #8a99ab;
  --accent: #2f86c9;
  --accent-strong: #1f6fae;
  --accent-2: #5aa9dd;
  --violet: #7b8fa5;
  --shadow: 0 18px 45px rgba(31, 54, 80, 0.10);
}

html[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(1000px 650px at 8% -12%, rgba(74, 159, 224, 0.15), transparent 60%),
    radial-gradient(850px 600px at 100% 0%, rgba(138, 164, 189, 0.14), transparent 55%),
    var(--bg);
}
html[data-theme="light"] ::selection { background: rgba(47, 134, 201, 0.2); }

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #fbfdff, #eef4fa);
  border-color: var(--line);
  box-shadow: 1px 0 0 rgba(31, 54, 80, 0.03);
}
html[data-theme="light"] .topbar {
  background: rgba(250, 252, 255, 0.82);
  border-color: var(--line);
}
html[data-theme="light"] .brand-name { color: #172334; }
html[data-theme="light"] .brand-sub { color: var(--muted); }
html[data-theme="light"] .season-switch { background: #f4f8fc; border-color: var(--line); }
html[data-theme="light"] .user-avatar {
  background: linear-gradient(140deg, #dcecf8, #c7deef);
  border-color: rgba(47, 134, 201, 0.32);
  color: #1f5f8e;
}
html[data-theme="light"] .nav-item { color: var(--muted); }
html[data-theme="light"] .nav-item:hover { background: rgba(31, 54, 80, 0.05); color: var(--text); }
html[data-theme="light"] .nav-item.is-active {
  color: var(--accent-strong);
  background: linear-gradient(90deg, rgba(47, 134, 201, 0.12), rgba(47, 134, 201, 0.035));
  border-color: rgba(47, 134, 201, 0.24);
}
html[data-theme="light"] .nav-item.is-active .nav-icon { color: var(--accent); }
html[data-theme="light"] .nav-badge { background: #fdecef; color: #b4233a; }

html[data-theme="light"] .card,
html[data-theme="light"] .team-tile,
html[data-theme="light"] .season-card,
html[data-theme="light"] .dialog,
html[data-theme="light"] .toast,
html[data-theme="light"] .sheet,
html[data-theme="light"] .login-feature,
html[data-theme="light"] .pref-box,
html[data-theme="light"] .mini-stat,
html[data-theme="light"] .hero-stat,
html[data-theme="light"] .lineup-col,
html[data-theme="light"] .score-action-home,
html[data-theme="light"] .score-action-away,
html[data-theme="light"] .series-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(31, 54, 80, 0.06);
  backdrop-filter: none;
}
html[data-theme="light"] .card-head { border-bottom-color: #e7eef6; }
html[data-theme="light"] .card-subtitle,
html[data-theme="light"] .muted { color: var(--muted); }

html[data-theme="light"] .hero {
  border-color: #c9dfef;
  background:
    radial-gradient(700px 300px at 88% -30%, rgba(74, 159, 224, 0.20), transparent 70%),
    radial-gradient(500px 260px at 20% 130%, rgba(138, 164, 189, 0.13), transparent 70%),
    linear-gradient(120deg, #ffffff, #eef6fc);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .hero::after { border-color: rgba(47, 134, 201, 0.16); box-shadow: 0 0 0 40px rgba(47, 134, 201, 0.04), 0 0 0 80px rgba(47, 134, 201, 0.02); }
html[data-theme="light"] .hero-sub { color: #4a5f75; }
html[data-theme="light"] .hero-meta { color: var(--muted); }
html[data-theme="light"] .hero-stat { background: #f6f9fc; border-color: #e0e8f1; }
html[data-theme="light"] .hero-stat-value { color: #172334; }
html[data-theme="light"] .hero-eyebrow { color: var(--accent-strong); }

html[data-theme="light"] .btn-primary {
  background: linear-gradient(140deg, #4a9fe0, #2f86c9);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(47, 134, 201, 0.24);
}
html[data-theme="light"] .btn-primary:hover { background: linear-gradient(140deg, #5fb0eb, #348fd4); }
html[data-theme="light"] .btn-ghost { background: #ffffff; border-color: var(--line-strong); color: var(--text); }
html[data-theme="light"] .btn-ghost:hover { background: #f3f7fb; border-color: #a9bdcf; }
html[data-theme="light"] .btn-danger { background: #fdecef; border-color: #f2b8c2; color: #a61b32; }
html[data-theme="light"] .btn-success { background: #e9f7ef; border-color: #a9d9bd; color: #166f42; }

html[data-theme="light"] .pill-muted { background: #eef2f7; color: #52657a; border-color: #d6e0ea; }
html[data-theme="light"] .pill-info { background: #e8f3fb; color: #1f6fae; border-color: #bcd9ee; }
html[data-theme="light"] .pill-accent { background: #e8f3fb; color: #1f6fae; border-color: #bcd9ee; }
html[data-theme="light"] .pill-violet { background: #eef1f5; color: #5d7085; border-color: #d6e0ea; }
html[data-theme="light"] .pill-success { background: #e9f7ef; color: #166f42; border-color: #b7dfc8; }
html[data-theme="light"] .pill-warning { background: #fdf4dc; color: #866100; border-color: #efd692; }
html[data-theme="light"] .pill-danger,
html[data-theme="light"] .pill-live { background: #fdecef; color: #a61b32; border-color: #f2b8c2; }
html[data-theme="light"] .form-chip.form-win { background: #e5f6ed; color: #166f42; }
html[data-theme="light"] .form-chip.form-loss { background: #fdecef; color: #a61b32; }
html[data-theme="light"] .form-chip.form-otl { background: #fdf4dc; color: #866100; }
html[data-theme="light"] .form-chip.form-draw { background: #eef2f7; color: #52657a; }

html[data-theme="light"] .table th { color: var(--muted); border-bottom-color: var(--line); }
html[data-theme="light"] .table td { border-bottom-color: #e8eef5; }
html[data-theme="light"] .table tbody tr:hover { background: #f7fafd; }
html[data-theme="light"] .table .col-points strong { color: #172334; }
html[data-theme="light"] .pos-badge { background: #eef2f7; color: #5d7085; }
html[data-theme="light"] .team-cell-city { color: var(--muted); }
html[data-theme="light"] .cut-row td { border-bottom-color: rgba(47, 134, 201, 0.55) !important; }
html[data-theme="light"] .table-legend { border-top-color: var(--line); }

html[data-theme="light"] .game-card { border-bottom-color: #e8eef5; }
html[data-theme="light"] .game-card:hover { background: #f7fafd; }
html[data-theme="light"] .game-card.is-live { background: linear-gradient(90deg, rgba(251, 113, 133, 0.07), transparent 60%); }
html[data-theme="light"] .game-day-heading { background: #f2f6fa; border-bottom-color: #e2eaf3; color: var(--muted); }
html[data-theme="light"] .game-date,
html[data-theme="light"] .game-meta { color: var(--muted); }
html[data-theme="light"] .game-round { color: var(--muted-2); }
html[data-theme="light"] .game-team-name { color: #1f2a37; }
html[data-theme="light"] .game-score-nums { color: #172334; }
html[data-theme="light"] .game-score-nums .winner { color: var(--accent-strong); }

html[data-theme="light"] .leader-card:hover { background: #f5f9fc; border-color: var(--line); }
html[data-theme="light"] .leader-1 { background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), transparent); }
html[data-theme="light"] .leader-name { color: #1f2a37; }
html[data-theme="light"] .leader-team { color: var(--muted); }

html[data-theme="light"] .team-hero {
  border-color: #cfe0ee;
  background:
    radial-gradient(400px 180px at 0% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%),
    linear-gradient(120deg, #ffffff, #f0f7fc);
}
html[data-theme="light"] .team-hero-meta { color: var(--muted); }
html[data-theme="light"] .team-hero-stat b { color: #172334; }
html[data-theme="light"] .team-tile:hover { border-color: rgba(47, 134, 201, 0.35); background: #fbfdff; }
html[data-theme="light"] .team-tile-prefs { background: #f5f9fc; border-color: #e0e9f2; }
html[data-theme="light"] .team-tile-footer { border-top-color: #e7eef6; }
html[data-theme="light"] .season-card:hover { border-color: rgba(47, 134, 201, 0.35); }
html[data-theme="light"] .season-champion { background: #fdf8e9; border-color: #efdfb0; }
html[data-theme="light"] .season-champion-text small { color: #8a6100; }

html[data-theme="light"] .scoreboard {
  border-color: #cfe0ee;
  background:
    radial-gradient(700px 280px at 50% -60%, rgba(74, 159, 224, 0.16), transparent 70%),
    linear-gradient(160deg, #ffffff, #eff6fc);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .scoreboard-date,
html[data-theme="light"] .scoreboard-stage { color: var(--muted); }
html[data-theme="light"] .score-digits { color: #172334; }
html[data-theme="light"] .score-state { color: var(--muted); }
html[data-theme="light"] .score-side-city { color: var(--muted); }
html[data-theme="light"] .clock-panel { background: #f5f9fc; border-color: var(--line); }
html[data-theme="light"] .clock-time { color: #172334; }
html[data-theme="light"] .clock-time.is-low { color: #c0263e; }
html[data-theme="light"] .clock-time.is-paused { color: #a46d00; }
html[data-theme="light"] .clock-hint { color: var(--muted-2); }
html[data-theme="light"] .penalty-item { background: #fdf4dc; border-color: #efd692; }
html[data-theme="light"] .penalty-time { color: #8a6100; }
html[data-theme="light"] .event-item { border-bottom-color: #e9eff6; }
html[data-theme="light"] .event-icon { background: #e8f3fb; color: var(--accent-strong); }
html[data-theme="light"] .event-icon.penalty { background: #fdf4dc; color: #8a6100; }
html[data-theme="light"] .event-icon.shootout { background: #eef1f5; color: var(--muted); }
html[data-theme="light"] .event-title { color: #1f2a37; }
html[data-theme="light"] .event-sub,
html[data-theme="light"] .event-time { color: var(--muted); }
html[data-theme="light"] .event-time strong { color: #33475c; }
html[data-theme="light"] .events .event-period { background: #f2f6fa; border-color: #e2eaf3; color: var(--muted); }
html[data-theme="light"] .score-action-home,
html[data-theme="light"] .score-action-away { background: #f7fafd; }
html[data-theme="light"] .score-action-label { color: #1f2a37; }
html[data-theme="light"] .lineup-player { color: #33475c; }
html[data-theme="light"] .lineup-num { color: var(--muted-2); }
html[data-theme="light"] .lineup-head { color: #1f2a37; }

html[data-theme="light"] .notice { background: #eef7fd; border-color: #c6e1f2; color: #245a7d; }
html[data-theme="light"] .notice.warning { background: #fdf8e9; border-color: #efdfb0; color: #7a5a00; }
html[data-theme="light"] .notice.danger { background: #fdeff1; border-color: #f2c0c8; color: #982238; }
html[data-theme="light"] .empty-icon { background: #e8f3fb; border-color: #c6e1f2; color: var(--accent-strong); }
html[data-theme="light"] .empty-text { color: var(--muted); }

html[data-theme="light"] .seg { background: #eaf0f6; border-color: var(--line); }
html[data-theme="light"] .seg-item { color: var(--muted); }
html[data-theme="light"] .seg-item.is-active { background: #ffffff; color: var(--accent-strong); box-shadow: 0 1px 4px rgba(31, 54, 80, 0.10); }
html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}
html[data-theme="light"] .input::placeholder,
html[data-theme="light"] .textarea::placeholder { color: #9aa8b8; }
html[data-theme="light"] .select option { background: #ffffff; color: var(--text); }
html[data-theme="light"] .day-chip span,
html[data-theme="light"] .radio-card span { background: #f7fafd; border-color: var(--line); color: var(--muted); }
html[data-theme="light"] .day-chip input:checked + span,
html[data-theme="light"] .radio-card input:checked + span { background: #e8f3fb; border-color: rgba(47, 134, 201, 0.5); color: var(--accent-strong); }
html[data-theme="light"] .field-label { color: #33475c; }
html[data-theme="light"] .field-hint { color: var(--muted-2); }
html[data-theme="light"] .checkbox-line { color: #33475c; }

html[data-theme="light"] .dialog { background: linear-gradient(180deg, #ffffff, #f8fbfe); }
html[data-theme="light"] .dialog-message { color: #33475c; }
html[data-theme="light"] .dialog-sub { color: var(--muted); }
html[data-theme="light"] .toast { background: #ffffff; box-shadow: 0 14px 36px rgba(31, 54, 80, 0.16); }
html[data-theme="light"] .toast-text { color: #1f2a37; }
html[data-theme="light"] .sheet { background: linear-gradient(180deg, #ffffff, #f7fafd); }
html[data-theme="light"] .sheet-season { background: #f4f8fc; }
html[data-theme="light"] .sheet-nav .nav-item { background: #f7fafd; border-color: var(--line); }
html[data-theme="light"] .sheet-nav .nav-item.is-active { background: #e8f3fb; border-color: rgba(47, 134, 201, 0.3); }
html[data-theme="light"] .tabbar { background: rgba(250, 252, 255, 0.97); border-top-color: var(--line); }
html[data-theme="light"] .tab-item { color: var(--muted); }
html[data-theme="light"] .tab-item.is-active { color: var(--accent-strong); }
html[data-theme="light"] .tab-item.is-active .tab-icon { background: #e8f3fb; }
html[data-theme="light"] .mobile-menu-btn { background: #ffffff; border-color: var(--line-strong); color: var(--text); }
html[data-theme="light"] .mobile-season { color: var(--muted); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, #fbfdff, #eef4fa); }
html[data-theme="light"] .topbar-title { color: #172334; }
html[data-theme="light"] .topbar-sub { color: var(--muted); }

html[data-theme="light"] .login-visual {
  border-right-color: var(--line);
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(74, 159, 224, 0.22), transparent 60%),
    radial-gradient(700px 500px at 80% 100%, rgba(138, 164, 189, 0.18), transparent 60%),
    linear-gradient(160deg, #ffffff, #e9f1f8);
}
html[data-theme="light"] .login-visual::before {
  background-image: linear-gradient(rgba(47, 134, 201, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 134, 201, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .login-headline h1 { color: #172334; }
html[data-theme="light"] .login-headline p { color: #4a5f75; }
html[data-theme="light"] .login-feature { background: #ffffff; border-color: #dbe6f0; color: #33475c; }
html[data-theme="light"] .login-panel { background: #f7fafd; }
html[data-theme="light"] .login-card h2 { color: #172334; }
html[data-theme="light"] .login-sub { color: var(--muted); }
html[data-theme="light"] .login-hint { background: #ffffff; border-color: #c9d8e6; color: var(--muted); }
html[data-theme="light"] .login-hint code { background: #e8f3fb; border-color: #c6e1f2; color: #1f6fae; }
html[data-theme="light"] .login-foot { color: var(--muted-2); }

html[data-theme="light"] .bracket-round-title { border-bottom-color: var(--line); }
html[data-theme="light"] .series-card:hover { border-color: rgba(47, 134, 201, 0.35); background: #fbfdff; }
html[data-theme="light"] .series-team.is-winner { background: #e9f7ef; }
html[data-theme="light"] .series-team.is-winner .team-line-name { color: #166f42; }
html[data-theme="light"] .series-team.is-winner .series-wins { color: #166f42; }
html[data-theme="light"] .series-games { border-top-color: #e4ecf4; }
html[data-theme="light"] .champion-banner { background: #fdf8e9; border-color: #efdfb0; }
html[data-theme="light"] .champion-name { color: #172334; }
html[data-theme="light"] .champion-label { color: #8a6100; }
html[data-theme="light"] .champion-sub { color: var(--muted); }
html[data-theme="light"] .champion-trophy { color: #3b2600; }

html[data-theme="light"] .list-row { border-bottom-color: #e9eff6; }
html[data-theme="light"] .kv { border-bottom-color: #e7eef6; }
html[data-theme="light"] .divider { background: var(--line); }
html[data-theme="light"] .skeleton { background: linear-gradient(90deg, #e9eff6, #f6f9fc, #e9eff6); background-size: 200% 100%; }
html[data-theme="light"] .team-hero-stat span, html[data-theme="light"] .game-date, html[data-theme="light"] .game-meta { color: var(--muted); }
html[data-theme="light"] .table .col-goals, html[data-theme="light"] .table .col-diff { color: #52657a; }
html[data-theme="light"] .standings-table .team-cell-name { color: #1f2a37; }
html[data-theme="light"] .game-status .pill { }

@media print {
  html[data-theme="light"] body { background: #fff; }
}

html[data-theme="light"] .login-hint { color: #52657a; }
html[data-theme="light"] .login-hint strong { color: #1f2a37; }
html[data-theme="light"] .login-sub { color: #5d7085; }
html[data-theme="light"] .login-error { background: #fdeff1; border-color: #f2c0c8; color: #982238; }
html[data-theme="light"] .mode-note { color: var(--muted); }

html[data-theme="light"] .logo-preview { background: #f5f9fc; }
html[data-theme="light"] .apply-player { background: #f8fbfe; }
html[data-theme="light"] .apply-roster-head { color: #7c8da0; }

html[data-theme="light"] .boot-screen { background:
  radial-gradient(700px 420px at 50% 20%, rgba(42, 167, 223, 0.16), transparent 65%),
  radial-gradient(500px 300px at 80% 90%, rgba(191, 232, 247, 0.35), transparent 70%),
  #f7fbfe; }
html[data-theme="light"] .atlas-boot-word { color: #fff; text-shadow: 0 3px 0 #c9ecf9, 0 10px 28px rgba(42, 167, 223, 0.18); }
html[data-theme="light"] .atlas-boot-note { color: #5d7085; }
