/*
Theme Name: StreamBox
Theme URI: https://yourwebsite.com/streambox
Author: Your Name
Author URI: https://yourwebsite.com
Description: A premium WordPress theme for streaming platforms featuring movies, TV shows, anime, and live sports. Includes advanced SEO, auto-import from TMDB/OMDB/MAL, episode generator, sports auto-sync, and a powerful admin dashboard.
Version: 1.0.6
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streambox
Tags: entertainment, streaming, movies, tv-shows, anime, sports, dark-mode, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, blog, one-column, two-columns
*/

:root {
    /* Font Families */
    --font-main: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Color Palette - Premium Dynamic Gradients */
    --color-bg-primary: #0f172a; /* Fallback */
    --color-accent: #6366f1;
    --color-accent-glow: #8b5cf6;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Layout */
    --container-width: 1200px;
    --header-height: 56px;
    --bottom-nav-height: 65px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}
h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.75rem;
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Utility Classes for Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(
        135deg,
        var(--color-accent),
        var(--color-accent-glow)
    );
    color: white;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

.btn:active {
    transform: translateY(0);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn--icon {
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

/* --- Components --- */

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    opacity: 0.8;
}

.main-navigation ul li a:hover {
    opacity: 1;
    color: #fff;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: flex-end; /* Text at bottom */
    margin-bottom: 4rem;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--color-bg-primary) 0%,
        transparent 80%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    width: 100%;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Cards */
.media-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    aspect-ratio: 2/3; /* Traditional poster ratio */
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.media-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-meta {
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}

/* Play Button Overlay */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.media-card:hover .play-btn-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid white;
    margin-left: 4px;
}

/* Hide HD quality badge globally */
.quality-badge {
    display: none !important;
}

/* ═══════════════════════════════════════════
   Category Strip — Nollywood, Bollywood, etc.
   ═══════════════════════════════════════════ */

.category-strip {
    padding: 0 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.category-strip-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.category-strip-track::-webkit-scrollbar {
    display: none;
}

.category-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.category-strip-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.category-strip-icon {
    font-size: 16px;
    line-height: 1;
}

.category-strip-name {
    letter-spacing: 0.2px;
}

/* ═══════════════════════════════════════════════════════
   DESKTOP UI ENHANCEMENTS — Premium Streaming Experience
   ═══════════════════════════════════════════════════════ */

/* ── Sticky Header with Blur Backdrop ── */
.site-header--compact {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header--compact.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ── Minimal Header Layout (Search + Profile Only) ── */
.header-content--minimal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    gap: 1rem;
}

.header-spacer {
    flex: 1;
}

/* ── Enhanced Media Card with 3D Tilt ── */
.media-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform;
}

.media-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.media-card:hover::after {
    opacity: 1;
}

/* ── Content Rows with Gradient Edges ── */
.content-row {
    position: relative;
    margin-bottom: 3rem;
}

.content-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
}

.content-row__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.content-row__see-all {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.content-row__see-all:hover {
    opacity: 1;
}

.content-row__track {
    position: relative;
    overflow: hidden;
}

.content-row__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 1.25rem;
}

.content-row__scroll::-webkit-scrollbar {
    display: none;
}

/* Gradient fade edges */
.content-row__track::before,
.content-row__track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.content-row__track::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary), transparent);
}

.content-row__track::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary), transparent);
}

/* ── Breadcrumb Navigation ── */
.breadcrumb-nav {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-nav__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumb-nav__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.breadcrumb-nav__item a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.breadcrumb-nav__item a:hover {
    color: var(--color-accent);
}

.breadcrumb-nav__separator {
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-nav__current {
    color: var(--color-text-main);
    font-weight: 500;
}

/* ── Search Overlay Enhancement ── */
.header-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-search-overlay .search-overlay-content {
    max-width: 700px;
    margin: 10vh auto 0;
    padding: 0 2rem;
}

.search-overlay-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.search-overlay-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.search-results-dropdown__section {
    padding: 0.75rem 0;
}

.search-results-dropdown__label {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.search-results-dropdown__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-results-dropdown__item:hover,
.search-results-dropdown__item:focus {
    background: rgba(255, 255, 255, 0.06);
}

.search-results-dropdown__thumb {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-results-dropdown__info {
    flex: 1;
    min-width: 0;
}

.search-results-dropdown__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results-dropdown__meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    animation: toast-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
}

.toast--success {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast--info {
    border-color: rgba(99, 102, 241, 0.3);
}

.toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast__message {
    flex: 1;
    font-size: 0.85rem;
    color: #fff;
}

.toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}

/* ── Focus States for Keyboard Navigation ── */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ── Loading Skeleton Enhancement ── */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: skeleton-shimmer 1.5s infinite;
}

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

/* ── Scroll Progress Indicator ── */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--color-accent),
        var(--color-accent-glow)
    );
    transition: width 0.1s linear;
}

/* ── Tooltip Component ── */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.98);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ── Genre Pills ── */
.genre-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.genre-pill:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ── Rating Badge ── */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
}

.rating-badge__star {
    font-size: 0.75rem;
}

/* ── Cast Grid ── */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.cast-card {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-4px);
}

.cast-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease;
}

.cast-card:hover .cast-card__avatar {
    border-color: var(--color-accent);
}

.cast-card__name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.cast-card__role {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* ── Episode List ── */
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    text-decoration: none;
    transition: background 0.2s ease;
}

.episode-item:hover {
    background: rgba(30, 41, 59, 0.9);
}

.episode-item__number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 30px;
}

.episode-item__thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.episode-item__info {
    flex: 1;
    min-width: 0;
}

.episode-item__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.episode-item__duration {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ── Similar Titles Carousel ── */
.similar-titles {
    margin-top: 3rem;
}

.similar-titles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
}

.similar-titles__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* ── Page Transition Animations ── */
.page-enter {
    /* Removed animation — caused visible flash/glitch on every page navigation */
}

/* ── Scroll Reveal Animation ── */
.reveal {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    transform: translateY(0);
}

/* ── Reduced Motion Support ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .content-row__track::before,
    .content-row__track::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   LEFT SIDEBAR AD ZONE - Desktop Only
   ═══════════════════════════════════════════ */

/* Left Ad Sidebar Container - EXTRA WIDE */
.ad-sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    z-index: 900;
    display: none;
    flex-direction: column;
    padding: 0;
    background: rgba(10, 10, 20, 0.95);
    overflow: hidden;
}

/* Header with Logo */
.ad-sidebar-left__header {
    flex-shrink: 0;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.ad-sidebar-left__logo-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ad-sidebar-left__logo-link:hover {
    opacity: 0.85;
}

.ad-sidebar-left__logo-img {
    width: 180px;
    height: auto;
    display: block;
}

/* Ad Content Area - extends to fill remaining space */
.ad-sidebar-left__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

/* Ads fill full content area - no wrapper */
.ad-sidebar-left__content .streambox-ad-zone,
.ad-sidebar-left__content .ad-content,
.ad-sidebar-left__content .ad-zone-sidebar_left {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
}

.ad-sidebar-left__content .ad-label {
    display: none !important;
}

/* Vertical Divider Line - CLEAR BOUNDARY */
.ad-sidebar-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.9) 2%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(99, 102, 241, 0.9) 98%,
        transparent 100%
    );
    box-shadow:
        0 0 16px rgba(99, 102, 241, 0.6),
        0 0 6px rgba(139, 92, 246, 1);
}

/* Placeholder when no ad */
.ad-sidebar-left__placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

/* Show ad sidebar on desktop only */
@media (min-width: 1280px) {
    .ad-sidebar-left {
        display: flex;
    }

    /* Push header right - matches sidebar width */
    .site-header--compact {
        margin-left: 350px;
    }

    /* Push site content right - content starts at edge of boundary line */
    .site-content {
        margin-left: 350px;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Content rows stretch full width to edge */
    .content-rows-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Container stretches - content starts at boundary edge */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Hide ad sidebar on mobile/tablet */
@media (max-width: 1279px) {
    .ad-sidebar-left {
        display: none !important;
    }

    .site-content {
        margin-left: 0 !important;
    }
}

/* ── Desktop Large Screen Optimizations ── */
@media (min-width: 1400px) {
    :root {
        --container-width: 1400px;
    }

    .content-row__scroll {
        padding: 10px 2rem;
    }

    .media-card {
        aspect-ratio: 2/3;
    }

    .ad-sidebar-left {
        width: 370px;
    }

    .site-header--compact {
        margin-left: 370px;
    }

    .site-content {
        margin-left: 370px;
    }
}

@media (min-width: 1800px) {
    :root {
        --container-width: 1600px;
    }

    .content-row__scroll {
        gap: 16px;
    }

    .ad-sidebar-left {
        width: 390px;
    }

    .site-header--compact {
        margin-left: 390px;
    }

    .site-content {
        margin-left: 390px;
    }
}
