/* --- IMPORT GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Saira+Condensed:wght@400;700&family=Sora:wght@300;400;600;700&display=swap');

/* ==========================================================================
   NEXUS ESPORTS - CORE DESIGN SYSTEM & STYLESHEET
   Tactical Dark Gaming Theme with Neon Red/Orange Accents
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-base: #060608;
    --bg-surface: #0c0c10;
    --bg-surface-elevated: #13131a;
    --bg-surface-glass: rgba(12, 12, 16, 0.75);
    
    --primary: #ff2e2e;
    --primary-rgb: 255, 46, 46;
    --primary-hover: #ff5555;
    --secondary: #ff5e00;
    --secondary-rgb: 255, 94, 0;
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3b3;
    --text-muted: #626270;
    --border-color: #22222a;
    --border-glow: rgba(255, 46, 46, 0.2);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-subheading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    --glow-shadow: 0 0 15px rgba(255, 46, 46, 0.4);
    --glow-shadow-strong: 0 0 25px rgba(255, 46, 46, 0.7);
    --clip-path-gaming: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    --clip-path-gaming-sm: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* --- BASE RESETS & SCROLLBAR --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 46, 46, 0.5);
}

/* --- OVERLAY VISUAL EFFECTS --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.4;
}

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 46, 46, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 94, 0, 0.04) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- CORE LAYOUT & CONTAINERS --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(6, 6, 8, 0.95);
    border-bottom: 1px solid rgba(255, 46, 46, 0.3);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Glowing Logo */
.logo-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-glow {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 46, 46, 0.6);
}

.logo-sub {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-left: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover i, .nav-item.active i {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    transition: var(--transition-normal);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- GAMING BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: var(--clip-path-gaming);
    transition: var(--transition-normal);
}

.btn-glowing {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--glow-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glowing:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow-strong);
    filter: brightness(1.1);
}

.btn-glowing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glowing:hover::before {
    left: 120%;
    opacity: 1;
    transition: 0.7s ease-in-out;
}

.btn-outline {
    background: rgba(255, 46, 46, 0.05);
    border: 1.5px solid var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.1);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.btn-header {
    padding: 0.5rem 1.4rem;
    font-size: 1rem;
    clip-path: var(--clip-path-gaming-sm);
}

/* --- DYNAMIC CONTENT VIEWPORT --- */
.content-viewport {
    min-height: calc(100vh - 80px);
    margin-top: 80px; /* Offset for Header */
    padding-bottom: 4rem;
    animation: fadeIn var(--transition-slow);
}

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

/* Loader Styles */
.loader-container {
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gaming-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    margin: 0 4px;
    box-shadow: var(--glow-shadow);
    animation: loaderBounce 1.2s infinite ease-in-out both;
}

.loader-box:nth-child(1) { animation-delay: -0.32s; }
.loader-box:nth-child(2) { animation-delay: -0.16s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; box-shadow: var(--glow-shadow-strong); }
}

.loader-text {
    font-family: var(--font-subheading);
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 8px var(--primary);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* --- SECTIONS COMMON STYLING --- */
.section-spacer {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0.8rem auto 0;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(90deg, #fff 50%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HOME PAGE COMPONENTS --- */

/* Hero Banner */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(6, 6, 8, 0.4) 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tagline-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Hero Graphical Banner (Procedural / Clean Cyberpunk Widget) */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nexus-seal {
    width: 320px;
    height: 320px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateSeal 20s linear infinite;
    box-shadow: 0 0 30px rgba(255, 46, 46, 0.05);
}

.nexus-seal::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 2px dashed rgba(255, 46, 46, 0.3);
    border-radius: 50%;
}

.nexus-seal::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px solid rgba(255, 46, 46, 0.15);
    border-radius: 50%;
}

.nexus-seal-core {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 46, 46, 0.1) 0%, transparent 70%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateSealReverse 10s linear infinite;
    box-shadow: var(--glow-shadow);
}

.seal-logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary);
    transform: rotate(0deg); /* Counteracts parent rotate */
}

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

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

.hero-stats-badge {
    position: absolute;
    bottom: -20px;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 46, 46, 0.3);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    clip-path: var(--clip-path-gaming-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--glow-shadow);
    z-index: 2;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.badge-text {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Home Layout Content Grid */
.home-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    margin-top: 4rem;
}

/* Matches Panel */
.matches-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.match-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--text-muted);
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.match-card.live {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(255, 46, 46, 0.05) 0%, var(--bg-surface-elevated) 100%);
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.05);
}

.match-team {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.team-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #202028;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.match-team.team-a .team-logo-placeholder {
    border-right: 2px solid var(--primary);
}
.match-team.team-b .team-logo-placeholder {
    border-left: 2px solid var(--secondary);
}

.team-name {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.match-vs {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.vs-badge {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-secondary);
}

.match-card.live .vs-badge {
    color: var(--primary);
    border-color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
    animation: pulse 1s infinite alternate;
}

.match-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.match-card.live .match-time {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.game-tag {
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffaa00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stream Widget */
.stream-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stream-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
}

.stream-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

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

.stream-offline-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #09090c 0%, #151520 100%);
    color: var(--text-secondary);
}

.stream-offline-placeholder i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* Sponsor Band */
.sponsor-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

.sponsor-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.sponsor-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.sponsor-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sponsor-logo:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* --- TEAMS & PLAYERS PAGE --- */
.roster-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.tab-btn {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2.5rem;
    cursor: pointer;
    clip-path: var(--clip-path-gaming-sm);
    transition: var(--transition-normal);
}

.tab-btn:hover, .tab-btn.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Highly Interactive Player Cards */
.player-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 400px;
    clip-path: var(--clip-path-gaming);
    transition: var(--transition-normal);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 3;
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.15);
}

.player-img-area {
    position: relative;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, #181822 0%, #0d0d12 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

/* Procedural Player Shadow Avatar */
.player-avatar-placeholder {
    width: 140px;
    height: 180px;
    background: radial-gradient(ellipse at bottom, var(--primary) 0%, transparent 70%);
    position: relative;
    margin-bottom: -10px;
    border-radius: 80px 80px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
}

.player-avatar-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    transition: var(--transition-normal);
}

.player-card:hover .player-avatar-placeholder i {
    color: rgba(255, 46, 46, 0.3);
    text-shadow: 0 0 15px var(--primary);
    transform: scale(1.05);
}

.player-role-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    color: #fff;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.player-details {
    padding: 1.5rem;
    background: var(--bg-surface-elevated);
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.player-card:hover .player-details {
    background: var(--bg-surface);
}

.player-ign {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.player-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating Stats overlay on hover */
.player-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: rgba(12, 12, 16, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    z-index: 4;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

.player-card:hover .player-stats-overlay {
    opacity: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
}

.stat-label {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- TOURNAMENTS PAGE --- */

/* Tournament Grid & Standings */
.tournament-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
}

.bracket-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
}

/* Brackets Flex Visualization */
.bracket-rounds {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
    flex-grow: 1;
}

.round-title {
    font-family: var(--font-subheading);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.bracket-match {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    padding: 0.8rem;
    position: relative;
    clip-path: var(--clip-path-gaming-sm);
}

.bracket-match::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.bracket-round:last-child .bracket-match::after {
    display: none;
}

.bracket-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-subheading);
    font-size: 1rem;
}

.bracket-team-row.winner {
    color: #fff;
    font-weight: 700;
}

.bracket-team-row.winner::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--primary);
    margin-right: 0.4rem;
}

.bracket-score {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

.winner .bracket-score {
    color: var(--primary);
}

/* Standings Leaderboard */
.standings-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
}

.standings-table th, .standings-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.standings-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.standings-rank {
    font-family: var(--font-heading);
    font-weight: 900;
    width: 40px;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.standings-pts {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    text-align: right;
}

/* --- NEWS & ARTICLES PAGE --- */
.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1.2rem;
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.filter-tag:hover, .filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.2);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition-normal);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.1);
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 46, 46, 0.4);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.news-img {
    height: 200px;
    background: linear-gradient(135deg, #181822 0%, #0c0c10 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-img i {
    font-size: 3.5rem;
    color: rgba(255, 46, 46, 0.15);
    transition: var(--transition-normal);
}

.news-card:hover .news-img i {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary);
}

.news-category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-subheading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.news-card-title:hover {
    color: var(--primary);
}

.news-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-read-more {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.news-read-more i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.news-read-more:hover i {
    transform: translateX(5px);
}

/* Modal Overlay for Blog Articles */
.news-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    clip-path: var(--clip-path-gaming);
    padding: 3rem;
    position: relative;
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.modal-body {
    margin-top: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* --- GALLERY PAGE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 220px;
    background: #101015;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    clip-path: var(--clip-path-gaming-sm);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Procedural Video/Thumbnail placeholders */
.gallery-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #101015 0%, #1c1c28 100%);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.gallery-thumbnail i {
    font-size: 3rem;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-thumbnail {
    background: linear-gradient(135deg, #151520 0%, var(--primary) 200%);
    color: #fff;
}

.gallery-item:hover .gallery-thumbnail i {
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.gallery-type {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

/* --- RECRUITMENT / JOIN PAGE --- */
.recruitment-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.recruitment-info {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
}

.info-bullet {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.info-bullet i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.info-bullet h4 {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.recruitment-form-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Cybernetic Inputs */
input, select, textarea {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 3px;
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success notification message styling */
.form-success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 200, 80, 0.1);
    border: 1px solid #00c850;
    color: #00c850;
    border-radius: 3px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn var(--transition-normal);
}

/* --- CONTACT PAGE --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-radius: 4px;
}

.contact-card i {
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 46, 46, 0.3);
}

.contact-text h4 {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.contact-text p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.2rem;
}

.discord-cta-panel {
    background: linear-gradient(135deg, #5865F2 0%, #2e3b9e 100%);
    clip-path: var(--clip-path-gaming);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.discord-cta-panel h3 {
    font-size: 1.8rem;
    color: #fff;
}

.discord-cta-panel p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

/* --- FOOTER STYLING --- */
.site-footer {
    background: #040406;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-heading {
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-subheading);
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: #00c850;
    box-shadow: 0 0 8px #00c850;
    animation: flash 1.5s infinite alternate;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-graphic { order: -1; }
    .nexus-seal { width: 260px; height: 260px; }
    .nexus-seal-core { width: 140px; height: 140px; }
    .seal-logo-text { font-size: 2rem; }
    
    .home-grid, .tournament-layout, .recruitment-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .header-container { padding: 1rem; }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-surface-elevated);
        border-left: 1px solid var(--border-color);
        padding: 3rem 2rem;
        transition: var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.8rem;
    }
    
    .nav-item { font-size: 1.3rem; }
    .header-cta { display: none; } /* Hide header CTA on mobile, link is in footer or home */
    
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box input {
        width: 100%;
    }
    .search-box input:focus {
        width: 100%;
    }
    
    .discord-cta-panel {
        flex-direction: column;
        text-align: center;
    }
}

/* --- CMS & DASHBOARD CONSOLE STYLING --- */
.cms-input, .cms-select, .cms-textarea {
    width: 100%;
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
    padding: 0.9rem 1.2rem !important;
    font-size: 1rem !important;
    font-family: var(--font-body) !important;
    transition: var(--transition-fast) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.cms-select {
    cursor: pointer;
    font-family: var(--font-subheading) !important;
}

.cms-input:focus, .cms-select:focus, .cms-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(255, 46, 46, 0.3) !important;
    background: var(--bg-surface) !important;
}

.cms-input-monospace {
    font-family: monospace !important;
    font-size: 0.95rem !important;
}

.cms-textarea {
    resize: vertical !important;
    line-height: 1.6 !important;
}

.cms-textarea-summary {
    min-height: 160px !important;
}

.cms-textarea-body {
    min-height: 520px !important;
}

.cms-textarea-desc {
    min-height: 180px !important;
}

.cms-textarea-action {
    min-height: 250px !important;
    font-family: monospace !important;
    font-size: 0.95rem !important;
}

/* Wider dashboard container specifically for content managers */
.dashboard-wide-container {
    max-width: 1600px !important;
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* ==========================================================================
   WORLD CUP 2026 - REFERENCE PORTAL STYLING
   Inspired by unite8sports.in Layout, Colors & Typography
   ========================================================================== */

:root {
    --wc-bg: #0c0d14;
    --wc-surface: #14161f;
    --wc-surface-elevated: #1a1d29;
    --wc-gold: #e7c267;
    --wc-gold-rgb: 231, 194, 103;
    --wc-gold-hover: #f3d382;
    --wc-border: #2a2e3f;
    --wc-gold-glow: 0 0 15px rgba(231, 194, 103, 0.3);
    --wc-gold-glow-strong: 0 0 25px rgba(231, 194, 103, 0.6);
}

/* --- TYPOGRAPHY HELPERS --- */
.anton-font {
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase;
}
.saira-font {
    font-family: 'Saira Condensed', sans-serif !important;
    text-transform: uppercase;
}
.sora-font {
    font-family: 'Sora', sans-serif !important;
}

/* --- HERO PARALLAX & TROPHY WIDGET --- */
.wc-hero-banner {
    position: relative;
    width: 100%;
    padding: 4rem 3rem;
    background: linear-gradient(180deg, rgba(12, 13, 20, 0.4) 0%, var(--wc-bg) 100%), url('/assets/world_cup_banner.png') center/cover no-repeat;
    border: 1px solid var(--wc-border);
    clip-path: var(--clip-path-gaming);
    margin-bottom: 3rem;
    overflow: hidden;
}

.wc-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(231, 194, 103, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.wc-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.wc-hero-badge {
    background: rgba(231, 194, 103, 0.1);
    border: 1px solid var(--wc-gold);
    color: var(--wc-gold);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    clip-path: var(--clip-path-gaming-sm);
    text-shadow: var(--wc-gold-glow);
}

.wc-hero-title {
    font-size: 3.8rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.wc-hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 550px;
}

/* 3D Trophy Stage Rendering */
.wc-stage-container {
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.wc-stage-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px dashed rgba(231, 194, 103, 0.2);
    transform: rotateX(75deg);
    animation: rotateRing 30s linear infinite;
    bottom: 20px;
}

.wc-stage-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(231, 194, 103, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    bottom: 90px;
    animation: pulseGlow 3s infinite alternate ease-in-out;
}

.wc-giant-2026 {
    position: absolute;
    font-size: 10rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    pointer-events: none;
    letter-spacing: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
}

.wc-floating-trophy {
    position: absolute;
    width: 220px;
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.7)) drop-shadow(0 0 15px rgba(231, 194, 103, 0.15));
    animation: floatTrophy 4s infinite ease-in-out;
}

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

@keyframes pulseGlow {
    from { transform: scale(0.9); opacity: 0.6; }
    to { transform: scale(1.15); opacity: 1; }
}

@keyframes floatTrophy {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- STATS STRIP --- */
.wc-stats-strip {
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    border-top: 1.5px solid var(--wc-gold);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.8rem;
    margin-bottom: 3rem;
    clip-path: var(--clip-path-gaming-sm);
}

.wc-stat-item {
    text-align: center;
    border-right: 1px solid var(--wc-border);
}

.wc-stat-item:last-child {
    border-right: none;
}

.wc-stat-number {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 20%, var(--wc-gold) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.wc-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
}

/* --- 3D MATCH CARDS --- */
.wc-match-card {
    background: var(--wc-surface-elevated);
    border: 1px solid var(--wc-border);
    padding: 1.8rem;
    position: relative;
    clip-path: var(--clip-path-gaming);
    transition: var(--transition-normal);
}

.wc-match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--wc-gold), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.wc-match-card:hover {
    transform: translateY(-5px);
    border-color: var(--wc-gold);
    box-shadow: 0 10px 25px rgba(231, 194, 103, 0.08);
}

.wc-match-card:hover::before {
    opacity: 1;
}

.wc-flag-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #202230;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- LIGHT THEME GROUP STANDINGS --- */
.wc-standings-card {
    background: linear-gradient(170deg, #ffffff, #edf0f5) !important;
    border: 1px solid #d4dbe8 !important;
    padding: 2.2rem;
    clip-path: var(--clip-path-gaming);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.wc-standings-title {
    color: #0b2350 !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1.5px solid #d4dbe8;
    padding-bottom: 0.8rem;
}

.wc-standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #3b4e6d;
}

.wc-standings-table th {
    font-family: 'Saira Condensed', sans-serif !important;
    font-weight: 700;
    color: #5c6f8f;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.5rem;
    border-bottom: 1.5px solid #d4dbe8;
    text-align: center;
}

.wc-standings-table th:nth-child(2) {
    text-align: left;
}

.wc-standings-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    font-weight: 600;
}

.wc-standings-table td:nth-child(2) {
    text-align: left;
    color: #0b2350;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wc-standings-table tbody tr:hover {
    background: rgba(226, 232, 240, 0.5);
}

/* Highlight qualifying slots with green highlights */
.wc-row-qualified {
    border-left: 3.5px solid #00c850;
    background: rgba(0, 200, 80, 0.03);
}

/* --- HORIZONTAL BRACKET TRACKER --- */
.wc-bracket-scroller {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    margin: 2rem 0 3rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--wc-gold) var(--wc-bg);
}

.wc-bracket-scroller::-webkit-scrollbar {
    height: 6px;
}
.wc-bracket-scroller::-webkit-scrollbar-thumb {
    background: var(--wc-gold);
    border-radius: 3px;
}

.wc-bracket-scroller::-webkit-scrollbar-track {
    background: var(--wc-border);
}

.wc-bracket-flow {
    display: flex;
    gap: 3rem;
    min-width: 1300px;
    padding: 0 1rem;
    align-items: stretch;
}

.wc-bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 250px;
    flex-shrink: 0;
}

.wc-bracket-header {
    text-align: center;
    font-size: 0.95rem;
    color: var(--wc-gold);
    font-weight: 700;
    border-bottom: 1.5px solid var(--wc-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.wc-bracket-node {
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    padding: 0.8rem;
    clip-path: var(--clip-path-gaming-sm);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1.5rem 0;
    position: relative;
}

.wc-bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
}

.wc-bracket-team.winner {
    color: #fff;
    font-weight: 700;
    background: rgba(231, 194, 103, 0.04);
}

.wc-bracket-score {
    font-family: monospace;
    font-weight: 700;
    color: var(--wc-gold);
}

/* Bracket connection lines overlay helpers */
.wc-bracket-node::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--wc-border);
    z-index: 1;
}

.wc-bracket-column:last-child .wc-bracket-node::after {
    display: none;
}

/* Responsive fixes for World Cup center */
@media (max-width: 992px) {
    .wc-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .wc-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .wc-stage-container {
        height: 320px;
    }
    .wc-stats-strip {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .wc-stat-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 576px) {
    .wc-stats-strip {
        grid-template-columns: 1fr;
    }
    .wc-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--wc-border);
        padding-bottom: 1rem;
    }
    .wc-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .wc-hero-title {
        font-size: 2.8rem;
    }
}


/* ==========================================================================
   NEXUS ESPORTS - REMODELED TOURNAMENT HOME
   ========================================================================== */

.remodel-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 225, 255, 0.13), transparent 28rem),
        radial-gradient(circle at 85% 20%, rgba(134, 80, 255, 0.16), transparent 24rem),
        linear-gradient(180deg, rgba(255, 46, 46, 0.06), transparent 45%);
}

.remodel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

.remodel-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.remodel-title {
    max-width: 11ch;
    margin: 1rem 0 1.25rem;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-transform: none;
}

.remodel-desc {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.8;
}

.remodel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.remodel-stats div,
.event-console,
.tournament-feature,
.operator-list div,
.nexus-intel-card,
.community-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 16, 25, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.remodel-stats div {
    padding: 1rem;
    clip-path: var(--clip-path-gaming-sm);
}

.remodel-stats strong {
    display: block;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.remodel-stats span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.event-console {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2rem);
    clip-path: var(--clip-path-gaming);
    overflow: hidden;
}

.event-console::after {
    content: '';
    position: absolute;
    right: -20%;
    bottom: -18%;
    width: 70%;
    height: 45%;
    background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.22), transparent);
    transform: rotate(-14deg);
}

.console-header,
.tournament-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #00e1ff;
    font-family: var(--font-subheading);
    font-weight: 800;
    letter-spacing: 1px;
}

.event-console h2 {
    margin-top: 1.2rem;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.95;
}

.event-console p {
    max-width: 34rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.console-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.console-matrix div {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.28);
}

.console-matrix span,
.tournament-top small,
.intel-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.remodel-section {
    background: linear-gradient(180deg, transparent, rgba(0, 225, 255, 0.025), transparent);
}

.remodel-header p {
    max-width: 760px;
    margin: 0 auto;
}

.tournament-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tournament-feature {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.3rem;
    clip-path: var(--clip-path-gaming-sm);
}

.tournament-feature h3 {
    font-size: 1.65rem;
}

.tournament-feature p {
    color: var(--text-secondary);
}

.tournament-feature strong {
    color: #fff;
    margin-top: auto;
}

.tournament-feature.cyan {
    border-color: rgba(0, 225, 255, 0.28);
}

.tournament-feature.violet {
    border-color: rgba(134, 80, 255, 0.35);
}

.tournament-feature.amber {
    border-color: rgba(255, 195, 77, 0.32);
}

.mini-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: var(--font-subheading);
    font-weight: 800;
    text-transform: uppercase;
}

.mini-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.operator-section {
    background: rgba(255, 255, 255, 0.025);
    border-block: 1px solid var(--border-color);
}

.operator-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.operator-grid p {
    max-width: 650px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.operator-list {
    display: grid;
    gap: 0.9rem;
}

.operator-list div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    clip-path: var(--clip-path-gaming-sm);
}

.operator-list strong {
    color: #fff;
    font-family: var(--font-subheading);
    font-size: 1.25rem;
}

.operator-list span {
    color: var(--text-secondary);
}

.intel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1.3rem;
    align-items: start;
}

.nexus-intel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.nexus-intel-card {
    display: grid;
    gap: 0.7rem;
    min-height: 230px;
    padding: 1rem;
    color: inherit;
    text-align: left;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    clip-path: var(--clip-path-gaming-sm);
}

.nexus-intel-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.intel-icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    color: var(--primary);
    border: 1px solid var(--border-color);
    background: rgba(255, 46, 46, 0.08);
}

.nexus-intel-card strong {
    color: #fff;
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    line-height: 1.15;
}

.nexus-intel-card span:last-child,
.community-panel p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.community-panel {
    display: grid;
    gap: 1rem;
    padding: 1.3rem;
    clip-path: var(--clip-path-gaming);
}

.community-panel h3 {
    font-size: 1.5rem;
}

@media (max-width: 980px) {
    .remodel-hero-grid,
    .operator-grid,
    .intel-layout {
        grid-template-columns: 1fr;
    }

    .tournament-feature-grid,
    .nexus-intel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .remodel-title {
        font-size: 3.1rem;
    }

    .remodel-stats,
    .console-matrix {
        grid-template-columns: 1fr;
    }
}
