/**
 * Reelflix — Premium Design System
 * Self-contained CSS — fully independent of Tailwind utility processing
 * Netflix-quality cinematic dark UI
 */

/* ─── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ───────────────────────────────────── */
:root {
    --rf-primary: #e50914;
    --rf-primary-hover: #f40d18;
    --rf-accent: #ff6b35;
    --rf-gradient: linear-gradient(135deg, #e50914, #ff6b35);
    --rf-bg-dark: #0a0a0f;
    --rf-bg-card: #141420;
    --rf-bg-surface: #1a1a2e;
    --rf-bg-elevated: #1e1e34;
    --rf-text-primary: #ffffff;
    --rf-text-secondary: #8e8ea0;
    --rf-text-muted: #5a5a6e;
    --rf-glass: rgba(20, 20, 32, 0.85);
    --rf-glass-border: rgba(255, 255, 255, 0.08);
    --rf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rf-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --rf-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --rf-card-radius: 10px;
    --rf-row-gap: 2.5rem;
    --rf-side-padding: 4%;
}

[data-theme="light"] {
    --rf-bg-dark: #f5f5f7;
    --rf-bg-card: #ffffff;
    --rf-bg-surface: #f0f0f2;
    --rf-bg-elevated: #e8e8ec;
    --rf-text-primary: #1a1a2e;
    --rf-text-secondary: #666680;
    --rf-text-muted: #999;
    --rf-glass: rgba(255, 255, 255, 0.9);
    --rf-glass-border: rgba(0, 0, 0, 0.08);
    --rf-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--rf-bg-dark);
    color: var(--rf-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.6);
}

/* ─── Navbar ──────────────────────────────────────────────────── */
.rf-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 1.25rem 2%;
    transition: var(--rf-transition);
}

.rf-navbar.scrolled {
    background: var(--rf-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--rf-glass-border);
    padding: 0.7rem 2%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.rf-navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rf-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.rf-logo img {
    height: 34px;
    width: auto;
    transition: var(--rf-transition);
}

.rf-logo:hover img {
    opacity: 0.85;
}

.rf-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.rf-nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rf-text-secondary);
    transition: var(--rf-transition);
    position: relative;
}

.rf-nav-links a:hover,
.rf-nav-links a.active {
    color: var(--rf-text-primary);
}

.rf-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rf-gradient);
    border-radius: 1px;
}

/* ─── Search Bar ──────────────────────────────────────────────── */
.rf-search-wrapper {
    position: relative;
    flex: 0 1 380px;
    margin-left: auto;
}

.rf-search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    background: var(--rf-bg-surface);
    border: 1px solid var(--rf-glass-border);
    border-radius: 50px;
    color: var(--rf-text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: var(--rf-transition);
}

.rf-search-input:focus {
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
    background: var(--rf-bg-elevated);
}

.rf-search-input::placeholder {
    color: var(--rf-text-muted);
}

.rf-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rf-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Search Autocomplete */
.rf-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: var(--rf-bg-card);
    border: 1px solid var(--rf-glass-border);
    border-radius: var(--rf-card-radius);
    box-shadow: var(--rf-shadow-lg);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 1100;
}

@media (max-width: 768px) {
    .rf-autocomplete {
        position: fixed;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: 0;
        top: 70px;
    }
}

.rf-autocomplete.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rf-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: var(--rf-transition);
}

.rf-autocomplete-item:hover {
    background: var(--rf-bg-surface);
}

.rf-autocomplete-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rf-autocomplete-item .info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rf-text-primary);
    margin-bottom: 2px;
}

.rf-autocomplete-item .info p {
    font-size: 0.8rem;
    color: var(--rf-text-secondary);
}

.rf-autocomplete-item .info h4 {
    font-size: 0.88rem;
    font-weight: 600;
}

.rf-autocomplete-item .info p {
    font-size: 0.75rem;
    color: var(--rf-text-secondary);
}

/* ─── Action Buttons ──────────────────────────────────────────── */
.rf-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.rf-icon-btn {
    background: var(--rf-bg-surface);
    border: 1px solid var(--rf-glass-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rf-text-primary);
    font-size: 1rem;
    transition: var(--rf-transition);
}

.rf-icon-btn:hover {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
    color: #fff;
}

.rf-mobile-toggle {
    display: none;
}

/* ─── Mobile Menu ─────────────────────────────────────────────── */
.rf-mobile-menu {
    display: none;
    padding: 0.75rem 0;
}

.rf-mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rf-mobile-menu a {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--rf-text-secondary);
    transition: var(--rf-transition);
}

.rf-mobile-menu a:hover {
    background: var(--rf-bg-surface);
    color: var(--rf-text-primary);
}

/* ─── Hero Banner ─────────────────────────────────────────────── */
.rf-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
    margin-bottom: 0;
}

.rf-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rf-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    image-rendering: auto;
}

.rf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            var(--rf-bg-dark) 0%,
            rgba(10, 10, 15, 0.35) 25%,
            rgba(10, 10, 15, 0.25) 50%,
            rgba(10, 10, 15, 0.15) 75%,
            rgba(10, 10, 15, 0.2) 100%);
}

.rf-hero-content {
    position: absolute;
    bottom: 12%;
    left: 0;
    padding: 0 var(--rf-side-padding);
    z-index: 10;
    max-width: 620px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--rf-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.4);
}

.rf-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.rf-hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 540px;
}

.rf-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.rf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--rf-transition);
    font-family: inherit;
    line-height: 1.2;
}

.rf-btn-primary {
    background: var(--rf-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.25);
}

.rf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(229, 9, 20, 0.45);
}

.rf-btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rf-btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* ─── Content Row / Carousel Section ──────────────────────────── */
.rf-row {
    padding: 0 var(--rf-side-padding);
    margin-bottom: var(--rf-row-gap);
}

.rf-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.rf-row-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rf-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rf-row-title .row-icon {
    font-size: 1.1rem;
}

/* ─── Carousel ────────────────────────────────────────────────── */
.rf-carousel-wrapper {
    position: relative;
}

.rf-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 0 16px;
}

.rf-carousel::-webkit-scrollbar {
    display: none;
}

.rf-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0;
    transition: var(--rf-transition);
}

.rf-carousel-wrapper:hover .rf-carousel-arrow {
    opacity: 1;
}

.rf-carousel-arrow:hover {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
}

.rf-carousel-arrow.left {
    left: 4px;
}

.rf-carousel-arrow.right {
    right: 4px;
}

/* ─── Show Card ───────────────────────────────────────────────── */
.rf-card {
    flex-shrink: 0;
    width: 175px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    position: relative;
    border-radius: var(--rf-card-radius);
    overflow: visible;
}

.rf-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.rf-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--rf-card-radius);
    background: var(--rf-bg-surface);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.rf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.rf-card:hover .rf-card-thumb img {
    transform: scale(1.12);
    filter: brightness(0.65);
}

.rf-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--rf-card-radius);
}

.rf-card:hover .rf-card-overlay {
    opacity: 1;
}

.rf-card-play {
    width: 48px;
    height: 48px;
    background: var(--rf-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.5);
    transition: transform 0.2s ease;
}

.rf-card:hover .rf-card-play {
    transform: scale(1.12);
}

.rf-card-title {
    padding: 0.45rem 0.2rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.rf-card-meta {
    font-size: 0.7rem;
    color: var(--rf-text-muted);
    padding: 0.1rem 0.2rem 0;
}

/* ─── Episode Card / Grid ─────────────────────────────────────── */
.rf-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.rf-episode-card {
    display: block;
    border-radius: var(--rf-card-radius);
    overflow: hidden;
    background: var(--rf-bg-card);
    border: 1px solid var(--rf-glass-border);
    transition: var(--rf-transition);
}

.rf-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow);
    border-color: rgba(229, 9, 20, 0.3);
}

.rf-episode-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.rf-episode-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rf-transition);
}

.rf-episode-card:hover .thumb img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

.rf-episode-card .ep-info {
    padding: 0.6rem 0.75rem;
}

.rf-episode-card .ep-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-episode-card .ep-info p {
    font-size: 0.75rem;
    color: var(--rf-text-secondary);
    margin-top: 0.2rem;
}

/* ─── Premium Show Detail Page Redesign ────────────────────── */
.rf-show-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--rf-side-padding) 60px;
    overflow: hidden;
}

.rf-show-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rf-show-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0px) brightness(0.4);
    transform: scale(1.05);
}

.rf-show-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--rf-bg-dark) 85%);
}

.rf-show-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rf-show-poster {
    width: 180px;
    height: 270px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rf-show-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-show-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rf-show-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--rf-text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.rf-show-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.rf-btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #e50914, #ff4d4d);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.rf-btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.rf-share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rf-btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rf-btn-share:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rf-btn-share.whatsapp {
    background: #25D366;
}

.rf-btn-share.twitter {
    background: #1DA1F2;
}

.rf-btn-share.telegram {
    background: #0088cc;
}

.rf-btn-share.copy {
    background: rgba(0, 0, 0, 0.4);
}

/* ─── Episodes Section ────────────────────────────────────────── */
.rf-episodes-section {
    padding: 3rem var(--rf-side-padding);
    max-width: 1000px;
    margin: 0 auto;
}

.rf-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rf-episode-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.rf-episode-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.rf-episode-item .thumb {
    position: relative;
    width: 140px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.rf-episode-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.rf-episode-item .info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-bottom: 0.25rem;
}

.rf-episode-item .info p {
    font-size: 0.85rem;
    color: var(--rf-text-secondary);
}

@media (max-width: 768px) {
    .rf-show-title {
        font-size: 2.2rem;
    }

    .rf-show-poster {
        width: 140px;
        height: 210px;
    }

    .rf-episode-item {
        gap: 1rem;
        padding: 0.75rem;
    }

    .rf-episode-item .thumb {
        width: 100px;
    }
}

/* ─── Progress Bar (Continue Watching) ────────────────────────── */
.rf-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.rf-progress-bar .fill {
    height: 100%;
    background: var(--rf-gradient);
    border-radius: 0 2px 0 0;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.rf-footer {
    background: var(--rf-bg-card);
    border-top: 1px solid var(--rf-glass-border);
    padding: 3rem var(--rf-side-padding) 1.5rem;
    margin-top: 4rem;
}

.rf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.rf-footer-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--rf-text-primary);
}

.rf-footer-section p {
    color: var(--rf-text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
}

.rf-footer-section a {
    display: block;
    color: var(--rf-text-secondary);
    padding: 0.3rem 0;
    font-size: 0.88rem;
    transition: var(--rf-transition);
}

.rf-footer-section a:hover {
    color: var(--rf-primary);
    padding-left: 0.35rem;
}

.rf-footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-glass-border);
    color: var(--rf-text-muted);
    font-size: 0.8rem;
}

/* ─── Page Sections ───────────────────────────────────────────── */
.rf-section {
    padding: 2rem var(--rf-side-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.rf-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--rf-text-primary);
}

/* ─── Notification Bell ───────────────────────────────────────── */
.rf-notification-bell {
    position: relative;
    cursor: pointer;
}

.rf-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--rf-primary);
    border-radius: 50%;
}

/* ─── Blog ────────────────────────────────────────────────────── */
.rf-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rf-blog-card {
    display: block;
    background: var(--rf-bg-card);
    border-radius: var(--rf-card-radius);
    overflow: hidden;
    border: 1px solid var(--rf-glass-border);
    transition: var(--rf-transition);
}

.rf-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow);
    border-color: rgba(229, 9, 20, 0.2);
}

.rf-blog-card .card-body {
    padding: 1.2rem;
}

.rf-blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.rf-blog-card p {
    font-size: 0.88rem;
    color: var(--rf-text-secondary);
    line-height: 1.55;
}

/* ─── Search Results ──────────────────────────────────────────── */
.rf-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
}

/* ─── Ad Slot ─────────────────────────────────────────────────── */
.rf-ad-slot {
    padding: 0.5rem var(--rf-side-padding);
    text-align: center;
}

/* ─── Loading Skeleton ────────────────────────────────────────── */
.rf-skeleton {
    background: linear-gradient(90deg, var(--rf-bg-surface) 25%, var(--rf-bg-card) 50%, var(--rf-bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--rf-card-radius);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── Toast ───────────────────────────────────────────────────── */
.rf-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rf-bg-card);
    border: 1px solid var(--rf-glass-border);
    border-radius: var(--rf-card-radius);
    padding: 0.85rem 1.4rem;
    box-shadow: var(--rf-shadow-lg);
    z-index: 9999;
    display: none;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rf-toast.show {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rf-toast .icon {
    font-size: 1.1rem;
}

.rf-toast .message {
    font-size: 0.88rem;
}

/* ─── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rf-card {
        width: 155px;
    }

    .rf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rf-navbar-inner {
        gap: 0.75rem;
    }

    .rf-logo img {
        height: 40px;
    }

    /* Hide desktop nav-links on mobile — they go into hamburger menu */
    .rf-nav-links {
        display: none !important;
    }

    /* Compact search bar on mobile — stays in top navbar */
    .rf-search-wrapper {
        flex: 1;
        min-width: 0;
        margin: 0;
        background: var(--rf-bg-surface);
        border: 1px solid var(--rf-glass-border);
        border-radius: 50px;
        position: relative;
        transition: var(--rf-transition);
        overflow: hidden;
    }

    .rf-search-input {
        font-size: 0.85rem;
        padding: 0.45rem 0.5rem 0.45rem 2.2rem;
        height: 38px;
        width: 100%;
        background: transparent;
        border: none;
    }

    .rf-search-icon {
        left: 10px;
        font-size: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        position: absolute;
        z-index: 2;
    }

    /* Hide notification bell on mobile to save space */
    .rf-actions>.rf-notification-bell {
        display: none !important;
    }

    /* Keep theme toggle & hamburger visible in top bar */
    .rf-actions>#themeToggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .rf-mobile-toggle {
        display: flex;
        font-size: 1.5rem;
    }

    .rf-icon-btn {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    /* ─── Mobile Menu Dropdown ──────────────────────────────── */
    .rf-mobile-menu {
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--rf-glass-border);
        animation: mobileMenuSlideDown 0.3s ease-out;
    }

    .rf-mobile-menu.open {
        display: flex;
    }

    @keyframes mobileMenuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .rf-mobile-menu a {
        padding: 0.7rem 1rem;
        border-radius: 8px;
        font-size: 0.95rem;
        color: var(--rf-text-secondary);
        transition: var(--rf-transition);
    }

    .rf-mobile-menu a:hover,
    .rf-mobile-menu a.active {
        background: var(--rf-bg-surface);
        color: var(--rf-text-primary);
    }

    /* ─── Dark backdrop overlay when menu is open ──────────── */
    .rf-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        animation: fadeIn 0.25s ease;
    }

    .rf-mobile-backdrop.active {
        display: block;
    }

    /* ─── Rest of mobile layout ────────────────────────────── */
    .rf-hero {
        height: 70vh;
        min-height: 400px;
    }

    .rf-hero-content {
        padding: 0 5%;
    }

    .rf-hero-title {
        font-size: 1.8rem;
    }

    .rf-card {
        width: 140px;
    }

    .rf-episode-card {
        width: 200px;
    }

    .rf-row {
        padding: 0 3%;
    }

    .rf-episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .rf-show-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rf-show-poster {
        width: 150px;
    }

    .rf-show-details h1 {
        font-size: 1.8rem;
    }

    .rf-show-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .rf-share-btns {
        justify-content: center;
    }

    .rf-section {
        padding: 1.5rem 4%;
    }
}

@media (max-width: 480px) {
    .rf-card {
        width: 130px;
    }

    .rf-hero {
        height: 65vh;
    }

    .rf-hero-title {
        font-size: 1.5rem;
    }

    .rf-footer-grid {
        grid-template-columns: 1fr;
    }

    .rf-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .rf-search-input {
        font-size: 0.9rem;
        padding: 0.5rem 1rem 0.5rem 2.2rem;
    }

    .rf-search-icon {
        font-size: 0.8rem;
        left: 0.75rem;
    }
}