﻿/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Roboto Flex", "Noto Sans TC", sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    max-width: 100%;
}
/* ========== Container ========== */
.container {
    max-width: 1920px;
    margin: 0 auto;
}
/* Bootstrap xxl — ≥1400px */
.content-frame {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
/* ========== Navigation ========== */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(3, 18, 43, 1), rgba(3, 18, 43, 0.85), transparent);
    transition: background 0.3s;
}

    .nav-wrapper.scrolled {
        background: rgba(3, 18, 43, 0.97);
    }

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
}

.nav-logo {
    flex-shrink: 0;
}

    .nav-logo a {
        display: block;
        transition: opacity 0.2s;
    }

        .nav-logo a:hover {
            opacity: 0.8;
        }

.nav-logo-img {
    height: 30px;
    /* 原本設定的 46px */
    width: auto;
    display: block;
}

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

    .nav-menu a {
        color: #fff;
        font-size: 15px;
        font-weight: 500;
        padding: 6px 20px;
        border-radius: 20px;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .nav-menu a.active {
            background: #fff;
            color: #0070DF;
            font-weight: 700;
        }

.nav-mobile {
    display: none;
    background: #00182F;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .nav-mobile::-webkit-scrollbar {
        display: none;
    }

.nav-mobile-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    min-width: max-content;
}

    .nav-mobile-inner a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 500;
        padding: 12px 16px;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
        transition: all 0.2s;
    }

        .nav-mobile-inner a.active {
            color: #fff;
            border-bottom-color: #fff;
            font-weight: 700;
        }

        .nav-mobile-inner a:hover {
            color: #fff;
        }
/* ========== Hero Banner ========== */
.hero-banner {
    background-image: url('/images/index.jpg');
    background-color: #03122B;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 100px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 336px;
}

    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(255, 197, 15, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(0, 184, 255, 0.1) 0%, transparent 60%);
        pointer-events: none;
    }

    .hero-banner h1 {
        font-size: 48px;
        font-weight: 700;
        color: #fff;
        position: relative;
        letter-spacing: 2px;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        margin-top: 30px;
        margin-bottom: 8px;
        display: none;
    }

    .hero-banner p {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.8);
        letter-spacing: 4px;
        position: relative;
        display: none;
    }
/* ========== Hero Carousel ========== */
.hero-carousel {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.hero-carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(3, 18, 43, 0.18);
}

.hero-carousel input[type="radio"] {
    display: none;
}
/* Slides */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px 48px;
}

    .carousel-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .carousel-slide > * {
        position: relative;
        z-index: 1;
    }

    .carousel-slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(3, 18, 43, 0.88) 0%, rgba(3, 18, 43, 0.5) 50%, rgba(3, 18, 43, 0.25) 100%);
        z-index: 0;
    }
/* Headline */
.carousel-headline {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    margin-bottom: 8px;
}
/* Subtitle */
.carousel-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}
/* Date */
.carousel-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    align-self: flex-end;
    position: absolute;
    bottom: 16px;
    right: 20px;
}
/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

    .carousel-dots label {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .carousel-dots label:hover {
            background: rgba(255, 255, 255, 0.7);
        }
/* Active dot styling via radio checked */
#slide1:checked ~ .hero-carousel-inner .carousel-dots .d1,
#slide2:checked ~ .hero-carousel-inner .carousel-dots .d2,
#slide3:checked ~ .hero-carousel-inner .carousel-dots .d3,
#slide4:checked ~ .hero-carousel-inner .carousel-dots .d4,
#slide5:checked ~ .hero-carousel-inner .carousel-dots .d5,
#slide6:checked ~ .hero-carousel-inner .carousel-dots .d6,
#slide7:checked ~ .hero-carousel-inner .carousel-dots .d7,
#slide8:checked ~ .hero-carousel-inner .carousel-dots .d8,
#slide9:checked ~ .hero-carousel-inner .carousel-dots .d9,
#slide10:checked ~ .hero-carousel-inner .carousel-dots .d10 {
    background: #FFC50F;
    box-shadow: 0 0 6px rgba(255, 197, 15, 0.5);
}
/* Arrow buttons */
.carousel-arrows-left,
.carousel-arrows-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-arrows-left {
    left: 16px;
}

.carousel-arrows-right {
    right: 16px;
}

    .carousel-arrows-left label,
    .carousel-arrows-right label {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        backdrop-filter: blur(4px);
    }

        .carousel-arrows-left label:hover,
        .carousel-arrows-right label:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .carousel-arrows-left label svg,
        .carousel-arrows-right label svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: #fff;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
/* Show correct prev/next arrow based on active slide */
#slide1:checked ~ .hero-carousel-inner .carousel-arrows-left .al1 {
    display: flex;
}

#slide1:checked ~ .hero-carousel-inner .carousel-arrows-right .ar1 {
    display: flex;
}

#slide2:checked ~ .hero-carousel-inner .carousel-arrows-left .al2 {
    display: flex;
}

#slide2:checked ~ .hero-carousel-inner .carousel-arrows-right .ar2 {
    display: flex;
}

#slide3:checked ~ .hero-carousel-inner .carousel-arrows-left .al3 {
    display: flex;
}

#slide3:checked ~ .hero-carousel-inner .carousel-arrows-right .ar3 {
    display: flex;
}

#slide4:checked ~ .hero-carousel-inner .carousel-arrows-left .al4 {
    display: flex;
}

#slide4:checked ~ .hero-carousel-inner .carousel-arrows-right .ar4 {
    display: flex;
}

#slide5:checked ~ .hero-carousel-inner .carousel-arrows-left .al5 {
    display: flex;
}

#slide5:checked ~ .hero-carousel-inner .carousel-arrows-right .ar5 {
    display: flex;
}

#slide6:checked ~ .hero-carousel-inner .carousel-arrows-left .al6 {
    display: flex;
}

#slide6:checked ~ .hero-carousel-inner .carousel-arrows-right .ar6 {
    display: flex;
}

#slide7:checked ~ .hero-carousel-inner .carousel-arrows-left .al7 {
    display: flex;
}

#slide7:checked ~ .hero-carousel-inner .carousel-arrows-right .ar7 {
    display: flex;
}

#slide8:checked ~ .hero-carousel-inner .carousel-arrows-left .al8 {
    display: flex;
}

#slide8:checked ~ .hero-carousel-inner .carousel-arrows-right .ar8 {
    display: flex;
}

#slide9:checked ~ .hero-carousel-inner .carousel-arrows-left .al9 {
    display: flex;
}

#slide9:checked ~ .hero-carousel-inner .carousel-arrows-right .ar9 {
    display: flex;
}

#slide10:checked ~ .hero-carousel-inner .carousel-arrows-left .al10 {
    display: flex;
}

#slide10:checked ~ .hero-carousel-inner .carousel-arrows-right .ar10 {
    display: flex;
}

/* ========== News Grid ========== */
.news-section {
    background: #EEF2FB;
    padding: 40px 0 0;
}

.news-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* ========== News Card ========== */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

    .news-card:hover {
        box-shadow: 0 8px 24px rgba(3, 18, 43, 0.12);
        transform: translateY(-2px);
    }

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #03122B;
}

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

.news-card-body {
    padding: 16px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-card-meta {
    font-size: 13px;
    color: #A0A0A0;
}
/* ========== Load More ========== */
.load-more-wrapper {
    text-align: center;
    padding: 32px 0 48px;
    background: #EEF2FB;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0070DF;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 8px;
    transition: background 0.2s;
    font-family: inherit;
}

    .load-more-btn:hover {
        background: rgba(3, 18, 43, 0.06);
    }

    .load-more-btn svg {
        width: 20px;
        height: 20px;
    }
/* ========== Footer ========== */
.footer {
    background: #03122B;
    color: #fff;
    padding: 0 24px 24px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
}

    .footer-logo-text span {
        font-size: 12px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.5);
        display: block;
    }

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

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

        .footer-social a:hover {
            background: rgba(255, 255, 255, 0.2);
        }

    .footer-social svg {
        width: 18px;
        height: 18px;
        fill: #fff;
    }

.footer-bottom {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ========== 響應式斷點 (RWD) ========== */
/* Bootstrap lg — ≥992px, <1200px */
@media (max-width: 1199px) {
    .content-frame,
    .news-grid,
    .footer-inner,
    .hero-carousel {
        max-width: 800px;
    }

    .hero-banner h1 {
        font-size: 40px;
    }

    .carousel-headline {
        font-size: 26px;
    }

    .carousel-slide {
        padding: 32px 36px 44px;
    }
}
/* Bootstrap md — ≥768px, <992px */
@media (max-width: 991px) {
    .content-frame,
    .news-grid,
    .footer-inner,
    .hero-carousel {
        max-width: 720px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nav-menu {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    .nav-inner {
        padding: 10px 16px;
    }

    .hero-banner {
        padding: 80px 16px 36px;
        background-size: 1025px auto;
        background-position: center 96px;
        height: 234px;
    }

        .hero-banner h1 {
            font-size: 34px;
        }

    .carousel-headline {
        font-size: 22px;
    }

    .carousel-sub {
        font-size: 14px;
    }

    .carousel-slide {
        padding: 24px 28px 40px;
    }

    .carousel-arrows-left label,
    .carousel-arrows-right label {
        width: 38px;
        height: 38px;
    }

        .carousel-arrows-left label svg,
        .carousel-arrows-right label svg {
            width: 16px;
            height: 16px;
        }
}
/* Bootstrap sm — ≥576px, <768px */
@media (max-width: 767px) {
    .content-frame,
    .news-grid,
    .footer-inner,
    .hero-carousel {
        max-width: 540px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .hero-banner {
        padding: 72px 16px 28px;
        background-size: 830px auto;
        background-position: center 86px;
        height: 202px;
    }

        .hero-banner h1 {
            font-size: 28px;
            letter-spacing: 1px;
        }

        .hero-banner p {
            font-size: 14px;
            letter-spacing: 2px;
        }

    .news-section {
        padding: 24px 0 16px;
    }

    .hero-carousel {
        padding: 20px 12px 0;
    }

    .carousel-headline {
        font-size: 18px;
    }

    .carousel-sub {
        font-size: 13px;
    }

    .carousel-slide {
        padding: 20px 20px 36px;
    }

    .carousel-arrows-left,
    .carousel-arrows-right {
        display: none !important;
    }

    .carousel-date {
        font-size: 11px;
        bottom: 12px;
        right: 14px;
    }

    .carousel-dots label {
        width: 8px;
        height: 8px;
    }

    .carousel-dots {
        gap: 6px;
        bottom: 10px;
    }
}
/* Bootstrap xs — <576px */
@media (max-width: 575px) {
    .content-frame,
    .news-grid,
    .footer-inner,
    .hero-carousel {
        max-width: 100%;
    }

    .nav-inner {
        padding: 8px 12px;
        background-color: #00182F;
    }

    .nav-logo-img {
        height: 20px;
        margin-top: 5px;
    }

    .hero-banner {
        padding: 64px 12px 24px;
    }

        .hero-banner h1 {
            font-size: 24px;
        }

    .news-grid {
        padding: 0 12px;
    }

    .footer {
        padding: 32px 12px 16px;
    }

    .nav-inner {
        justify-content: center;
    }

    .hero-banner {
        background-size: 830px auto;
        background-position: center 86px;
        height: 202px;
    }

    .load-more-wrapper {
        padding: 0px 0 16px;
    }
}
/* ========== 淘汰賽專屬樣式 (knockout.html) ========== */
/* ===== Phase Legend ===== */
.phase-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-title);
}

.legend-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.pill-r32 {
    background: #560A8B;
}

.pill-r16 {
    background: #00B8FF;
}

.pill-qf {
    background: #0A84FF;
}

.pill-sf {
    background: #FFC50F;
}

.pill-final {
    background: #FF9F0A;
    color: #03122B;
}

.pill-3rd {
    background: #B8860B;
    color: #fff;
}

/* ===== Match Card ===== */
.match-card-bracket {
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    max-width: 200px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}

    .match-card-bracket:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .match-card-bracket.champion-card {
        border: 2px solid #FF9F0A;
        box-shadow: 0 4px 20px rgba(255, 159, 10, 0.2);
    }

.match-phase-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.tag-r32 {
    background: #560A8B;
}

.tag-r16 {
    background: #00B8FF;
}

.tag-qf {
    background: #0A84FF;
}

.tag-sf {
    background: #FFC50F;
}

.tag-final {
    background: #FF9F0A;
    color: #03122B;
}

.tag-3rd {
    background: #B8860B;
    color: #fff;
}

.match-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

    .match-team-row + .match-team-row {
        border-top: 1px solid #f0f0f5;
    }

.team-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-flag-sm {
    font-size: 20px;
    line-height: 1.2;
    font-family: "Noto Color Emoji", sans-serif;
}

.team-name-sm {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.team-score-sm {
    font-size: 18px;
    font-weight: 700;
    color: #03122B;
    min-width: 28px;
    text-align: right;
}

.match-team-row.winner {
    background: rgba(3, 18, 43, 0.04);
    border-radius: 4px;
}

    .match-team-row.winner .team-name-sm,
    .match-team-row.winner .team-score-sm {
        font-weight: 700;
        color: #03122B;
    }

.match-team-row.loser .team-name-sm {
    opacity: 0.6;
}

.match-card-bracket .team-score-sm small {
    font-size: 10px;
    opacity: 0.7;
}

/* ===== Bracket Layout (PC) ===== */
.bracket-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.bracket-container {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

    .bracket-round .round-header {
        text-align: center;
        padding: 0 0 20px;
    }

        .bracket-round .round-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: #03122B;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

    .bracket-round .round-body {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        flex: 1;
        gap: 0;
    }

    .bracket-round.r32 .round-body {
        gap: 6px;
    }

    .bracket-round.r16 .round-body {
        gap: 12px;
    }

    .bracket-round.qf .round-body {
        gap: 16px;
    }

    .bracket-round.sf .round-body {
        gap: 16px;
    }

    .bracket-round.final .round-body {
        justify-content: center;
    }

    .bracket-round .match-card-bracket {
        margin: 0 auto;
    }

/* Connector columns */
.bracket-conn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    min-width: 28px;
}

.conn-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

    .conn-group::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 25%;
        bottom: calc(25% - 2px);
        border-left: 2px solid #C8D0E0;
    }

    .conn-group .stub-top {
        position: absolute;
        top: 25%;
        left: 0;
        width: 50%;
        height: 0;
        border-top: 2px solid #C8D0E0;
    }

    .conn-group .stub-bottom {
        position: absolute;
        top: 75%;
        left: 0;
        width: 50%;
        height: 0;
        border-top: 2px solid #C8D0E0;
    }

    .conn-group .stub-out {
        position: absolute;
        top: 50%;
        right: 0;
        width: 50%;
        height: 0;
        border-top: 2px solid #C8D0E0;
    }

/* ===== 3rd Place Match ===== */
.third-place-section {
    margin: 32px auto 0;
    max-width: 260px;
}

.third-place-card {
    background: #fff;
    border: 1px solid #C8D0E0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

    .third-place-card .match-phase-tag {
        margin-bottom: 10px;
    }

.third-place-title {
    font-size: 16px;
    font-weight: 700;
    color: #B8860B;
    margin-bottom: 12px;
}

.third-place-card .match-team-row {
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
}

/* ===== Champion Spotlight ===== */
.champion-spotlight {
    text-align: center;
    padding: 48px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #E5E5EC;
}

.champion-card {
    display: inline-block;
    background: linear-gradient(135deg, #FFF8E8, #FFFDF5);
    border: 2px solid #FF9F0A;
    border-radius: 16px;
    padding: 32px 48px;
    box-shadow: 0 4px 24px rgba(255, 159, 10, 0.15);
}

.champion-trophy {
    font-size: 48px;
    margin-bottom: 12px;
}

.champion-country {
    font-size: 28px;
    font-weight: 700;
    color: #03122B;
    margin-bottom: 4px;
}

.champion-label {
    font-size: 18px;
    font-weight: 600;
    color: #FF9F0A;
}

/* ===== Mobile Bracket Layout ===== */
.mobile-bracket {
    display: none;
}

.mobile-round {
    margin-bottom: 32px;
}

.mobile-round-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

    .mobile-round-header h3 {
        font-size: 20px;
        font-weight: 700;
        color: #03122B;
    }

.mobile-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-match-card {
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-match-phase {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.mobile-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

    .mobile-team-row + .mobile-team-row {
        border-top: 1px solid #f0f0f5;
    }

.mobile-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-team-flag {
    font-size: 24px;
    font-family: "Noto Color Emoji", sans-serif;
}

.mobile-team-name {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.mobile-team-score {
    font-size: 20px;
    font-weight: 700;
    color: #03122B;
}

.mobile-team-row.winner {
    background: rgba(3, 18, 43, 0.04);
    border-radius: 4px;
    padding: 6px 8px;
}

    .mobile-team-row.winner .mobile-team-name,
    .mobile-team-row.winner .mobile-team-score {
        font-weight: 700;
    }

.mobile-team-row.loser .mobile-team-name {
    opacity: 0.6;
}

.mobile-match-card .mobile-team-score small {
    font-size: 12px;
    opacity: 0.7;
}

.mobile-3rd-place {
    margin-bottom: 32px;
}

.mobile-3rd-place-card {
    background: #fff;
    border: 1px solid #C8D0E0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mobile-3rd-place-title {
    font-size: 18px;
    font-weight: 700;
    color: #B8860B;
    margin-bottom: 8px;
}

/* Bracket RWD overrides */
@media (max-width: 1399px) {
    .match-card-bracket {
        max-width: 170px;
        padding: 10px 12px;
    }

    .team-name-sm {
        font-size: 13px;
    }

    .team-score-sm {
        font-size: 16px;
    }

    .bracket-container {
        min-width: 1000px;
    }

    .bracket-conn {
        width: 24px;
        min-width: 24px;
    }
}

@media (max-width: 991px) {
    .match-card-bracket {
        max-width: 140px;
        padding: 8px 10px;
    }

    .team-flag-sm {
        font-size: 16px;
    }

    .team-name-sm {
        font-size: 11px;
    }

    .team-score-sm {
        font-size: 14px;
    }

    .bracket-container {
        min-width: 900px;
    }

    .bracket-conn {
        width: 20px;
        min-width: 20px;
    }

    .bracket-round {
        min-width: 130px;
    }

    .round-header h3 {
        font-size: 14px;
    }

    .match-phase-tag {
        font-size: 10px;
        padding: 2px 8px;
    }
}

@media (max-width: 767px) {
    .pc-bracket {
        display: none !important;
    }

    .mobile-bracket {
        display: block !important;
    }

    .phase-legend {
        gap: 10px;
        margin-bottom: 28px;
    }

    .legend-item {
        font-size: 13px;
    }

    .champion-card {
        padding: 24px 32px;
    }

    .champion-trophy {
        font-size: 40px;
    }

    .champion-country {
        font-size: 22px;
    }

    .champion-label {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .phase-legend {
        gap: 8px;
    }

    .champion-card {
        padding: 20px 24px;
    }
}
/* ========== 小組分析專屬樣式 (groups.html) ========== */
/* ========== Tab System (CSS Radio Hack) ========== */
.tab-radio {
    display: none;
}

.tab-content {
    display: none;
}

/* Show content when corresponding radio is checked */
#tab-a:checked ~ .tab-contents #content-a,
#tab-b:checked ~ .tab-contents #content-b,
#tab-c:checked ~ .tab-contents #content-c,
#tab-d:checked ~ .tab-contents #content-d,
#tab-e:checked ~ .tab-contents #content-e,
#tab-f:checked ~ .tab-contents #content-f,
#tab-g:checked ~ .tab-contents #content-g,
#tab-h:checked ~ .tab-contents #content-h {
    display: block;
}

/* Active tab label styling */
#tab-a:checked ~ .tab-bar label[for="tab-a"],
#tab-b:checked ~ .tab-bar label[for="tab-b"],
#tab-c:checked ~ .tab-bar label[for="tab-c"],
#tab-d:checked ~ .tab-bar label[for="tab-d"],
#tab-e:checked ~ .tab-bar label[for="tab-e"],
#tab-f:checked ~ .tab-bar label[for="tab-f"],
#tab-g:checked ~ .tab-bar label[for="tab-g"],
#tab-h:checked ~ .tab-bar label[for="tab-h"] {
    color: #03122B;
    font-weight: 700;
    border-bottom: 3px solid #03122B;
}

.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E5E5EC;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .tab-bar::-webkit-scrollbar {
        display: none;
    }

.tab-label {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #A0A0A0;
    border-bottom: 1px solid #A0A0A0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

    .tab-label:hover {
        color: #03122B;
    }

/* ========== Group Section ========== */
.group-section {
    padding: 40px 0 60px;
    scroll-margin-top: 80px;
}

.group-name {
    font-size: 40px;
    font-weight: 600;
    color: #03122B;
    margin-bottom: 24px;
}

/* Team Cards Grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.team-card {
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

    .team-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

.team-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.team-flag {
    font-size: 36px;
    line-height: 1;
    font-family: "Noto Color Emoji", sans-serif;
}

.team-country {
    font-size: 20px;
    font-weight: 700;
    color: #03122B;
}

.team-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

    .team-stats-row .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-stats-row .stat-value {
        font-size: 20px;
        font-weight: 700;
        color: #03122B;
        line-height: 1.2;
    }

    .team-stats-row .stat-label {
        font-size: 12px;
        color: #A0A0A0;
        margin-top: 2px;
    }

.team-analysis {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ========== Standings Table ========== */
.standings-section {
    margin-bottom: 36px;
}

.standings-title {
    font-size: 22px;
    font-weight: 700;
    color: #03122B;
    margin-bottom: 16px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .standings-table thead th {
        background: #03122B;
        color: #fff;
        padding: 12px 10px;
        text-align: center;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
    }

        .standings-table thead th:first-child {
            border-radius: 8px 0 0 0;
        }

        .standings-table thead th:last-child {
            border-radius: 0 8px 0 0;
        }

    .standings-table tbody td {
        padding: 12px 10px;
        text-align: center;
        border-bottom: 1px solid #E5E5EC;
        font-size: 15px;
    }

    .standings-table tbody tr.qualify {
        background: #EEF2FB;
    }

        .standings-table tbody tr.qualify td:first-child {
            position: relative;
        }

            .standings-table tbody tr.qualify td:first-child::before {
                content: '';
                position: absolute;
                left: 0;
                top: 6px;
                bottom: 6px;
                width: 3px;
                background: #03122B;
                border-radius: 2px;
            }

    .standings-table .team-cell {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
        white-space: nowrap;
    }

        .standings-table .team-cell .flag {
            font-size: 20px;
            font-family: "Noto Color Emoji", sans-serif;
        }

        .standings-table .team-cell .name {
            font-weight: 600;
            color: #03122B;
        }

    .standings-table .pts {
        font-weight: 700;
        color: #03122B;
    }

/* ========== Analysis Article ========== */
.analysis-section {
    margin-bottom: 40px;
}

.analysis-title {
    font-size: 22px;
    font-weight: 700;
    color: #03122B;
    margin-bottom: 16px;
}

.analysis-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

    .analysis-text p {
        margin-bottom: 16px;
    }

/* RWD for groups.html */
@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .group-name {
        font-size: 28px;
    }

    .tab-label {
        padding: 12px 16px;
        font-size: 15px;
    }

    .standings-table {
        font-size: 13px;
    }

        .standings-table thead th {
            padding: 10px 6px;
            font-size: 12px;
        }

        .standings-table tbody td {
            padding: 10px 6px;
            font-size: 13px;
        }
}

@media (max-width: 575px) {
    .group-name {
        font-size: 24px;
    }

    .team-card {
        padding: 16px;
    }

    .team-country {
        font-size: 18px;
    }

    .team-flag {
        font-size: 30px;
    }

    .tab-label {
        padding: 10px 12px;
        font-size: 14px;
    }

    .standings-table {
        font-size: 12px;
    }

        .standings-table thead th {
            padding: 8px 4px;
            font-size: 11px;
        }

        .standings-table tbody td {
            padding: 8px 4px;
            font-size: 12px;
        }

    .team-stats-row {
        gap: 10px;
    }

        .team-stats-row .stat-value {
            font-size: 18px;
        }

    .analysis-text {
        font-size: 15px;
    }
}
/* ========== 賽事焦點專屬樣式 (focus.html) ========== */

/* ========== Inside Banner ========== */
.inside-banner {
    background: linear-gradient(135deg, #03122B 0%, #03122B 50%, #00B8FF 100%);
    padding: 100px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .inside-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(255, 197, 15, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(0, 184, 255, 0.1) 0%, transparent 60%);
        pointer-events: none;
    }

    .inside-banner h1 {
        font-size: 40px;
        font-weight: 600;
        color: #fff;
        position: relative;
        letter-spacing: 2px;
    }

    .inside-banner p {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 8px;
        position: relative;
    }

/* ========== News List ========== */
.news-list-section {
    background: #fff;
    padding: 0 0 60px;
}

.news-list {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #E5E5EC;
    align-items: flex-start;
}

.news-list-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

    .news-list-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-list-item:hover .news-list-title {
    color: #0070DF;
}

.news-list-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    font-size: 14px;
    color: #A0A0A0;
}

/* RWD overrides for focus.html */
@media (max-width: 1199px) {
    .inside-banner h1 {
        font-size: 34px;
    }
}

@media (max-width: 991px) {
    .inside-banner {
        padding: 80px 16px 36px;
    }

        .inside-banner h1 {
            font-size: 30px;
        }

    .news-list-thumb {
        width: 220px;
        height: 130px;
    }

    .news-list-title {
        font-size: 18px;
    }

    .news-list-desc {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .inside-banner h1 {
        font-size: 26px;
    }

    .inside-banner p {
        font-size: 14px;
    }

    .news-list-item {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .news-list-thumb {
        width: 100%;
        height: 180px;
    }

    .news-list-title {
        font-size: 16px;
    }

    .news-list-desc {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .inside-banner {
        padding: 72px 12px 28px;
    }

        .inside-banner h1 {
            font-size: 22px;
        }

    .news-list {
        padding: 0 16px;
    }

    .news-list-thumb {
        height: 160px;
    }
}
/* ========== 賽程表專屬樣式 (schedule.html) ========== */
/* ========== Phase Filter Tabs ========== */
.phase-filter {
    padding: 30px 0 10px;
}

.phase-filter-inner {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E5E5EC;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .phase-filter-inner::-webkit-scrollbar {
        display: none;
    }

.phase-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #A0A0A0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
}

    .phase-tab:hover {
        color: #03122B;
    }

    .phase-tab.active {
        color: #03122B;
        font-weight: 700;
        border-bottom: 3px solid #03122B;
    }

/* ========== Schedule Section ========== */
.schedule-section {
    padding: 20px 0 60px;
}

.date-group {
    margin-bottom: 30px;
}

    .date-group:last-child {
        margin-bottom: 0;
    }

.date-heading {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 0;
}

    .date-heading::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 24px;
        background: #0070DF;
        border-radius: 2px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .date-heading h3 {
        font-size: 20px;
        font-weight: 700;
        color: #03122B;
    }

/* Match Card (限制在 schedule-section 內，避免影響首頁) */
.schedule-section .match-card {
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    width: auto;
    flex-direction: row;
}

    .schedule-section .match-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .schedule-section .match-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 12px 0 0 12px;
    }

    .schedule-section .match-card[data-phase="group"]::before {
        background: #0070DF;
    }

    .schedule-section .match-card[data-phase="r16"]::before {
        background: #00B8FF;
    }

    .schedule-section .match-card[data-phase="qf"]::before {
        background: #0A84FF;
    }

    .schedule-section .match-card[data-phase="sf"]::before {
        background: #FFC50F;
    }

    .schedule-section .match-card[data-phase="r32"]::before {
        background: #560A8B;
    }

    .schedule-section .match-card[data-phase="3rd"]::before {
        background: #B8860B;
    }

    .schedule-section .match-card[data-phase="final"]::before {
        background: #FF9F0A;
    }

.schedule-section .match-time {
    font-size: 24px;
    font-weight: 700;
    color: #0070DF;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.schedule-section .match-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-section .team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    color: #222;
}

.schedule-section .team-flag {
    font-size: 22px;
    line-height: 1;
    font-family: "Noto Color Emoji", sans-serif;
}

.schedule-section .team-name {
    font-weight: 600;
}

.schedule-section .match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    flex-shrink: 0;
}

.schedule-section .match-score {
    font-size: 28px;
    font-weight: 700;
    color: #03122B;
    letter-spacing: 2px;
}

    .schedule-section .match-score.pen {
        font-size: 18px;
    }

.schedule-section .match-vs {
    font-size: 18px;
    font-weight: 600;
    color: #A0A0A0;
}

.schedule-section .match-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 90px;
    flex-shrink: 0;
}

.phase-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

    .phase-pill.group {
        background: #0070DF;
    }

    .phase-pill.r16 {
        background: #00B8FF;
    }

    .phase-pill.qf {
        background: #0A84FF;
    }

    .phase-pill.sf {
        background: #FFC50F;
    }

    .phase-pill.r32 {
        background: #560A8B;
    }

    .phase-pill.3rd {
        background: #B8860B;
        color: #fff;
    }

    .phase-pill.final {
        background: #FF9F0A;
    }

.match-status {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

    .match-status.ended {
        color: #A0A0A0;
    }

    .match-status.live {
        color: #03122B;
        font-weight: 700;
    }

    .match-status.upcoming {
        color: #A0A0A0;
    }

.match-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.match-status.live .match-status-dot {
    background: #FA4119;
    animation: blink 1.2s infinite;
}

.match-status.ended .match-status-dot {
    background: #A0A0A0;
}

.match-status.upcoming .match-status-dot {
    background: #C0C0C0;
}

/* RWD for Schedule */
@media (max-width: 1199px) {
    .schedule-section .match-card {
        padding: 20px 16px;
    }
}

@media (max-width: 991px) {
    .phase-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .date-heading h3 {
        font-size: 18px;
    }

    .schedule-section .match-card {
        flex-wrap: wrap;
        padding: 18px 14px 18px 18px;
        gap: 10px;
    }

    .schedule-section .match-time {
        font-size: 20px;
        min-width: 60px;
    }

    .schedule-section .team-row {
        font-size: 15px;
    }

    .schedule-section .team-flag {
        font-size: 20px;
    }

    .schedule-section .match-center {
        min-width: 70px;
    }

    .schedule-section .match-score {
        font-size: 24px;
    }

    .schedule-section .match-meta {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
        width: 100%;
        gap: 8px;
        margin-top: 4px;
        padding-left: 70px;
    }

    .phase-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .schedule-section .match-card {
        padding: 14px 12px 14px 16px;
    }

    .schedule-section .match-time {
        font-size: 18px;
        min-width: 52px;
    }

    .schedule-section .team-row {
        font-size: 14px;
        gap: 6px;
    }

    .schedule-section .team-flag {
        font-size: 18px;
    }

    .schedule-section .match-score {
        font-size: 20px;
    }

    .schedule-section .match-vs {
        font-size: 16px;
    }

    .schedule-section .match-meta {
        padding-left: 52px;
    }

    .phase-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
}

footer ul {
    display: table;
    margin: 0 auto;
    padding-top: 24px;
}

    footer ul li {
        display: inline-block;
    }

        footer ul li a {
            border-right: 1px solid rgba(255, 255, 255, 0.4);
            font-size: 13px;
            padding: 0 8px;
            color: rgba(255, 255, 255, 0.4);
        }

            footer ul li a:hover {
                color: #fff;
            }

        footer ul li:last-child a {
            border: none;
        }

/* ========== 首頁影音區塊專屬樣式 (index.html) ========== */
.video-section {
    background: #fff;
    padding: 40px 0;
}

.video-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* YouTube 直式影片的 16:9 容器反轉 (9:16) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%;
    height: 0;
    overflow: hidden;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* 影音區塊 RWD */
@media (max-width: 991px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .video-container {
        padding-bottom: 177.77%;
    }
}
/* 1. 大圖輪播修復 (透明度控制) */
#slide1:checked ~ .hero-carousel-inner .carousel-slides .s1,
#slide2:checked ~ .hero-carousel-inner .carousel-slides .s2,
#slide3:checked ~ .hero-carousel-inner .carousel-slides .s3,
#slide4:checked ~ .hero-carousel-inner .carousel-slides .s4,
#slide5:checked ~ .hero-carousel-inner .carousel-slides .s5,
#slide6:checked ~ .hero-carousel-inner .carousel-slides .s6 {
    opacity: 1;
}

/* 確保 HTML 裡的圖片完美填滿容器，且層級正確 */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* 圖片在最底層 */
}

.carousel-slide::after {
    z-index: 1;
    /* 漸層遮罩在圖片之上 */
}

.carousel-slide .carousel-headline {
    z-index: 2;
    /* 文字在最上層 */
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* 加深陰影，讓白字在白底圖上更清晰 */
}
/* ========== 大圖輪播點擊與層級修復 ========== */
.carousel-slide {
    pointer-events: none;
    /* 隱藏時不可點擊，防止「幽靈圖層」擋住下方 */
}

#slide1:checked ~ .hero-carousel-inner .carousel-slides .s1,
#slide2:checked ~ .hero-carousel-inner .carousel-slides .s2,
#slide3:checked ~ .hero-carousel-inner .carousel-slides .s3,
#slide4:checked ~ .hero-carousel-inner .carousel-slides .s4,
#slide5:checked ~ .hero-carousel-inner .carousel-slides .s5,
#slide6:checked ~ .hero-carousel-inner .carousel-slides .s6 {
    pointer-events: auto;
    /* 只有顯示的那張圖才允許點擊 */
}


/* =========================================================
   大圖輪播修復：圖層、防擋點擊、滿版連結
   ========================================================= */
/* 1. 解決「幽靈圖層」擋住點擊的問題 */
.carousel-slide {
    pointer-events: none;
    /* 隱藏的幻燈片不可點擊 */
}

#slide1:checked ~ .hero-carousel-inner .carousel-slides .s1,
#slide2:checked ~ .hero-carousel-inner .carousel-slides .s2,
#slide3:checked ~ .hero-carousel-inner .carousel-slides .s3,
#slide4:checked ~ .hero-carousel-inner .carousel-slides .s4,
#slide5:checked ~ .hero-carousel-inner .carousel-slides .s5,
#slide6:checked ~ .hero-carousel-inner .carousel-slides .s6 {
    pointer-events: auto;
    /* 只有當前顯示的幻燈片可以點擊 */
    opacity: 1;
}

/* 2. 連結滿版與圖片滿版 */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px 48px;
}

.carousel-slide img.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* 圖片在最底層 */
}

/* 3. 解決文字灰灰的問題 (確保層級 Z-index 正確) */
.carousel-slide::after {
    z-index: 1;
    /* 漸層遮罩在圖片上面 */
}

.carousel-slide .carousel-headline {
    position: relative;
    z-index: 2;
    /* 文字在遮罩上面！這會讓文字變純白 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* 加深陰影讓文字更清晰 */
}
/* =========================================================
   大圖輪播修復補丁 (index.html)
   ========================================================= */
/* 1. 解決「幽靈圖層」阻擋點擊的問題 */
.carousel-slide {
    pointer-events: none;
    /* 隱藏時不可點擊 */
}

#slide1:checked ~ .hero-carousel-inner .carousel-slides .s1,
#slide2:checked ~ .hero-carousel-inner .carousel-slides .s2,
#slide3:checked ~ .hero-carousel-inner .carousel-slides .s3,
#slide4:checked ~ .hero-carousel-inner .carousel-slides .s4,
#slide5:checked ~ .hero-carousel-inner .carousel-slides .s5,
#slide6:checked ~ .hero-carousel-inner .carousel-slides .s6 {
    pointer-events: auto;
    /* 顯示時允許點擊 */
    opacity: 1;
}

/* 2. 讓 HTML 裡的圖片成為滿版背景 */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    /* 確保連結標籤在最上層，成為點擊熱區 */
}

.carousel-slide img.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* 圖片在最底層 */
}

/* 3. 解決文字灰灰的問題，確保層級 Z-index 正確 */
.carousel-slide::after {
    z-index: 1;
    /* 漸層遮罩在圖片上面 */
}

.carousel-slide .carousel-headline {
    position: relative;
    z-index: 2;
    /* 文字在遮罩上面，保持純白 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* 加強陰影提升辨識度 */
}

/* =========================================================
   焦點新聞卡片連結補丁 (index.html)
   ========================================================= */
.news-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

    .news-card-link:hover .news-card-title {
        color: #0070DF;
        /* Hover 時標題變色 */
    }
/* =========================================================
   首頁大圖區標題優化：靠左下、大字級、單行截斷
   ========================================================= */

.carousel-slide .carousel-headline {
    /* 1. 定位調整：靠左下 */
    position: absolute;
    bottom: 40px;
    /* 距離底部 40px */
    left: 40px;
    /* 距離左側 40px */
    right: auto;
    /* 移除右側強制對齊 */
    text-align: left;
    /* 文字內容靠左對齊 */
    /* 2. 字級加大 */
    font-size: 38px;
    /* 從原本的 32px 加大 */
    width: 80%;
    /* 限制最大寬度，保留右側空間給箭頭，避免文字蓋住全圖 */
    /* 3. 截斷規則：限一行，超過顯示 ... */
    white-space: nowrap;
    /* 強制不換行 */
    overflow: hidden;
    /* 隱藏超出範圍內容 */
    text-overflow: ellipsis;
    /* 超出部分顯示 ... */
    /* 4. 層級與視覺優化 */
    z-index: 5;
    /* 確保在遮罩之上 */
    color: #fff;
    /* 保持白字 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* 加強陰影提升辨識度 */
}

/* 手機版適配 (RWD) */
@media (max-width: 767px) {
    .carousel-slide .carousel-headline {
        bottom: 22px;
        /* 手機版略為上移避免被圓點或控制項遮擋 */
        left: 20px;
        /* 縮小手機版的左邊距 */
        font-size: 24px;
        /* 手機版字級適度縮小 */
        width: 85%;
    }
}
/* ========== 12強小組分析專屬樣式 (groups.html) ========== */
.group-section {
    padding: 40px 0 80px;
}

/* 左右兩欄網格 */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 小組卡片樣式 */
.group-card {
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 16px;
    padding: 24px 32px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
}

    .group-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 112, 223, 0.15);
        border-color: #0070DF;
    }

.group-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #03122B;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #EEF2FB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* Hover 時右側出現的小提示 */
    .group-card-title::after {
        content: '小組分析 \2192';
        font-size: 14px;
        color: #8D939F;
        font-weight: 600;
        opacity: 1;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

.group-card:hover .group-card-title::after {
    opacity: 1;
    transform: translateX(0);
    color: #0070DF;
}

/* 卡片內的四個國家，設定成左右兩欄排列 */
.team-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    /* 上下 16px，左右 12px */
}

.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-flag {
    font-size: 28px;
    line-height: 1;
    font-family: "Noto Color Emoji", sans-serif;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* 手機版 RWD 適配 */
@media (max-width: 991px) {
    .group-card {
        padding: 20px 24px;
    }

    .group-card-title {
        font-size: 24px;
    }

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

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

@media (max-width: 767px) {
    .groups-grid {
        grid-template-columns: 1fr;
        /* 小組卡片變單欄往下排 */
    }

    .group-card-title::after {
        opacity: 1;
        /* 手機沒有 Hover，直接顯示提示字 */
        transform: translateX(0);
        font-size: 13px;
        color: #8D939F;
    }
}

@media (max-width: 480px) {
    /* 螢幕極小時，依然維持國家左右排列，微調大小 */
    .team-list {
        gap: 12px 8px;
    }

    .team-flag {
        font-size: 22px;
    }

    .team-name {
        font-size: 15px;
    }
}
/* =========================================================
   賽程表專屬樣式 (schedule.html) - 日期滑動與比賽列表
   ========================================================= */

/* --- 頂部日期滑動區 --- */
.date-slider-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 8px;
    margin: 40px 0 32px;
    position: relative;
}

.slider-arrow {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #A0A0A0;
    transition: color 0.2s;
}

    .slider-arrow:hover {
        color: #0070DF;
    }

    .slider-arrow svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2.5;
        fill: none;
    }

.date-slider-container {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    /* 隱藏滾動條 */
    scroll-behavior: smooth;
}

    .date-slider-container::-webkit-scrollbar {
        display: none;
    }

.date-slider-inner {
    display: flex;
    gap: 8px;
    padding: 0 8px;
}

.date-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .date-tab:hover {
        background: #EEF2FB;
    }

    .date-tab.active {
        background: #0070DF;
        color: #fff;
    }

/* --- 賽程列表區 --- */
.schedule-list {
    margin-bottom: 80px;
}

.match-row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

    .match-row:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

/* 左側：組別與時間 */
.m-group {
    background: #EEF2FB;
    color: #0070DF;
    font-weight: 700;
    font-size: 15px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #E5E5EC;
    min-width: 80px;
}

.m-time {
    font-size: 22px;
    font-weight: 700;
    color: #03122B;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

/* 右側：比賽雙方與比分 */
.m-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-left,
.team-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-left {
    justify-content: flex-end;
    text-align: right;
}

.team-right {
    justify-content: flex-start;
    text-align: left;
}

.t-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.t-flag {
    font-size: 28px;
    line-height: 1;
}

.m-score-box {
    margin: 0 32px;
    text-align: center;
    min-width: 80px;
}

.m-score {
    font-size: 32px;
    font-weight: 700;
    color: #03122B;
    letter-spacing: 2px;
}

.m-score-sub {
    font-size: 13px;
    color: #FA4119;
    font-weight: 600;
    margin-top: 4px;
}

/* =========================================================
   賽程表修正補丁：國旗字體強制顯示 & 手機版直式排版
   ========================================================= */

/* 1. 強制國旗 Emoji 顯示 (解決 Windows 變字母的問題) */
.team-flag,
.t-flag {
    font-family: "Noto Color Emoji", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* 2. 手機版 RWD 適配：直式排列 */
@media (max-width: 767px) {
    .match-row {
        flex-direction: column;
        /* 改為直式排列 */
        padding: 24px 16px;
        gap: 8px;
        /* 三行之間的間距 */
        border-left: 1px solid #E5E5EC;
        /* 恢復基本邊框 */
    }

    /* 第一行：組別 */
    .m-group {
        width: 100%;
        border-right: none;
        background: transparent;
        padding: 0;
        min-width: auto;
        font-size: 15px;
        justify-content: center;
        /* 置中 */
        color: #0070DF;
    }

    /* 第二行：時間 */
    .m-time {
        width: 100%;
        padding: 0;
        min-width: auto;
        font-size: 22px;
        justify-content: center;
        /* 置中 */
    }

    /* 第三行：國家 - 國旗 - 比分 - 國旗 - 國家 */
    .m-teams {
        width: 100%;
        padding: 12px 0 0 0;
        margin-top: 8px;
        border-top: 1px dashed #E5E5EC;
        /* 加上虛線分隔讓視覺更清楚 */
        flex-direction: row;
        /* 國家這行保持橫向 */
        justify-content: center;
    }

    /* 國家與比分微調 */
    .team-left,
    .team-right {
        gap: 8px;
    }

    .t-name {
        font-size: 15px;
    }

    .t-flag {
        font-size: 24px;
    }

    .m-score-box {
        margin: 0 16px;
        min-width: 60px;
    }

    .m-score {
        font-size: 24px;
    }

    .m-score-sub {
        font-size: 12px;
    }
}
/* =========================================================
   賽程表修正補丁二：日期區塊拖曳 & 比分高度一致性
   ========================================================= */

/* 1. 讓日期區塊支援滑鼠拖曳時的游標變化 */
.date-slider-container {
    cursor: grab;
    /* 預設抓取游標 */
    /* 手機版原本的 overflow-x: auto 已自帶手指流暢滑動 */
}

    .date-slider-container:active {
        cursor: grabbing;
        /* 點下時變成抓緊游標 */
    }

/* 2. 縮小比分與 PK 文字的距離，並保持所有區塊高度一致 */
.m-score-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    /* 賦予固定最小高度 */
}

.m-score {
    line-height: 1;
    /* 縮小比分本身的行高，減少不必要的留白 */
    margin: 0;
}

/* 將 PK 等補充文字設為絕對定位，完全不影響排版高度 */
.m-score-sub {
    position: absolute;
    top: 100%;
    /* 對齊比分區塊正下方 */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    /* 緊貼著上方比分 */
    white-space: nowrap;
    line-height: 1;
}

/* 手機版微調 */
@media (max-width: 767px) {
    .m-score-box {
        min-height: 28px;
    }

    .m-score-sub {
        margin-top: 4px;
    }
}
/* =========================================================
   賽程表修正補丁三：左右箭頭 UX 狀態優化
   ========================================================= */

/* 1. 預設狀態：深藍色、略大、可點擊暗示 */
.slider-arrow {
    color: #03122B;
    /* 使用深海軍藍，更顯眼 */
    transition: all 0.3s ease;
}

    .slider-arrow svg {
        width: 28px;
        /* 從原本的 24px 加大 */
        height: 28px;
        stroke-width: 3;
        /* 讓線條更粗一些 */
    }

    .slider-arrow:hover {
        color: #0070DF;
        /* Hover 時變為鮮明藍 */
        transform: scale(1.1);
        /* Hover 時稍微放大，增加回饋感 */
    }

    /* 2. 無法滑動的禁用狀態：灰色、略小、無 Hover 效果 */
    .slider-arrow.disabled {
        color: #C0C0C0;
        /* 變成灰色 */
        cursor: default;
        /* 鼠標變回預設，不顯示手指 */
        transform: scale(0.85);
        /* 略微縮小 */
        pointer-events: none;
        /* 徹底禁止點擊與 Hover 事件 */
    }
/* =========================================================
   淘汰賽晉級圖優化：階段底色、線條精準對齊
   ========================================================= */

/* 1. 為不同輪次鋪上極淺的代表色背景 */
.bracket-round.r32 {
    background-color: rgba(86, 10, 139, 0.05);
}
/* 淺紫 */
.bracket-round.r16 {
    background-color: rgba(0, 184, 255, 0.05);
}
/* 淺亮青 */
.bracket-round.qf {
    background-color: rgba(10, 132, 255, 0.05);
}
/* 淺藍 */
.bracket-round.sf {
    background-color: rgba(255, 197, 15, 0.05);
}
/* 淺金 */
.bracket-round.final {
    background-color: rgba(255, 159, 10, 0.08);
}
/* 淺暖金 */

.bracket-round {
    padding: 20px 10px;
    border-radius: 12px;
}

/* 2. 線條對齊修正：固定卡片高度，讓連接線精準指向中心 */
.match-card-bracket {
    height: 100px;
    /* 固定高度是線條對齊的關鍵 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 15px auto !important;
    /* 統一間距 */
}

/* 調整連接器容器，確保與卡片高度同步 */
.bracket-conn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* 修正 Stub (線條) 的位置 */
.conn-group {
    position: relative;
    height: 130px;
    /* 兩倍卡片間距的預設 */
}

    .conn-group .stub-top {
        top: 25%;
    }

    .conn-group .stub-bottom {
        top: 75%;
    }

    .conn-group .stub-out {
        top: 50%;
    }

/* 3. 日期與時間標籤樣式微調 */
.match-phase-tag {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    padding: 3px 12px;
}

/* 4. 手機版列表底色優化 */
.mobile-round.r32 {
    border-left: 5px solid #560A8B;
    padding-left: 15px;
}

.mobile-round.r16 {
    border-left: 5px solid #00B8FF;
    padding-left: 15px;
}

.mobile-round.qf {
    border-left: 5px solid #0A84FF;
    padding-left: 15px;
}

.mobile-round.sf {
    border-left: 5px solid #FFC50F;
    padding-left: 15px;
}

/* 5. 冠軍 spotlight 強化 */
.champion-spotlight {
    background: radial-gradient(circle, rgba(255, 159, 10, 0.1) 0%, transparent 70%);
}
/* =========================================================
   淘汰賽對陣圖 (knockout.html) 專用小國旗尺寸
   ========================================================= */
/* 共用 .team-flag 的字體設定，這裡只負責覆蓋字級 */
.team-flag.flag-sm {
    font-size: 20px;
}

/* RWD 螢幕縮小時候的國旗大小 */
@media (max-width: 1399px) {
    .team-flag.flag-sm {
        font-size: 16px;
    }
}
/* =========================================================
   淘汰賽對陣圖 (knockout.html) 空間最大化與文字折行優化
   ========================================================= */

/* 1. 縮小連線寬度，騰出空間給國家區塊 */
.bracket-conn {
    width: 12px !important;
    /* 從 28px 縮小到 12px */
    min-width: 12px !important;
}

/* 2. 國家名稱折行規則：4字折行，高度固定 */
.team-name-sm {
    width: 4.2em;
    /* 剛好容納約 4 個中文字的寬度 */
    display: inline-block;
    line-height: 1.2;
    /* 緊密的行高 */
    height: 2.4em;
    /* 固定高度為 2 行 (1.2 * 2) */
    word-break: break-all;
    /* 強迫斷行 */
    overflow: hidden;
    /* 確保不溢出 */
    vertical-align: middle;
    display: flex;
    /* 垂直置中文字 */
    align-items: center;
}

/* 3. 統一卡片高度與內部間距 */
.match-card-bracket {
    width: 160px;
    /* 固定卡片寬度 */
    height: 100px;
    /* 增加一點點高度以容納兩行字 */
    padding: 8px !important;
    box-sizing: border-box;
}

    /* 4. 修正決賽卡片擠壓問題 */
    .match-card-bracket.champion-card {
        border-width: 2px;
        margin: 0 auto !important;
        /* 確保決賽卡片與普通卡片內容寬度一致 */
        box-shadow: 0 4px 20px rgba(255, 159, 10, 0.3);
    }

.match-team-row {
    height: 34px;
    /* 固定每支球隊列的高度 */
    padding: 2px 4px !important;
}

/* 5. 日期時間標籤微調 */
.match-phase-tag {
    font-size: 11px;
    margin-bottom: 4px;
}

/* 讓整張圖在畫面上可以橫向捲動（如果螢幕還是太窄） */
.bracket-wrapper.pc-bracket {
    overflow-x: auto;
    padding-bottom: 20px;
}

.bracket-container {
    min-width: 1100px;
    /* 確保在窄螢幕下不會擠壓到文字，而是出現捲軸 */
}
/* =========================================================
   淘汰賽對陣圖修正補丁四：精準對齊、突出標籤、總寬度與RWD
   ========================================================= */

/* 1. 解決連線對齊問題：精準計算並扣除標題高度 */
.bracket-round {
    padding: 12px 6px;
    /* 統一外框上下 padding 為 12px */
}

.round-header {
    height: 32px;
    margin: 0 0 16px 0;
    /* 標題高度 32 + 下邊距 16 = 48px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bracket-conn {
    /* 核心修正：連線區塊的起點必須完美貼齊下方卡片區塊的起點 */
    padding-top: 60px;
    /* 12 (round padding) + 48 (header) = 60px */
    padding-bottom: 12px;
    /* 配合 round 的底部 padding */
    width: 14px !important;
    min-width: 14px !important;
}

/* 2. 恢復「半突出框線」的日期標籤設計 */
.match-card-bracket {
    position: relative;
    overflow: visible !important;
    /* 必須設為 visible 標籤才能突出 */
    padding: 18px 10px 8px !important;
    /* 上方預留 18px 空間給標籤 */
    height: auto !important;
    /* 讓高度自然包覆內容 */
    min-height: 76px;
    width: 145px;
    /* 縮小卡片寬度，讓總寬度不超標 */
    margin: 10px auto !important;
}

.match-phase-tag {
    position: absolute;
    top: -10px;
    /* 往上突出卡片邊框 */
    left: 10px;
    margin: 0;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* 加點陰影增加立體感 */
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0;
}

/* 3. 解決總寬度超過出現橫向拉 Bar 的問題 */
.bracket-container {
    min-width: 0 !important;
    /* 移除原本強制撐開的 1100px */
    width: 100%;
    justify-content: space-between;
    /* 讓 5 個階段均勻分布 */
}

.team-name-sm {
    width: 4em;
    /* 縮小寬度，最多顯示 3-4 字 */
    font-size: 12px;
    line-height: 1.2;
    max-height: 2.4em;
    /* 限定兩行高度 */
    white-space: normal;
    /* 允許文字折行 */
}

/* 決賽卡片微調，避免突出邊框影響排版 */
.match-card-bracket.champion-card {
    padding-top: 20px !important;
}


/* =========================================================
   淘汰賽對陣圖修正補丁五：單一 HTML 完美 RWD 直式排列
   ========================================================= */

@media (max-width: 767px) {
    /* 1. 顯示原本被隱藏的對陣圖，並隱藏備用的 mobile 容器 */
    .pc-bracket {
        display: block !important;
    }

    .mobile-bracket {
        display: none !important;
    }

    /* 2. 徹底隱藏所有晉級連線 */
    .bracket-conn {
        display: none !important;
    }

    /* 3. 整個容器改為直式排列 (32強 -> 16強 -> 8強...) */
    .bracket-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* 4. 各階段區塊設定 */
    .bracket-round {
        width: 100%;
        margin-bottom: 40px;
        /* 各階段之間的距離 */
        background: transparent !important;
        /* 移除整排的底色，讓畫面更清爽 */
    }

    .round-header {
        margin-bottom: 24px;
    }

    /* 5. 讓階段內的比賽卡片也變成直式排列 */
    .round-body {
        display: flex;
        flex-direction: column;
        gap: 16px !important;
        /* 恢復卡片間的正常間距 */
        height: auto !important;
    }

    /* 6. 放寬卡片寬度，適應手機螢幕 */
    .match-card-bracket {
        width: 100% !important;
        max-width: 340px;
        /* 限制最大寬度，避免在大手機上拉得太長 */
        margin: 16px auto !important;
        /* 確保上下有間距，並水平置中 */
        height: auto !important;
        padding: 20px 16px 12px !important;
        /* 給半突出的日期標籤留空間 */
    }

    /* 7. 微調半突出標籤的位置，使其在手機上也完美顯示 */
    .match-phase-tag {
        top: -12px;
        left: 12px;
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* 平板尺寸微調 (確保窄版螢幕下也不會出現拉 bar) */
@media (max-width: 991px) and (min-width: 768px) {
    .match-card-bracket {
        width: 120px;
    }

    .team-name-sm {
        font-size: 11px;
    }
}
/* 待定國家的灰色半透明效果 */
.team-flag.tbd {
    opacity: 0.3; /* 變成半透明 */
    filter: grayscale(100%); /* 強制變成全灰階 */
}

/* 讓「待定」兩個字也變灰色，看起來更有一致性 */
.tbd-text {
    color: #A0A0A0 !important;
    font-weight: 400 !important;
}
/* =========================================================
   淘汰賽對陣圖 (knockout.html) 新增特殊賽事標籤 (延長賽/PK)
   ========================================================= */

.match-special-tag {
    position: absolute;
    top: -8px; /* 跟左邊的時間標籤對齊 (略低一點點配合字體) */
    left: 80px; /* 放在時間標籤的右邊 */
    font-size: 11px;
    font-weight: 700;
    color: #FA4119; /* 使用 FIFA 橘紅色，非常醒目 */
    z-index: 2;
    background: #fff; /* 稍微墊個白底，避免跟背景線條或顏色混在一起 */
    padding: 0 4px;
    border-radius: 4px;
}

/* RWD 手機版微調 */
@media (max-width: 767px) {
    .match-special-tag {
        top: -10px;
        left: 82px;
        font-size: 10px;
    }
}
