/* League 7 Championship - Professional Style */

:root {
    --bg: #1d1f21;
    --bg-light: #282a2e;
    --bg-lighter: #32353a;
    --bg-dark: #151515;
    --text: #c5c8c6;
    --text-dim: #969896;
    --link: #81a2be;
    --link-hover: #5f89ac;
    --accent: #b294bb;
    --green: #b5bd68;
    --orange: #de935f;
    --red: #cc6666;
    --border: #373b41;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* YouTube Embeds */
.vod-thumb iframe,
.featured-img iframe,
.highlight-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.vod-thumb,
.featured-img,
.highlight-thumb {
    overflow: hidden;
}

.vod-thumb {
    aspect-ratio: 16 / 9;
}

.featured-img {
    aspect-ratio: auto;
}

.featured-img iframe {
    min-height: 260px;
}

.highlight-thumb {
    aspect-ratio: 16 / 9;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.top-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.top-bar-item {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar-sep {
    color: var(--border);
    margin: 0 16px;
}

/* Header */
.site-header {
    position: relative;
    border-bottom: 2px solid var(--border);
    padding: 0;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/banner2.png') center/cover no-repeat;
    filter: blur(3px);
    opacity: 0.35;
    z-index: 0;
}

.header-inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 56px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.header-logo h1 .accent {
    color: var(--green);
}

.header-logo-img {
    width: 150px;
    height: auto;
    display: block;
}

.header-season {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--accent);
    margin-top: 6px;
    padding: 4px 12px;
    border: 1px solid rgba(178, 148, 187, 0.35);
    background: rgba(178, 148, 187, 0.08);
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.header-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Tab Navigation */
.tab-nav {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.tab-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--text);
    border-bottom-color: var(--green);
}

/* Main Container */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
}

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card Row */
.card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 20px;
}

.card-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.card-value.highlight {
    color: var(--orange);
}

/* UTC Clock */
#utc-clock {
    font-size: 36px;
    color: #5f9ea0;
    text-align: center;
}

#utc-slot {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.card-sub {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Grand Champion Card */
#grand-champ-card {
    background: linear-gradient(rgba(29, 31, 33, 0.75), rgba(29, 31, 33, 0.75)), url('images/think.jpg') center/cover no-repeat;
    border-color: #e6c800;
}

#grand-champ-card .card-label,
#grand-champ-card .card-sub {
    position: relative;
    z-index: 1;
}

/* Home Link Buttons */
.home-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.home-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid var(--border);
    padding: 56px 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    min-height: 200px;
}

.home-link-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.home-link-label {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.home-link-desc {
    font-size: 14px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* Home Video Section */
.home-video {
    margin-bottom: 24px;
}

.home-video-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
}

.home-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Section Block */
.section-block {
    margin-bottom: 24px;
}

.block-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.block-desc {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text);
    font-size: 14px;
}

.info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 12px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: var(--bg-dark);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.status-live {
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
}

.status-upcoming {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
}

/* Prize Grid */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.prize-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 24px 16px;
    text-align: center;
}

.prize-card.first {
    border-color: var(--orange);
    background: #1f1b18;
}

.prize-card.second {
    border-color: var(--text-dim);
}

.prize-card.third {
    border-color: var(--accent);
    background: #1e1b20;
}

.prize-place {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.prize-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.prize-card.first .prize-amount {
    color: var(--orange);
}

.prize-card.third .prize-amount {
    color: var(--accent);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.team-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    overflow: hidden;
}

.team-card-img {
    border-bottom: 1px solid var(--border);
}

.team-card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.team-card-body {
    padding: 16px;
    max-height: 160px;
    overflow-y: auto;
}

.team-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.team-card-name a {
    color: var(--text);
    text-decoration: none;
}

.team-card-name a:hover {
    color: var(--link);
}

.team-card-region {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.team-card-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.team-stat {
    background: var(--bg-dark);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

.team-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Tag Filter Bar */
.tag-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    color: var(--text-dim);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.15s, color 0.15s;
}

.tag-filter-toggle:hover {
    background: var(--bg-lighter);
    color: var(--text);
}

.tag-filter-toggle .arrow {
    font-size: 9px;
    transition: transform 0.2s;
}

.tag-filter-toggle.open .arrow {
    transform: rotate(180deg);
}

.tag-filter-toggle .count {
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    display: none;
}

.tag-filter-toggle .count.show {
    display: inline;
}

.tag-filter {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag-filter.open {
    display: flex;
}

.tag-filter-btn {
    background: var(--bg-light);
    color: var(--text-dim);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tag-filter-btn:hover {
    background: var(--bg-lighter);
    color: var(--text);
}

.tag-filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* class toggled by JS to hide filtered-out cards */
.vod-card.hidden,
.highlight-card.hidden {
    display: none;
}

/* VOD Grid */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vod-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    overflow: hidden;
}

.vod-thumb {
    position: relative;
    border-bottom: 1px solid var(--border);
}

.vod-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.vod-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-dark);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
}

.vod-badge.grand {
    color: var(--orange);
}

.vod-body {
    padding: 14px;
}

.vod-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.vod-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    overflow-x: auto;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
    white-space: nowrap;
    padding-bottom: 2px;
}

.card-tags::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.card-tag {
    flex-shrink: 0;
    background: var(--bg-dark);
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
}

/* Featured Highlight */
.featured-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    background: var(--bg-light);
}

.featured-img {
    border-right: 1px solid var(--border);
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 260px;
}

.featured-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    margin-bottom: 12px;
    width: fit-content;
}

.featured-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-body p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 10px;
}

.featured-meta {
    font-size: 11px;
    color: var(--text-dim);
}

/* Highlight Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    overflow: hidden;
}

.highlight-thumb {
    border-bottom: 1px solid var(--border);
}

.highlight-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.highlight-body {
    padding: 14px;
}

.highlight-body h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.highlight-meta {
    font-size: 11px;
    color: var(--text-dim);
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: none;
    width: 100%;
    background: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    margin-bottom: 8px;
}

.sidebar-toggle:hover {
    background: var(--bg-light);
}

.sidebar-sections {
}

.sidebar-section {
    background: var(--bg-light);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    padding: 16px;
}

.sidebar-section h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin: 8px 0;
}

.sidebar-section a {
    color: var(--link);
    text-decoration: none;
    font-size: 13px;
}

.sidebar-section a:hover {
    color: var(--link-hover);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0 8px 0;
}

.announcement {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.announcement:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.announcement-date {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.announcement p {
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.footer-brand p {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-dim);
}

/* Blink Animation */
.blink {
    animation: blinker 1.5s ease-in-out infinite;
}

@keyframes blinker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

::selection {
    background: var(--link);
    color: var(--bg);
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

/* Responsive */
@media (max-width: 1100px) {
    .card-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prize-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .header-nav {
        gap: 20px;
    }
    .main-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: 1;
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar-sections {
        display: none;
    }
    .sidebar.sidebar-open .sidebar-sections {
        display: block;
    }
    .content-area {
        order: 2;
    }
    .card-row {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .vod-grid {
        grid-template-columns: 1fr;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-highlight {
        grid-template-columns: 1fr;
    }
    .featured-img img {
        min-height: 180px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-btn {
        padding: 10px 12px;
        font-size: 11px;
        letter-spacing: 0.5px;
        flex: 1 1 auto;
        text-align: center;
    }
    .tab-nav-inner {
        flex-wrap: wrap;
    }
    .home-links {
        grid-template-columns: 1fr;
    }
    .home-link-btn {
        padding: 40px 20px;
        min-height: 160px;
    }
    .home-link-label {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-logo h1 {
        font-size: 24px;
    }
    .card-value {
        font-size: 18px;
    }
    .prize-grid {
        grid-template-columns: 1fr;
    }
    .team-card-img img {
        height: 120px;
    }
}