/* ==========================================================================
   GiveMeReddit - Modern Sports Streaming Theme
   Fully Responsive for PC (Desktops/Laptops/Ultrawide), Tablets & Mobile
   ========================================================================== */

:root,
body.theme-neo-emerald {
    /* Brand New Theme 1: Neo Emerald (Onyx & Cyber Emerald) */
    --bg-dark: #070d12;
    --bg-surface: rgba(13, 25, 34, 0.75);
    --bg-card: rgba(15, 29, 40, 0.7);
    --bg-card-hover: rgba(22, 42, 58, 0.85);
    --bg-card-elevated: #162736;
    --bg-input: rgba(8, 16, 23, 0.8);
    --header-bg: rgba(7, 13, 18, 0.88);
    
    /* Accents */
    --accent-primary: #10b981;
    --accent-primary-hover: #059669;
    --accent-primary-glow: rgba(16, 185, 129, 0.3);
    --accent-primary-subtle: rgba(16, 185, 129, 0.12);
    
    --accent-secondary: #06b6d4;
    --accent-secondary-glow: rgba(6, 182, 212, 0.25);
    
    /* Live Status */
    --live-red: #f43f5e;
    --live-red-glow: rgba(244, 63, 94, 0.3);
    --live-bg: rgba(244, 63, 94, 0.12);
    --live-border: rgba(244, 63, 94, 0.35);

    /* Success State */
    --success-green: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --success-border: rgba(16, 185, 129, 0.35);
    
    /* Pills & Filters */
    --pill-inactive: rgba(255, 255, 255, 0.05);
    --pill-inactive-hover: rgba(255, 255, 255, 0.1);
    
    /* Borders */
    --border-subtle: rgba(16, 185, 129, 0.15);
    --border-medium: rgba(16, 185, 129, 0.3);
    --border-focus: #10b981;
    
    /* Typography */
    --text-main: #f0fdf4;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions & Shadows */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow-subtle: 0 8px 32px rgba(0, 0, 0, 0.4);
    --box-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-hero: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

/* Theme 2: Electric Violet */
body.theme-electric-violet {
    --bg-dark: #0b0914;
    --bg-surface: rgba(24, 18, 43, 0.75);
    --bg-card: rgba(28, 21, 51, 0.7);
    --bg-card-hover: rgba(41, 30, 77, 0.85);
    --bg-card-elevated: #291e4d;
    --bg-input: rgba(14, 11, 26, 0.8);
    --header-bg: rgba(11, 9, 20, 0.88);
    
    --accent-primary: #8b5cf6;
    --accent-primary-hover: #7c3aed;
    --accent-primary-glow: rgba(139, 92, 246, 0.35);
    --accent-primary-subtle: rgba(139, 92, 246, 0.14);
    
    --accent-secondary: #ec4899;
    --accent-secondary-glow: rgba(236, 72, 153, 0.25);
    
    --live-red: #f43f5e;
    --live-red-glow: rgba(244, 63, 94, 0.3);
    --live-bg: rgba(244, 63, 94, 0.14);
    --live-border: rgba(244, 63, 94, 0.35);

    --border-subtle: rgba(139, 92, 246, 0.18);
    --border-medium: rgba(139, 92, 246, 0.35);
    --border-focus: #8b5cf6;
    
    --text-main: #f5f3ff;
    --text-dim: #a78bfa;
    --text-muted: #6b7280;
    
    --glow-hero: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
}

/* Theme 3: Sunset Blaze */
body.theme-sunset-blaze {
    --bg-dark: #0f0b09;
    --bg-surface: rgba(31, 20, 16, 0.75);
    --bg-card: rgba(36, 23, 18, 0.7);
    --bg-card-hover: rgba(54, 34, 26, 0.85);
    --bg-card-elevated: #36221a;
    --bg-input: rgba(18, 12, 10, 0.8);
    --header-bg: rgba(15, 11, 9, 0.88);
    
    --accent-primary: #ff5722;
    --accent-primary-hover: #f4511e;
    --accent-primary-glow: rgba(255, 87, 34, 0.35);
    --accent-primary-subtle: rgba(255, 87, 34, 0.14);
    
    --accent-secondary: #ffb703;
    --accent-secondary-glow: rgba(255, 183, 3, 0.25);
    
    --live-red: #ff334b;
    --live-red-glow: rgba(255, 51, 75, 0.35);
    --live-bg: rgba(255, 51, 75, 0.14);
    --live-border: rgba(255, 51, 75, 0.35);

    --border-subtle: rgba(255, 87, 34, 0.18);
    --border-medium: rgba(255, 87, 34, 0.35);
    --border-focus: #ff5722;
    
    --text-main: #fff7ed;
    --text-dim: #fdba74;
    --text-muted: #78716c;
    
    --glow-hero: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, transparent 70%);
}

/* Global Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 71, 34, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(88, 101, 242, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding: 0 0 90px 0;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #252834;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* ==========================================================================
   TOP STICKY NAVIGATION HEADER (PC & MOBILE OPTIMIZED)
   ========================================================================== */
.top-nav-header {
    background: rgba(13, 14, 18, 0.94);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Brand Logo */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    user-select: none;
    transition: var(--transition);
}

.nav-brand .brand-icon {
    font-size: 1.35rem;
    color: var(--accent-orange);
    filter: drop-shadow(0 0 10px var(--accent-orange-glow));
    transition: transform 0.25s ease;
}

.nav-brand:hover .brand-icon {
    transform: scale(1.15) rotate(10deg);
}

.nav-brand .brand-text span {
    color: var(--accent-orange);
    position: relative;
}

.nav-brand:hover {
    opacity: 0.95;
}

/* Header Sports Category Navigation (PC & Tablets) */
.header-categories-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 4px;
}

.cat-nav-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition);
}

.cat-nav-arrow svg {
    width: 14px;
    height: 14px;
}

.cat-nav-arrow:hover {
    background: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange-glow);
}

.header-categories {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 6px;
}

.header-categories::-webkit-scrollbar {
    display: none;
}

.header-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    user-select: none;
}

.header-cat-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.header-cat-link.active {
    color: #ffffff;
    background: var(--accent-orange-subtle);
    border-color: rgba(255, 71, 34, 0.5);
    box-shadow: 0 0 14px var(--accent-orange-glow);
}

.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    transition: var(--transition);
}

.header-cat-link.active .cat-count {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
}

/* Header Right Tools */
.header-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Palette Theme Switcher Dropdown / Pills */
.theme-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    padding: 3px;
    border-radius: var(--radius-full);
}

.theme-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    user-select: none;
}

.theme-pill-btn:hover {
    transform: scale(1.15);
}

.theme-pill-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary-glow);
}

.live-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--live-bg);
    border: 1px solid var(--live-border);
    color: var(--live-red);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    transition: var(--transition);
}

.live-badge-header:hover {
    background: rgba(255, 51, 75, 0.22);
    border-color: var(--live-red);
    box-shadow: 0 0 14px var(--live-red-glow);
    transform: translateY(-1px);
}

.live-badge-header.active-filter {
    background: var(--live-red);
    border-color: var(--live-red);
    color: #ffffff;
    box-shadow: 0 0 18px var(--live-red-glow);
}

.live-badge-header.active-filter .live-dot {
    background-color: #ffffff;
}

.live-badge-header.active-filter .live-count-badge {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--live-red);
    display: inline-block;
    animation: livePulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}

.live-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 75, 0.3);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
}

.btn-discord-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #5865F2;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.35);
    user-select: none;
    border: 1px solid #5865F2;
    white-space: nowrap;
}

.btn-discord-header:hover {
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.55);
    transform: translateY(-1px);
}

.btn-discord-header svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}




/* ==========================================================================
   APP CONTAINER & HERO SECTION
   ========================================================================== */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-box {
    background: linear-gradient(145deg, rgba(25, 28, 38, 0.92) 0%, rgba(18, 20, 28, 0.96) 100%);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 28px 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    margin-bottom: 20px;
}

.hero-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.6px;
    line-height: 1.25;
}

.timezone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
}

.timezone-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.hero-subtitle {
    font-size: 0.92rem;
    color: var(--text-dim);
    max-width: 720px;
    line-height: 1.5;
}

/* Quick Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 17, 23, 0.7);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item-live .stat-value {
    color: var(--live-red);
}

.live-pulse-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--live-red);
    display: inline-block;
    animation: livePulse 1.4s infinite;
}

/* Search Section */
.search-section {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.search-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.search-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 13px 44px 13px 46px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--border-focus);
    background-color: #12141d;
    box-shadow: 0 0 20px var(--accent-orange-glow);
}

.search-input:focus + .search-icon {
    color: var(--accent-orange);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #252834;
    border: none;
    color: var(--text-dim);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-clear-btn svg {
    width: 12px;
    height: 12px;
}

.search-clear-btn:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

.search-shortcut-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #222530;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   CATEGORY FILTER PILLS NAVIGATION (HERO SECTION)
   ========================================================================== */
.category-nav-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--pill-inactive);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    user-select: none;
    flex-shrink: 0;
}

.category-pill:hover {
    background: var(--pill-inactive-hover);
    color: #ffffff;
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--accent-orange-glow);
}

.category-pill .cat-count {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: var(--text-dim);
}

.category-pill.active .cat-count {
    background: #ffffff;
    color: var(--accent-orange);
    font-weight: 900;
}

/* Filter Status Summary Bar */
.filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 71, 34, 0.08);
    border: 1px solid rgba(255, 71, 34, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.filter-status-text {
    color: #ffffff;
    font-weight: 600;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   DESKTOP TABLE HEADER & EVENT ROWS (RESPONSIVE GRID)
   ========================================================================== */
.table-header {
    display: grid;
    grid-template-columns: 46px minmax(220px, 1fr) 190px 135px 280px;
    padding: 0 22px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
    gap: 16px;
}

.col-num { text-align: left; }
.col-teams { text-align: left; }
.col-category { text-align: left; }
.col-time { text-align: center; }
.col-actions { text-align: right; }

/* Events List Container */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Event Row / Card */
.event-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    display: grid;
    grid-template-columns: 46px minmax(220px, 1fr) 190px 135px 280px;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
}

.event-row:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.event-row.is-live-row {
    border-left: 3px solid var(--live-red);
    background: linear-gradient(90deg, rgba(255, 51, 75, 0.04) 0%, var(--bg-card) 35%);
}

.event-row.is-live-row:hover {
    background: linear-gradient(90deg, rgba(255, 51, 75, 0.08) 0%, var(--bg-card-hover) 35%);
}

/* Column 1: Index Number */
.row-index-num {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--live-red);
    user-select: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 51, 75, 0.3);
}

.event-row:hover .row-index-num {
    color: #ff6073;
    text-shadow: 0 0 14px rgba(255, 51, 75, 0.6);
}

/* Column 2: Teams Stack */
.teams-col-wrap {
    min-width: 0;
}

.teams-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.team-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team-badge-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}

.event-row:hover .team-badge-img {
    transform: scale(1.1);
}

.team-badge-fallback {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #252834;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-name-text {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column 3: Category / League */
.category-col-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.category-league {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-sport-sub {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Column 4: Time / Live Status */
.time-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-pill-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--live-bg);
    border: 1px solid var(--live-border);
    color: var(--live-red);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 51, 75, 0.2);
}

.status-pill-live .live-dot {
    width: 6px;
    height: 6px;
}

.status-pill-scheduled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #b0b4c2;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Column 5: Action Buttons */
.actions-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

.btn-sportsurge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--accent-orange-subtle);
    border: 1px solid rgba(255, 71, 34, 0.45);
    color: var(--accent-orange);
    padding: 7px 13px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

.btn-sportsurge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-sportsurge:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 2px 14px var(--accent-orange-glow);
    transform: translateY(-1px);
}

.btn-sportsurge:hover svg {
    transform: scale(1.15);
}

/* Vibrant Watch Button */
.btn-watch {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--accent-orange-glow);
    font-weight: 800;
}

.btn-watch:hover {
    background: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    box-shadow: 0 4px 16px var(--accent-orange-glow);
    transform: translateY(-1px) scale(1.02);
}

.btn-watch svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.btn-sportsurge-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #c4c8d4;
}

.btn-sportsurge-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--border-medium);
    color: #ffffff;
    box-shadow: none;
}

.btn-sportsurge.copied {
    background: var(--success-green) !important;
    border-color: var(--success-green) !important;
    color: #0b1a10 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.4) !important;
}

.btn-sportsurge.copied svg {
    stroke: #0b1a10 !important;
}

/* Mobile-only elements (Hidden on Desktop by default) */
.mobile-card-header {
    display: none;
}

/* ==========================================================================
   EMPTY & LOADING STATES
   ========================================================================= */
.state-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
}

.state-box h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 800;
}

.state-box p {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 71, 34, 0.2);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.35); }
}

/* ==========================================================================
   FLOATING SCROLL TO TOP & TOASTS
   ========================================================================== */
.btn-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-medium);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

.btn-scroll-top svg {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
}

.btn-scroll-top:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px var(--accent-orange-glow);
    transform: translateY(-2px);
}

.btn-scroll-top:hover svg {
    color: #ffffff;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90%;
    width: 420px;
}

.toast {
    background: rgba(24, 27, 36, 0.96);
    border: 1px solid var(--accent-orange);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-orange-glow);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Ultra-Wide Displays (> 1440px) */
@media (min-width: 1440px) {
    .app-container,
    .nav-inner {
        max-width: 1380px;
    }

    .table-header,
    .event-row {
        grid-template-columns: 50px minmax(260px, 1fr) 220px 145px 300px;
    }

    .hero-box {
        padding: 34px 40px 28px;
    }

    .hero-title {
        font-size: 2.15rem;
    }
}

/* Standard PC / Medium Displays (1200px - 1440px) */
@media (max-width: 1440px) and (min-width: 1201px) {
    .table-header,
    .event-row {
        grid-template-columns: 46px minmax(220px, 1fr) 190px 135px 280px;
    }
}

/* Laptop / Smaller PC (1024px to 1200px) */
@media (max-width: 1200px) {
    .table-header,
    .event-row {
        grid-template-columns: 42px minmax(200px, 1fr) 165px 125px 260px;
        padding: 13px 18px;
        gap: 14px;
    }

    .btn-sportsurge {
        padding: 6px 11px;
        font-size: 0.76rem;
    }

    .cat-nav-arrow {
        display: inline-flex;
    }
}

/* Tablet View (768px to 1024px) */
@media (max-width: 1024px) {
    .app-container,
    .nav-inner {
        padding: 0 16px;
    }

    .table-header,
    .event-row {
        grid-template-columns: 36px minmax(170px, 1fr) 140px 115px 235px;
        padding: 12px 14px;
        gap: 12px;
    }

    .team-name-text {
        font-size: 0.88rem;
    }

    .category-league {
        font-size: 0.82rem;
    }

    .btn-sportsurge {
        padding: 6px 8px;
        font-size: 0.72rem;
        gap: 4px;
    }

    .cat-nav-arrow {
        display: inline-flex;
    }
}

/* ==========================================================================
   MOBILE VIEW (< 768px: SMARTPHONES & PHABLETS)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 0 0 70px 0;
    }

    .app-container {
        padding: 0 12px;
    }

    /* Top Sticky Navigation Header on Mobile */
    .top-nav-header {
        margin-bottom: 14px;
    }

    .nav-inner {
        padding: 0 12px;
        height: 54px;
        gap: 8px;
    }

    .nav-brand {
        font-size: 1.15rem;
    }

    .nav-brand .brand-icon {
        font-size: 1.2rem;
    }

    /* Hide Header Sports Categories on Mobile */
    .header-categories-wrapper {
        display: none !important;
    }

    .header-right-tools {
        gap: 6px;
    }

    /* Hide Header Discord Button on Mobile */
    .btn-discord-header {
        display: none !important;
    }

    .live-badge-header {
        padding: 5px 12px;
        font-size: 0.74rem;
    }

    /* Mobile Hero Banner */
    .hero-box {
        padding: 18px 16px;
        margin-bottom: 14px;
        border-radius: var(--radius-lg);
    }

    .hero-header-line {
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .timezone-badge {
        font-size: 0.7rem;
        padding: 4px 9px;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 0;
    }

    /* Mobile Stats Bar: 3-column compact grid */
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 14px;
        margin-bottom: 16px;
    }

    .stat-item {
        padding: 8px 6px;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Mobile Search Section */
    .search-section {
        flex-direction: column;
        gap: 8px;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-input {
        padding: 11px 36px 11px 40px;
        font-size: 0.88rem;
    }

    .search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .search-shortcut-badge {
        display: none;
    }

    /* Mobile Category Nav in Hero */
    .category-nav-wrapper {
        margin-bottom: 14px;
    }

    .category-nav {
        gap: 6px;
        padding-bottom: 4px;
    }

    .category-pill {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    /* Hide Table Header on Mobile */
    .table-header {
        display: none;
    }

    /* Mobile Smart Cards */
    .events-container {
        gap: 12px;
    }

    .event-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 14px;
        border-radius: var(--radius-lg);
        background: var(--bg-card);
        border: 1px solid var(--border-medium);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .event-row.is-live-row {
        border-left: 1px solid var(--border-medium);
        border-top: 3px solid var(--live-red);
        background: linear-gradient(180deg, rgba(255, 51, 75, 0.08) 0%, var(--bg-card) 45%);
    }

    /* Mobile Card Header Bar */
    .mobile-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-card-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .mobile-index-tag {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 0.75rem;
        font-weight: 900;
        color: var(--live-red);
        background: rgba(255, 51, 75, 0.12);
        padding: 2px 6px;
        border-radius: 4px;
        flex-shrink: 0;
    }

    /* Hide Desktop Column 1, 3, 4 on Mobile */
    .event-row > .row-index-num,
    .event-row > .category-col-wrap,
    .event-row > .time-col {
        display: none;
    }

    /* Teams Body inside Mobile Card */
    .teams-col-wrap {
        width: 100%;
        background: rgba(15, 17, 23, 0.6);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 10px 12px;
    }

    .teams-stack {
        gap: 9px;
    }

    .team-line {
        gap: 10px;
    }

    .team-badge-img,
    .team-badge-fallback {
        width: 22px;
        height: 22px;
    }

    .team-name-text {
        font-size: 0.9rem;
        font-weight: 800;
    }

    /* Mobile Action Buttons: 3 Touch Targets */
    .actions-col {
        display: grid;
        grid-template-columns: 1.15fr 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .btn-sportsurge {
        width: 100%;
        padding: 9px 8px;
        font-size: 0.78rem;
        font-weight: 800;
        border-radius: var(--radius-md);
    }

    /* Mobile Toast */
    .toast-container {
        width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        bottom: 16px;
        transform: none;
    }

    .toast {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    /* Back to top on mobile */
    .btn-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Compact Mobile Screens (< 520px) */
@media (max-width: 520px) {
    .btn-discord-header .discord-text {
        display: none;
    }

    .btn-discord-header {
        padding: 6px 8px;
    }



    .nav-inner {
        padding: 0 10px;
        gap: 6px;
    }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 380px) {
    .nav-brand {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 1.18rem;
    }

    .team-name-text {
        font-size: 0.82rem;
    }

    .actions-col {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .btn-sportsurge {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}
