/**
 * FilmEratr - Netflix Style CSS
 * Premium Film Platformu Tasarimi
 * Version 1.0 - Stable
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Dark Red Theme (Default) */
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --bg-glass: rgba(20, 20, 20, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    --accent: #e50914;
    --accent-hover: #ff0f1f;
    --accent-dark: #b20710;
    --accent-rgb: 229, 9, 20;

    --success: #46d369;
    --success-rgb: 70, 211, 105;
    --warning: #f5c518;
    --warning-rgb: 245, 197, 24;
    --info: #0ea5e9;
    --info-rgb: 14, 165, 233;
    --error: #ef4444;
    --error-rgb: 239, 68, 68;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    --header-height: 70px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Green Theme */
body.theme-dark-green {
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-dark: #059669;
    --accent-rgb: 16, 185, 129;
}

/* Light Red Theme */
body.theme-light-red,
body.theme-light-red.light-theme {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --text-primary: #141414;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Light Blue Theme */
body.theme-light-blue,
body.theme-light-blue.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-dark: #2563eb;
    --accent-rgb: 59, 130, 246;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
}

.logo-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

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

.nav-link i {
    font-size: 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 200px;
    padding: 10px 40px 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    width: 260px;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

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

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    padding: 5px;
    transition: color var(--transition-fast);
}

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

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Snow Toggle */
.snow-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.snow-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.snow-toggle.active {
    color: var(--info);
    background: rgba(var(--info-rgb), 0.1);
    border-color: rgba(var(--info-rgb), 0.3);
}

/* Theme Picker */
.theme-picker {
    position: relative;
}

.theme-picker-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-picker-btn:hover {
    color: var(--accent);
    background: var(--bg-hover);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.theme-picker:hover .theme-dropdown,
.theme-picker:focus-within .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.theme-options {
    padding: 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    text-align: left;
}

.theme-option:hover {
    background: var(--bg-hover);
}

.theme-option.active {
    background: rgba(var(--accent-rgb), 0.1);
}

.theme-color {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
}

.theme-color.dark-red {
    background: linear-gradient(135deg, #141414 50%, #e50914 50%);
}

.theme-color.dark-green {
    background: linear-gradient(135deg, #141414 50%, #10b981 50%);
}

.theme-color.light-red {
    background: linear-gradient(135deg, #f5f5f5 50%, #e50914 50%);
}

.theme-color.light-blue {
    background: linear-gradient(135deg, #f8fafc 50%, #3b82f6 50%);
}

.theme-info {
    flex: 1;
}

.theme-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    width: 40px;
    height: 40px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
    padding: 8px;
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.text-accent {
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.btn-block {
    width: 100%;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ========================================
   BILLBOARD
   ======================================== */
.billboard {
    position: relative;
    height: 80vh;
    max-height: 700px;
    min-height: 500px;
    overflow: hidden;
}

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

.billboard-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.billboard-slide.active {
    opacity: 1;
}

.billboard-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.billboard-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.95) 0%,
        rgba(20, 20, 20, 0.7) 30%,
        rgba(20, 20, 20, 0.3) 60%,
        transparent 100%
    );
}

.billboard-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

.billboard-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    max-width: 600px;
    z-index: 2;
}

.billboard-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.billboard-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.billboard-info .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning);
    font-weight: 700;
}

.billboard-info .year,
.billboard-info .duration {
    color: var(--text-secondary);
}

.billboard-info .quality {
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

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

.billboard-actions {
    display: flex;
    gap: 12px;
}

.billboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.billboard-btn-play {
    background: white;
    color: #141414;
}

.billboard-btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.billboard-btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.billboard-btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Billboard Pagination */
.billboard-pagination {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.billboard-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.billboard-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.billboard-dot.active {
    width: 30px;
    background: var(--accent);
}

/* ========================================
   MOVIE SECTIONS
   ======================================== */
.movie-section {
    padding: 40px 0;
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.section-link i {
    transition: transform var(--transition-fast);
}

.section-link:hover i {
    transform: translateX(4px);
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Movie Slider */
.movie-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.movie-slider::-webkit-scrollbar {
    height: 6px;
}

.movie-slider::-webkit-scrollbar-track {
    background: transparent;
}

.movie-slider::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}

.movie-slider .movie-card {
    flex: 0 0 180px;
}

/* ========================================
   MOVIE CARD
   ======================================== */
.movie-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    z-index: 10;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: opacity var(--transition-normal);
}

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

/* Play Button */
.play-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: scale(0);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5);
}

.movie-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.play-btn i {
    margin-left: 3px;
}

/* Card Actions */
.card-actions {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.movie-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: white;
    color: var(--bg-primary);
    transform: scale(1.1);
}

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

/* Movie Rating */
.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--warning);
    z-index: 5;
}

.movie-rating i {
    font-size: 0.7rem;
}

/* Movie Badge */
.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.movie-badge.new {
    background: var(--success);
    color: white;
}

.movie-badge.hd {
    background: var(--info);
    color: white;
}

/* Movie Info */
.movie-info {
    padding: 14px;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

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

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(var(--error-rgb), 0.15);
    color: var(--error);
}

.toast.warning .toast-icon {
    background: rgba(var(--warning-rgb), 0.15);
    color: var(--warning);
}

.toast.info .toast-icon {
    background: rgba(var(--info-rgb), 0.15);
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.auth-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    padding: 5px;
}

.auth-form .password-toggle:hover {
    color: var(--text-primary);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--accent);
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(var(--error-rgb), 0.1);
    border: 1px solid rgba(var(--error-rgb), 0.2);
    color: var(--error);
}

.alert-success {
    background: rgba(var(--success-rgb), 0.1);
    border: 1px solid rgba(var(--success-rgb), 0.2);
    color: var(--success);
}

/* ========================================
   SNOW EFFECT
   ======================================== */
.snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .search-form {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .billboard {
        height: 70vh;
    }

    .billboard-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .billboard {
        height: 60vh;
        min-height: 400px;
    }

    .billboard-content {
        padding: 0 20px;
    }

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

    .billboard-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

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

    .movie-slider .movie-card {
        flex: 0 0 140px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .auth-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .billboard-actions {
        flex-direction: column;
    }

    .billboard-btn {
        width: 100%;
        justify-content: center;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
    }
}
