/* ============================================
   Streamiz Clone - Premium Dark Theme
   Exact Match Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Exact Streamiz Colors */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #0c0c0e;
    --bg-card: #111113;
    --bg-card-hover: #1a1a1d;
    --accent-primary: #eab308;
    --accent-secondary: #facc15;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --red-accent: #ef4444;
    --green-accent: #22c55e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
}

/* ============================================
   Navigation - Streamiz Style
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    color: var(--bg-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
}

/* Search Bar - Streamiz Style */
.search-container {
    position: relative;
    width: 320px;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 2.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

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

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

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

/* ============================================
   Hero Section - Streamiz Style
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    padding: 0 1.5rem 4rem;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, var(--bg-primary) 0%, transparent 50%),
        linear-gradient(to right, rgba(9, 9, 11, 0.9) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(9, 9, 11, 0.4) 0%, transparent 20%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeSlideUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--red-accent);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-rating svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-year,
.hero-duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Hero Slider Indicators */
.hero-indicators {
    display: flex;
    gap: 0.5rem;
}

.hero-indicator {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-indicator.active {
    background: var(--accent-primary);
    width: 48px;
}

/* Hero Slide Transition */
.hero-content {
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-backdrop {
    transition: opacity 1s linear;
}

/* Buttons - Streamiz Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
}

/* ============================================
   Content Sections - Streamiz Style
   ============================================ */
.section {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--text-primary);
}

.view-all svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Cards Grid - Streamiz Style
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Movie/TV Card - Streamiz Style */
.card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeIn 0.5s ease-out backwards;
    /* Remove text below card */
    isolation: isolate;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-poster img {
    transform: scale(1.05);
}

/* Gradient Overlay - Always visible for readability or fade in? 
   Reference photo implies clean look. We'll add a bottom gradient for the title overlay */
.card-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Yellow Rating Badge - Top Right */
.card-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: var(--accent-primary);
    color: #000000;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-rating svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Play Button - Optional, minimal */
.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-play svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 2px;
}

.card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.card:hover .card-play svg {
    color: #000;
}

/* Info Overlay - Positioned absolutely at bottom */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 5;
    transform: translateY(10px);
    opacity: 0;
    /* Hidden by default per cleaner look request, or change to 1 if titles needed */
    transition: all var(--transition-base);
}

/* Show info on hover for usability */
.card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

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

/* Card Animation Delays */
.cards-grid .card:nth-child(1) {
    animation-delay: 0.05s;
}

.cards-grid .card:nth-child(2) {
    animation-delay: 0.1s;
}

.cards-grid .card:nth-child(3) {
    animation-delay: 0.15s;
}

.cards-grid .card:nth-child(4) {
    animation-delay: 0.2s;
}

.cards-grid .card:nth-child(5) {
    animation-delay: 0.25s;
}

.cards-grid .card:nth-child(6) {
    animation-delay: 0.3s;
}

.cards-grid .card:nth-child(7) {
    animation-delay: 0.35s;
}

/* ============================================
   Detail Page - Streamiz Style
   ============================================ */
.detail-hero {
    position: relative;
    min-height: 70vh;
    padding: 7rem 1.5rem 3rem;
    display: flex;
    align-items: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.7) 50%, transparent 100%),
        linear-gradient(to top, var(--bg-primary) 0%, transparent 40%);
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
    animation: fadeSlideUp 0.6s ease-out;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.detail-info {
    padding-top: 0.5rem;
}

.detail-badge {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.detail-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.detail-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.detail-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Video Player - Streamiz Style
   ============================================ */
.player-section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.player-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.player-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Episode Selector - Streamiz Style */
.episode-selector {
    margin-top: 1.5rem;
}

.season-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.season-tabs::-webkit-scrollbar {
    display: none;
}

.season-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.season-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.season-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.episode-btn {
    padding: 0.625rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-fast);
}

.episode-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.episode-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* ============================================
   Search Results - Streamiz Style
   ============================================ */
.search-results {
    padding: 7rem 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.search-header {
    margin-bottom: 1.5rem;
}

.search-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* ============================================
   Loading States
   ============================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
}

/* ============================================
   Footer - Streamiz Style
   ============================================ */
.footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-disclaimer {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .search-container {
        flex: 1;
        width: auto;
        max-width: 300px;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
        padding: 0 1rem 3rem;
    }

    .hero-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .detail-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail-poster {
        max-width: 220px;
        margin: 0 auto;
    }

    .detail-meta,
    .detail-stats,
    .hero-genres {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .detail-description {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .btn {
        height: 40px;
        padding: 0 1.25rem;
        font-size: 0.8125rem;
    }

    .card-info {
        padding: 0.5rem;
    }

    .card-title {
        font-size: 0.8125rem;
    }
}

/* ============================================
   Page Specific Styles
   ============================================ */
.page-header {
    padding: 7rem 1.5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.movies-grid,
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {

    .movies-grid,
    .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {

    .movies-grid,
    .shows-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}