/* Modern & Dynamic Theme for Sanmar Cup - Inspired by Sports Master & Soccer Master */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #ee1e46;
    --dark-bg: #1e2a3a;
    --light-bg: #243447;
    --light-text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.12);
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gradient-main: linear-gradient(135deg, #FF6B35, #F7931E);
    --gradient-hero: linear-gradient(135deg, rgba(255,107,53,0.9), rgba(247,147,30,0.9));
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    --gradient-overlay: linear-gradient(45deg, rgba(26,26,46,0.8), rgba(22,33,62,0.8));
}

/* Light Mode Theme */
[data-theme="light"] {
    --dark-bg: #f5f5f5;
    --light-bg: #ffffff;
    --light-text: #1e2a3a;
    --card-bg: rgba(30, 42, 58, 0.08);
    --stadium-track-color: #e8e8e8;
    --stadium-line-color: rgba(255,107,53,0.2);
    --stadium-gate-bg: rgba(255,255,255,0.9);
    --stadium-booth-bg: rgba(255,255,255,0.95);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #e8e8e8 100%);
    color: var(--light-text);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(255,107,53,0.2);
}

[data-theme="light"] .stadium-nav-track {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(255,107,53,0.2);
    border-bottom-color: rgba(255,107,53,0.2);
}

[data-theme="light"] .logo {
    background: rgba(255, 255, 255, 0.98);
}

/* Font: Montserrat (Soccer Master style — elegan, bukan vibe coding) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #1e2a3a 0%, #243447 50%, #1a2734 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    background-position: center;
    color: var(--light-text);
    line-height: 1.6;
    animation: gradientShift 15s ease infinite;
    cursor: default;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a, button, .btn {
    cursor: pointer;
}

/* Loader: gambar bola saja, besar, tanpa lingkaran */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out;
    overflow: hidden;
}

.loader-ball {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    animation: bounceBall 1.2s ease-in-out infinite;
}

.loader-text {
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulseText 2s infinite;
}

@keyframes bounceBall {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Hide content initially */
.site-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
    overflow-x: hidden;
    overflow-y: visible;
}
.loaded .site-content { opacity: 1; }
.loaded .loader-wrapper { opacity: 0; pointer-events: none; }

h1, h2, h3, h4, h5, .section-title, .hero-title, .team-name, .live-section-heading {
    font-family: var(--font-main);
    font-weight: 700;
}

/* Header */
header {
    background: rgba(30, 42, 58, 0.96);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

/* Progress Bar Scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255,107,53,0.6);
}

header:hover {
    border-bottom-color: rgba(255, 107, 53, 0.5);
}

/* Logo header (CMS: #header-logo src, #header-logo-text) */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    text-align: center;
    background: rgba(30, 42, 58, 0.96);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.logo img,
#header-logo {
    height: 80px;
    max-height: 80px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover {
    background: rgba(30, 42, 58, 0.96);
}

.logo:hover #header-logo {
    transform: scale(1.05);
}

[data-theme="light"] .logo:hover {
    background: rgba(255, 255, 255, 0.98);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.logo-text,
#header-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    line-height: 1.2;
}

.logo-year,
#header-logo-year {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 3px;
    line-height: 1;
}

/* ========================================
   STADIUM NAVIGATION - Sport Stadium Theme
   ======================================== */
:root {
    --stadium-track-color: #1a2332;
    --stadium-line-color: rgba(255,107,53,0.3);
    --stadium-gate-bg: rgba(255,255,255,0.08);
    --stadium-gate-hover: rgba(255,107,53,0.2);
    --stadium-main-glow: rgba(255,107,53,0.6);
    --stadium-booth-bg: rgba(30,42,58,0.95);
    --stadium-booth-border: rgba(255,107,53,0.4);
}

.stadium-nav {
    position: relative;
    z-index: 1000;
    flex: 1;
}

.stadium-nav-track {
    background: rgba(30, 42, 58, 0.96);
    border-top: 2px solid var(--stadium-line-color);
    border-bottom: 2px solid var(--stadium-line-color);
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: visible; /* biar dropdown Next Matches / Latest Results tidak terpotong */
}

.stadium-nav-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--stadium-line-color) 0px,
        var(--stadium-line-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateY(-50%);
}

.stadium-nav-main {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Stadium Gate - lebih kecil dan proporsional */
.stadium-main-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: var(--stadium-gate-bg);
    border: 2px solid var(--stadium-main-glow);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--stadium-main-glow);
    animation: stadiumPulse 2s ease-in-out infinite;
    min-width: 110px;
}

@keyframes stadiumPulse {
    0%, 100% { box-shadow: 0 0 20px var(--stadium-main-glow); }
    50% { box-shadow: 0 0 30px var(--stadium-main-glow), 0 0 40px rgba(255,107,53,0.4); }
}

.stadium-main-gate:hover {
    background: var(--stadium-gate-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 35px var(--stadium-main-glow), 0 4px 15px rgba(0,0,0,0.3);
}

.gate-icon {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.gate-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.live-offline {
    font-size: 0.6rem;
    color: #9aa0a6;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: liveBlink 1s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-count {
    color: var(--secondary-color);
    font-weight: 800;
}

/* Venue Gates */
.stadium-gates {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stadium-gate-wrapper {
    position: relative;
}

.stadium-gate-wrapper.has-mega-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stadium-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--stadium-gate-bg);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
}

.stadium-gate::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stadium-gate:hover::before,
.stadium-gate.active::before {
    opacity: 0.3;
}

.stadium-gate:hover {
    background: var(--stadium-gate-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.stadium-gate.active {
    background: rgba(255,107,53,0.25);
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 20px rgba(255,107,53,0.5), 0 4px 12px rgba(255,107,53,0.3);
    transform: translateY(-2px);
}

.stadium-gate.active .gate-number,
.stadium-gate.active .gate-name {
    color: var(--primary-color);
    font-weight: 800;
}

.gate-number {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.gate-name {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gate-name i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Mega Dropdown untuk Kategori */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 400px;
    background: rgba(30, 42, 58, 0.98);
    border: 2px solid rgba(255,107,53,0.4);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.mega-dropdown-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.mega-dropdown-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(30,42,58,0.95) 0%, rgba(30,42,58,0.98) 100%);
}

.mega-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mega-dropdown-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-dropdown-count {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    background: rgba(255,107,53,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.mega-dropdown-preview {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mega-dropdown-actions {
    display: flex;
    gap: 0.75rem;
}

.mega-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.4);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.mega-btn:hover {
    background: rgba(255,107,53,0.25);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Ticket Booths */
.stadium-ticket-booths {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ticket-booth {
    position: relative;
}

.booth-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--stadium-booth-bg);
    border: 2px solid var(--stadium-booth-border);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    text-decoration: none;
    padding: 0;
    font-family: inherit;
}

a.booth-btn {
    border: 2px solid var(--stadium-booth-border);
}

button.booth-btn {
    border: 2px solid var(--stadium-booth-border);
}

.booth-btn:hover {
    background: var(--stadium-gate-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.booth-label {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.booth-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}

.ticket-booth.has-dropdown .booth-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: var(--stadium-booth-bg);
    border: 1px solid var(--stadium-booth-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.ticket-booth.has-dropdown:hover .booth-dropdown,
.ticket-booth.has-dropdown.active .booth-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Stadium Nav Center - Stats */
.stadium-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    min-width: 70px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-stat-item:hover {
    background: rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.stat-icon {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.15rem;
}

.stat-label {
    font-size: 0.65rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Login Button */
.stadium-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
    white-space: nowrap;
}

.stadium-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.5);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,0.3);
}

.stadium-login-btn i {
    font-size: 0.9rem;
}

.login-btn-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .stadium-login-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .login-btn-text {
        display: none;
    }
    
    .stadium-login-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

.booth-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booth-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.5) transparent;
}

.booth-dropdown-content::-webkit-scrollbar { width: 6px; }
.booth-dropdown-content::-webkit-scrollbar-track { background: transparent; }
.booth-dropdown-content::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.5); border-radius: 3px; }

.booth-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: #c0c0c0;
    transition: all 0.3s ease;
}

.booth-item:hover {
    background: rgba(255,107,53,0.1);
    color: #fff;
    padding-left: 1.25rem;
}

.booth-item-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booth-item-vs {
    font-size: 0.85rem;
    line-height: 1.4;
}

.booth-item-empty {
    padding: 1rem;
    text-align: center;
    color: #9aa0a6;
    font-size: 0.85rem;
}

.booth-item-countdown {
    padding: 0.75rem 1rem;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer-mini {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
}

.countdown-timer-mini span {
    display: inline-block;
    min-width: 24px;
}

/* Search Panel */
.booth-search-panel {
    position: fixed;
    top: auto;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    background: var(--stadium-booth-bg);
    border: 1px solid var(--stadium-booth-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

#search-booth.active .booth-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#nav-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 12px 12px 0 0;
}

#nav-search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
}

#nav-search-input::placeholder {
    color: #9aa0a6;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #c0c0c0;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255,107,53,0.1);
    color: #fff;
    padding-left: 1.25rem;
}

/* Location Indicator */
.location-indicator .booth-btn {
    width: auto;
    padding: 0.5rem 0.75rem;
    min-width: 44px;
}

.location-indicator .booth-label {
    display: block;
}

/* Nav Toggle (Mobile) */
.stadium-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
}

.stadium-nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.stadium-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.stadium-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.stadium-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Fallback untuk browser lama */
@supports not (display: grid) {
    .stadium-nav-main {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .stadium-gates {
        flex: 1;
        min-width: 300px;
    }
}

/* Nav + dropdown (menu bisa di-set admin) - OLD NAV (hidden) */
.main-nav {
    display: none;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-nav a .fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.main-nav .has-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.main-nav a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.15);
}

/* Dropdown submenu */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(30, 42, 58, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    z-index: 100;
}

.main-nav .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    margin: 0;
}

.main-nav .dropdown-menu a {
    padding: 12px 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.main-nav .dropdown-menu a:hover {
    background: rgba(255, 107, 53, 0.2);
}

.main-nav .dropdown-menu .fa-futbol,
.main-nav .dropdown-menu .fa-music,
.main-nav .dropdown-menu .fa-gamepad {
    color: var(--secondary-color);
    width: 18px;
}

.btn-nav {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    background: linear-gradient(45deg, #FF6B35, #F7931E) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
}

.btn-nav:hover {
    background: linear-gradient(45deg, #F7931E, #FF6B35) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Intro Video Section (Fullscreen Landing Page Intro) */
.intro-video-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.intro-video-section.hidden {
    display: none !important;
}

.intro-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.intro-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.intro-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    border: none;
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 1;
}

.intro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.5) 100%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.intro-video-content {
    text-align: center;
    color: #fff;
    pointer-events: auto;
    max-width: 900px;
    padding: 0 2rem;
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.intro-video-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.8);
    background: linear-gradient(45deg, #FF6B35, #F7931E, #FF1744);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
    line-height: 1.1;
    letter-spacing: 2px;
}

.intro-video-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    color: #ffffff;
    font-weight: 500;
    opacity: 0.95;
}

.intro-video-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-intro-video {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.9);
    background: rgba(255,107,53,0.95);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-intro-video:hover {
    background: rgba(255,107,53,1);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.btn-intro-skip {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(15px);
}

.btn-intro-skip:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.9);
}

.intro-video-unmute {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.intro-video-unmute:hover {
    background: rgba(255,107,53,0.9);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.intro-video-unmute.unmuted {
    background: rgba(255,107,53,0.95);
    border-color: #fff;
}

.intro-video-unmute.unmuted i.fa-volume-mute {
    display: none;
}

.intro-video-unmute.unmuted i.fa-volume-up {
    display: block;
}

.intro-video-unmute i.fa-volume-up {
    display: none;
}

@media (max-width: 768px) {
    .intro-video-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    .intro-video-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .btn-intro-video {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    .intro-video-content {
        bottom: 6vh;
        padding: 0 1.5rem;
    }
    .intro-video-unmute {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Hero Section (Soccer Master: overlay lebih cerah, tidak full 100vh agar Live Match tidak tertutup) */
.hero-wrapper {
    position: relative;
    min-height: 75vh;
    padding: 2rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../images/bg_soccer.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Slider hero (3 gambar dari CMS) */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(28,40,55,0.78), rgba(22,45,70,0.72));
    z-index: 1;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,53,0.08), rgba(247,147,30,0.08));
    z-index: 2;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.hero-content, .mascot-float {
    position: relative;
    z-index: 3;
}

/* Enhanced Match Widget - Soccer Master Style */
.match-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    max-width: 550px;
    animation: slideUp 1.2s ease-out 0.8s backwards;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.match-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.match-widget > div:first-child {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(247, 147, 30, 0.5);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.match-teams::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,23,68,0.2), transparent);
    border-radius: 50%;
    z-index: 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 35%;
    transition: transform 0.3s ease;
}

.team:hover {
    transform: scale(1.05);
}

.team img {
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    transition: all 0.3s ease;
}

.team:hover img {
    filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.8));
    transform: rotate(5deg);
}

.team span {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
    z-index: 1;
    position: relative;
    animation: pulseVs 2s ease-in-out infinite;
}

@keyframes pulseVs {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.match-info {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
}

.match-info span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match-info i {
    color: var(--secondary-color);
}

.btn-small {
    background: linear-gradient(45deg, var(--accent-color), #FF6B35);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-small:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-small:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Hero content: lebar ~92% agar tidak terlalu banyak space kiri/kanan */
.hero-content {
    z-index: 3;
    text-align: center;
    max-width: min(1280px, 92vw);
    width: 100%;
    padding: 2.5rem 2rem;
    background: rgba(30, 42, 58, 0.7);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 107, 53, 0.35);
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    position: relative;
    overflow: visible;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,107,53,0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #FF6B35, #F7931E, #FF1744);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: gradientMove 3s ease infinite, titleGlow 2s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.6)); }
    to { filter: drop-shadow(0 0 40px rgba(247, 147, 30, 0.8)); }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-tagline {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    color: #f0f0f0;
    font-weight: 600;
}

.hero-tagline .fa-trophy {
    color: var(--secondary-color);
    margin-right: 8px;
}

.hero-tagline .fa-trophy:last-of-type {
    margin-right: 0;
    margin-left: 8px;
}

.countdown-box {
    margin-top: 2.5rem;
    background: rgba(0,0,0,0.45);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,107,53,0.35);
}

.countdown-label {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(255,107,53,0.5);
}

.countdown-item small {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Next Match: kiri = logo tim + VS, kanan = countdown + background lapangan */
.next-match-in-hero {
    margin-top: 2rem;
    padding-top: 0;
    overflow: visible;
}

.next-match-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,107,53,0.3);
}

.next-match-left {
    background: linear-gradient(180deg, rgba(220,50,50,0.9) 0%, rgba(220,50,50,0.85) 70%, rgba(247,147,30,0.9) 70%, rgba(247,147,30,0.95) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.team-vs-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.team-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.next-match-left .team-logo-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-match-left .team-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.next-match-left .team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.vs-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

.next-match-left .btn-live {
    margin-top: 0.25rem;
    padding: 10px 22px;
    font-size: 0.9rem;
}

.next-match-right {
    background: url('../images/stadium.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.next-match-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(20,40,60,0.75) 100%);
    z-index: 0;
}

.next-match-right-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem;
}

.next-match-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(255,107,53,0.4);
}

.next-match-countdown {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.next-match-countdown span {
    color: var(--primary-color);
    font-weight: 800;
    margin: 0 2px;
}

.next-match-datetime,
.next-match-venue {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    margin: 0.25rem 0;
}

.next-match-venue i {
    color: var(--secondary-color);
    margin-right: 6px;
}

/* Countdown hilang saat hari H (class .countdown-expired dipakai JS) */
.countdown-box.countdown-expired,
.next-match-countdown.countdown-expired {
    display: none !important;
}

/* Fallback: team-vs-block dipakai di halaman lain */
.team-vs-block { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.team-side { flex: 1; min-width: 120px; text-align: center; }
.team-logo-wrap {
    width: 72px; height: 72px; margin: 0 auto 0.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; overflow: hidden;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,107,53,0.3);
}
.team-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.team-name { font-size: 1rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.score-block { flex: 0 0 auto; text-align: center; padding: 0 0.75rem; }
.score-value { display: block; font-size: 2rem; font-weight: 900; color: var(--primary-color); }
.score-vs { display: block; font-size: 0.85rem; color: var(--secondary-color); font-weight: 700; margin: 0.2rem 0 0.5rem; }
.match-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: #c0c0c0; }
.match-meta span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.live-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 3px; color: var(--secondary-color); padding: 6px 14px; background: rgba(247,147,30,0.15); border: 1px solid rgba(247,147,30,0.4); border-radius: 20px; }

.btn-live {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ee1e46, #FF6B35);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 20px rgba(238,30,70,0.35);
}

.btn-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(238,30,70,0.5);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.mascot-float {
    position: absolute;
    bottom: 50px;
    right: 50px;
    height: 400px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Enhanced Buttons - More Dynamic */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    background: linear-gradient(45deg, #F7931E, #FF6B35);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    border: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(247, 147, 30, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.4);
    border-color: var(--secondary-color);
}

.btn-secondary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Enhanced Categories Section */
.categories-section {
    padding: 5rem 2rem;
    position: relative;
    background: linear-gradient(135deg, #243447 0%, #1e2a3a 50%, #1a2734 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,107,53,0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(247,147,30,0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(255,23,68,0.1) 0%, transparent 30%);
    animation: floatingOrbs 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, #FF6B35, #F7931E, #FF1744);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: gradientMove 3s ease infinite, titleGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.card-visual {
    margin-bottom: 1.5rem;
}

.card-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    border: 2px solid rgba(247,147,30,0.5);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-cta:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Tim & Peserta per lomba — klik ke detail roster + gambar */
.participants-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(26, 42, 58, 0.6) 0%, rgba(30, 42, 58, 0.9) 100%);
    position: relative;
    overflow: hidden;
}
.participants-section .section-title {
    margin-bottom: 0.75rem;
}
.participants-section .section-desc {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: #b0b8c0;
    font-size: 1rem;
}
.participants-by-category {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.participants-category-block {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}
.participants-cat-title {
    font-size: 1.35rem;
    margin: 0 0 1.25rem 0;
    color: var(--secondary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.participants-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.5) transparent;
}
.participants-grid::-webkit-scrollbar { height: 8px; }
.participants-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.participants-grid::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.5); border-radius: 4px; }
.participants-grid::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.7); }
.participant-card {
    flex: 0 0 200px;
    height: 280px;
    position: relative;
    perspective: 1000px;
    scroll-snap-align: start;
}
.participant-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}
.participant-card.flipped .participant-card-inner {
    transform: rotateY(180deg);
}
.participant-card-front,
.participant-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.participant-card-back {
    transform: rotateY(180deg);
    background: rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
}
.participant-card:hover .participant-card-front {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.participant-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.participant-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.participant-card-name {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.participant-card-meta {
    font-size: 0.85rem;
    color: #9aa0a6;
    margin-bottom: 0.75rem;
}
.participant-card-cta {
    font-size: 0.8rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}
.participant-card-back {
    cursor: pointer;
}
.participant-card-back .participant-card-details {
    text-align: center;
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.6;
}
.participant-card-back .participant-card-details strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.participant-card-back .participant-card-cta {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}
.participant-card-back .participant-card-cta:hover {
    color: var(--secondary-color);
}
.participants-scroll-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.participants-scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.participants-scroll-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}
.participants-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.participants-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9aa0a6;
    padding: 1.5rem;
    font-size: 0.95rem;
}

/* Jadwal Terdekat & Hasil Terkini */
.schedule-results-section {
    padding: 3rem 2rem;
    background: rgba(26, 42, 58, 0.5);
    position: relative;
}
.schedule-results-section .section-title { margin-bottom: 0.5rem; }
.schedule-results-section .section-desc { margin-bottom: 1.5rem; color: #9aa0a6; font-size: 0.95rem; }
.schedule-list, .results-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.schedule-item, .result-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.schedule-date, .result-meta { font-size: 0.9rem; color: #9aa0a6; }
.schedule-vs, .result-teams { font-weight: 600; color: #fff; flex: 1; min-width: 180px; }
.schedule-cat { font-size: 0.85rem; color: var(--secondary-color); }
.result-score {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* FAQ landing */
.faq-section {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(30, 42, 58, 0.8) 0%, rgba(26, 42, 58, 0.6) 100%);
}
.faq-section .section-desc { margin-bottom: 1.5rem; color: #9aa0a6; }
.faq-list-landing {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}
.faq-answer {
    font-size: 0.95rem;
    color: #c0c8d0;
    line-height: 1.6;
}

/* Lokasi & Peta — section standalone dihapus; lokasi digabung ke footer (lihat .footer-lokasi) */
.map-embed-wrap {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.map-embed-wrap iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

/* Floating Berita — widget rapi kanan bawah, tidak mengganggu */
.floating-berita {
    position: fixed;
    right: 1.5rem;
    top: calc(50% + 200px);
    transform: translateY(-50%);
    z-index: 999;
    font-family: var(--font-main);
}
.floating-berita-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}
.floating-berita-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255,107,53,0.6);
}
.floating-berita-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}
.floating-berita-panel {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 320px;
    max-height: 70vh;
    background: rgba(30, 42, 58, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    backdrop-filter: blur(10px);
}
.floating-berita-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.floating-berita-panel .floating-berita-list {
    padding: 0;
}
.floating-berita-panel .floating-berita-all {
    margin: 1rem;
}
.floating-berita-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
}
.floating-berita-panel-header span {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.floating-berita-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.floating-berita-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.floating-berita-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    max-height: calc(70vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.5) transparent;
}
.floating-berita-list::-webkit-scrollbar { width: 6px; }
.floating-berita-list::-webkit-scrollbar-track { background: transparent; }
.floating-berita-list::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.5); border-radius: 3px; }
.floating-berita-list li { margin: 0; }
.floating-berita-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.floating-berita-list a:hover {
    background: rgba(255, 107, 53, 0.08);
    color: #fff;
    padding-left: 1.25rem;
}
.floating-berita-empty { padding: 0.5rem 0.75rem; color: #8a9098; font-size: 0.85rem; }
.floating-berita-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.floating-berita-all:hover {
    background: rgba(255,107,53,0.2);
    color: var(--secondary-color);
}

/* Floating Jadwal & Hasil: sticky kanan tengah */
.floating-schedule-results {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.floating-sr-quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.floating-sr-quick-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
    position: relative;
}
.floating-sr-quick-link:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255,107,53,0.6);
    color: #fff;
}
.floating-sr-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}
.floating-sr-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255,107,53,0.6);
}
.floating-sr-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}
.floating-sr-panel {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 320px;
    max-height: 70vh;
    background: rgba(30, 42, 58, 0.98);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.floating-sr-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.floating-sr-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.floating-sr-tabs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}
.floating-sr-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #9aa0a6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.floating-sr-tab.active {
    background: rgba(255,107,53,0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.floating-sr-tab:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.floating-sr-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.floating-sr-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.floating-sr-content {
    padding: 1rem;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.5) transparent;
}
.floating-sr-content::-webkit-scrollbar { width: 6px; }
.floating-sr-content::-webkit-scrollbar-track { background: transparent; }
.floating-sr-content::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.5); border-radius: 3px; }
.floating-sr-tab-content {
    display: none;
}
.floating-sr-tab-content.active {
    display: block;
}
.floating-sr-tab-content h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 1rem 0;
    font-weight: 700;
}
.floating-sr-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.floating-sr-item {
    padding: 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.floating-sr-item:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.3);
}
.floating-sr-item-date {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.floating-sr-item-vs {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.floating-sr-item-score {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.booth-item-score {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-top: 0.25rem;
    display: block;
}
.floating-sr-item-cat,
.floating-sr-item-meta {
    font-size: 0.75rem;
    color: #9aa0a6;
}
.floating-sr-empty {
    text-align: center;
    color: #9aa0a6;
    padding: 1.5rem;
    font-size: 0.9rem;
}
.floating-sr-all {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.floating-sr-all:hover {
    background: rgba(255,107,53,0.2);
    color: var(--secondary-color);
}

/* Floating Quick Access: FAQ, Gallery, Video - konsisten dengan Jadwal */
.floating-quick-access {
    position: fixed;
    right: 1.5rem;
    top: calc(50% - 160px);
    transform: translateY(-50%);
    z-index: 997;
}
.floating-qa-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}
.floating-qa-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255,107,53,0.6);
}
.floating-qa-menu {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: rgba(30, 42, 58, 0.98);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    min-width: 200px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.floating-qa-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.floating-qa-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.floating-qa-item:last-child {
    border-bottom: none;
}
.floating-qa-item:hover {
    background: rgba(255,107,53,0.1);
    color: var(--primary-color);
    padding-left: 1.25rem;
}
.floating-qa-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}
@media (max-width: 480px) {
    .floating-berita { top: calc(50% + 200px); right: 1rem; transform: translateY(-50%); }
    .floating-berita-panel { width: calc(100vw - 2rem); max-width: 320px; right: 60px; }
    .floating-schedule-results { right: 1rem; top: 50%; transform: translateY(-50%); gap: 1rem; }
    .floating-sr-panel { width: calc(100vw - 2rem); max-width: 320px; }
    .floating-sr-quick-links { gap: 1rem; }
    .floating-sr-quick-link { width: 50px; height: 50px; font-size: 1.1rem; }
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,107,53,0.1), transparent, rgba(247,147,30,0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

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

.card:hover {
    transform: translateY(-20px) rotateX(5deg);
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3), 
                0 0 60px rgba(255, 107, 53, 0.1),
                inset 0 1px 0 rgba(255,255,255,0.2);
}

.card:active {
    transform: translateY(-10px) rotateX(2deg);
}

.card h3 {
    font-size: 2rem;
    margin: 1.5rem 0;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.card:hover h3 {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
}

.card-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.card:hover .card-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 10px 25px rgba(255, 107, 53, 0.5));
}

.card p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Berita Section – style soccer-master (Latest News: overlay caption + hover zoom + red bar) */
.berita-section.latest-news {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e2a3a 0%, #243447 100%);
    position: relative;
    overflow: hidden;
}

.latest-news .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Judul section dengan strip merah kiri (soccer-master) */
.latest-news .title-section {
    margin-bottom: 1.5rem;
}

.latest-news .title-section .heading {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    position: relative;
    padding-left: 1.75rem;
    margin: 0;
    font-family: var(--font-heading), sans-serif;
}

.latest-news .title-section .heading::before {
    position: absolute;
    content: "";
    width: 10px;
    top: 0;
    left: 0;
    bottom: 0;
    background: #ee1e46;
}

/* Search bar – Cari berita */
.berita-search-wrap {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.berita-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}

.berita-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.berita-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.berita-search-input:focus {
    outline: none;
    border-color: #ee1e46;
    background: rgba(0,0,0,0.35);
}

/* Grid kartu berita */
.latest-news .berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

/* Kartu post-entry (soccer-master): gambar full + overlay caption + hover */
.latest-news .post-entry {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.latest-news .post-entry a {
    display: block;
    height: 100%;
}

.latest-news .post-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1);
}

/* Strip merah bawah (muncul saat hover) */
.latest-news .post-entry::before {
    content: "";
    width: 0;
    height: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    background-color: #ee1e46;
    z-index: 2;
}

/* Overlay caption di atas gambar */
.latest-news .post-entry .caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.latest-news .post-entry .caption::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.latest-news .post-entry .caption .caption-inner {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.latest-news .post-entry .caption .caption-inner h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-family: var(--font-heading), sans-serif;
}

.latest-news .post-entry .berita-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Hover: zoom gambar + overlay lebih gelap + strip merah penuh */
.latest-news .post-entry:hover img {
    transform: scale(1.1);
}

.latest-news .post-entry:hover .caption::before {
    background: rgba(0, 0, 0, 0.7);
}

.latest-news .post-entry:hover::before {
    width: 100%;
}

.latest-news .section-cta {
    text-align: center;
    margin-top: 2rem;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Container halaman: proporsional kiri-kanan, tidak terlalu banyak space kosong */
.page-container {
    width: 100%;
    max-width: min(1280px, 92vw);
    margin: 0 auto;
    padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

/* Halaman Berita – layout proporsional sama seperti halaman lain */
.berita-page-wrap {
    width: 100%;
    max-width: min(1280px, 92vw);
    margin: 0 auto;
    padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

.berita-page-wrap .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.berita-page-wrap .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Search berita di halaman berita */
.berita-page-wrap .berita-search-wrap {
    max-width: 480px;
    margin-bottom: 2rem;
}

.berita-page-wrap .berita-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.berita-page-wrap .berita-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.berita-page-wrap .berita-search-input:focus {
    outline: none;
    border-color: #ee1e46;
    background: rgba(0,0,0,0.35);
}

.berita-page-wrap .berita-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
}

/* Label jumlah berita (ala detik.com) */
.berita-count-label {
    font-size: 0.9rem;
    color: #aaa;
    margin: -0.5rem 0 1rem 0;
}

.latest-news .berita-count-label {
    text-align: center;
    margin-bottom: 1rem;
}

/* Tab kategori berita (emoji ala detik.com) */
.tabs.berita-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 0;
    margin-bottom: 2rem;
}

.tabs.berita-tabs .tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 10px;
    color: #ccc;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tabs.berita-tabs .tab-btn:hover {
    background: rgba(255, 107, 53, 0.15);
    color: #fff;
    border-color: rgba(255,107,53,0.5);
}

.tabs.berita-tabs .tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Badge kategori berita dengan emoji */
.cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cat-badge.cat-futsal {
    background: var(--primary-color);
    color: white;
}

.cat-badge.cat-tari {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

.cat-badge.cat-esport {
    background: var(--accent-color);
    color: white;
}

/* Pagination berita */
.pagination-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.pagination-link.active {
    background: #ee1e46;
    border-color: #ee1e46;
    color: #fff;
}

.pagination-item.disabled .pagination-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Galeri Section */
.galeri-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #243447 0%, #1e2a3a 100%);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.galeri-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid rgba(255,107,53,0.2);
    transition: all 0.3s ease;
}

.galeri-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255,107,53,0.25);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e2a3a 0%, #243447 100%);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,107,53,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255,107,53,0.2);
}

.video-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,107,53,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-color);
}

.video-card h3 {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

/* Section Sponsor (layer khusus — CMS isi #sponsor-list) */
.sponsor-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e2a3a 0%, #243447 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.sponsor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.5), transparent);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    align-items: center;
    gap: 2.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    min-height: 120px;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    border: 2px solid rgba(255, 107, 53, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sponsor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.15), transparent);
    transition: left 0.6s ease;
}

.sponsor-item:hover::before {
    left: 100%;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2) brightness(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.sponsor-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255,107,53,0.3), 0 0 0 1px rgba(255,107,53,0.1);
}

.sponsor-item:hover img {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.1);
}

/* Responsive untuk sponsor */
@media (max-width: 768px) {
    .sponsor-section {
        padding: 3rem 1.5rem;
    }
    
    .sponsor-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem 2rem;
    }
    
    .sponsor-item {
        max-width: 180px;
        min-height: 100px;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .sponsor-item {
        max-width: 100%;
        min-height: 90px;
        padding: 1rem;
    }
}

/* Footer (CMS: #footer-logo, #footer-desc, #footer-links, #footer-social, #footer-copyright) */
footer {
    background: linear-gradient(135deg, #1a2430 0%, #1e2a3a 100%);
    padding: 3rem 2rem 1.5rem;
    margin-top: 0;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
    align-items: start;
}
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* Footer: Lokasi & Peta — tinggi sejajar konten footer, lebar mengisi kolom, responsif */
.footer-lokasi {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.footer-lokasi h4 { font-size: 0.95rem; }
.footer-venue-name { font-weight: 600; color: #e8eaed; margin: 0 0 0.35rem 0; font-size: 0.9rem; }
.footer-venue-address { color: #9aa0a6; font-size: 0.8rem; line-height: 1.4; margin: 0 0 0.4rem 0; }
.footer-map-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.footer-map-link:hover { color: var(--primary-color); }
.footer-map-wrap {
    margin-top: 0.4rem;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    min-height: 180px;
    height: clamp(180px, 24vw, 240px);
    max-height: 240px;
    background: rgba(0,0,0,0.2);
}
.footer-map-wrap iframe {
    width: 100% !important;
    min-width: 100%;
    height: 100% !important;
    min-height: 180px;
    border: 0;
    display: block;
}
@media (max-width: 900px) {
    .footer-map-wrap { height: clamp(160px, 28vw, 200px); max-height: 200px; }
    .footer-map-wrap iframe { min-height: 160px; }
}
@media (max-width: 500px) {
    .footer-map-wrap { height: clamp(180px, 50vw, 220px); max-height: 220px; }
    .footer-map-wrap iframe { min-height: 180px; }
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer #footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.4));
    transition: transform 0.3s ease;
}

footer #footer-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Icon media sosial di footer */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social .social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.footer-links a:hover {
    color: var(--secondary-color);
    background: none;
    transform: none;
    box-shadow: none;
}

.footer-contact p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

#footer-copyright {
    color: #a0a0a0;
    font-weight: 500;
}

.footer-credit {
    font-size: 0.8rem !important;
    color: #a0a0a0;
}

.footer-credit a {
    color: #c8d4e0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    color: var(--primary-color);
}

.footer-credit .fa-heart {
    color: var(--accent-color);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .logo img,
    #header-logo {
        height: 44px;
    }
    
    #header-logo-text {
        font-size: 1.3rem;
    }
    
    /* Stadium Nav Responsive - Tablet */
    @media (max-width: 1024px) {
        .stadium-nav-main {
            grid-template-columns: 1fr auto;
            gap: 1rem;
        }
        
        .stadium-main-gate {
            max-width: 200px;
        }
        
        .stadium-nav-center {
            display: none;
        }
        
        .stadium-gates {
            grid-column: 1 / -1;
            order: 3;
        }
        
        .stadium-ticket-booths {
            order: 2;
        }
        
        .gate-label {
            font-size: 0.6rem;
        }
        
        .gate-name {
            font-size: 0.8rem;
        }
        
        .nav-stats {
            gap: 1rem;
        }
        
        .nav-stat-item {
            min-width: 60px;
            padding: 0.4rem 0.6rem;
        }
        
        .stat-value {
            font-size: 1rem;
        }
    }
    
    /* Stadium Nav Responsive - Mobile */
    @media (max-width: 768px) {
        .stadium-nav-track {
            padding: 0.5rem 1rem;
        }
        
        .stadium-nav-main {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .stadium-main-gate {
            order: 1;
            width: 100%;
            max-width: 100%;
            padding: 0.6rem 1rem;
        }
        
        .gate-icon {
            font-size: 1.2rem;
        }
        
        .gate-label {
            font-size: 0.6rem;
        }
        
        .live-indicator {
            font-size: 0.7rem;
        }
        
        .stadium-gates {
            order: 2;
            width: 100%;
            justify-content: stretch;
            gap: 0.5rem;
        }
        
        .stadium-gate {
            flex: 1;
            min-width: 0;
            padding: 0.5rem 0.75rem;
        }
        
        .gate-number {
            font-size: 0.6rem;
        }
        
        .gate-name {
            font-size: 0.75rem;
        }
        
        .stadium-ticket-booths {
            order: 3;
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.4rem;
        }
        
        .booth-btn {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
        
        .stadium-nav-toggle {
            display: flex;
        }
        
        .stadium-nav-track {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            padding: 0;
        }
        
        .stadium-nav.active .stadium-nav-track {
            max-height: 600px;
            padding: 1rem;
        }
        
        .location-indicator .booth-label {
            display: none;
        }
        
    .booth-dropdown {
        width: calc(100vw - 2rem);
        max-width: 320px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .ticket-booth.has-dropdown:hover .booth-dropdown,
    .ticket-booth.has-dropdown.active .booth-dropdown {
        transform: translateX(-50%) translateY(0);
    }
    
    .booth-search-panel {
        position: fixed;
        bottom: 2rem;
        right: 1rem;
        left: auto;
        width: calc(100vw - 2rem);
        max-width: 400px;
        transform: translateY(20px) scale(0.95);
    }
    
    #search-booth.active .booth-search-panel {
        transform: translateY(0) scale(1);
    }
    }
    
    .main-nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .main-nav .dropdown-menu {
        left: 50%;
        transform: translate(-50%, -8px);
    }
    .main-nav .has-dropdown:hover .dropdown-menu {
        transform: translate(-50%, 0);
    }
    
    .hero-wrapper {
        min-height: 70vh;
        padding: 2rem 1rem 2.5rem;
    }
    
    .hero-content {
        padding: 2rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .next-match-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .next-match-right {
        min-height: 180px;
    }
    .next-match-left {
        padding: 1.25rem 1.5rem;
    }
    .team-vs-compact {
        gap: 1rem;
    }
    .team-vs-block {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .score-block {
        order: 0;
        width: 100%;
        border-top: 1px solid rgba(255,107,53,0.2);
        border-bottom: 1px solid rgba(255,107,53,0.2);
        padding: 1rem 0;
    }
    
    .team-side {
        min-width: 100%;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .match-widget {
        margin-top: 30px;
        padding: 25px 20px;
    }
    
    .match-teams {
        gap: 15px;
    }
    
    .team {
        width: 40%;
    }
    
    .team img {
        height: 50px;
    }
    
    .vs {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 5px;
    }
    
    .btn-secondary {
        margin-left: 5px;
    }
    
    .categories-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card:hover {
        transform: translateY(-10px);
    }
    
    .mascot-float {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
    
    .card h3 {
        font-size: 1.6rem;
    }
    
    .match-widget {
        padding: 20px 15px;
    }
    
    .team img {
        height: 40px;
    }
    
    .team span {
        font-size: 0.9rem;
    }
    
    .vs {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 3rem 1rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 2px 6px;
    }
}

/* Additional Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.card:hover {
    will-change: transform, box-shadow;
}

.btn:hover {
    will-change: transform, box-shadow;
}

.hero-title {
    will-change: transform, filter;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Bracket Modal Styles */
.bracket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bracket-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.bracket-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.bracket-modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--light-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.bracket-modal[aria-hidden="false"] .bracket-modal-content {
    transform: scale(1);
}

.bracket-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.bracket-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.bracket-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.bracket-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.bracket-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--dark-bg);
}

.bracket-modal-body iframe {
    width: 100%;
    height: 600px;
    min-height: 600px;
    border: 1px #FFFFFF none;
    display: block;
    background: white;
}

.bracket-modal-fallback {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--light-text);
}

.bracket-modal-fallback p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
}

.bracket-modal-fallback .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bracket-modal-fallback .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

[data-theme="light"] .bracket-modal-content {
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .bracket-modal-body {
    background: #f5f5f5;
}

[data-theme="light"] .bracket-modal-fallback p {
    color: #666;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .bracket-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .bracket-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .bracket-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .bracket-modal-body iframe {
        height: 500px;
        min-height: 500px;
    }
}

/* Tari Page - Dance Theme Styles */
.tari-page-wrapper {
    position: relative;
    overflow: hidden;
}

/* Background Pattern dengan motif tradisional */
.tari-page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 107, 53, 0.02) 2px,
            rgba(255, 107, 53, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
    animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

/* Floating Decorative Elements */
.tari-floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tari-floating-element {
    position: absolute;
    opacity: 0.15;
    color: var(--primary-color);
    font-size: 2rem;
    animation: floatDance 15s ease-in-out infinite;
}

.tari-floating-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.tari-floating-element:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.tari-floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.tari-floating-element:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 6s; }
.tari-floating-element:nth-child(5) { top: 50%; left: 5%; animation-delay: 8s; }
.tari-floating-element:nth-child(6) { top: 60%; right: 5%; animation-delay: 10s; }

@keyframes floatDance {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, -50px) rotate(-5deg);
    }
    75% {
        transform: translate(30px, -20px) rotate(3deg);
    }
}

/* Icon Penari di Headers */
.tari-section-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.tari-section-header .tari-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: danceIcon 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes danceIcon {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-5deg) translateY(-5px); }
    50% { transform: rotate(0deg) translateY(-10px); }
    75% { transform: rotate(5deg) translateY(-5px); }
}

.tari-section-header h3,
.tari-section-header .section-title {
    position: relative;
    z-index: 2;
}

/* Card Hover dengan Sway Effect */
.tari-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tari-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.tari-card:hover::before {
    left: 100%;
}

.tari-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.tari-card:active {
    transform: translateY(-2px) rotate(0deg);
}

/* Participant Card dengan Dance Animation */
.tari-participant-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tari-participant-card:hover {
    transform: translateY(-8px) scale(1.05);
    animation: participantDance 0.6s ease-in-out;
}

@keyframes participantDance {
    0%, 100% { transform: translateY(-8px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-10px) scale(1.05) rotate(-2deg); }
    50% { transform: translateY(-8px) scale(1.05) rotate(0deg); }
    75% { transform: translateY(-10px) scale(1.05) rotate(2deg); }
}

.tari-participant-card img {
    transition: all 0.3s ease;
}

.tari-participant-card:hover img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Smooth Scroll Animations */
.tari-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tari-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.tari-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tari-slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.tari-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tari-slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section dengan Icon Penari */
.tari-hero-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: heroDance 4s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.3));
}

@keyframes heroDance {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }
}

/* Decorative Border untuk Cards */
.tari-card-decorative {
    position: relative;
    padding: 2rem;
}

.tari-card-decorative::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: sparkle 2s ease-in-out infinite;
}

.tari-card-decorative:hover::after {
    opacity: 1;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* Section Divider dengan Pattern */
.tari-section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.tari-section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: dividerFlow 3s ease-in-out infinite;
}

@keyframes dividerFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive untuk Tari Page */
@media (max-width: 768px) {
    .tari-floating-element {
        font-size: 1.5rem;
        opacity: 0.1;
    }
    
    .tari-hero-icon {
        font-size: 3rem;
    }
    
    .tari-section-header .tari-icon {
        font-size: 2rem;
    }
    
    .tari-card:hover {
        transform: translateY(-3px) rotate(0.5deg);
    }
}

[data-theme="light"] .tari-page-wrapper::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.02) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 107, 53, 0.01) 2px,
            rgba(255, 107, 53, 0.01) 4px
        );
}

[data-theme="light"] .tari-floating-element {
    opacity: 0.08;
}

/* Teams Accordion Styles */
.teams-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.accordion-item[aria-expanded="true"] .accordion-icon {
    transform: rotate(90deg);
}

.accordion-title {
    flex: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-item[aria-expanded="true"] .accordion-content {
    max-height: 2000px;
    padding: 1.5rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.team-logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.team-card:hover .team-logo-wrapper {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.team-tooltip {
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.team-card:hover .team-tooltip {
    opacity: 1;
}

.tooltip-school {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.tooltip-team {
    font-size: 0.75rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .team-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 1rem !important;
    }
}

[data-theme="light"] .accordion-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .accordion-header {
    color: var(--light-text);
}

[data-theme="light"] .team-card {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .team-card:hover {
    background: rgba(255, 107, 53, 0.1);
}

[data-theme="light"] .team-logo-wrapper {
    background: rgba(0, 0, 0, 0.05);
}
