/* =====================================================
   TOPLYGA FANTASY
   HOME (pagrindinis puslapis po prisijungimo)
   ===================================================== */


/* =====================================================
   1. GLOBAL
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(ellipse at 50% -20%, #1b3027 0, #101214 55%);
    color: #ffffff;
}

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

[hidden] {
    display: none !important;
}


/* =====================================================
   2. HEADER
   ===================================================== */

.top-header {
    position: sticky;
    top: 0;
    z-index: 10;

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    background: #171a1e;
    border-bottom: 1px solid #292d32;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.brand-main {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-sub {
    font-size: 12px;
    font-weight: 700;
    color: #89929b;
}

.top-nav {
    display: flex;
    gap: 6px;
}

.top-nav a {
    padding: 9px 14px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
    color: #9aa3ac;
}

.top-nav a:hover {
    background: #20252a;
    color: #ffffff;
}

.top-nav a.active {
    background: #ffffff;
    color: #111111;
}

.top-nav a[hidden] {
    display: none;
}


/* =====================================================
   3. LAYOUT
   ===================================================== */

.home-layout {
    max-width: 1300px;

    margin: 0 auto;
    padding: 24px;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    position: relative;

    padding: 24px;

    background: #171a1e;
    border: 1px solid #292d32;
    border-radius: 14px;
}

.card h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.35px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7fd6a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.league-info-card p {
    max-width: 560px;
    margin-top: 12px;
    color: #a6afb7;
    font-size: 14px;
    line-height: 1.6;
}

.league-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.league-stat {
    min-width: 0;
    min-height: 88px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #2a3036;
    border-radius: 10px;
    background: #14171a;
}

.league-stat span, .league-stat small { color: #8e98a1; font-size: 12px; }
.league-stat strong { overflow: hidden; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.league-stat small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline-card h2 { margin-bottom: 4px; }


/* =====================================================
   4. DEMO BADGE
   ===================================================== */

/*
   Rodo, kad bloko duomenys dar nėra iš duomenų bazės.
   Kai prijungsime tikrus duomenis - badge pašalinamas.
*/

.demo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    padding: 3px 8px;

    border-radius: 20px;
    border: 1px solid rgba(245, 197, 66, 0.5);

    background: rgba(245, 197, 66, 0.12);
    color: #f5c542;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    cursor: help;
}


/* =====================================================
   5. HERO
   ===================================================== */

.hero {
    display: flex;
    align-items: stretch;

    overflow: hidden;

    border: 1px solid #2d664c;
    border-radius: 18px;

    background: linear-gradient(115deg, #17432f 0%, #16324f 100%);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.hero > * {
    min-width: 0;

    padding: 28px;
}


/* ---------- komanda ---------- */

.hero-team {
    flex: 1.3 1 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.team-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-crest {
    width: 56px;
    height: 56px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px 14px 50% 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);

    background: rgba(255, 255, 255, 0.12);

    font-size: 24px;
    font-weight: 800;
}

.team-crest img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    filter: invert(1);
}

.team-titles {
    min-width: 0;
}

.team-name {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;

    overflow-wrap: anywhere;
}

.manager-name {
    margin-top: 5px;

    font-size: 15px;
    font-weight: 700;

    opacity: 0.8;
}

.team-message {
    font-size: 14px;
    line-height: 1.5;

    opacity: 0.9;
}

.team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    height: 44px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: rgba(0, 0, 0, 0.3);

    font-size: 14px;
    font-weight: 700;

    transition: background 0.15s;
}

.action-button:hover {
    background: rgba(0, 0, 0, 0.45);
}

.action-button.primary {
    background: #ffffff;
    color: #111111;
}

.action-button.primary:hover {
    background: #e4e8ec;
}

.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-button.disabled:hover {
    background: rgba(0, 0, 0, 0.3);
}


/* ---------- taškai ---------- */

.hero-points {
    position: relative;

    flex: 0 1 270px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-left: 1px solid rgba(255, 255, 255, 0.14);

    text-align: center;
}

.points-label {
    font-size: 13px;
    opacity: 0.75;
}

.points-main {
    margin-top: 6px;

    font-size: 78px;
    font-weight: 800;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.points-main:hover,
.points-main:focus-visible {
    color: var(--app-green);
    transform: translateY(-2px);
}

.points-caption {
    margin-top: 4px;

    font-size: 13px;
    opacity: 0.75;
}

.points-side {
    margin-top: 18px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.points-side strong {
    display: block;

    font-size: 24px;
    font-weight: 800;
}

.points-side span {
    display: block;

    margin-top: 3px;

    font-size: 12px;
    opacity: 0.75;
}

.total-points-stat strong { color: #8fe0ae; }


/* ---------- terminas ---------- */

.hero-deadline {
    flex: 1.2 1 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    opacity: 0.7;
}

.deadline-gw {
    margin-top: 8px;

    font-size: 22px;
    font-weight: 800;
}

.countdown {
    margin-top: 16px;

    display: flex;
    gap: 10px;
}

.countdown > div {
    min-width: 70px;

    padding: 12px 8px;

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.28);

    text-align: center;
}

.countdown strong {
    display: block;

    font-size: 32px;
    font-weight: 800;
    line-height: 1;

    font-variant-numeric: tabular-nums;
}

.countdown span {
    display: block;

    margin-top: 6px;

    font-size: 11px;
    opacity: 0.7;
}


/* =====================================================
   6. TURO STATUSAS (dienų juosta)
   ===================================================== */

.day-strip {
    margin-top: 18px;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    gap: 12px;

    overflow-x: auto;
}

.day-strip .card-message {
    grid-column: 1 / -1;
}

.day-chip {
    padding: 16px 14px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background: #14171a;
    border: 1px solid #292d32;
    border-radius: 12px;
}

.day-chip.live {
    border-color: #4be07a;
    background: rgba(75, 224, 122, 0.06);
}

.day-chip.today {
    border-color: #f5c542;
}

.day-weekday {
    font-size: 12px;
    color: #7f8790;
}

.day-date {
    margin-bottom: 10px;

    font-size: 16px;
}

.status-pill {
    display: block;

    padding: 8px 0;

    border-radius: 6px;

    text-align: center;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;

    color: #111111;
}

.status-pill.finished {
    background: #8b949c;
}

.status-pill.live {
    background: #4be07a;
}

.status-pill.today {
    background: #f5c542;
}

.status-pill.upcoming {
    background: #2b3138;
    color: #9aa3ac;
}


/* =====================================================
   7. APAČIA
   ===================================================== */

.lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;

    align-items: start;
}

.lower-main {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ---------- pulsas ---------- */

.pulse {
    position: relative;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pulse .demo-badge {
    top: -10px;
    right: 8px;
}

.tile {
    min-height: 104px;

    padding: 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;

    background: #171a1e;
    border: 1px solid #292d32;
    border-left-width: 4px;
    border-radius: 12px;
}

.tile-green { border-left-color: #4be07a; }
.tile-amber { border-left-color: #f5c542; }
.tile-blue  { border-left-color: #5aa9ff; }
.tile-red   { border-left-color: #ff7a6b; }

.tile-label {
    font-size: 12px;
    color: #7f8790;
}

.tile strong {
    font-size: 22px;
    font-weight: 800;

    overflow-wrap: anywhere;
}


/* ---------- keitimų srautas ---------- */

.flow-card h2 {
    padding-right: 64px;
}

.flow-grid {
    margin-top: 20px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.flow-col {
    min-width: 0;

    padding: 0 20px;
}

.flow-col:first-child {
    padding-left: 0;

    border-right: 1px solid #292d32;
}

.flow-col:last-child {
    padding-right: 0;
}

.flow-title {
    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.flow-title.in {
    color: #4be07a;
}

.flow-title.out {
    color: #ff5d5d;
}

.transfer-list {
    list-style: none;
}

.transfer-row {
    --bar: 0%;

    position: relative;

    padding: 13px 0 15px;

    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #23282d;
}

.transfer-row:last-child {
    border-bottom: none;
}

/* Juosta rodo keitimų kiekį lyginant su populiariausiu */

.transfer-row::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 6px;

    width: var(--bar);
    height: 3px;

    border-radius: 3px;
}

.transfer-row.in::after {
    background: #4be07a;
}

.transfer-row.out::after {
    background: #ff5d5d;
}

.pos-badge {
    padding: 4px 0;

    border-radius: 5px;

    text-align: center;

    font-size: 10px;
    font-weight: 800;

    color: #111111;
    background: #8b949c;
}

.pos-badge.GK  { background: #f5c542; }
.pos-badge.DEF { background: #5aa9ff; }
.pos-badge.MID { background: #4be07a; }
.pos-badge.ATT { background: #ff7a6b; }

.transfer-player {
    min-width: 0;
}

.transfer-player strong {
    display: block;

    font-size: 14px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transfer-player span {
    display: block;

    margin-top: 3px;

    font-size: 12px;
    color: #7f8790;
}

.transfer-count {
    font-size: 14px;
    font-weight: 700;

    font-variant-numeric: tabular-nums;
}


/* ---------- terminų laiko juosta ---------- */

.timeline {
    position: relative;

    margin-top: 24px;

    list-style: none;
}

.timeline::before {
    content: "";

    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;

    width: 2px;

    background: #292d32;
}

.timeline-item {
    position: relative;

    padding: 0 0 26px 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";

    position: absolute;
    left: 0;
    top: 3px;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    border: 2px solid #4a535c;

    background: #171a1e;
}

.timeline-item.next::before {
    border-color: #4be07a;
    background: #4be07a;
}

.timeline-item strong {
    display: block;

    font-size: 16px;
}

.timeline-item span {
    display: block;

    margin-top: 4px;

    font-size: 13px;
    color: #9aa3ac;
}

.timeline-item.next span {
    color: #4be07a;
}

.timeline-empty {
    padding-left: 32px;

    font-size: 13px;
    color: #747d86;
}


/* =====================================================
   8. MESSAGES
   ===================================================== */

.card-message {
    padding: 20px 4px;

    font-size: 13px;
    color: #747d86;
}


/* =====================================================
   9. RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {

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

    .hero {
        flex-wrap: wrap;
    }

    .hero-team {
        flex: 1 1 100%;
    }

    .hero-points,
    .hero-deadline {
        flex: 1 1 260px;

        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero-points {
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 760px) {

    .home-layout {
        padding: 14px;
        gap: 14px;
    }

    .top-header {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 12px 14px;
    }

    .top-nav {
        max-width: 100%;
        overflow-x: auto;
    }

    .top-nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero > * {
        padding: 20px;
    }

    .hero-points {
        border-right: none;
    }

    .team-name {
        font-size: 24px;
    }

    .points-main {
        font-size: 60px;
    }

    .points-side { gap: 6px; }
    .points-side strong { font-size: 19px; }
    .points-side span { font-size: 10px; }

    .countdown > div {
        min-width: 0;
        flex: 1;
    }

    .countdown strong {
        font-size: 26px;
    }

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

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flow-col,
    .flow-col:first-child,
    .flow-col:last-child {
        padding: 0;

        border-right: none;
    }
}

/* Naujam vartotojui pagrindinis puslapis tampa komandos kūrimo pradžios ekranu. */
body.team-creation-required .brand { pointer-events: none; }
body.team-creation-required .hero {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin: 34px auto 0;
    border-color: #376348;
    background: linear-gradient(115deg, #192b21, #171a1e 72%);
}
body.team-creation-required .hero-team { grid-column: auto; padding: clamp(28px, 6vw, 64px); }
body.team-creation-required .team-crest { width: 72px; height: 72px; font-size: 30px; }
body.team-creation-required .team-name { font-size: clamp(25px, 4vw, 38px); }
body.team-creation-required .team-message { margin-top: 16px; font-size: 16px; color: #c4ccd1; }
body.team-creation-required .team-actions { margin-top: 24px; }
body.team-creation-required .team-actions #pickTeamButton {
    width: min(100%, 420px);
    min-height: 66px;
    border-radius: 12px;
    background: #80d6a0;
    color: #102016;
    font-size: 20px;
    box-shadow: 0 8px 26px rgb(0 0 0 / 20%);
}
body.team-creation-required .hero-points,
body.team-creation-required .hero-deadline,
body.team-creation-required .status-card,
body.team-creation-required .lower-grid,
body.team-creation-required .home-feature-grid,
body.team-creation-required .home-content-grid { display: none !important; }

@media (max-width: 760px) {
    body.team-creation-required .hero { margin-top: 18px; }
    body.team-creation-required .hero-team { padding: 26px 20px; }
    body.team-creation-required .team-actions #pickTeamButton { min-height: 58px; font-size: 18px; }
}

@media (max-width: 420px) {
    .home-layout { padding: 10px; }
    .hero > * { padding: 17px; }
    .team-head { gap: 12px; }
    .team-crest { width: 48px; height: 48px; }
    .team-name { font-size: 21px; }
    .team-actions { display: grid; grid-template-columns: 1fr; }
    .action-button { width: 100%; }
    .countdown { gap: 6px; }
    .countdown > div { padding: 10px 4px; }
    .countdown strong { font-size: 22px; }
    .card { padding: 18px; }
    .league-stat-grid { grid-template-columns: 1fr; }
}

/* Shared TOPLYGA visual system: dense, calm surfaces with green action states. */
:root {
    --app-bg: #101214;
    --app-panel: #171a1e;
    --app-panel-raised: #20252a;
    --app-line: #2d343b;
    --app-text: #f4f6f7;
    --app-muted: #929ba4;
    --app-green: #83d9a2;
    --app-green-dark: #183c2b;
    --app-yellow: #f2c542;
    --app-red: #ec7777;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.top-header {
    height: 72px;
    padding: 0 24px;
    background: var(--app-panel);
    border-bottom: 1px solid var(--app-line);
}

.home-layout {
    width: min(1440px, 100%);
    padding: 22px 24px 32px;
    gap: 16px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(235px, 1.1fr) minmax(190px, .8fr) minmax(280px, 1.2fr);
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: linear-gradient(120deg, #17211c, #171a1e 54%, #19201d);
    box-shadow: none;
}

.hero > * {
    padding: 22px;
}

.hero-team { gap: 20px; }
.team-crest { border-color: #7abf95; background: #1d4932; }
.manager-name, .points-label, .points-caption, .countdown span, .hero-kicker { color: var(--app-muted); opacity: 1; }
.team-name { font-size: 25px; }

.action-button {
    height: 38px;
    padding: 0 15px;
    border: 1px solid #343b42;
    border-radius: 8px;
    background: #22272c;
    color: #e7ebee;
    font-size: 12px;
}
.action-button:hover { background: #2a3036; }
.action-button.primary { border-color: var(--app-green); background: var(--app-green); color: #102016; }
.action-button.primary:hover { background: #9be4b4; }

.hero-points, .hero-deadline {
    border-color: var(--app-line);
}
.hero-points { flex-basis: auto; }
.points-main { margin-top: 5px; color: var(--app-green); font-size: 64px; }
.points-side { margin-top: 12px; gap: 6px; }
.points-side strong { font-size: 20px; }
.points-side span { color: var(--app-muted); font-size: 10px; opacity: 1; }
.total-points-stat strong { color: var(--app-green); }
.deadline-gw { font-size: 19px; }
.countdown { gap: 7px; }
.countdown > div { min-width: 0; flex: 1; padding: 10px 5px; border: 1px solid #2e3732; border-radius: 8px; background: #121815; }
.countdown strong { font-size: 25px; }

.card {
    padding: 18px;
    border-color: var(--app-line);
    border-radius: 10px;
    background: var(--app-panel);
}
.card h2 { font-size: 17px; letter-spacing: 0; }
.section-eyebrow { color: var(--app-green); font-size: 9px; }
.status-card { padding: 16px; }
.day-strip { margin-top: 12px; grid-auto-columns: minmax(110px, 1fr); gap: 8px; }
.day-chip { padding: 11px; border-color: #2d343b; border-radius: 8px; background: #1c2024; }
.day-chip.live { border-color: #43865c; background: #17271e; }
.day-chip.today { border-color: #9b803b; }
.day-weekday { color: var(--app-muted); font-size: 10px; }
.day-date { margin-bottom: 5px; font-size: 13px; }
.status-pill { padding: 6px 0; font-size: 9px; }
.status-pill.finished { background: #343b41; color: #c9d0d5; }
.status-pill.live { background: #286543; color: #e8fff0; }
.status-pill.today { background: #78642b; color: #fff7df; }
.status-pill.upcoming { background: #292f34; color: #aab3ba; }

.lower-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 14px; }
.lower-main { gap: 14px; }
.lineup-leagues-card.home-leagues-card {
    position: relative;
    min-height: 156px;
    padding: 20px;
    border: 1px solid var(--app-line);
    border-radius: 10px;
    background: linear-gradient(125deg, #19221d, #171a1e 70%);
}
.lineup-section-heading { display: flex; flex-direction: column; gap: 6px; }
.lineup-context-label { color: var(--app-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.lineup-section-heading strong { color: var(--app-text); font-size: 17px; }
.home-leagues-card p { max-width: 430px; margin-top: 13px; color: #a4adb4; font-size: 12px; line-height: 1.5; }
.coming-soon-pill { position: absolute; top: 18px; right: 18px; padding: 4px 8px; border-radius: 999px; background: #292e34; color: #a6afb7; font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.timeline-card { min-height: 156px; }
.timeline { margin-top: 16px; }
.timeline::before { background: #30373c; }
.timeline-item::before { border-color: #59636b; background: var(--app-panel); }
.timeline-item.next::before { border-color: var(--app-green); background: var(--app-green); }
.timeline-item strong { font-size: 13px; }
.timeline-item span { margin-top: 3px; color: var(--app-muted); font-size: 11px; }
.timeline-item.next span { color: var(--app-green); }

@media (max-width: 1100px) {
    .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-team { grid-column: 1 / -1; }
    .hero-points { border-right: 1px solid var(--app-line); }
}

@media (max-width: 760px) {
    .top-header { height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; }
    .home-layout { padding: 14px; gap: 12px; }
    .app-nav { max-width: 100%; overflow-x: auto; }
    .app-nav a { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
    .hero { grid-template-columns: 1fr; }
    .hero-team { grid-column: auto; }
    .hero-points, .hero-deadline { border-left: 0; border-right: 0; border-top: 1px solid var(--app-line); }
    .hero-points { border-right: 0; }
    .lower-grid { grid-template-columns: 1fr; }
}

/* Home overview refresh */
.home-layout { max-width: 1520px; gap: 18px; padding: 24px clamp(16px, 2.5vw, 36px) 42px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-spotlight-card, .home-fixtures-card, .home-injuries-card { padding: 21px; border: 1px solid #2c3439; border-radius: 15px; background: linear-gradient(145deg, #191f1c, #171a1e 68%); }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.home-section-heading h2 { color: #f2f4f5; font-size: clamp(17px, 1.35vw, 21px); font-weight: 800; letter-spacing: -.025em; }
.home-section-heading .section-eyebrow { margin-bottom: 6px; }
.home-card-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(127,214,164,.19); border-radius: 12px; background: rgba(127,214,164,.1); color: #7fd6a4; font-size: 21px; font-weight: 800; }
.captain-icon { border-color: rgba(233,197,100,.2); background: rgba(233,197,100,.1); color: #e9c564; font-size: 15px; }
.home-spotlight-content { min-height: 69px; margin-top: 16px; display: flex; align-items: center; }
.home-feature-person { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; }
.home-person-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(127,214,164,.24); border-radius: 14px; background: #1e382a; color: #8de0ab; font-size: 20px; font-weight: 850; }
.captain-mark { border-color: rgba(233,197,100,.25); background: #382f1d; color: #f1cd77; }
.home-shirt-mark { width: 46px; height: 56px; border: 0; border-radius: 0; background: transparent; }
.home-shirt-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-feature-person > div, .home-injury-row > div { min-width: 0; display: grid; gap: 4px; }
.home-feature-person strong, .home-injury-row strong { overflow: hidden; color: #f1f3f4; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.home-feature-person > div span, .home-injury-row > div span { color: #939da5; font-size: 12px; }
.home-popularity-count { color: #84dba3; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.captain-spotlight .home-popularity-count { color: #e9c564; }
.home-popularity-count small, .home-injury-row b small { color: #8e989f; font-size: 10px; font-weight: 700; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); align-items: start; gap: 16px; }
.home-main-column, .home-side-column { min-width: 0; display: grid; align-content: start; gap: 16px; }
.home-fixtures-card, .home-injuries-card { background: #171a1e; }
.home-text-link { flex: 0 0 auto; color: #83d9a2; font-size: 12px; font-weight: 750; }
.home-text-link span { margin-left: 3px; }
.home-fixtures-list, .home-injuries-list { display: grid; margin-top: 16px; }
.home-fixture-row { min-width: 0; display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #292f34; }
.home-fixture-row:first-child { border-top: 0; padding-top: 1px; }
.home-fixture-row time { color: #929ca4; font-size: 11px; text-transform: capitalize; }
.home-fixture-teams { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr); align-items: center; gap: 9px; }
.home-fixture-teams strong { overflow: hidden; color: #e9edef; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-fixture-teams strong:last-child { text-align: right; }
.home-fixture-teams span { color: #aab3b9; font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.home-fixture-status { min-width: 64px; padding: 5px 8px; border-radius: 999px; background: #242a2f; color: #9da7ae; font-size: 9px; font-weight: 800; text-align: center; }
.home-fixture-status.live { background: rgba(127,214,164,.14); color: #8bdfa9; }
.home-injury-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #292f34; }
.home-injury-row:first-child { border-top: 0; padding-top: 1px; }
.home-injury-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(236,133,111,.2); border-radius: 10px; background: rgba(236,133,111,.1); color: #ee9a82; font-size: 16px; font-weight: 900; }
.home-injury-row strong { font-size: 13px; }
.home-injury-row > b { color: #c8ced2; font-size: 12px; white-space: nowrap; }
.home-empty, .home-loading { margin: 0; padding: 15px 0; color: #98a2a9; font-size: 12px; line-height: 1.5; }
.home-side-column .league-widget { padding: 20px; border: 1px solid #2c3439; border-radius: 15px; background: linear-gradient(145deg, #19221d, #171a1e 75%); }
.home-side-column .league-widget-heading strong { font-size: 17px; }
.home-side-column .league-widget-heading .lineup-context-label { color: #84dba3; font-size: 10px; }
.home-side-column .league-widget-group h3 { font-size: 10px; }
.home-side-column .league-widget-row { min-height: 40px; grid-template-columns: minmax(0, 1fr) 34px 25px; padding: 6px 9px 6px 11px; border-radius: 9px; }
.home-side-column .league-widget-row strong { font-size: 12px; }
.home-side-column .league-widget-empty { font-size: 11px; }
.home-side-column .timeline-card { min-height: 0; padding: 20px; border-radius: 15px; }
.home-side-column .timeline { margin-top: 14px; }

@media (max-width: 920px) {
    .home-content-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
    .home-fixture-row { grid-template-columns: 100px minmax(0, 1fr); gap: 9px; }
    .home-fixture-status { grid-column: 2; justify-self: start; }
}
@media (max-width: 680px) {
    .home-layout { padding: 14px 12px 28px; gap: 13px; }
    .home-feature-grid, .home-content-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-spotlight-card, .home-fixtures-card, .home-injuries-card, .home-side-column .league-widget, .home-side-column .timeline-card { padding: 16px; }
    .home-fixture-row { grid-template-columns: 1fr auto; gap: 7px 10px; }
    .home-fixture-row time { grid-column: 1 / -1; }
    .home-fixture-teams { grid-column: 1; }
    .home-fixture-status { grid-column: 2; grid-row: 2; }
    .home-feature-person strong { font-size: 14px; }
}
