/* 全局基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background:
        linear-gradient(rgba(10, 10, 12, 0.76), rgba(10, 10, 12, 0.76)),
        url("../images/poster/poster_v1.png") center center / cover fixed;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部导航 */
header {
    background-color: #1e1e1e;
    border-bottom: 2px solid #ff5500; /* 亮橙色点缀 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

header .site-title {
    color: inherit;
    text-decoration: none;
}

.brand-title {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    min-width: 250px;
    position: relative;
}

.brand-short {
    display: inline-flex;
    transition: opacity 0.35s ease;
}

.brand-letter-l,
.brand-letters-tv {
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-letter-l {
    margin-left: 0.08em;
}

.brand-letters-tv {
    margin-left: 0.08em;
}

.brand-full {
    font-size: clamp(20px, 2.6vw, 28px);
    left: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(12px, -50%);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.site-title:hover .brand-letter-l,
.site-title:focus-visible .brand-letter-l {
    opacity: 0;
    transform: translateX(-8px);
}

.site-title:hover .brand-letters-tv,
.site-title:focus-visible .brand-letters-tv {
    opacity: 0;
    transform: translateX(12px);
}

.site-title:hover .brand-short,
.site-title:focus-visible .brand-short {
    opacity: 0;
}

.site-title:hover .brand-full,
.site-title:focus-visible .brand-full {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (prefers-reduced-motion: reduce) {
    .brand-short,
    .brand-letter-l,
    .brand-letters-tv,
    .brand-full {
        transition: none;
    }
}

.mobile-nav {
    display: contents;
}

.mobile-nav-toggle {
    display: none;
}

header nav {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

nav a:hover {
    color: #ff5500;
}

/* 区块通用样式 */
section {
    margin-top: 40px;
}

h2 {
    margin-bottom: 20px;
    color: #ffffff;
    border-left: 4px solid #ff5500;
    padding-left: 10px;
}

/* 卡片样式 */
.card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.about-card {
    margin-top: 40px;
}

.hall-of-fame-placeholder {
    align-items: center;
    color: #999;
    display: flex;
    justify-content: space-between;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.hall-of-fame-placeholder:hover {
    border: 1px solid #ff5500;
    transform: translateY(-2px);
}

.hall-of-fame-placeholder span {
    color: #ff5500;
    font-size: 14px;
}

.hall-of-fame-page {
    margin-top: 40px;
    text-align: center;
}

.hall-of-fame-page h2 {
    display: inline-block;
}

.hall-of-fame-page p {
    color: #c5c5c5;
    margin: 24px 0 12px;
}

.about-content h1,
.about-content h2,
.about-content h3 {
    margin-bottom: 18px;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content p,
.about-content ul {
    margin-top: 16px;
}

.about-content p,
.about-content li {
    color: #c5c5c5;
}

.about-content ul {
    padding-left: 24px;
}

.about-content a {
    color: #ff5500;
}

.faq-page {
    margin-top: 40px;
}

.faq-page h2 {
    margin-bottom: 12px;
}

.faq-intro {
    color: #aaa;
    margin-bottom: 20px;
}

.faq-item {
    border-top: 1px solid #333;
    padding: 16px 0;
}

.faq-item summary {
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.faq-item summary::marker {
    color: #ff5500;
}

.faq-item p {
    color: #c5c5c5;
    margin-top: 12px;
}

.home-hero {
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(10, 10, 12, 0.82), rgba(10, 10, 12, 0.08)),
        url("../images/poster/poster_v1.png") center top / cover;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    min-height: 250px;
    margin-top: 8px;
    overflow: hidden;
    padding: 24px 28px;
}

.home-hero-content {
    max-width: 600px;
}

.home-hero-eyebrow {
    color: #ff9a52;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-hero h2 {
    border: 0;
    font-size: clamp(22px, 3vw, 30px);
    margin: 8px 0 16px;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.home-hero-button {
    background: #ff5500;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.home-hero-button:hover {
    background: #cc4400;
}

.series-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.series-card {
    color: inherit;
    min-height: 160px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.series-card:hover {
    border: 1px solid #ff5500;
    transform: translateY(-2px);
}

.series-card-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.series-card-heading h3 {
    color: #fff;
    font-size: 20px;
}

.series-card > p,
.series-page-heading > p {
    color: #999;
    margin-top: 12px;
}

.series-card > .series-card-meta {
    color: #aaa;
    font-size: 14px;
    margin-top: 8px;
    white-space: pre-line;
}

.series-card-meta strong,
.series-schedule-meta strong {
    color: #ff9a52;
    margin-right: 8px;
}

.series-page-heading > .series-schedule-meta {
    color: #bbb;
    margin-top: 8px;
    white-space: pre-line;
}

.series-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
}

.status-upcoming {
    background: #33230f;
    color: #ffc107;
}

.status-active {
    background: #12331a;
    color: #4caf50;
}

.status-completed {
    background: #292929;
    color: #aaa;
}

.series-card-footer {
    align-items: center;
    border-top: 1px solid #333;
    color: #999;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
}

.series-card-footer span {
    color: #ff5500;
}

.history-more-link {
    color: #ff9a52;
    display: block;
    font-weight: 700;
    margin: 12px auto 0 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 154, 82, 0.45);
    border-radius: 6px;
    background: rgba(30, 30, 30, 0.88);
    text-decoration: none;
    width: fit-content;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.history-more-link:hover,
.history-more-link:focus-visible {
    background: rgba(255, 85, 0, 0.16);
    border-color: #ff5500;
    color: #ff5500;
}

.series-card-awards {
    border-top: 1px solid #333;
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
}

.series-card-awards span {
    color: #ccc;
    font-size: 14px;
}

.series-card-awards > span:first-child > strong {
    color: #ff9a52;
    display: inline-block;
    margin-right: 8px;
    min-width: 42px;
}

.series-card-award-person {
    align-items: center;
    display: flex;
    gap: 8px;
}

.series-card-award-person > strong {
    color: #ff9a52;
    min-width: 42px;
}

.series-card-award-person small {
    color: #999;
    margin-left: auto;
}

.series-card-avatar {
    align-items: center;
    background: #393939;
    border-radius: 50%;
    color: #ff9a52;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 28px;
}

.series-card-avatar img {
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    transition: opacity 0.15s;
    width: 100%;
}

.series-card-avatar img.series-card-avatar-fallback {
    opacity: 1;
}

.series-card-avatar img.is-loaded {
    opacity: 1;
}

.series-card-avatar-fallback.is-hidden {
    opacity: 0;
}

.series-page-heading {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 30px 0;
    padding: 28px;
    text-align: center;
}

.series-page-heading h2 {
    border: 0;
    font-size: clamp(26px, 4vw, 38px);
    margin: 12px 0;
    padding: 0;
}

.registration-cta {
    background: #ff5500;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    margin-top: 18px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.registration-cta:hover,
.registration-cta:focus-visible {
    background: #cc4400;
}

.series-page-stats {
    align-items: baseline;
    color: #999;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.series-page-stats span:first-child {
    color: #ff5500;
    font-size: 28px;
    font-weight: 700;
}

.series-awards {
    margin: 32px 0;
}

.champion-overview {
    margin-bottom: 16px;
}

.champion-heading,
.award-player {
    align-items: center;
    display: flex;
    gap: 14px;
}

.trophy-mark {
    font-size: 32px;
}

.champion-heading > div > span,
.player-tournament-stats > span {
    color: #999;
    font-size: 13px;
}

.champion-heading h3,
.award-panel h3 {
    color: #ff9a52;
    font-size: 20px;
}

.champion-captain {
    color: #bbb;
    margin-top: 12px;
}

.champion-captain strong {
    color: #fff;
}

.roster-heading {
    border: 0;
    font-size: 16px;
    margin: 22px 0 10px;
    padding: 0;
}

.champion-roster {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    list-style: none;
}

.champion-player {
    align-items: center;
    background: #252525;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 10px;
}

.champion-avatar {
    align-items: center;
    background: #393939;
    border-radius: 50%;
    color: #ff9a52;
    display: inline-flex;
    grid-row: span 2;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 42px;
}

.champion-avatar img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.champion-avatar img:not([hidden]) {
    display: block;
}

.champion-player-name {
    color: #eee;
    font-weight: 700;
}

.captain-badge {
    background: #33230f;
    border-radius: 999px;
    color: #ffc107;
    font-size: 11px;
    margin-left: 6px;
    padding: 2px 7px;
}

.mvp-badge {
    background: #32213a;
    border-radius: 999px;
    color: #df9cff;
    font-size: 11px;
    margin-left: 6px;
    padding: 2px 7px;
}

.faceit-player-link {
    color: #888;
    font-size: 12px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.faceit-player-link:hover,
.award-player a:hover {
    color: #ff9a52;
    text-decoration: underline;
}

.award-panel {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
}

.award-player {
    margin-top: 14px;
}

.player-tournament-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    margin-top: 18px;
}

.player-tournament-stats > span {
    background: #252525;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.award-player a {
    color: #eee;
    text-decoration: none;
}

.player-tournament-stats > span strong {
    color: #fff;
    display: block;
    font-size: 18px;
}

/* 焦点比赛样式 */
.highlight {
    text-align: center;
    border: 1px solid #333;
}

.time {
    color: #888;
    margin-bottom: 15px;
}

.matchup {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.vs {
    color: #ff5500;
    margin: 0 15px;
}

.btn {
    display: inline-block;
    background-color: #ff5500;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #cc4400;
}

/* 历史战绩列表样式 */
.match-result {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(340px, 1.6fr) auto;
    align-items: start;
    gap: 20px;
}

.match-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.match-link:hover {
    border: 1px solid #ff5500;
    transform: translateY(-2px);
}

.details-hint {
    color: #ff5500;
    font-size: 13px;
    margin-left: 15px;
}

.back-link {
    color: #ff5500;
    display: inline-block;
    margin: 20px 0;
    text-decoration: none;
}

.match-summary {
    text-align: center;
}

.match-summary h2 span {
    color: #ff5500;
    margin: 0 12px;
}

.match-stage {
    color: #ff5500;
    font-weight: bold;
}

.team-detail h3 {
    color: #ff5500;
    margin-bottom: 15px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.player-stats-table {
    table-layout: fixed;
    min-width: 720px;
}

.player-name-column {
    width: 202px;
}

.player-stat-column {
    width: 74px;
}

th, td {
    border-bottom: 1px solid #333;
    padding: 10px 8px;
    text-align: left;
}

th {
    color: #aaa;
    font-size: 13px;
}

.player-stats-table th:not(:first-child),
.player-stats-table td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

.player-stats-table th:first-child,
.player-stats-table td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state, .error-message, .loading {
    color: #aaa;
    text-align: center;
}

.error-message {
    color: #ff7777;
}

@media (max-width: 700px) {
    header .container {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        padding: 0;
    }

    .brand-title {
        min-width: 0;
    }

    .mobile-nav {
        display: block;
        flex-shrink: 0;
        position: relative;
    }

    .mobile-nav-toggle {
        align-items: center;
        background: #292929;
        border: 1px solid #444;
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
        display: flex;
        font: inherit;
        font-weight: 700;
        justify-content: center;
        min-height: 44px;
        min-width: 44px;
        padding: 10px;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus-visible,
    .mobile-nav-toggle[aria-expanded="true"] {
        border-color: #ff5500;
        color: #ff9a52;
    }

    .mobile-nav-icon {
        display: grid;
        gap: 4px;
        width: 18px;
    }

    .mobile-nav-icon span {
        background: currentColor;
        border-radius: 2px;
        height: 2px;
        width: 100%;
    }

    .mobile-nav nav {
        background: #1e1e1e;
        border: 1px solid #444;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
        display: none;
        flex-direction: column;
        gap: 0;
        min-width: 180px;
        padding: 6px;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        z-index: 20;
    }

    .mobile-nav.is-open nav {
        display: flex;
    }

    .mobile-nav nav a {
        align-items: center;
        border-radius: 4px;
        display: flex;
        min-height: 44px;
        padding: 8px 12px;
    }

    .mobile-nav nav a[aria-current="page"] {
        background: #292929;
        color: #ff9a52;
    }

    .home-hero {
        background-position: center top;
        min-height: 220px;
        padding: 20px;
    }

    .match-result {
        align-items: flex-start;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .details-hint {
        margin-left: 0;
    }
}

.match-info h3 {
    font-size: 16px;
    color: #ff5500;
    margin-bottom: 8px;
}

.match-info p {
    color: #888;
    font-size: 14px;
}

.score-board {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
    min-width: 0;
}

.score-team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-team-a {
    text-align: right;
}

.score-team-b {
    text-align: left;
}

.winner {
    color: #4caf50; /* 胜利者显示为绿色 */
}

.score {
    margin: 0;
    background-color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 84px;
    text-align: center;
    white-space: nowrap;
}

.match-heading {
    margin: 24px 0;
    text-align: center;
}

.match-heading > p:last-of-type {
    color: #888;
    margin-bottom: 16px;
}

.series-score {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto) minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
    text-align: center;
}

.series-team {
    font-size: clamp(15px, 2vw, 22px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.series-score-center {
    display: grid;
    gap: 2px;
}

.series-format, .series-status {
    color: #999;
    font-size: 13px;
}

.series-score-center strong {
    font-size: 34px;
    line-height: 1.2;
}

.series-score-center i, .map-score-line i {
    color: #777;
    font-size: 0.7em;
    font-style: normal;
    margin: 0 5px;
}

.map-selector {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    margin: 18px 0 24px;
}

.map-card {
    background: #1e1e1e;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px 16px;
    text-align: left;
}

.map-card:hover, .map-card.is-active {
    border-color: #777;
    box-shadow: inset 3px 0 #ff5500;
}

.map-card.is-active .map-card-score {
    color: #ff5500;
}

.map-card-score {
    font-size: 16px;
    font-weight: 700;
}

.map-card-name {
    color: #999;
    font-size: 13px;
}

.selected-map-data {
    min-height: 80px;
}

.map-summary {
    text-align: center;
}

.map-summary > p {
    color: #999;
    margin-bottom: 12px;
}

.map-score-line {
    align-items: center;
    display: grid;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 700;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto) minmax(0, 1fr);
}

.map-score-line > :first-child {
    text-align: right;
}

.map-score-line > :last-child {
    text-align: left;
}

.map-score-line strong {
    background: #292929;
    border-radius: 6px;
    min-width: 100px;
    padding: 6px 10px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .match-result {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .score-board {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        width: 100%;
    }

    .series-score {
        grid-template-columns: 1fr;
        gap: 10px;
    }

}