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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0b1020;
    color: #ffffff;
    overflow-x: hidden;
}

.league-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* HEADER */

.league-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 16, 32, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    animation: slideDown 0.8s ease both;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.back-link {
    color: #9fb3c8;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s;
}

.back-link:hover {
    color: #86efac;
}

.league-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.league-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    transition: 0.25s;
}

.league-nav a:hover {
    background: #22c55e;
    color: #06120b;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34,197,94,0.25);
}

/* HERO */

.league-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s ease, transform 7s ease;
}

.hero-bg:first-child {
    background-image:
        linear-gradient(120deg, rgba(11,16,32,0.90), rgba(21,101,192,0.65)),
        url("../images/sport-bg.jpg");
}

.hero-bg.active {
    opacity: 1;
    transform: scale(1);
}

.league-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 30%, rgba(34,197,94,0.22), transparent 28%),
        radial-gradient(circle at 80% 40%, rgba(59,130,246,0.24), transparent 30%);
    animation: glowMove 8s ease-in-out infinite alternate;
}

.league-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 420px;
    height: 420px;
    right: 8%;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(34,197,94,0.14);
    filter: blur(30px);
    animation: floatBall 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    animation: fadeUp 1s ease both;
}

.tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(34,197,94,0.18);
    color: #86efac;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(34,197,94,0.18);
    animation: pulseTag 2.4s infinite;
}

.hero-content h1 {
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.hero-content p {
    font-size: 20px;
    line-height: 1.7;
    color: #dbeafe;
    margin-bottom: 34px;
}

.hero-btn {
    display: inline-block;
    padding: 17px 30px;
    border-radius: 16px;
    background: #22c55e;
    color: #06120b;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 20px 45px rgba(34,197,94,0.3);
    transition: 0.25s;
    animation: softPulse 2.5s infinite;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 28px 60px rgba(34,197,94,0.45);
}

/* MAIN */

.league-main {
    padding: 90px 0;
}

.section-title {
    margin-bottom: 36px;
    animation: fadeUp 0.9s ease both;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.section-title p {
    color: #9fb3c8;
    font-size: 18px;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.league-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.25);
    transition: 0.35s;
    animation: fadeUp 0.9s ease both;
}

.league-card:nth-child(1) { animation-delay: 0.1s; }
.league-card:nth-child(2) { animation-delay: 0.2s; }
.league-card:nth-child(3) { animation-delay: 0.3s; }
.league-card:nth-child(4) { animation-delay: 0.4s; }

.league-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(34,197,94,0.35), transparent 45%);
    opacity: 0;
    transition: 0.35s;
}

.league-card:hover::before {
    opacity: 1;
}

.league-card:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: rgba(34,197,94,0.6);
    box-shadow: 0 30px 90px rgba(34,197,94,0.14);
}

.card-number,
.league-card h3,
.league-card p,
.league-card a {
    position: relative;
    z-index: 2;
}

.card-number {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: #22c55e;
    color: #06120b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    margin-bottom: 24px;
    box-shadow: 0 16px 32px rgba(34,197,94,0.25);
}

.league-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.league-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.league-card a {
    color: #86efac;
    text-decoration: none;
    font-weight: 900;
}

.league-card a:hover {
    color: #ffffff;
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowMove {
    from {
        transform: translateX(-30px) translateY(-10px);
        opacity: 0.75;
    }
    to {
        transform: translateX(40px) translateY(20px);
        opacity: 1;
    }
}

@keyframes floatBall {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-28px);
    }
}

@keyframes pulseTag {
    0%,100% {
        box-shadow: 0 0 24px rgba(34,197,94,0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(34,197,94,0.38);
    }
}

@keyframes softPulse {
    0%,100% {
        box-shadow: 0 20px 45px rgba(34,197,94,0.28);
    }
    50% {
        box-shadow: 0 25px 65px rgba(34,197,94,0.48);
    }
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .league-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }
}

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

    .league-nav {
        flex-direction: column;
        width: 100%;
    }

    .league-nav a {
        width: 100%;
    }

    .league-hero {
        min-height: 560px;
    }

    .hero-content h1 {
        font-size: 44px;
    }
}

/* Плавные переходы между страницами */
@media (prefers-reduced-motion: no-preference) {
    body {
        animation: pageFadeIn 0.45s ease both;
        transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
    }

    body.page-leaving {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
        filter: blur(2px);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Активный пункт навигации */
.league-nav a.active {
    background: #22c55e;
    color: #06120b;
    box-shadow: 0 12px 30px rgba(34,197,94,0.25);
}

/* Внутренние страницы направлений */
.sub-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(11,16,32,0.94), rgba(21,101,192,0.58)), url("../images/sport-bg2.jpg") center/cover no-repeat;
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 25%, rgba(34,197,94,0.24), transparent 30%), radial-gradient(circle at 82% 45%, rgba(59,130,246,0.28), transparent 32%);
    animation: glowMove 8s ease-in-out infinite alternate;
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 45%;
    height: 360px;
    border-radius: 50%;
    background: rgba(34,197,94,0.14);
    filter: blur(40px);
    animation: floatBall 6s ease-in-out infinite;
}

.almaty-hero { background: linear-gradient(120deg, rgba(11,16,32,0.94), rgba(21,101,192,0.58)), url("../images/sport-bg.jpg") center/cover no-repeat; }
.college-hero { background: linear-gradient(120deg, rgba(11,16,32,0.94), rgba(21,101,192,0.58)), url("../images/sport-bg2.jpg") center/cover no-repeat; }
.tournaments-hero { background: linear-gradient(120deg, rgba(11,16,32,0.94), rgba(21,101,192,0.58)), url("../images/sport-bg3.jpg") center/cover no-repeat; }
.inclusive-hero { background: linear-gradient(120deg, rgba(11,16,32,0.94), rgba(21,101,192,0.58)), url("../images/sport-bg4.jpg") center/cover no-repeat; }

.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeUp 0.9s ease both;
}

.sub-hero-content h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.sub-hero-content p {
    max-width: 760px;
    font-size: 20px;
    line-height: 1.7;
    color: #dbeafe;
    margin-bottom: 30px;
}

.sub-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.ghost-btn {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 850;
    transition: 0.25s;
}

.ghost-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(34,197,94,0.55);
    box-shadow: 0 18px 45px rgba(34,197,94,0.16);
}

.section-page { padding: 85px 0; }
.compact-title { max-width: 780px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    min-height: 240px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
    transition: 0.3s;
    animation: fadeUp 0.9s ease both;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34,197,94,0.55);
    box-shadow: 0 30px 90px rgba(34,197,94,0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #06120b;
    font-size: 26px;
    margin-bottom: 22px;
    box-shadow: 0 16px 32px rgba(34,197,94,0.22);
}

.feature-card h3 { font-size: 24px; margin-bottom: 12px; }
.feature-card p { color: #cbd5e1; line-height: 1.65; }

.news-preview-box {
    margin-top: 46px;
    padding: 34px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    background: linear-gradient(135deg, rgba(34,197,94,0.13), rgba(59,130,246,0.10)), rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.news-preview-box h2 { font-size: 32px; margin-bottom: 10px; }
.news-preview-box p { max-width: 780px; color: #cbd5e1; line-height: 1.65; }

.mini-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(34,197,94,0.16);
    color: #86efac;
    font-weight: 800;
    font-size: 13px;
}

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
    .news-preview-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .sub-hero { min-height: 560px; }
    .sub-hero-content h1 { font-size: 42px; }
}


/* Firebase league news */
.league-news-title {
    margin-top: 50px;
    margin-bottom: 12px;
    font-size: 32px;
}

.firebase-news-list.league-version {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 24px 0 40px;
}

.league-version .firebase-news-card {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.25);
}

.league-version .firebase-news-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.league-version .firebase-news-content {
    padding: 22px;
}

.league-version .firebase-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.league-version .firebase-news-meta span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(34,197,94,0.16);
    color: #86efac;
    font-size: 13px;
    font-weight: 800;
}

.league-version .firebase-news-content h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.league-version .firebase-news-excerpt,
.league-version .firebase-news-details p {
    color: #cbd5e1;
    line-height: 1.65;
}

.league-version .firebase-news-details {
    margin-top: 14px;
}

.league-version .firebase-news-details summary {
    cursor: pointer;
    color: #86efac;
    font-weight: 900;
}

.league-version .firebase-news-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-weight: 700;
}

.league-version .firebase-news-empty.error {
    background: rgba(239,68,68,0.14);
    color: #fecaca;
}

/* Global patch: league news modal/cards */
.league-version .firebase-news-image img { height: 150px; }
.league-version .firebase-news-card { display: flex; flex-direction: column; }
.league-version .firebase-news-read {
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #86efac;
    font-weight: 900;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
}
.league-version .firebase-news-read:hover { color: #ffffff; }
.firebase-news-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.firebase-news-modal.active { display: flex; }
.firebase-news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 35, 0.78);
    backdrop-filter: blur(8px);
}
.firebase-news-modal-card {
    position: relative;
    z-index: 1;
    width: min(900px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 28px;
    background: #10172a;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 35px 100px rgba(0,0,0,0.45);
}
.firebase-news-modal-img {
    width: 100%;
    height: min(360px, 42vh);
    object-fit: cover;
    display: block;
}
.firebase-news-modal-content { padding: 28px; }
.firebase-news-modal-content h2 {
    color: #ffffff;
    font-size: 32px;
    margin: 12px 0;
}
#firebaseNewsModalExcerpt { color: #cbd5e1; font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.firebase-news-modal-body { color: #e5e7eb; line-height: 1.8; font-size: 16px; }
.firebase-news-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

/* === FINAL LEAGUE PATCH 2026-04-27 === */
.league-news-title{font-size:34px;margin:48px 0 20px;color:#fff;}.league-version.firebase-news-list,.firebase-news-list.league-version{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,330px))!important;gap:24px!important;margin:24px 0 40px!important;}.league-version .firebase-news-card{overflow:hidden;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 70px rgba(0,0,0,.25);transition:.25s ease;}.league-version .firebase-news-card:hover{transform:translateY(-6px);border-color:rgba(34,197,94,.45);}.league-version .firebase-news-image img{width:100%;height:150px!important;object-fit:cover;display:block;}.league-version .firebase-news-content{padding:18px!important;}.league-version .firebase-news-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}.league-version .firebase-news-meta span{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.14);color:#86efac;font-size:13px;font-weight:900;}.league-version .firebase-news-content h3{color:#fff;font-size:20px!important;margin-bottom:10px;}.league-version .firebase-news-excerpt{color:#cbd5e1;line-height:1.65;}.league-version .firebase-news-read{margin-top:12px;border:0;background:transparent;color:#86efac;font-weight:900;cursor:pointer;font-size:15px;padding:0;}.league-version .firebase-news-read:hover{color:#fff;}.league-version .firebase-news-empty{grid-column:1/-1;padding:24px;border-radius:22px;background:rgba(255,255,255,.08);color:#cbd5e1;font-weight:800;}.league-version .firebase-news-empty.error{background:rgba(239,68,68,.14);color:#fecaca;}.firebase-news-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:22px;}.firebase-news-modal.active{display:flex;}.firebase-news-modal-backdrop{position:absolute;inset:0;background:rgba(6,18,35,.78);backdrop-filter:blur(8px);}.firebase-news-modal-card{position:relative;z-index:1;width:min(900px,96vw);max-height:88vh;overflow-y:auto;border-radius:28px;background:#10172a;border:1px solid rgba(255,255,255,.12);box-shadow:0 35px 100px rgba(0,0,0,.45);}.firebase-news-modal-img{width:100%;height:min(360px,42vh);object-fit:cover;display:block;}.firebase-news-modal-content{padding:28px;}.firebase-news-modal-content h2{color:#fff;font-size:32px;margin:12px 0;}#firebaseNewsModalExcerpt{color:#cbd5e1;font-size:17px;line-height:1.65;margin-bottom:18px;}.firebase-news-modal-body{color:#e5e7eb;line-height:1.8;font-size:16px;}.firebase-news-modal-close{position:absolute;top:14px;right:16px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(15,23,42,.88);color:#fff;font-size:30px;line-height:1;cursor:pointer;z-index:3;}@media(max-width:600px){.league-version.firebase-news-list,.firebase-news-list.league-version{grid-template-columns:1fr!important}.firebase-news-modal-content{padding:22px}.firebase-news-modal-content h2{font-size:24px}}


/* === CONCRETE LEAGUE SECTIONS PATCH === */
.launched-section-page { padding-top: 76px; }
.direction-intro { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 26px; align-items: stretch; margin-bottom: 30px; }
.direction-intro > div:first-child, .direction-status-card, .workflow-panel, .resource-panel { border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 70px rgba(0,0,0,0.22); }
.direction-intro > div:first-child { padding: 34px; }
.direction-intro h2, .workflow-head h2, .resource-panel h2 { font-size: 34px; margin-bottom: 12px; color: #ffffff; }
.direction-intro p, .direction-status-card p, .workflow-list p, .resource-panel p { color: #cbd5e1; line-height: 1.7; }
.direction-status-card { padding: 30px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(59,130,246,0.10)), rgba(255,255,255,0.05); }
.direction-status-card strong { color: #86efac; font-size: 20px; margin-bottom: 10px; }
.launch-grid { margin-bottom: 34px; }
.launch-card { min-height: 250px; }
.workflow-panel { padding: 34px; margin: 34px 0; }
.workflow-list { list-style: none; display: grid; gap: 16px; margin-top: 22px; padding-left: 0; }
.workflow-list li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); }
.workflow-list li span { width: 44px; height: 44px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: #22c55e; color: #06120b; font-weight: 950; }
.workflow-list strong { display: block; color: #ffffff; font-size: 18px; margin-bottom: 5px; }
.resource-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; padding: 34px; margin-bottom: 42px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.resource-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12); color: #ffffff; text-decoration: none; font-weight: 800; transition: 0.25s; }
.resource-pill:hover { background: #22c55e; color: #06120b; transform: translateY(-2px); }
.league-news-block { margin-top: 18px; }
.league-news-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.league-news-head p { color: #9fb3c8; line-height: 1.6; }
.league-news-head .league-news-title { margin: 0 0 8px; }
@media (max-width: 900px) { .direction-intro, .resource-panel { grid-template-columns: 1fr; } .resource-links { justify-content: flex-start; } .league-news-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .direction-intro > div:first-child, .direction-status-card, .workflow-panel, .resource-panel { padding: 24px; border-radius: 24px; } .direction-intro h2, .workflow-head h2, .resource-panel h2 { font-size: 28px; } .workflow-list li { grid-template-columns: 1fr; } }

/* === FINAL PATCH 2026-04-29: league modals + blur page transitions === */
html, body { overflow-x: hidden !important; }
body {
    animation: leaguePageIn 0.38s ease both;
    transition: opacity 0.34s ease, filter 0.34s ease, transform 0.34s ease;
}
body.page-leaving {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px) scale(0.995);
}
@keyframes leaguePageIn {
    from { opacity: 0; filter: blur(10px); transform: translateY(10px) scale(0.995); }
    to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
body.modal-open { overflow: hidden !important; }
.league-section-text,
.league-section-text p,
.league-news-title,
.firebase-news-card,
.firebase-news-content,
.firebase-news-content h3,
.firebase-news-excerpt,
.firebase-news-modal-card,
.firebase-news-modal-content,
.firebase-news-modal-body,
#firebaseNewsModalTitle,
#firebaseNewsModalExcerpt {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
}
.firebase-news-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    overflow: hidden !important;
}
.firebase-news-modal.active { display: flex !important; }
.firebase-news-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(8, 22, 40, .78) !important;
    backdrop-filter: blur(10px) !important;
}
.firebase-news-modal-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(900px, 96vw) !important;
    max-height: calc(100vh - 56px) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    border-radius: 26px !important;
    background: #10172a !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 34px 100px rgba(0,0,0,.44) !important;
    scrollbar-gutter: stable !important;
}
.firebase-news-modal-card::-webkit-scrollbar { width: 10px; }
.firebase-news-modal-card::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 999px; }
.firebase-news-modal-card::-webkit-scrollbar-thumb { background: rgba(34,197,94,.65); border-radius: 999px; }
.firebase-news-modal-img {
    width: 100% !important;
    height: min(320px, 34vh) !important;
    object-fit: cover !important;
    display: block !important;
}
.firebase-news-modal-content { padding: 28px !important; }
.firebase-news-modal-content h2,
#firebaseNewsModalTitle {
    color: #ffffff !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    line-height: 1.18 !important;
    margin: 14px 0 !important;
}
#firebaseNewsModalExcerpt { color: #cbd5e1 !important; line-height: 1.65 !important; }
.firebase-news-modal-body { color: #e5e7eb !important; line-height: 1.8 !important; }
.firebase-news-modal-close {
    position: sticky !important;
    top: 14px !important;
    float: right !important;
    width: 46px !important;
    height: 46px !important;
    margin: 14px 14px -60px 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.95) !important;
    color: #0f172a !important;
    font-size: 30px !important;
    cursor: pointer !important;
    z-index: 5 !important;
}
@media (max-width: 700px) {
    .firebase-news-modal { padding: 12px !important; }
    .firebase-news-modal-card { width: 100% !important; max-height: calc(100vh - 24px) !important; border-radius: 18px !important; }
    .firebase-news-modal-img { height: 220px !important; }
    .firebase-news-modal-content { padding: 22px !important; }
}


/* Language switcher */
.language-switcher{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);color:#fff;font-weight:800;font-size:12px;white-space:nowrap;}
.language-switcher label{display:flex;align-items:center;gap:6px;margin:0;color:#fff;}
.language-switcher select{border:0;outline:0;border-radius:999px;padding:4px 8px;font-weight:900;background:#fff;color:#0d1324;cursor:pointer;}
@media (max-width: 760px){.league-header .header-inner{gap:10px;}.language-switcher{order:3;width:100%;justify-content:center;}}

/* LEAGUE 2.0 WOW PATCH */
.league-v2-body{background:#050b18;color:#f8fbff}.league-v2-body:before{content:"";position:fixed;inset:0;z-index:-2;background:radial-gradient(circle at 20% 10%,rgba(34,197,94,.18),transparent 32%),radial-gradient(circle at 78% 14%,rgba(59,130,246,.18),transparent 34%),linear-gradient(180deg,#050b18 0%,#081225 45%,#050b18 100%)}.v2-header{background:rgba(5,11,24,.72);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 18px 60px rgba(0,0,0,.28)}.v2-header .league-nav a.active,.league-nav a.active{background:linear-gradient(135deg,#22c55e,#38bdf8);color:#03101a;box-shadow:0 14px 35px rgba(56,189,248,.22)}.v2-hero{position:relative;min-height:760px;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.1)}.v2-hero-media{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,11,24,.95),rgba(5,11,24,.44),rgba(5,11,24,.88)),url('../images/league-v2-main.svg') center/cover no-repeat;transform:scale(1.02);animation:v2SlowZoom 14s ease-in-out infinite alternate}.ajl-v2-hero .v2-hero-media{background:linear-gradient(90deg,rgba(5,11,24,.96),rgba(5,11,24,.38),rgba(5,11,24,.84)),url('../images/league-v2-ajl.svg') center/cover no-repeat}.college-hero{background-image:linear-gradient(120deg,rgba(5,11,24,.86),rgba(88,28,135,.48)),url('../images/league-v2-college.svg')!important}.tournaments-hero{background-image:linear-gradient(120deg,rgba(5,11,24,.86),rgba(194,65,12,.46)),url('../images/league-v2-tournaments.svg')!important}.inclusive-hero{background-image:linear-gradient(120deg,rgba(5,11,24,.86),rgba(13,148,136,.46)),url('../images/league-v2-inclusive.svg')!important}.v2-hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(90deg,#000,transparent 80%);opacity:.38}.v2-hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.25fr) 420px;gap:44px;align-items:center}.v2-hero-copy{max-width:850px;animation:fadeUp .9s ease both}.v2-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:9px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.09);color:#a7f3d0;font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.12em;box-shadow:0 0 40px rgba(34,197,94,.12)}.v2-hero h1{font-size:clamp(52px,8vw,118px);line-height:.88;letter-spacing:-.07em;margin:0 0 26px;text-shadow:0 24px 80px rgba(0,0,0,.55)}.v2-hero p{font-size:clamp(18px,2vw,23px);line-height:1.65;color:#dbeafe;max-width:760px;margin:0 0 34px}.v2-actions{display:flex;gap:14px;flex-wrap:wrap}.v2-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:18px;padding:16px 24px;text-decoration:none;font-weight:950;transition:.25s;border:1px solid rgba(255,255,255,.14)}.v2-btn.primary{background:linear-gradient(135deg,#22c55e,#38bdf8);color:#03101a;box-shadow:0 18px 45px rgba(34,197,94,.24)}.v2-btn.secondary{background:rgba(255,255,255,.10);color:#fff;backdrop-filter:blur(14px)}.v2-btn:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 28px 70px rgba(56,189,248,.22)}.v2-btn.small{padding:12px 16px;border-radius:14px;margin-top:16px}.v2-score-card{position:relative;padding:30px;border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(20px);box-shadow:0 28px 90px rgba(0,0,0,.35);overflow:hidden;animation:floatBall 5s ease-in-out infinite}.v2-score-card:before{content:"";position:absolute;inset:-1px;background:radial-gradient(circle at 80% 10%,rgba(34,197,94,.35),transparent 34%);z-index:-1}.glass-gold:before{background:radial-gradient(circle at 80% 10%,rgba(250,204,21,.42),transparent 34%)}.live-dot{display:inline-flex;margin-bottom:16px;padding:7px 10px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;font-weight:950;letter-spacing:.1em}.v2-score-card h3{font-size:30px;margin-bottom:20px}.score-line{display:flex;align-items:end;justify-content:space-between;padding:18px 0;border-top:1px solid rgba(255,255,255,.12)}.score-line b{font-size:38px}.score-line span{color:#cbd5e1;font-weight:800}.mini-link{display:inline-block;color:#86efac;font-weight:900;text-decoration:none;margin-top:16px}.v2-main{padding:70px 0 95px}.v2-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-118px;position:relative;z-index:5}.v2-stats-row article{padding:25px;border-radius:28px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(0,0,0,.24)}.v2-stats-row strong{display:block;font-size:clamp(34px,4vw,54px);line-height:1;color:#fff}.v2-stats-row span{display:block;margin-top:9px;color:#cbd5e1;font-weight:800}.v2-section-head,.v2-panel-head{margin:80px 0 24px}.v2-section-head h2,.v2-panel-head h2,.v2-news-strip h2,.media-wall h2{font-size:clamp(34px,4vw,58px);line-height:1;letter-spacing:-.04em;margin-bottom:12px}.v2-section-head p,.v2-news-strip p,.media-wall p{color:#b6c7dc;font-size:18px;line-height:1.6;max-width:760px}.v2-direction-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.v2-direction-card{min-height:340px;padding:26px;border-radius:32px;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));position:relative;overflow:hidden;transition:.28s;box-shadow:0 20px 55px rgba(0,0,0,.22)}.v2-direction-card:before{content:"";position:absolute;inset:0;background:center/cover no-repeat;opacity:.38;transition:.28s}.v2-direction-card.ajl:before{background-image:url('../images/league-v2-ajl.svg')}.v2-direction-card.college:before{background-image:url('../images/league-v2-college.svg')}.v2-direction-card.tournaments:before{background-image:url('../images/league-v2-tournaments.svg')}.v2-direction-card.inclusive:before{background-image:url('../images/league-v2-inclusive.svg')}.v2-direction-card>*{position:relative;z-index:1}.v2-direction-card span{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:16px;background:rgba(255,255,255,.14);font-weight:950}.v2-direction-card h3{font-size:27px;line-height:1.05;margin:110px 0 14px}.v2-direction-card p{color:#e5eefb;line-height:1.55;font-weight:650}.v2-direction-card:hover{transform:translateY(-8px);border-color:rgba(134,239,172,.5);box-shadow:0 32px 90px rgba(34,197,94,.18)}.v2-direction-card:hover:before{opacity:.55;transform:scale(1.07)}.v2-split{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;margin-top:70px}.v2-panel,.v2-news-strip,.media-wall{border-radius:34px;padding:30px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 70px rgba(0,0,0,.24);backdrop-filter:blur(18px)}.v2-panel .v2-panel-head{margin:0 0 20px}.match-list{display:grid;gap:14px}.match-list article{padding:18px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10)}.match-sport{display:inline-block;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:rgba(34,197,94,.16);color:#86efac;font-size:12px;font-weight:900}.match-list b{display:block;font-size:20px;margin-bottom:6px}.match-list em,.leader-row em{font-style:normal;color:#b6c7dc}.leader-row,.table-row,.table-head{display:grid;grid-template-columns:70px 1fr 70px;gap:12px;align-items:center;padding:15px 0;border-top:1px solid rgba(255,255,255,.12)}.leader-row b{font-size:18px}.full-table .table-head,.full-table .table-row{grid-template-columns:100px 1fr 80px 80px}.table-head{color:#93a4bb;text-transform:uppercase;font-size:12px;font-weight:950;letter-spacing:.08em}.table-row em{font-style:normal;color:#86efac;font-weight:950}.sport-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.sport-card-grid article{min-height:230px;padding:24px;border-radius:30px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);transition:.25s}.sport-card-grid article:hover{transform:translateY(-6px);background:rgba(255,255,255,.14)}.sport-card-grid span{font-size:42px}.sport-card-grid h3{font-size:26px;margin:18px 0 10px}.sport-card-grid p{color:#cbd5e1;line-height:1.5}.sport-card-grid b{display:inline-block;margin-top:18px;color:#facc15}.v2-news-strip,.media-wall{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:70px}.media-wall{background:linear-gradient(110deg,rgba(250,204,21,.13),rgba(56,189,248,.10)),url('../images/league-v2-ajl.svg') center/cover no-repeat;background-blend-mode:screen,normal}.v2-news-block{margin-top:70px}.page-leaving{opacity:0;transform:translateY(12px);transition:.26s ease}.floating-language-switcher{position:fixed;right:18px;top:18px;z-index:9999;background:rgba(3,10,24,.82)!important;box-shadow:0 18px 45px rgba(0,0,0,.28)}@keyframes v2SlowZoom{from{transform:scale(1.02)}to{transform:scale(1.09)}}@media(max-width:980px){.v2-hero-inner,.v2-split{grid-template-columns:1fr}.v2-score-card{max-width:520px}.v2-stats-row,.v2-direction-grid,.sport-card-grid{grid-template-columns:repeat(2,1fr)}.v2-stats-row{margin-top:-80px}.v2-news-strip,.media-wall{align-items:flex-start;flex-direction:column}.v2-hero{min-height:720px}}@media(max-width:640px){.v2-hero{min-height:760px}.v2-hero-inner{gap:24px}.v2-stats-row,.v2-direction-grid,.sport-card-grid{grid-template-columns:1fr}.v2-stats-row{margin-top:24px}.v2-hero h1{font-size:54px}.v2-btn{width:100%}.full-table .table-head,.full-table .table-row{grid-template-columns:70px 1fr 50px 50px;font-size:13px}.league-nav{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.league-nav a{white-space:nowrap}.header-inner{align-items:flex-start;flex-direction:column}.language-switcher{align-self:stretch;justify-content:center}}


/* League dynamic tabs backgrounds */
.college-v2-hero .v2-hero-media{background:linear-gradient(90deg,rgba(5,11,24,.96),rgba(88,28,135,.36),rgba(5,11,24,.84)),url('../images/league-v2-college.svg') center/cover no-repeat}
.tournaments-v2-hero .v2-hero-media{background:linear-gradient(90deg,rgba(5,11,24,.96),rgba(194,65,12,.36),rgba(5,11,24,.84)),url('../images/league-v2-tournaments.svg') center/cover no-repeat}
.inclusive-v2-hero .v2-hero-media{background:linear-gradient(90deg,rgba(5,11,24,.96),rgba(13,148,136,.36),rgba(5,11,24,.84)),url('../images/league-v2-inclusive.svg') center/cover no-repeat}

/* === FINAL PATCH: always visible language switcher + clean news modal === */
.language-switcher.floating-language-switcher,
#siteLanguageSwitcher {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 2147483000 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 9px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.32) !important;
    background: rgba(4, 24, 55, .88) !important;
    color: #fff !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
.language-switcher-icon {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.12) !important;
    font-size: 15px !important;
}
.language-switcher-btn {
    min-width: 38px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #eaf4ff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    transition: transform .18s ease, background .18s ease, color .18s ease !important;
}
.language-switcher-btn:hover {
    transform: translateY(-1px) !important;
    background: rgba(255,255,255,.14) !important;
}
.language-switcher-btn.active {
    background: #ffffff !important;
    color: #064891 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
}

body.modal-open { overflow: hidden !important; }
.firebase-news-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px !important;
    overflow: hidden !important;
}
.firebase-news-modal.active { display: flex !important; }
.firebase-news-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(7, 19, 36, .70) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
.firebase-news-modal-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(860px, 94vw) !important;
    max-height: calc(100vh - 56px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    background: #ffffff !important;
    color: #20304a !important;
    box-shadow: 0 36px 110px rgba(0,0,0,.36) !important;
    display: flex !important;
    flex-direction: column !important;
}
.firebase-news-modal-img {
    width: 100% !important;
    height: clamp(230px, 36vh, 340px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: linear-gradient(135deg, #eaf2fb, #dbe8f6) !important;
    flex: 0 0 auto !important;
}
.firebase-news-modal-content {
    padding: 30px 34px 34px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    scrollbar-gutter: stable !important;
}
.firebase-news-modal-content::-webkit-scrollbar { width: 10px !important; }
.firebase-news-modal-content::-webkit-scrollbar-track { background: rgba(15,47,87,.08) !important; border-radius: 999px !important; }
.firebase-news-modal-content::-webkit-scrollbar-thumb { background: rgba(21,101,192,.50) !important; border-radius: 999px !important; }
.firebase-news-modal .firebase-news-meta,
#firebaseNewsModalMeta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
}
.firebase-news-modal .firebase-news-meta span,
#firebaseNewsModalMeta span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: #075bbb !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}
.firebase-news-modal-content h2,
#firebaseNewsModalTitle {
    color: #082f61 !important;
    font-size: clamp(26px, 3.1vw, 40px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em !important;
    margin: 0 0 14px !important;
}
#firebaseNewsModalExcerpt {
    color: #50647d !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin: 0 0 16px !important;
}
.firebase-news-modal-body {
    color: #26384f !important;
    line-height: 1.85 !important;
    font-size: 16.5px !important;
}
.firebase-news-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    float: none !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(7, 43, 91, .94) !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.26) !important;
}
.firebase-news-modal-close:hover { transform: scale(1.05) !important; }

@media (max-width: 700px) {
    #siteLanguageSwitcher,
    .language-switcher.floating-language-switcher {
        top: 12px !important;
        right: 12px !important;
        padding: 7px !important;
        gap: 5px !important;
    }
    .language-switcher-icon { display: none !important; }
    .language-switcher-btn {
        min-width: 34px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    .firebase-news-modal {
        padding: 12px !important;
    }
    .firebase-news-modal-card {
        width: 100% !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 22px !important;
    }
    .firebase-news-modal-img {
        height: 210px !important;
    }
    .firebase-news-modal-content {
        padding: 22px !important;
    }
    .firebase-news-modal-close {
        width: 42px !important;
        height: 42px !important;
        top: 12px !important;
        right: 12px !important;
        font-size: 28px !important;
    }
}
