/* static/css/style.css */

/* === ROOT VARIABLES === */
:root {
    /* Color System */
    --color-primary: #d20a0a;          /* UFC Red */
    --color-primary-light: #ff3a3a;
    --color-primary-dark: #a00000;
    --color-secondary-dark: #1a1a1c;
    --color-tertiary: #ffce08;         /* UFC Gold accent */
    --color-success: #00c853;
    --color-success-light: #69f0ae;
    --color-warning: #ffc107;
    --color-warning-light: #ffe57f;
    --color-danger: #ff3d00;
    --color-danger-light: #ff8a80;
    --color-info: #00b0ff;
    --color-info-light: #80d8ff;
    --color-purple: #9c27b0;

    /* Neutrals */
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-surface-raised: #262626;
    --color-border: #333333;
    --color-border-subtle: #2a2a2a;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-family-heading: 'Barlow Condensed', 'Inter', sans-serif;

    /* Sizes & Spacing */
    --size-xs: 0.25rem; --size-sm: 0.5rem; --size-md: 1rem; --size-lg: 1.5rem; --size-xl: 2rem;

    /* Radius */
    --radius-sm: 0.25rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.28);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.3), 0 6px 6px rgba(0,0,0,0.27);
    --shadow-header: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-inset-sm: inset 0 1px 2px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;

    /* UFC Specific */
    --ufc-octoagon-shape: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);

    /* Bootstrap RGB variables */
    --bs-primary-rgb: 210, 10, 10;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 0, 200, 83;
    --bs-info-rgb: 0, 176, 255;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 255, 61, 0;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 22, 22, 22;
    --bs-tertiary-rgb: 255, 206, 8;
}

/* === BASE & RESETS === */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font-family-base); font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-primary); background-color: var(--color-background);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition-fast), opacity var(--transition-fast); }
a:hover { color: var(--color-tertiary); text-decoration: none; opacity: 0.9; }
img, svg { max-width: 100%; height: auto; display: block; vertical-align: middle; }

/* === LAYOUT COMPONENTS === */
.container {
    width: 100%; padding-right: var(--size-md); padding-left: var(--size-md);
    margin-right: auto; margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.main-content {
    flex-grow: 1;
    padding-top: 90px;
    padding-bottom: var(--size-xl);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading); font-weight: 600;
    line-height: 1.25;
    margin-top: 0; margin-bottom: var(--size-md); color: var(--color-text-primary);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.page-main-title {
    font-size: 1.8rem; color: var(--color-text-primary);
    position: relative; display: inline-block; padding-bottom: 0.3rem;
    margin-bottom: var(--size-lg) !important; font-weight: 700;
}
.page-main-title-decorator {
    display: block; width: 50px; height: 3px;
    background-color: var(--color-primary); border-radius: 2px; margin-top: 0.2rem;
}
.section-title {
    font-size: 1.4rem;
    color: var(--color-text-secondary); margin-bottom: var(--size-md) !important;
    padding-bottom: var(--size-xs); border-bottom: 1px solid var(--color-border);
    display: flex; align-items: center;
}
.section-title i { color: var(--color-primary); font-size: 1.1em; }

.text-primary-light { color: var(--color-primary-light) !important; }
.text-success-light { color: var(--color-success-light) !important; }
.text-warning-light { color: var(--color-warning-light) !important; }
.text-danger-light { color: var(--color-danger-light) !important; }
.text-info-light { color: var(--color-info-light) !important; }
.text-tertiary { color: var(--color-text-tertiary) !important; }

/* === Hero Section Styling === */
.hero-section-custom { margin-bottom: var(--size-md); padding: var(--size-lg) 0 var(--size-sm) 0; }
.hero-logo-img-large { max-width: 280px; height: auto; display: block; margin: 0 auto var(--size-md) auto; }
.hero-text-container { text-align: center; }
@media (min-width: 992px) {
    .hero-section-custom .row > .col-lg-4 { display: flex; align-items: center; justify-content: center; }
    .hero-section-custom .row > .col-lg-8 { display: flex; flex-direction: column; justify-content: center; }
    .hero-logo-img-large { margin: 0; max-width: 350px; }
    .hero-text-container { text-align: left; }
}
h1.hero-title-main-large {
    font-size: 3.2rem; color: var(--color-text-primary); margin-bottom: var(--size-xs);
    position: relative; display: inline-block; padding-bottom: 0.4rem; font-weight: 700;
}
h1.hero-title-main-large::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 80px; height: 5px; background-color: var(--color-primary); border-radius: 2px;
}
.hero-subtitle-main-large { font-size: 1.3rem; color: var(--color-text-secondary); margin-bottom: 0; line-height: 1.6; max-width: 600px; }
@media (max-width: 991.98px) { .hero-subtitle-main-large { margin-left: auto; margin-right: auto; } }
@media (min-width: 992px) { .hero-subtitle-main-large { margin-left: 0; margin-right: 0; } }

/* === Cards (General) === */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--size-lg);
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-subtle);
}
.card-header {
    padding: var(--size-sm) var(--size-md);
    border-bottom: 1px solid var(--color-border-subtle);
    font-weight: 600; font-family: var(--font-family-heading);
    letter-spacing: 0.03em;
    display: flex; align-items: center; text-transform: uppercase;
    background-color: var(--color-surface-raised);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.card-header.bg-gradient-primary {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.25), rgba(var(--bs-dark-rgb), 0.25));
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-primary-dark);
}
.card-header i, .card-header .bi {
    margin-right: var(--size-sm);
    color: var(--color-primary-light);
    font-size: 1.1em;
}
.card-body { padding: var(--size-md); flex-grow: 1; display: flex; flex-direction: column; }
.card-body.p-0 { padding: 0 !important; }
.card-footer {
    padding: var(--size-sm) var(--size-md);
    border-top: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface-raised);
}

/* === Navigation === */
.header-wrapper.navbar.fixed-top {
    background-color: #17171a !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-header);
    margin-top: var(--size-sm);
    margin-bottom: var(--size-sm);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1320px;
    padding-top: var(--size-sm);
    padding-bottom: var(--size-sm);
}
.navbar-brand {
    font-family: var(--font-family-heading); font-weight: 700; font-size: 1.5rem;
    letter-spacing: 0.05em; color: var(--color-text-primary) !important;
    padding-top: 0; padding-bottom: 0; margin-right: var(--size-lg);
}
@media (min-width: 992px) { .navbar-brand { font-size: 1.75rem; } }
.mma-logo { height: 45px; width: auto; margin-right: var(--size-sm); }
.navbar-dark .navbar-nav .nav-link { color: var(--color-text-secondary); font-weight: 500; padding: 0.6rem 0.9rem; transition: color var(--transition-fast); font-size: 0.9rem; }
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { color: var(--color-text-primary); }
.navbar-dark .navbar-nav .nav-link.active { color: var(--color-primary-light); font-weight: 600; position: relative; }
.navbar-dark .navbar-nav .nav-link.active::after { content: ''; position: absolute; bottom: 5px; left: 0.9rem; right: 0.9rem; height: 3px; background-color: var(--color-primary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.navbar-dark .navbar-nav .nav-item:not(:last-child) { margin-right: var(--size-xs); }
.navbar-dark .navbar-toggler { border-color: rgba(255,255,255,0.1); }
.navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Navbar Search & Odds Toggle */
.navbar .form-control.bg-surface { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
.navbar .btn-outline-primary { padding: 0.4rem 0.75rem; color: var(--color-primary-light); border-color: var(--color-primary-light); }
.navbar .btn-outline-primary:hover { background-color: var(--color-primary); border-color: var(--color-primary); color:white; }

.odds-toggle-area {}
.odds-toggle-area-label {
    font-size: 0.75rem; font-weight: 600; color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.5rem; line-height: 1;
}
.odds-format-switch {
    display: flex; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--color-tertiary); background-color: var(--color-secondary-dark);
}
.odds-format-btn {
    background-color: transparent; color: var(--color-text-secondary); border: none;
    padding: 0.35rem 0.8rem; font-size: 0.7rem; font-weight: 600; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease; display: flex;
    align-items: center; justify-content: center; flex: 1; min-width: 85px;
    text-transform: uppercase; letter-spacing: 0.03em; line-height: 1;
}
.odds-format-btn:hover:not(.active) { background-color: rgba(var(--bs-tertiary-rgb), 0.15); color: var(--color-tertiary); }
.odds-format-btn.active {
    background-color: var(--color-tertiary); color: var(--color-background) !important;
    font-weight: 700; box-shadow: var(--shadow-inset-sm);
}
.odds-format-icon { margin-right: 0.4em; font-size: 0.9em; line-height: 1; vertical-align: -0.05em; }

/* === Buttons (General) === */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 1.2rem;
}
.btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { box-shadow: var(--shadow-inset-sm); transform: translateY(0); }

.btn-primary { color: #fff; background-color: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }

.btn-danger { color: #fff; background-color: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover { background-color: #cc3000; border-color: #cc3000; color: #fff; }

.btn-outline-primary { color: var(--color-primary-light) !important; border-color: var(--color-primary-light) !important; }
.btn-outline-primary:hover { color: white !important; background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; }

.btn-outline-danger { color: var(--color-danger-light) !important; border-color: var(--color-danger-light) !important; }
.btn-outline-danger:hover { color: white !important; background-color: var(--color-danger) !important; border-color: var(--color-danger) !important; }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.1rem; }

/* === Badges === */
.badge { border-radius: var(--radius-full); padding: 6px 12px; font-weight: 600; font-size: 14px; min-width: 70px; display: inline-block; text-align: center; color: white; }
.badge-overall { background: linear-gradient(90deg, rgba(0,200,83,0.8), rgba(0,150,60,0.8)) !important; box-shadow: 0 2px 4px rgba(0,200,83,0.2); }
.badge-predictions { background: linear-gradient(90deg, rgba(0,176,255,0.8), rgba(0,136,209,0.8)) !important; box-shadow: 0 2px 4px rgba(0,176,255,0.2); }
.badge-videos { background: linear-gradient(90deg, rgba(156,39,176,0.8), rgba(123,31,162,0.8)) !important; box-shadow: 0 2px 4px rgba(156,39,176,0.2); }
.badge-pill-channel-accuracy { background: linear-gradient(90deg, var(--color-success), #00a040) !important; border: 1px solid rgba(255,255,255,0.1); color: white !important; font-size: 0.8rem; padding: 5px 10px; min-width: fit-content; box-shadow: var(--shadow-sm); font-weight: 600; border-radius: var(--radius-full); line-height: 1; white-space: nowrap; }
.badge.bg-secondary { background-color: var(--color-secondary-dark) !important; color: white; }
.badge.bg-warning { background-color: var(--color-warning) !important; color: #212529 !important; }
.badge.bg-danger { background-color: var(--color-danger) !important; color: white; }

/* === Pick Badge === */
.pick-badge {
    display: inline-block;
    vertical-align: middle;

    color: white;
    background-color: var(--color-success);

    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* === Tables === */
.table { width: 100%; margin-bottom: 0; color: var(--color-text-secondary); border-collapse: collapse; }
.table th, .table td {
    padding: var(--size-sm) var(--size-md);
    vertical-align: middle;
    border-top: 1px solid var(--color-border-subtle);
}
.table td a { color: var(--color-text-primary); font-weight: 500; }
.table td a:hover { color: var(--color-primary-light); }

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    background-color: var(--color-surface-raised);
}
.table-hover tbody tr:hover {
    background-color: var(--color-surface-raised);
    color: var(--color-text-primary);
}
.table-responsive { width: 100%; overflow-x: auto; }

/* === Stats Summary Cards (Index Page) === */
.stat-summary-card { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md); position: relative; padding: 1.5rem; background-color: var(--color-surface); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; display: flex; flex-direction: column; }
.stat-summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-summary-header { margin: -1.5rem -1.5rem 1.5rem -1.5rem; padding: 0.75rem 1.5rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.stat-summary-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 80px; }
.stat-summary-value { line-height: 1; font-weight: bold; margin-bottom: var(--size-xs) !important; font-size: 2.5rem; }
.stat-summary-card .small { font-size: 0.875em; margin-bottom: var(--size-md); }
.stat-summary-card .progress { height: 8px !important; margin-top: auto; }
.prediction-stat-card .stat-summary-header { background-color: rgba(156,39,176,0.7); }
.prediction-stat-card .stat-summary-value { color: var(--color-purple) !important; }
.prediction-stat-card .progress-bar { background-color: var(--color-purple) !important; }
.video-stat-card .stat-summary-header { background-color: rgba(0,176,255,0.7); }
.video-stat-card .progress-bar { background-color: var(--color-info) !important; }
.success-themed-card { background-color: rgba(0,128,0,0.1) !important; border: 1px solid var(--color-success) !important; box-shadow: 0 0 15px rgba(0,200,83,0.15); }
.success-themed-header { background-color: rgba(0,200,83,0.7) !important; }

/* === Channel Logo / Placeholders === */
.channel-logo-sm {
    width: 32px; height: 32px; object-fit: cover;
    border-radius: 50%; border: 1px solid var(--color-border);
}
.octagon-clip {
    clip-path: var(--ufc-octoagon-shape);
}
.octagon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--color-primary); color: var(--color-text-primary);
    clip-path: var(--ufc-octoagon-shape);
    width: 32px; height: 32px; font-weight: 600;
    font-size: 0.8rem; line-height: 1;
}
.channel-name {
    color: var(--color-text-primary) !important; font-weight: 500;
}
.channel-name:hover { color: var(--color-primary-light) !important; }
.trophy-icon { color: var(--color-tertiary); margin-right: 6px; }

/* === Recent Videos (Index Page) === */
.recent-videos-refined-list { }
.recent-video-refined-item { background-color: var(--color-surface); border-radius: 0; display: flex; margin-bottom: 2px; border: none; border-bottom: 1px solid var(--color-border); transition: background-color var(--transition-fast); overflow: visible; }
.recent-videos-refined-card .card-body.p-0 .recent-video-refined-item:last-child { border-bottom: none; margin-bottom: 0; }
.recent-video-refined-item:hover { background-color: var(--color-surface-raised); }
.recent-video-refined-thumbnail-area { width: 260px; min-width: 260px; align-self: stretch; position: relative; flex-shrink: 0; background-color: var(--color-secondary-dark); }
.recent-video-refined-thumbnail-link { display: block; width:100%; height: 100%; }
.recent-video-refined-thumbnail-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(30%) brightness(55%); transition: filter 0.2s ease-in-out; }
.recent-video-refined-item:hover .recent-video-refined-thumbnail-img { filter: saturate(100%) brightness(100%); }
.recent-video-refined-thumbnail-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-size: 3rem; }
.recent-video-refined-date-badge { position: absolute; top: 10px; left: 10px; background-color: rgba(0,0,0,0.88); color: var(--color-text-primary); padding: 6px 10px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,0.6); z-index: 1; }
.recent-video-refined-details-area { flex-grow: 1; padding: var(--size-md); display: flex; flex-direction: column; min-width: 0; }
.recent-video-refined-channel-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--size-sm); gap: var(--size-sm); }
.recent-video-refined-channel-info { display: flex; align-items: center; min-width: 0; }
.recent-video-refined-channel-logo, .recent-video-refined-channel-logo-initial { width: 28px; height: 28px; border-radius: 50%; margin-right: var(--size-sm); object-fit: cover; background-color: var(--color-surface-raised); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; flex-shrink: 0; }
.recent-video-refined-channel-name { font-weight: 600; font-size: 0.95rem; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-video-refined-main-title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--size-xs); line-height: 1.3; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.recent-video-refined-main-title a { color: inherit; text-decoration: none; }
.recent-video-refined-main-title a:hover { color: var(--color-primary-light); }
.recent-video-refined-subtitle { color: var(--color-text-secondary); font-size: 0.85rem; margin-bottom: var(--size-sm); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.recent-video-refined-performance-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--size-sm); border-top: 1px solid var(--color-border); margin-top: var(--size-sm); }
.recent-video-refined-picks-accuracy-combined { display: flex; align-items: center; font-size: 0.9rem; color: var(--color-text-secondary); font-weight: 500; }
.recent-video-refined-picks-accuracy-combined .bi-check2-circle { font-size: 1.1rem; color: var(--color-success); margin-right: var(--size-xs); }
.video-accuracy-percentage { font-weight: 700; color: var(--color-success); }
.video-accuracy-percentage.text-secondary { color: var(--color-text-secondary) !important; font-weight: 500; }
.btn-watch-video-refined { background-color: var(--color-primary); border: 1px solid var(--color-primary); color: white; padding: 5px 12px; font-size: 0.875rem; text-transform: none; letter-spacing: normal; border-radius: var(--radius-sm); font-weight: 600; }
.btn-watch-video-refined:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* === Upcoming Events (Index Page) === */
.events-list { }
.event-card { display: flex; padding: 16px; border-bottom: 1px solid var(--color-border); transition: background-color 0.15s ease; background-color: var(--color-surface); border-radius: var(--radius-md); margin-bottom: var(--size-sm); border: 1px solid var(--color-border); }
.event-card:last-child { border-bottom: 1px solid var(--color-border); }
.card-body.p-0 .event-card:last-child { border-bottom: none; margin-bottom: 0; }
.event-card:hover { background-color: var(--color-surface-raised); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-poster { width: 100px; height: 140px; margin-right: 16px; flex-shrink: 0; border-radius: var(--radius-sm); background-color: var(--color-secondary-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.event-poster-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(70%) brightness(85%); transition: filter 0.2s ease-in-out; }
.event-card:hover .event-poster-img { filter: saturate(100%) brightness(100%); }
.event-poster-placeholder i { font-size: 2rem; color: var(--color-text-tertiary); }
.event-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.event-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:var(--size-xs); }
.event-title { font-size:1.1rem; font-weight:700; color:var(--color-text-primary); margin:0; padding:0; line-height: 1.3; }
.event-date { color:var(--color-primary-light); font-size:0.95rem; margin-bottom:var(--size-xs); }
.event-location { color:var(--color-text-secondary); font-size:0.85rem; margin-bottom:var(--size-sm); }
.event-stats { display:flex; flex-wrap: wrap; gap: var(--size-md); margin-top:auto; padding-top: var(--size-sm); border-top: 1px solid var(--color-border); }
.event-stat { display:flex; align-items:center; font-size:0.8rem; color:var(--color-text-secondary); }
.event-stat i { margin-right:4px; color:var(--color-tertiary); font-size: 0.9rem; }
.fights-badge { padding:3px 8px; font-size:0.75rem; background-color:rgba(0,0,0,0.3); border-radius:var(--radius-sm); color:var(--color-text-secondary); white-space: nowrap; }

/* === FOOTER === */
.footer { background-color:var(--color-surface-raised); padding:var(--size-lg) 0; border-top:1px solid var(--color-border); text-align:center; margin-top:auto; }
.footer-links { margin-top:var(--size-sm); }
.footer-link { color:var(--color-text-secondary); margin:0 var(--size-sm); transition:color var(--transition-fast); }
.footer-link:hover { color:var(--color-primary-light); text-decoration:none; }

/* === ANIMATION & UTILITIES === */
.animate-on-scroll { opacity:0; transform:translateY(20px); transition:opacity 0.5s ease-out, transform 0.5s ease-out; transition-property: opacity, transform; }
.animate-on-scroll.in-view { opacity:1; transform:translateY(0); }

/* === BOOTSTRAP OVERRIDES === */
[data-bs-theme=dark] {
    --bs-body-color: var(--color-text-primary); --bs-body-bg: var(--color-background);
    --bs-border-color: var(--color-border); --bs-card-bg: var(--color-surface);
    --bs-card-border-color: var(--color-border); --bs-table-color: var(--color-text-secondary);
    --bs-table-bg: transparent; --bs-table-border-color: var(--color-border-subtle);
    --bs-btn-color: var(--color-primary-light); --bs-btn-border-color: var(--color-primary-light);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: var(--color-primary);
    --bs-primary-bg-subtle: rgba(var(--bs-primary-rgb), 0.1);
    --bs-success-bg-subtle: rgba(var(--bs-success-rgb), 0.1);
    --bs-danger-bg-subtle: rgba(var(--bs-danger-rgb), 0.1);
    --bs-info-bg-subtle: rgba(var(--bs-info-rgb), 0.1);
    --bs-tertiary-bg-subtle: rgba(var(--bs-tertiary-rgb), 0.15);
    --bs-warning-bg-subtle: rgba(var(--bs-warning-rgb), 0.15);
    --bs-primary-text-emphasis: var(--color-primary-light);
    --bs-success-text-emphasis: var(--color-success-light);
    --bs-danger-text-emphasis: var(--color-danger-light);
    --bs-info-text-emphasis: var(--color-info-light);
    --bs-warning-text-emphasis: var(--color-warning-light);
    --bs-dark-bg-subtle: rgba(255,255,255,0.03);
    --bs-light-text-emphasis: var(--color-text-secondary);
    --bs-dropdown-bg: var(--color-surface-raised);
    --bs-dropdown-border-color: var(--color-border);
    --bs-dropdown-link-color: var(--color-text-secondary);
    --bs-dropdown-link-hover-color: var(--color-text-primary);
    --bs-dropdown-link-hover-bg: rgba(var(--bs-primary-rgb), 0.25);
    --bs-dropdown-link-active-color: var(--color-text-primary);
    --bs-dropdown-link-active-bg: var(--color-primary);
    --bs-dropdown-header-color: var(--color-text-tertiary);
    --bs-dropdown-divider-bg: var(--color-border);
    --bs-list-group-bg: var(--color-surface);
    --bs-list-group-border-color: var(--color-border-subtle);
    --bs-list-group-color: var(--color-text-secondary);
    --bs-alert-bg-scale: -85%;
    --bs-alert-color-scale: 40%;
    --bs-alert-border-scale: -70%;
}
.form-control.bg-surface { background-color:var(--color-surface) !important; border-color:var(--color-border) !important; color:var(--color-text-primary) !important; }
.form-control.bg-surface:focus { border-color:var(--color-primary-light) !important; box-shadow:0 0 0 0.2rem rgba(var(--bs-primary-rgb),0.25) !important; }
.list-group-item {
    color: var(--color-text-secondary);
    background-color: transparent !important;
    border-color: var(--color-border-subtle);
    padding: 0.75rem var(--size-md);
    font-size: 0.9rem;
}
.list-group-item span:first-child { font-weight: 600; color: var(--color-text-primary); }
.list-group-item .badge { font-size: 0.95rem; padding: 0.4rem 0.7rem; }
.list-group-item .small { font-size: 0.8rem; }

/* === UFC VALUE FINDER WIDGET === */
.ufc-value-finder-widget {
    color: var(--color-text-primary);
    --ufv-blue-100: #e0f2fe;
    --ufv-blue-300: #7dd3fc;
    --ufv-blue-400: #38bdf8;
    --ufv-blue-500: #0ea5e9;
    --ufv-blue-800-alpha30: rgba(30, 64, 175, 0.3);
    --ufv-blue-900-alpha20: rgba(30, 58, 138, 0.2);
    --ufv-blue-900-alpha40: rgba(30, 58, 138, 0.4);
    --ufv-blue-900-alpha50: rgba(30, 58, 138, 0.5);
    --ufv-blue-900-alpha60: rgba(30, 58, 138, 0.6);
    --ufv-gray-50: #f8fafc;
    --ufv-gray-100: #f1f5f9;
    --ufv-gray-200: #e2e8f0;
    --ufv-gray-300: #cbd5e1;
    --ufv-gray-400: #94a3b8;
    --ufv-gray-500: #64748b;
    --ufv-gray-600: #475569;
    --ufv-gray-700: #334155;
    --ufv-gray-700-alpha70: rgba(51, 65, 85, 0.7);
    --ufv-gray-700-alpha80: rgba(51, 65, 85, 0.8);
    --ufv-gray-800: #1e293b;
    --ufv-gray-900: #0f172a;
    --ufv-green-100: #dcfce7;
    --ufv-green-300: #86efac;
    --ufv-green-400: #4ade80;
    --ufv-green-500: #22c55e;
    --ufv-green-800-alpha30: rgba(22, 107, 80, 0.3);
    --ufv-green-900-alpha20: rgba(16, 108, 76, 0.2);
    --ufv-red-100: #fee2e2;
    --ufv-red-300: #fca5a5;
    --ufv-red-400: #f87171;
    --ufv-red-500: #ef4444;
    --ufv-yellow-300: #fde047;
    --ufv-yellow-400: #facc15;
    --ufv-yellow-500: #eab308;
    --ufv-orange-400: #fb923c;
    --ufv-orange-500: #f97316;
    --ufv-purple-300: #d8b4fe;
    --ufv-purple-400: #c084fc;
    --ufv-purple-500: #a855f7;
}

.ufv-container {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    padding: var(--size-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    font-family: var(--font-family-base);
}

/* Loading Spinner */
.ufv-loading-spinner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(var(--bs-dark-rgb), 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}
.ufv-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}
.ufv-loading-spinner .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--color-primary) !important;
}

/* Tabs Navigation */
.ufv-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--size-lg);
}
.ufv-tab-button {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: none; border: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
}
.ufv-tab-button:hover { color: var(--color-text-primary); }
.ufv-tab-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.ufv-tab-content.hidden { display: none; }

.ufv-tab-main-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--size-md);
    padding-bottom: var(--size-sm);
    border-bottom: 1px solid var(--color-border-subtle);
}

/* More Fights/Channels Button */
.ufv-more-fights-button, .ufv-more-channels-button {
    width: 100%;
    padding: 0.6rem 0;
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    margin-top: var(--size-md);
    margin-bottom: var(--size-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    display: block; text-align: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.ufv-more-fights-button:hover, .ufv-more-channels-button:hover {
    background-color: var(--color-border);
    color: var(--color-text-primary);
}
.ufv-fight-card-outer.ufv-collapsed { display: none; }
.ufv-more-fights-button i { transition: transform 0.2s ease-in-out; margin-left: 0.3rem; }

/* Channel Breakdown Table */
.ufv-channel-breakdown-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--size-sm);
    margin-bottom: var(--size-md);
}
.ufv-channel-data-source {
    font-size: 0.85rem;
    background-color: var(--color-surface-raised);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-subtle);
}
.ufv-channel-data-source i { margin-right: 0.3rem; color: var(--color-primary); }

.ufv-channels-table-header, .ufv-channel-row {
    display: grid;
    grid-template-columns: 0.5fr minmax(150px, 1.5fr) repeat(4, minmax(70px, 1fr));
    gap: var(--size-sm);
    align-items: center;
    padding: 0.75rem var(--size-sm);
}
.ufv-channels-table-header {
    background-color: var(--color-surface-raised);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}
.ufv-ch-col-channel {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
}
.ufv-channel-row {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background-color 0.2s;
}
.ufv-channel-row:last-of-type {
    border-bottom: none;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}
.ufv-channel-row:hover { background-color: var(--color-surface-raised); }

.ufv-channel-row.ufv-rank-1 { border-left: 4px solid var(--color-tertiary); }
.ufv-channel-row.ufv-rank-2 { border-left: 4px solid var(--ufv-gray-300); }
.ufv-channel-row.ufv-rank-3 { border-left: 4px solid var(--ufv-orange-400); }

.ufv-rank-badge {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-background);
    font-size: 0.85rem;
    line-height: 1;
}
.ufv-channel-row.ufv-rank-1 .ufv-rank-badge { background-color: var(--color-tertiary); }
.ufv-channel-row.ufv-rank-2 .ufv-rank-badge { background-color: #c0c0c0; color: var(--color-background); }
.ufv-channel-row.ufv-rank-3 .ufv-rank-badge { background-color: #cd7f32; color: var(--color-text-primary); }
.ufv-channel-row:not(.ufv-rank-1):not(.ufv-rank-2):not(.ufv-rank-3) .ufv-rank-badge {
    background-color: var(--color-border);
    color: var(--color-text-secondary);
}

.ufv-channel-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: var(--size-sm);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

/* Top Channel Spotlight */
.ufv-top-channel-spotlight {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--size-lg);
    margin-top: var(--size-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}
.ufv-spotlight-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--size-md);
    gap: var(--size-sm);
}
.ufv-spotlight-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: var(--color-text-primary);
    margin-bottom: 0;
}
.ufv-icon-gold { color: var(--color-tertiary); margin-right: 0.5rem; }
.ufv-icon-green { color: var(--ufv-green-400); margin-right: 0.35rem; }
.ufv-icon-grey { color: var(--ufv-gray-400); margin-right: 0.35rem; }
.ufv-icon { margin-right: 0.5rem; }

.ufv-spotlight-data-row {
    margin-top: var(--size-md);
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding-top: var(--size-sm);
    border-top: 1px solid var(--color-border-subtle);
}
.ufv-spotlight-data-row .ufv-font-medium { color: var(--color-text-primary); font-weight: 600; }

.ufv-example-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--size-md);
}
.ufv-example-pick-item {
    background-color: var(--color-surface);
    padding: var(--size-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border-subtle);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ufv-example-pick-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.ufv-example-pick-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: var(--size-sm);
    object-fit: cover;
    border: 2px solid var(--color-border);
}
.ufv-example-pick-item .font-medium { font-weight: 600; color: var(--color-text-primary); font-size: 1rem; }
.ufv-example-pick-item .text-xs { font-size: 0.8rem; color: var(--color-text-tertiary); }
.ufv-example-pick-item .text-sm { font-size: 0.9rem; color: var(--color-text-secondary); }
.ufv-example-pick-item .mb-1 { margin-bottom: 0.25rem; }
.ufv-icon-green-sm { color: var(--ufv-green-400); width: 0.85rem; height: 0.85rem; margin-right: 0.25rem; }

.ufc-value-finder-widget .bi { vertical-align: -0.125em; }

/* Utility classes for UFV */
.text-center { text-align: center; }
.ufv-text-green { color: var(--ufv-green-400) !important; }
.ufv-text-red { color: var(--ufv-red-400) !important; }
.ufv-text-grey { color: var(--ufv-gray-300) !important; }
.ufv-text-yellow { color: var(--color-tertiary) !important; }

/* === Event Carousel Section === */
.event-carousel-section {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-lg);
    margin-bottom: var(--size-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--size-sm) var(--size-md);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-subtle);
}

.ec-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    font-family: var(--font-family-heading);
}

.ec-nav {
    display: flex;
    gap: var(--size-sm);
    align-items: center;
}

.ec-nav-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ec-nav-btn .bi { font-size: 1em; }

.ec-nav-btn:hover:not(:disabled) {
    background: var(--color-border);
    color: var(--color-text-primary);
}

.ec-nav-btn:disabled {
    background: var(--color-surface-raised);
    color: var(--color-text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.ec-event-display {
    padding: var(--size-lg);
    position: relative;
}

.ec-event-main {
    display: flex;
    align-items: flex-start;
    gap: var(--size-lg);
    margin-bottom: var(--size-lg);
}

.ec-event-poster {
    width: 130px;
    height: 162px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 3.5rem;
    flex-shrink: 0;
    overflow: hidden;
}
.ec-event-poster img.ec-poster-img-actual {
    width: 100%; height: 100%; object-fit: cover;
}
.ec-event-poster.past {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-background) 100%);
    color: var(--color-text-secondary);
}
.ec-event-poster.past img.ec-poster-img-actual {
    filter: grayscale(70%) opacity(70%);
}

.ec-event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ec-event-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    font-family: var(--font-family-heading);
}

.ec-event-date {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.7rem;
}
.ec-event-date .bi {
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

.ec-event-status-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.7rem;
    line-height: 1;
    border: 1px solid transparent;
}

.ec-event-status-badge.status-live {
    background-color: var(--color-danger);
    border-color: var(--color-danger-light);
    color: white;
    animation: pulseStatus 2s infinite;
}

.ec-event-status-badge.status-upcoming {
    background-color: #16a34a;
    border-color: #16a34a;
    color: white;
}
.ec-event-status-badge.status-past {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-tertiary);
}

@keyframes pulseStatus {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.5); }
    70% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(var(--bs-danger-rgb), 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0); }
}

.ec-event-metrics {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--size-lg);
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.ec-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ec-metric i.bi {
    font-size: 1.2rem;
    line-height: 1;
}
.ec-metric i.bi-people-fill { color: var(--ufv-blue-300); }
.ec-metric i.bi-camera-video-fill { color: var(--color-primary-light); }
.ec-metric i.bi-card-checklist { color: var(--ufv-green-300); }

.ec-metric > div {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.ec-metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1;
}

.ec-metric-label {
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    white-space: nowrap;
}

/* Preview cards */
.ec-event-preview {
    display: flex;
    justify-content: space-between;
    gap: var(--size-md);
    margin-top: var(--size-md);
    padding-top: var(--size-md);
    border-top: 1px solid var(--color-border-subtle);
    position: relative;
}

.ec-preview-section {
    flex: 1;
    position: relative;
    min-width: 0;
}

.ec-preview-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: var(--size-xs);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    letter-spacing: 0.5px;
}
.ec-preview-label.prev { justify-content: flex-start; }
.ec-preview-label.next { justify-content: flex-end; }

.ec-preview-arrow {
    color: var(--color-primary);
    font-size: 1.2em;
}

.ec-preview-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.7;
    border: 1px solid var(--color-border-subtle);
    min-height: 70px;
    display: flex;
    align-items: center;
}
.ec-preview-card:not(.disabled):hover {
    opacity: 1;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.ec-preview-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--color-surface);
    border-color: var(--color-border-subtle);
}

.ec-preview-header {
    display: flex;
    align-items: center;
    gap: var(--size-sm);
    width: 100%;
}

.ec-preview-poster {
    width: 36px;
    height: 45px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}
.ec-preview-poster.past {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-background) 100%);
    color: var(--color-text-secondary);
}

.ec-preview-poster img.ec-preview-poster-img-actual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.ec-preview-poster.past img.ec-preview-poster-img-actual {
    filter: grayscale(80%) opacity(60%);
}

.ec-preview-info {
    flex: 1;
    min-width: 0;
}

.ec-preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ec-preview-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-tertiary);
}

.ec-preview-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ec-preview-date > span:last-child {
    font-weight: 500;
    text-transform: capitalize;
}

.ec-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--size-md);
}

.ec-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.ec-indicator:hover {
    background: var(--color-border-subtle);
}
.ec-indicator.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* Status dot colors */
.ec-preview-status-dot.status-live { background-color: var(--color-danger); }
.ec-preview-status-dot.status-upcoming { background-color: var(--color-success); }
.ec-preview-status-dot.status-past { background-color: var(--color-text-tertiary); }

/* === UFC VALUE FINDER - FIGHT CARD STYLES === */
.ufv-fight-card-outer.fight-section {
    background: var(--color-surface-raised);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fight-section .section-header {
    background: linear-gradient(90deg, 
        rgba(210, 10, 10, 0.3) 0%,     /* Reduced opacity from 0.8 */
        rgba(210, 10, 10, 0.15) 50%,   /* Reduced opacity from 0.4 */
        rgba(210, 10, 10, 0.05) 100%   /* Reduced opacity from 0.1 */
    );
    padding: 12px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--color-border-subtle);
}

.fight-section .weight-class {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-family: var(--font-family-heading);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fight-section .fighters-header {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(90px, 0.9fr) minmax(100px, 1fr) minmax(90px, 0.9fr) minmax(80px, 0.8fr);
    gap: 16px;
    padding: 12px 20px 10px;
    border-bottom: 1px solid var(--color-border-subtle);
    background: var(--color-surface);
}

.fight-section .header-cell {
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.fight-section .header-cell:first-child {
     align-items: flex-start;
     text-align: left;
}

.fight-section .header-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
}
.fight-section .header-cell:first-child .header-title-wrap {
    justify-content: flex-start;
}

.fight-section .header-title-wrap span {
    white-space: nowrap;
}

.fight-section .fighter-row {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(90px, 0.9fr) minmax(100px, 1fr) minmax(90px, 0.9fr) minmax(80px, 0.8fr);
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border-subtle);
    align-items: center;
    transition: background-color 0.15s ease-in-out;
    background-color: transparent;
}
/* Center vote section and crowd odds */
.fight-section .fighter-row > :nth-child(2),
.fight-section .fighter-row > :nth-child(3) {
    justify-self: center;
}
/* Center bookie odds column */
.fight-section .fighter-row > :nth-child(4) {
    justify-self: center;
}
/* Center edge column */
.fight-section .fighter-row > :nth-child(5) {
    justify-self: center;
}
.fight-section .fighter-row:hover {
    background-color: var(--color-surface);
}
.fight-section .fighter-row:last-of-type {
    border-bottom: none;
}

.fight-section .fighter-row.edge-positive {
    background: rgba(34, 197, 94, 0.12) !important;
    border-left: 3px solid var(--color-success);
    padding-left: calc(20px - 3px);
}
.fight-section .fighter-row.edge-positive:hover {
    background: rgba(34, 197, 94, 0.18) !important;
}

.fight-section .fighter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fight-section .fighter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary-dark);
    overflow: hidden;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}
.fight-section .fighter-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fight-section .fighter-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-right: 8px;
}

/* Expert Badges Inline Styles */
.fight-section .fighter-expert-badges {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.fight-section .fighter-expert-badges > * {
    margin-left: -8px;
    position: relative;
    transition: all 0.2s ease;
}

.fight-section .fighter-expert-badges > *:first-child {
    margin-left: 0;
}

.fight-section .fighter-expert-badges > *:hover {
    z-index: 10;
    transform: scale(1.1);
}

/* Stacking order for overlapping badges */
.fight-section .fighter-expert-badges > *:nth-child(1) { z-index: 5; }
.fight-section .fighter-expert-badges > *:nth-child(2) { z-index: 4; }
.fight-section .fighter-expert-badges > *:nth-child(3) { z-index: 3; }
.fight-section .fighter-expert-badges > *:nth-child(4) { z-index: 2; }
.fight-section .fighter-expert-badges > *:nth-child(5) { z-index: 1; }

.fight-section .expert-youtube-icon {
    width: 20px;
    height: 20px;
    background-color: #FF0000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    filter: grayscale(45%);
}

.fight-section .expert-youtube-icon i.bi-play-fill {
    font-size: 12px;
    color: white;
}

.fight-section .expert-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.fight-section .expert-badge img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.fight-section .expert-badge-generic {
    background: var(--color-secondary-dark);
}

.fight-section .expert-badge:hover { 
    transform: scale(1.15); 
    z-index: 10; 
    border-color: var(--color-primary-light); 
}

.fight-section .expert-more {
    font-size: 10px;
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Lighter background for crowd votes column */
.fight-section .fighter-row > :nth-child(2) {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px;
}

.fight-section .vote-count {
    background: linear-gradient(135deg, var(--color-border), var(--color-border-subtle));
    color: var(--color-text-primary);
    padding: 5px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Lighter background for crowd votes column */
.fight-section .fighter-row > :nth-child(2) {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px;
}

.fight-section .odds-section {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid transparent;
    min-width: fit-content;
    box-sizing: border-box;
}

.fight-section .odds-section.crowd-odds {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
    justify-content: center;
}
.fight-section .odds-section.crowd-odds:hover {
    background-color: transparent !important;
    transform: none;
}

.fight-section .odds-section.bookie-odds {
    background-color: transparent;
    border: 1px solid transparent;
    justify-content: center;
    position: relative;
    min-width: fit-content;
    max-width: none;
    padding: 0 10px;
}
.fight-section .odds-section.bookie-odds:hover:not(.highlighted) {
    border-color: transparent;
    background-color: transparent;
}

/* Only show box when highlighted (positive edge) */
.fight-section .odds-section.highlighted {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.15));
    border: 1px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.25);
    color: #22c55e;
    padding: 0 10px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.fight-section .odds-section.highlighted:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(46, 204, 113, 0.25));
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, 0.7);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.fight-section .odds-section .icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: white;
    margin-right: 6px;
    flex-shrink: 0;
}

/* YouTube Icon - More Recognizable */
.fight-section .odds-section.crowd-odds .icon.youtube-icon {
    background: #FF0000;
    color: white;
    border-radius: 3px;
    width: 18px;
    height: 14px;
    position: relative;
    filter: grayscale(45%);
}
.fight-section .odds-section.crowd-odds .icon.youtube-icon i.bi-play-fill {
    font-size: 10px;
}

.fight-section .odds-section.bookie-odds .icon.bookie-logo {
    background: var(--color-success);
    color: var(--color-background);
    font-weight: 700;
}
.fight-section .odds-section.highlighted .icon.bookie-logo {
    background: #2ecc71;
}

.fight-section .edge-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
}
.fight-section .edge-section.edge-positive { color: var(--color-success); }
.fight-section .edge-section.edge-negative { color: var(--color-danger); }
.fight-section .edge-section.edge-neutral { color: var(--color-text-tertiary); }

/* Responsive */
@media (max-width: 767px) {
    .fight-section .fighters-header,
    .fight-section .fighter-row {
        grid-template-columns: minmax(100px, 1.5fr) repeat(4, minmax(45px, 0.7fr));
        gap: 8px;
        padding-left: 12px; 
        padding-right: 12px;
    }
    
    .fight-section .fighter-row.edge-positive {
        padding-left: calc(12px - 3px);
    }
    
    .fight-section .header-cell {
        font-size: 10px;
    }
    
    .fight-section .fighter-expert-badges {
        display: none; /* Hide expert badges on mobile for space */
    }
}

@media (max-width: 480px) {
    .fight-section .fighters-header,
    .fight-section .fighter-row {
        grid-template-columns: minmax(80px, 1.2fr) repeat(4, minmax(35px, 0.6fr));
        gap: 6px;
        padding-left: 8px; 
        padding-right: 8px;
    }
    
    .fight-section .fighter-row.edge-positive {
        padding-left: calc(8px - 3px);
    }
    
    .fight-section .header-cell {
        font-size: 9px;
    }
}

/* === EVENT DETAIL PAGE - Fight Card Styles === */
.fighter-display {
    padding: var(--size-md); display: flex; flex-direction: column;
    align-items: center; position: relative;
}
.fighter-profile-img {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm); margin-bottom: var(--size-sm);
}
.octagon-clip.fighter-profile-placeholder {
    width: 100px; height: 100px; display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--color-secondary-dark); color: var(--color-text-primary);
    font-weight: 600; font-size: 2rem;
    border: 2px solid var(--color-border); margin-bottom: var(--size-sm);
}
.octagon-clip.fighter-profile-placeholder span { line-height: 1; }
.fighter-name-display {
    font-size: 1.1rem; font-weight: 600;
    margin-bottom: var(--size-sm); color: var(--color-text-primary); text-align: center;
}
.prediction-tag {
    font-size: 0.75rem;
    background-color: rgba(var(--bs-info-rgb), 0.1);
    color: var(--bs-info-text-emphasis);
    padding: 0.2rem 0.4rem; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; margin-top: 0.25rem;
    border: 1px solid rgba(var(--bs-info-rgb), 0.2);
}
.prediction-channel-logo {
    width: 14px; height: 14px;
    border-radius: 50%; margin-right: 0.25rem; object-fit: cover;
}
.vs-separator { display: flex; align-items: center; justify-content: center; padding: var(--size-md) 0; }
.vs-text {
    font-family: var(--font-family-heading); font-size: 2rem;
    font-weight: 700; color: var(--color-primary); line-height: 1; text-transform: uppercase;
}
.fighter-winner .fighter-name-display { color: var(--color-success-light); }
.fighter-winner .fighter-profile-img,
.fighter-winner .octagon-clip.fighter-profile-placeholder { border-color: var(--color-success); }
.fighter-loser .fighter-name-display { opacity: 0.6; }
.fighter-loser .fighter-profile-img,
.fighter-loser .octagon-clip.fighter-profile-placeholder { opacity: 0.5; border-color: var(--color-danger); }
.fight-result-summary {
    margin-top: var(--size-md); padding-top: var(--size-sm);
    border-top: 1px solid var(--color-border-subtle);
}
.fight-result-summary .badge { font-size: 0.9rem; }

/* === CHANNELS PAGE === */
.channel-list-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.channel-list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-dark);
}

.channel-list-card .card-body {
    padding: var(--size-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.channel-list-card-header {
    display: flex;
    align-items: center;
    gap: var(--size-sm);
    margin-bottom: var(--size-sm);
}
.channel-list-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-secondary-dark);
    border: 1px solid var(--color-border);
}
.channel-list-card-logo-placeholder {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 600; color: var(--color-text-primary);
    flex-shrink: 0;
    background-color: var(--color-primary-dark);
    border-radius: 50%;
    border: 1px solid var(--color-border);
}
.channel-list-card-info { flex-grow: 1; min-width: 0; }
.channel-list-card-title {
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 0.1rem !important;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.channel-list-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
}
.channel-list-card-meta i { margin-right: 0.25rem; font-size: 0.9em; }

.channel-list-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--size-md);
    text-align: left;
    margin-bottom: var(--size-sm);
}
.stat-item-list .stat-value-list {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.1rem;
}
.stat-item-list .stat-value-list.accuracy-value { color: var(--color-tertiary); }
.stat-item-list .stat-value-list.predictions-value { color: var(--color-info); }

.stat-item-list .stat-label-list {
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0;
}
.channel-list-accuracy-progress {
    height: 5px;
    background-color: var(--color-secondary-dark);
    border-radius: var(--radius-full);
    margin-top: var(--size-xs);
    margin-bottom: var(--size-sm);
}
.channel-list-accuracy-progress .progress-bar {
    background-color: var(--color-tertiary) !important;
    border-radius: var(--radius-full);
}

.channel-mid-content {
    min-height: 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: var(--size-sm);
}
.channel-list-pick-summary {
    display: flex;
    justify-content: space-around;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}
.channel-list-pick-summary .mx-1 { color: var(--color-text-tertiary); margin: 0 0.3rem; }
.channel-mid-content > .channel-list-pick-summary.text-center {
    line-height: normal;
    height: auto;
    padding: 0.5rem 0;
    font-style: italic;
}

.channel-list-roi-summary {
    font-size: 0.75rem;
    text-align: left;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: var(--size-md);
    color: var(--color-text-secondary);
}
.channel-list-roi-summary i.bi-cash-coin {
    font-size: 0.9em;
    margin-right: 0.2rem;
    color: var(--color-warning);
}
.channel-list-roi-summary strong {
    font-weight: 600;
    color: var(--color-text-primary);
}
.channel-list-roi-summary .text-tertiary {
    font-size: 0.9em;
    color: var(--color-text-tertiary);
}

.channel-list-card-footer {
    margin-top: auto;
    padding-top: var(--size-sm);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    gap: var(--size-sm);
}
.channel-list-card .btn-view-stats-custom,
.channel-list-card .btn-youtube-custom {
    flex-grow: 1;
    text-align: center;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.6rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    border-radius: var(--radius-md) !important;
}
.channel-list-card .btn-view-stats-custom {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}
.channel-list-card .btn-view-stats-custom:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}
.channel-list-card .btn-youtube-custom {
    background-color: var(--color-surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-danger) !important;
}
.channel-list-card .btn-youtube-custom:hover {
    background-color: var(--color-border) !important;
    color: var(--color-danger-light) !important;
}
.channel-list-card .mt-auto hr { display: none; }

/* === CHANNEL DETAIL PAGE === */
.channel-detail-header {
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--size-lg);
    margin-bottom: var(--size-xl) !important;
}
.channel-detail-logo {
    width: 90px; height: 90px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--color-border); box-shadow: var(--shadow-md);
}
.channel-detail-logo-placeholder {
    width: 90px; height: 90px; display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-weight: 700; color: var(--color-text-primary);
    border: 3px solid var(--color-border);
    background-color: var(--color-primary-dark);
    border-radius: 50%;
}
.channel-detail-url { font-size: 0.95rem; word-break: break-all; color: var(--color-text-secondary); }
.channel-detail-url a { color: var(--color-info-light); }
.channel-detail-url a:hover { color: var(--color-info); }
.channel-detail-url i { font-size: 0.85em; margin-right: 0.2rem; }

.stat-card-detail {
    background-color: var(--color-surface);
    padding: var(--size-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.stat-value-detail {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.1rem;
    color: var(--color-text-primary);
}
.stat-card-detail.accuracy .stat-value-detail { color: var(--color-success-light); }
.stat-card-detail.roi .stat-value-detail { color: var(--color-tertiary); }
.stat-card-detail.predictions .stat-value-detail { color: var(--color-info-light); }
.stat-card-detail.streak .stat-value-detail { color: var(--color-warning-light); }

.stat-label-detail {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.stat-card-detail small.text-tertiary {
    font-size: 0.7rem;
    display: block;
    margin-top: 0.1rem;
    color: var(--color-text-tertiary);
}

.chart-container {
    position: relative; margin: auto; height: 350px; width: 100%;
    background-color: var(--color-surface);
    padding: var(--size-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
}

/* === LEADERBOARD V2 STYLES === */
.leaderboard-v2-page {
    background-color: var(--color-background);
}
.leaderboard-v2-page::before,
.leaderboard-v2-page::after {
    content: none !important;
}

.leaderboard-header {
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(18, 18, 18, 0.92);
}
.leaderboard-v2-page .site-logo {
   height: 36px;
}
.leaderboard-title {
    font-family: var(--font-family-heading);
}
.leaderboard-header-divider { background-color: var(--color-border-subtle); }

.leaderboard-search-input {
    background-color: rgba(38, 38, 38, 0.85) !important;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--color-text-primary);
    line-height: 1;
}
.leaderboard-search-input::placeholder { color: var(--color-text-tertiary); }
.leaderboard-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.leaderboard-sort-select, .leaderboard-filter-btn {
    background-color: var(--color-surface-raised) !important;
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
    line-height: 1.2;
}
.leaderboard-sort-select {
    padding-right: 2rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25em 1.25em;
}
.leaderboard-filter-btn {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    padding-left: 1rem; padding-right: 1rem;
}
.leaderboard-filter-btn:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}
.leaderboard-sort-select:hover {
    border-color: var(--color-text-secondary);
    background-color: var(--color-border) !important;
}

/* Top Stats Bar */
.top-stat-card {
    background-color: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    padding: var(--size-sm);
}
.top-stat-icon {
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
}
.top-stat-icon.icon-main-red { background-color: rgba(var(--bs-primary-rgb), 0.15); color: var(--color-primary); }
.top-stat-icon.icon-yellow-custom { background-color: rgba(var(--bs-tertiary-rgb), 0.15); color: var(--color-tertiary); }
.top-stat-icon.icon-purple-custom { background-color: rgba(var(--bs-info-rgb), 0.15); color: var(--color-purple); }
.top-stat-icon.icon-green-custom { background-color: rgba(var(--bs-success-rgb), 0.15); color: var(--color-success); }

.top-stat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-weight: 500;
    position: relative;
}
.stat-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    background-color: var(--color-surface);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    width: 14rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-secondary);
    font-weight: normal; text-transform: none;
    line-height: 1.4;
    box-shadow: var(--shadow-md);
}
.top-stat-title.group:hover .stat-tooltip { opacity: 1; visibility: visible; }

.top-stat-value {
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.2;
}
.top-stat-subtext {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1;
    align-self: flex-end;
    padding-bottom: 0.125rem;
}

/* Main Panels */
.leaderboard-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.panel-header {
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem var(--size-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-header-red { background-image: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.1), transparent); }
.panel-header-green { background-image: linear-gradient(90deg, rgba(var(--bs-success-rgb), 0.1), transparent); }
.panel-header-purple { background-image: linear-gradient(90deg, rgba(156, 39, 176, 0.1), transparent); }
.panel-header-yellow { background-image: linear-gradient(90deg, rgba(var(--bs-tertiary-rgb), 0.1), transparent); }
.panel-header-blue { background-image: linear-gradient(90deg, rgba(var(--bs-info-rgb), 0.1), transparent); }

.panel-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    font-family: var(--font-family-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

/* Channel Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table thead tr {
    background-color: var(--color-surface-raised);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.leaderboard-table th, .leaderboard-table td {
    padding: 0.85rem var(--size-sm);
    vertical-align: middle;
    border-top: none;
}
.leaderboard-table-body {
     border-top: 1px solid var(--color-border);
}
.leaderboard-table-body tr:not(:last-child) {
    border-bottom: 1px solid var(--color-border-subtle);
}
.leaderboard-row {
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.leaderboard-row:hover {
    background-color: var(--color-surface-raised);
}
.rank-badge {
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
}
.rank-badge.rank-1 { background-color: var(--color-tertiary); color: var(--color-background); }
.rank-badge.rank-2 { background-color: #c0c0c0; color: var(--color-background); }
.rank-badge.rank-3 { background-color: #cd7f32; color: var(--color-text-primary); }
.rank-badge.rank-other { background-color: var(--color-border); color: var(--color-text-primary); }

.channel-logo-table {
    width: 2.25rem; height: 2.25rem;
    border-radius: var(--radius-sm);
    margin-right: var(--size-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border-subtle);
}
.channel-logo-initial {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: bold;
    background-color: var(--color-border);
    color: var(--color-text-primary);
}
.channel-name-table { color: var(--color-text-primary); font-size: 0.9rem; font-weight: 500; }

.accuracy-bar-bg { background-color: var(--color-secondary-dark); height: 0.6rem; }
.accuracy-bar { background-color: var(--color-success); }

.leaderboard-stats-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    border: none;
    font-weight: 500;
}
.leaderboard-stats-btn:hover { background-color: var(--color-primary-dark); }

.panel-footer {
    border-top: 1px solid var(--color-border);
    padding: 0.85rem var(--size-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}
.pagination-btn {
    padding: 0.4rem 0.7rem;
    background-color: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-right: 0.25rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
}
.pagination-btn:hover { background-color: var(--color-border); color: var(--color-text-primary); }
.pagination-btn.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }
.panel-footer-link { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.panel-footer-link:hover { color: var(--color-primary-light); }

/* Side Panels */
.side-panel-legend {
    margin-bottom: var(--size-sm);
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.legend-item { display: flex; align-items: center; }
.legend-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-right: 0.3rem;
}
.bg-blue-custom-dot { background-color: var(--color-info); }
.bg-green-custom-dot { background-color: var(--color-success); }

.side-panel-item {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-fast);
    cursor: pointer;
    border: 1px solid var(--color-border-subtle);
}
.side-panel-item:hover { background-color: var(--color-border); }

.side-panel-item .text-xs { font-size: 0.8rem; }
.side-panel-item .font-medium { font-weight: 500; }
.side-panel-item .font-bold { font-weight: 700; }

.side-panel-logo, .side-panel-logo-img {
    width: 1.5rem; height: 1.5rem;
    border-radius: var(--radius-sm);
    margin-right: 0.375rem;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}
.side-panel-logo {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
    background-color: var(--color-border);
    color: var(--color-text-primary);
}
.side-panel-logo-img { object-fit: cover; }

.side-panel-sub-name {
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
}
.side-panel-bar-container {
    position: absolute;
    bottom: 0; left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}
.side-panel-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 100%;
    transition: width 0.3s ease-out;
}
.side-panel-bar.bg-blue-custom { background-color: rgba(var(--bs-info-rgb), 0.25); }
.side-panel-bar.bg-green-custom { background-color: rgba(var(--bs-success-rgb), 0.35); }

.side-panel-footer-note {
    margin-top: var(--size-sm);
    padding-top: var(--size-sm);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
}
.side-panel-footer-note > div:last-child { font-weight: 500; }

/* Betting Returns Panel */
.betting-return-item {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border: 1px solid var(--color-border-subtle);
}
.betting-return-item:hover { background-color: var(--color-border); }
.betting-return-item.roi-positive { background-color: rgba(var(--bs-success-rgb), 0.08); border-left: 3px solid var(--color-success); }
.betting-return-item.roi-negative { background-color: rgba(var(--bs-danger-rgb), 0.08); border-left: 3px solid var(--color-danger); }

.betting-return-item .text-xs { font-size: 0.8rem; }
.betting-return-item .font-medium { font-weight: 500; }
.betting-return-item .font-bold { font-weight: 700; }

.betting-return-sub-item {
    margin-top: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.side-panel-logo-sm, .side-panel-logo-sm-img {
    width: 1.15rem; height: 1.15rem;
    font-size: 0.65rem;
    border-radius: var(--radius-sm);
    margin-right: 0.25rem;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}
.side-panel-logo-sm {
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    background-color: var(--color-border);
    color: var(--color-text-primary);
}
.side-panel-logo-sm-img { object-fit: cover; }
.side-panel-sub-name-sm { font-size: 0.7rem; color: var(--color-text-tertiary); }
.side-panel-sub-value-sm { font-size: 0.7rem; font-weight: 500; }

/* Top Videos Panel */
.top-video-item {
    padding: var(--size-sm);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-fast);
    cursor: pointer;
    border-bottom: 1px solid var(--color-border-subtle);
}
.top-videos-list > .top-video-item:last-of-type {
    border-bottom: none;
}
.top-videos-list > div.p-2.text-center {
    border-top: 1px solid var(--color-border-subtle);
}
.top-video-item:hover { background-color: var(--color-surface-raised); }

.top-video-thumb-area {
    width: 4.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background-color: var(--color-secondary-dark);
}
.top-video-thumb-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    transition: filter 0.2s ease-out;
}
.top-video-item:hover .top-video-thumb-img { filter: brightness(90%); }
.top-video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease-out;
}
.top-video-item:hover .top-video-play-icon { opacity: 1; }
.top-video-play-icon svg {
    background-color: rgba(var(--bs-primary-rgb), 0.85);
    border-radius: 50%;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0.25rem;
}
.top-video-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.top-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
}
.top-video-channel-logo {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    margin-right: 0.25rem;
    object-fit: cover;
    flex-shrink: 0;
}
.top-video-channel-initial {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem;
    background-color: var(--color-secondary-dark);
    color: var(--color-text-primary);
}
.top-video-channel-name {
    color: var(--color-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 4.5rem;
}
.top-video-accuracy {
    color: var(--color-success);
    font-weight: 600;
    white-space: nowrap;
}

/* Modal Styles */
.leaderboard-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.85);
}
.leaderboard-modal-content {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 45rem;
    width: 100%;
    position: relative;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}
.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: var(--size-sm) var(--size-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-surface-raised);
}
.modal-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    font-family: var(--font-family-heading);
}
.channel-logo-modal {
    width: 2.25rem; height: 2.25rem;
    border-radius: var(--radius-md);
    margin-right: var(--size-sm);
    display: flex; align-items: center; justify-content: center;
    background-color: var(--color-border);
    color: var(--color-text-primary);
    font-size: 1.1rem; font-weight: bold;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-border-subtle);
}
.channel-logo-modal img {
    width: 100%; height: 100%; object-fit: cover;
}
.modal-close-btn {
    background: none; border: none;
    color: var(--color-text-tertiary);
    transition: color var(--transition-fast);
    cursor: pointer;
    padding: 0.5rem;
}
.modal-close-btn:hover { color: var(--color-text-primary); }
.modal-close-btn svg { width: 1.25rem; height: 1.25rem; }

.modal-stat-item {
    background-color: var(--color-surface-raised);
    padding: var(--size-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    text-align: center;
}
.modal-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.modal-stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-text-primary);
    line-height: 1.2;
}
.modal-stat-sublabel {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-top: 0.25rem;
}

.modal-breakdown-box {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--size-md);
    border: 1px solid var(--color-border-subtle);
}
.modal-breakdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--size-sm);
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--size-xs);
}
.modal-breakdown-label {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.modal-breakdown-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: opacity var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
}
.modal-action-btn:hover { opacity: 0.9; }
.modal-action-close {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
    background-color: var(--color-surface-raised);
}
.modal-action-close:hover { color: var(--color-text-primary); background-color: var(--color-border); }
.modal-action-profile {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.modal-action-profile:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-secondary-dark); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-sm); border: 2px solid var(--color-secondary-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-subtle); }

/* === UTILITY CLASSES === */
/* Grid & Flex */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:w-auto { width: auto; }
    .md\:w-48 { width: 12rem; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
}
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.auto-rows-auto { grid-auto-rows: auto; }
.content-start { align-content: start; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }

/* Position */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top:0; right:0; bottom:0; left:0; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-y-1\/2 { --tw-translate-y: -50%; transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));}

/* Sizing */
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }

.appearance-none { appearance: none; -webkit-appearance: none; -moz-appearance: none;}
.cursor-pointer { cursor: pointer; }

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
@media (min-width: 768px) {
    .md\:p-6 { padding: 1.5rem; }
}

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.text-white { color: var(--color-text-primary); }
.text-gray-300 { color: var(--color-text-secondary); }
.text-gray-400 { color: var(--color-text-tertiary); }
.text-gray-500 { color: rgba(255,255,255,0.4); }
.text-main-red { color: var(--color-primary) !important; }
.text-yellow-custom { color: var(--color-tertiary) !important; }
.text-purple-custom { color: var(--color-purple) !important; }
.text-green-custom { color: var(--color-success) !important; }
.text-blue-custom { color: var(--color-info) !important; }

/* Borders */
.rounded-full { border-radius: var(--radius-full); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded { border-radius: var(--radius-sm); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-t { border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }

/* Other */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.invisible { visibility: hidden; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.hidden { display: none !important; }

/* === HERO SECTION V2 === */
/* === HERO SECTION V2 === */
.hero-section-v2 {
    padding: 2.5rem 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-v2-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(to bottom right, #262626, #171717);
    border: 1px solid #404040;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

/* Shimmer effect */
.hero-v2-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(239, 68, 68, 0.4) 20%, 
        rgba(239, 68, 68, 0.8) 50%, 
        rgba(239, 68, 68, 0.4) 80%, 
        transparent 100%
    );
    animation: shimmerRed 3s ease-in-out infinite;
}

@keyframes shimmerRed {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header */
.hero-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.hero-v2-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-v2-badge--ai {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.hero-v2-badge--live {
    color: #4ade80;
    position: relative;
}

.hero-v2-icon-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-v2-live-indicator {
    position: relative;
    display: flex;
    height: 0.75rem;
    width: 0.75rem;
    margin-right: 0.5rem;
}

.hero-v2-live-ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: #4ade80;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-v2-live-dot {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    height: 0.75rem;
    width: 0.75rem;
    background-color: #22c55e;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Content Grid */
.hero-v2-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem 4rem;
    padding: 3rem 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-v2-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left Content */
.hero-v2-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-v2-title {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .hero-v2-title {
        font-size: 3.75rem;
    }
}

.hero-v2-title-highlight {
    font-size: 4.5rem;
    background: linear-gradient(to right, #ef4444, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(220, 38, 38, 0.35);
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(220, 38, 38, 0.35));
}

@media (min-width: 1024px) {
    .hero-v2-title-highlight {
        font-size: 6rem;
    }
}

/* ROI Display */
.hero-v2-roi {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-v2-roi-wrapper {
    position: relative;
    display: inline-block;
}

.hero-v2-roi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #4ade80;
    line-height: 1;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    display: inline-block;
}

@media (min-width: 1024px) {
    .hero-v2-roi-value {
        font-size: 3rem;
    }
}

.hero-v2-roi-glow {
    position: absolute;
    inset: -4px;
    background-color: rgba(34, 197, 94, 0.1);
    filter: blur(12px);
    border-radius: 9999px;
    opacity: 0.7;
    z-index: 0;
    animation: roiPulse 4s ease-in-out infinite;
}

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

.hero-v2-roi-label {
    font-size: 1.25rem;
    font-weight: 300;
    color: #737373;
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .hero-v2-roi-label {
        font-size: 1.5rem;
    }
}

/* Subtitle */
.hero-v2-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    color: #a3a3a3;
    margin-bottom: 2rem;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .hero-v2-subtitle {
        font-size: 1.125rem;
    }
}

.hero-v2-highlight {
    color: #4ade80;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-v2-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ade80, transparent);
    animation: highlightShimmer 3s ease-in-out infinite;
}

@keyframes highlightShimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Stats Block */
.hero-v2-stats {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: rgba(38, 38, 38, 0.7);
    border: 1px solid #404040;
    border-radius: 1rem;
}

@media (min-width: 640px) {
    .hero-v2-stats {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.hero-v2-stat {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.hero-v2-stat-icon {
    color: #f87171;
    opacity: 0.9;
}

.hero-v2-stat:hover .hero-v2-stat-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.hero-v2-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .hero-v2-stat-value {
        font-size: 1.5rem;
    }
}

.hero-v2-stat-label {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #737373;
    letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
    .hero-v2-stat-label {
        font-size: 0.625rem;
    }
}

.hero-v2-stat-divider {
    width: 1px;
    height: 2rem;
    background-color: #404040;
    display: none;
}

@media (min-width: 640px) {
    .hero-v2-stat-divider {
        display: block;
    }
}

@media (max-width: 639px) {
    .hero-v2-stat-divider {
        width: 100%;
        height: 1px;
        display: block;
    }
}

/* Chart Container */
.hero-v2-chart-container {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(64, 64, 64, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    padding-right: 2rem;
}

@media (min-width: 640px) {
    .hero-v2-chart-container {
        padding-right: 2.5rem;
    }
}

.hero-v2-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(64, 64, 64, 0.5);
    padding-bottom: 0.75rem;
}

.hero-v2-chart-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e5e5e5;
    border-bottom: none;
    padding-bottom: 0;
}

.hero-v2-chart-badge {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #f87171;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.hero-v2-chart {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-v2-chart svg {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid lines styling */
#gridLines line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-dasharray: 2, 4;
}

/* Axes styling */
#axes line {
    stroke: rgba(255, 255, 255, 0.15);
}

/* Zero line special styling */
#axes line:last-child {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-dasharray: none;
}

/* Y-axis labels styling */
/* NEW */
#yAxisLabels text {
    font-size: 9px;
    font-weight: 400;
    fill: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}

/* Chart labels with background */
#chartLabels rect {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

#chartLabels text {
    filter: none;
}

#ourRoiLabel rect {
    fill: rgba(16, 185, 129, 0.95);
    stroke: rgba(255, 255, 255, 0.15);
}

#avgBettorLabel rect {
    fill: rgba(220, 38, 38, 0.95);
    stroke: rgba(255, 255, 255, 0.15);
}

/* Endpoint dots - no animation, with glow */
#ourRoiEndpoint {
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
    animation: none !important;
}

#avgBettorEndpoint {
    filter: drop-shadow(0 0 4px rgba(220, 38, 38, 0.5));
    animation: none !important;
}

/* Lines glow effect enhancement */
#ourRoiLine {
    filter: url(#glowEffect) drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
}

#avgBettorLine {
    filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.3));
}

/* Area gradients update for subtler look */
#positiveAreaGradient stop:first-child {
    stop-opacity: 0.12;
}

#negativeAreaGradient stop:first-child {
    stop-opacity: 0.08;
}

/* Remove pulse animation from chart dots */
.hero-v2-pulse-dot {
    animation: none !important;
}

/* Counter animations */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-v2-roi-value,
.hero-v2-stat-value,
.hero-v2-highlight,
.hero-v2-chart-badge span {
    animation: countUp 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-v2-header {
        padding: 1rem 1.5rem;
    }
    
    .hero-v2-content {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .hero-v2-title {
        font-size: 2.5rem;
    }
    
    .hero-v2-title-highlight {
        font-size: 3.5rem;
    }
    
    .hero-v2-badge {
        font-size: 0.625rem;
        padding: 0.375rem 0.875rem;
    }
    
    .hero-v2-chart-container {
        padding: 1rem;
    }
    
    .hero-v2-chart {
        height: 250px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-v2-chart {
        height: 300px;
    }
}

