/**
 * CineVerse Main Stylesheet
 * Maintains design pattern from original Project.html and Login.css
 */

:root {
    --bg: #141414;
    --card: #181818;
    --muted: #808080;
    --input-bg: #2f2f2f;
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-red: #e50914;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #141414;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Header Styles */
header {
    display: flex;
    width: 100%;
    background: transparent;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 4%;
    height: 68px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

header.scrolled {
    background: #000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    background: none;
    display: flex;
    padding: 0.3rem 0.5rem;
    margin: 0;
    gap: 0.6rem;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

nav {
    display: flex;
    background-color: transparent;
    padding: 0.5rem;
}

.main-nav {
    display: flex;
    background-color: transparent;
    padding: 0.5rem;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.15s ease;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    background-color: rgba(65, 62, 62, 0.6);
    color: var(--accent);
    opacity: 1;
}

.nav-links li a.admin-link {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(255, 59, 59, 0.1));
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.nav-links li a.admin-link:hover {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.3), rgba(255, 59, 59, 0.2));
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.nav-links .user-menu {
    position: relative;
}

.nav-links .user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 150px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

/* Bridge the gap between trigger and dropdown with invisible padding */
.nav-links .user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 1000;
}

/* Ensure dropdown stays visible when hovering over user menu or when active */
.nav-links .user-menu:hover .dropdown,
.nav-links .user-menu.active .dropdown {
    display: block !important;
}

.nav-links .user-menu .dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0;
    white-space: nowrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
    padding: 0;
    min-height: calc(100vh - 200px);
    background: #141414;
    padding-top: 0;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 650px;
    max-height: 950px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.6);
}

.hero-slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 50%, transparent 100%);
    z-index: 1;
}

.hero-slide-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.8) 50%, transparent 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    width: 100%;
    padding: 2rem 4%;
    align-items: center;
    margin-top: 0;
    height: 100%;
    display: flex;
    padding-bottom: 0;
}

.hero-slide-poster {
    width: 100%;
    max-width: 300px;
}

.hero-slide-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

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

.hero-slide-info {
    color: var(--text-primary);
    max-width: 1200px;
    width: 100%;
}

.hero-movie-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-movie-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.hero-movie-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-movie-overview {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    max-width: 1100px;
    font-weight: 400;
}

.hero-movie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2.4rem;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.05);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    background: rgba(109, 109, 110, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(109, 109, 110, 0.5);
    transform: scale(1.05);
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
    transform: scale(1.1);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent);
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Movie Showcase */
.movie-showcase {
    padding: 0;
    margin: 0;
    margin-bottom: 3rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.movie-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.5, 0, 0.1, 1);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover transform removed - no enlargement on hover */

.movie-row .movie-card:hover .movie-poster {
    border-radius: 4px 4px 0 0;
}

.movie-row .movie-card:hover .movie-poster-wrapper {
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    position: relative;
    transition: border-radius 0.3s ease;
}

.movie-card .movie-poster-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.movie-info {
    display: none;
}

.movie-row .movie-card:hover .movie-info {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    padding: 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 11;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    margin-top: -1px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-title {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1.3;
}

.movie-year {
    color: #b3b3b3;
    font-size: 0.8rem;
    margin: 0;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Movie Rows */
.movie-row-container {
    margin: 0;
    padding: 0 4%;
    margin-bottom: 4rem;
    position: relative;
}

.movie-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.movie-row-title {
    color: #e5e5e5;
    margin-left: 0;
    margin-bottom: 0;
    font-size: 1.4vw;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.view-all-btn {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.view-all-btn:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.view-all-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.view-all-btn:hover i {
    transform: translateX(2px);
}

@media (max-width: 1400px) {
    .movie-row-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .view-all-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

.movie-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    gap: 0.4rem;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    scroll-behavior: smooth;
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

/* Add fade gradients on sides like Netflix */
.movie-row-container::before,
.movie-row-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.movie-row-container::before {
    left: 0;
    background: linear-gradient(to right, #141414, transparent);
}

.movie-row-container::after {
    right: 0;
    background: linear-gradient(to left, #141414, transparent);
}


.movie-row .movie-card {
    flex: 0 0 16.66%;
    min-width: 200px;
    max-width: 200px;
    position: relative;
    overflow: visible;
    transition: z-index 0.3s;
    z-index: 1;
}

.movie-row .movie-card:hover {
    z-index: 10;
}

.movie-row .movie-card:first-child {
    margin-left: 0;
}

.movie-row .movie-card:last-child {
    margin-right: 0;
}

/* Numbered Ranking Badge */
.movie-card .movie-poster-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.movie-card .rank-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    z-index: 10;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.movie-row .movie-card:hover .rank-badge {
    opacity: 0;
}

/* Smaller rank badge for compact views */
.movie-card .rank-badge.small {
    font-size: 3rem;
    bottom: 0.4rem;
    left: 0.4rem;
}

/* Section Title */
.section-title {
    color: #e5e5e5;
    font-size: 1.4vw;
    margin: 0 0 1rem;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.movie-section {
    padding: 0;
    margin-bottom: 4rem;
}

/* Provider Tabs */
.provider-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
}

.tab-btn {
    background: transparent;
    color: #ddd;
    border: none;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tab-btn.active {
    color: var(--text-primary);
    border-color: var(--accent-red);
}

.tab-btn:hover {
    color: var(--text-primary);
}

/* Genre Menu */
.genre-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
    padding: 0 1rem;
}

.genre-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.genre-btn:hover,
.genre-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Forms */
.form-container {
    width: 100%;
    max-width: 980px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.form-card {
    width: 400px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02)), var(--card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.brand h1 {
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.field {
    margin-bottom: 0.9rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.field input:focus,
.field textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 68, 255, 0.08);
    border-color: var(--accent);
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(0, 68, 255, 0.18);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.row.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.35rem 0 0.6rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--accent);
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.85rem;
    text-align: center;
}

.muted a {
    text-decoration: none;
    color: var(--accent);
}

.error {
    color: #ff6b6b;
    font-size: 0.8rem;
    display: block;
    height: 1em;
    margin-top: 0.25rem;
}

.success {
    color: #51cf66;
    font-size: 0.9rem;
    padding: 0.75rem;
    background: rgba(81, 207, 102, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Movie Details Page */
.movie-details {
    padding: 2rem 1rem;
}

.movie-details-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-details-poster {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.movie-details-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.movie-details-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.movie-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.action-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

.action-btn i {
    font-size: 1rem;
}

/* Trailer Section */
.trailer-section {
    margin: 2rem 0;
}

.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1rem;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Comments Section */
.comments-section {
    margin: 4rem 0;
    padding: 0 4%;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.comment-count {
    color: var(--muted);
    font-weight: 400;
    font-size: 1rem;
}

/* Comment Form */
.comment-form-wrapper {
    margin-bottom: 3rem;
}

.comment-form {
    display: flex;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.comment-form:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 68, 255, 0.1);
}

.comment-form-avatar {
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 68, 255, 0.1);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-comment-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 68, 255, 0.3);
}

.comment-login-prompt {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.comment-login-prompt i {
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.comment-login-prompt p {
    color: var(--text-secondary);
    margin: 0;
}

.login-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

/* Comment List */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-comments {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.empty-comments-icon {
    font-size: 4rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.empty-comments h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.empty-comments p {
    color: var(--text-secondary);
    margin: 0;
}

/* Comment Item */
.comment-item {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-main {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    margin-bottom: 0.75rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.comment-date {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.comment-body {
    margin-bottom: 1rem;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.comment-action-btn i {
    font-size: 0.85rem;
}

.replies-count {
    font-weight: 500;
}

/* Replies Section */
.comment-replies {
    margin-top: 1rem;
    padding-left: 3.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-reply-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
    transition: all 0.2s ease;
}

.comment-reply-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.comment-reply-item.admin-reply {
    background: rgba(0, 68, 255, 0.08);
    border-left-color: var(--accent);
}

.reply-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.reply-avatar.admin-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.reply-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.admin-badge-small {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.reply-date {
    color: var(--muted);
    font-size: 0.8rem;
}

.reply-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    word-wrap: break-word;
}

/* Reply Form */
.reply-form-wrapper {
    margin-top: 1rem;
    padding-left: 3.5rem;
    display: flex;
    gap: 0.75rem;
}

.reply-form {
    flex: 1;
}

.reply-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.2s ease;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 68, 255, 0.1);
}

.reply-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--muted);
}

.btn-reply-submit {
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 0 1rem;
    }

    .comment-form {
        flex-direction: column;
        padding: 1rem;
    }

    .comment-form-avatar {
        display: none;
    }

    .comment-main {
        gap: 0.75rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .comment-replies {
        padding-left: 2rem;
    }

    .reply-form-wrapper {
        padding-left: 2rem;
    }

    .reply-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Search Page */
.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.search-bar-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 68, 255, 0.08);
}

.search-button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    margin: 2rem 1rem;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

footer p {
    color: var(--muted);
    margin: 0.5rem 0;
    line-height: 1.6;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Hero Slider Responsive */
@media screen and (max-width: 1024px) {
    .hero-slide-content {
        max-width: 1000px;
        padding: 1.5rem 2rem;
        margin-top: 0;
    }
    
    .hero-slide-info {
        max-width: 900px;
    }
    
    .hero-movie-title {
        font-size: 2.5rem;
    }
    
    .hero-movie-overview {
        font-size: 1.1rem;
        max-width: 900px;
    }
    
    nav {
        padding: 0.3rem;
    }
    
    .main-nav {
        padding: 0.3rem;
    }
    
    .nav-links {
        gap: 0.05rem;
        margin: 0;
        padding: 0;
    }
    
    .nav-links li a {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 900px) {
    .nav-links li a i {
        font-size: 0.85rem;
    }
    
    .nav-links li a {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-slider-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide-content {
        max-width: 100%;
        text-align: center;
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .hero-slide-info {
        max-width: 100%;
    }
    
    .hero-movie-title {
        font-size: 2rem;
    }
    
    .hero-movie-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-movie-overview {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-movie-actions {
        justify-content: center;
    }
    
    .hero-slider-nav {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 55px;
        padding: 0.4rem 0.8rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .logo {
        margin: 0;
        padding: 0.2rem 0.4rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 4rem 0 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        display: none; /* Hidden by default on mobile */
    }
    
    .main-nav.active {
        display: flex; /* Show when active */
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li a {
        display: flex;
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-links .user-menu {
        position: static;
    }
    
    .nav-links .user-menu .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.3);
        width: 100%;
        margin-top: 0;
    }
    
    .nav-links .user-menu.active .dropdown {
        display: block;
    }
    
    .nav-links .user-menu .dropdown a {
        padding-left: 2.5rem;
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        pointer-events: none; /* Allow clicks to pass through to menu */
    }
    
    /* Make overlay clickable only on the left side (not over menu) */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: calc(100% - 280px);
        height: 100%;
        z-index: 1000;
        pointer-events: auto; /* Capture clicks on left side to close menu */
    }


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

    .movie-details-header {
        grid-template-columns: 1fr;
    }

    .movie-details-info h1 {
        font-size: 1.75rem;
    }

    .movie-actions {
        flex-wrap: wrap;
    }

    .form-card {
        width: 100%;
        padding: 1.25rem;
    }

    .brand h1 {
        font-size: 1rem;
    }
    
    .movie-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .view-all-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .movie-row .movie-card {
        flex: 0 0 140px;
        min-width: 140px;
        max-width: 140px;
    }
    
    /* No transform on hover for mobile */

    .movie-poster {
        height: 210px;
    }

    .section-title {
        font-size: 1.25rem;
    }
    
    .movie-row-title {
        font-size: 1.25rem;
    }
    
    .movie-card .rank-badge {
        font-size: 2.5rem;
        bottom: 0.4rem;
        left: 0.4rem;
    }
    
    .movie-card .rank-badge.small {
        font-size: 2rem;
        bottom: 0.3rem;
        left: 0.3rem;
    }
    
    .movie-row-container {
        padding: 0 1rem;
    }
    
    .hero-slide-content {
        padding: 2rem 1rem;
    }
    
    .hero-movie-title {
        font-size: 2rem;
    }
    
    .hero-movie-overview {
        font-size: 0.95rem;
    }
}

/* Videos Section */
/* Seasons and Episodes Section (TV Series) */
.seasons-section {
    margin: 4rem 0;
    padding: 0 4%;
}

.seasons-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.season-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.season-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.season-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.season-info {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.season-poster {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.season-poster-placeholder {
    width: 120px;
    height: 180px;
    background: var(--input-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
    flex-shrink: 0;
}

.season-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.season-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.season-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.season-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-overview {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.season-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.season-toggle.active {
    transform: rotate(180deg);
}

.episodes-list {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1.5rem;
}

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

.episode-card {
    background: var(--input-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.episode-still {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.episode-still-placeholder {
    width: 100%;
    height: 180px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
}

.episode-info {
    padding: 1rem;
}

.episode-number {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.episode-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.episode-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.episode-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.episode-overview {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

.no-episodes {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .season-info {
        flex-direction: column;
    }
    
    .season-poster,
    .season-poster-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form textarea {
        min-height: 100px;
        padding: 1rem;
        font-size: 0.95rem;
    }
}

.videos-section {
    padding: 2rem 4%;
    margin-bottom: 2rem;
}

.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-type-group {
    margin-bottom: 1.5rem;
}

.video-type-title {
    font-size: 1.3rem;
    color: #e5e5e5;
    margin-bottom: 1rem;
    font-weight: 600;
}

.videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-item {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

.video-name {
    padding: 1rem;
    margin: 0;
    color: #e5e5e5;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cast Section */
.cast-section {
    padding: 2rem 4%;
    margin-bottom: 2rem;
}

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

.cast-member {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.cast-member:hover {
    transform: translateY(-5px);
}

.cast-photo {
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio */
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
}

.cast-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #666;
}

.cast-placeholder i {
    font-size: 3rem;
}

.cast-info {
    padding: 1rem;
}

.cast-name {
    margin: 0 0 0.5rem 0;
    color: #e5e5e5;
    font-size: 0.95rem;
    font-weight: 600;
}

.cast-character {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.85rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 1024px) {
    .videos-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .videos-section,
    .cast-section {
        padding: 1.5rem 1rem;
    }
    
    .videos-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .video-type-title {
        font-size: 1.1rem;
    }
    
    .cast-name {
        font-size: 0.85rem;
    }
    
    .cast-character {
        font-size: 0.75rem;
    }
}


