/**
 * Nurflix - Netflix-like Religious Video Streaming Platform
 * Main Stylesheet - Dark Theme
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --primary-light: #f40612;
    --background: #141414;
    --background-dark: #0b0b0b;
    --background-light: #1f1f1f;
    --surface: #2a2a2a;
    --surface-light: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border: #404040;
    --success: #46d369;
    --warning: #e87c03;
    --error: #e50914;
    --info: #0071eb;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --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);
    --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.3);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --header-height: 70px;
    --header-height-mobile: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

ul, ol {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-normal), 
                backdrop-filter var(--transition-normal),
                box-shadow var(--transition-normal);
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
}

/* Ensure header controls are always clickable even when overlapping sections */
.header-inner,
.mobile-menu-btn,
.nav,
.nav a {
    position: relative;
    z-index: 1100;
}

.header.scrolled {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 4%;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    margin-left: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    padding: 0.5rem 0;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: width var(--transition-normal), 
                padding var(--transition-normal),
                border-color var(--transition-normal),
                background var(--transition-normal);
}

.search-input:focus,
.search-box.active .search-input {
    width: 250px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.75);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    color: var(--text-primary);
    padding: 0.25rem;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ==================== HERO SLIDER ==================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.9) 0%,
        rgba(20, 20, 20, 0.6) 30%,
        rgba(20, 20, 20, 0.3) 60%,
        rgba(20, 20, 20, 0.8) 100%
    );
}

.hero-backdrop::after,
.hero-backdrop::before {
    pointer-events: none;
}

.hero-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--background) 0%,
        transparent 50%
    );
}

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

.hero-logo {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.hero-meta .match {
    color: var(--success);
    font-weight: 600;
}

.hero-meta .rating {
    border: 1px solid var(--text-secondary);
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

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

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--primary);
    color: var(--text-primary);
}

.btn-danger:hover {
    background: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.hero-nav {
    position: absolute;
    bottom: 20%;
    right: 4%;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.hero-nav-btn.active {
    background: var(--text-primary);
    width: 30px;
    border-radius: 6px;
}

/* ==================== CONTENT ROWS ==================== */
.content-section {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.content-row {
    margin-bottom: 3rem;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    margin-bottom: 1rem;
    position: relative;
    z-index: 20;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    cursor: default;
}

.row-title:hover {
    color: var(--text-primary);
}

.row-nav {
    display: flex;
    gap: 0.5rem;
}

.row-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

.row-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.row-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== CONTENT CARDS ==================== */
.content-slider {
    position: relative;
    padding: 0 4%;
}

.content-slider-inner {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.content-slider-inner::-webkit-scrollbar {
    display: none;
}

.content-card {
    flex: 0 0 auto;
    width: 16%;
    min-width: 200px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal);
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.content-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

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

.content-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

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

.content-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.content-card-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.content-card-btn:hover {
    background: var(--text-primary);
    transform: scale(1.1);
}

.content-card-btn.favorite {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.content-card-btn.favorite:hover,
.content-card-btn.favorite.active {
    border-color: var(--primary);
    background: var(--primary);
}

.content-card-info {
    color: var(--text-primary);
}

.content-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
}

/* Top 10 Badge */
.top10-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

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

.content-hero {
    position: relative;
    /* Let the hero grow with its content so action buttons never get clipped */
    min-height: 70vh;
    padding: 3rem 0;
}

.content-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.content-hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.95) 0%,
        rgba(20, 20, 20, 0.7) 40%,
        rgba(20, 20, 20, 0.4) 100%
    );
}

.content-hero-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--background) 0%,
        transparent 60%
    );
}

.content-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.content-hero-content {
    max-width: 700px;
}

.content-hero-poster {
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.content-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.content-hero-meta span {
    color: var(--text-secondary);
}

.content-hero-meta .match {
    color: var(--success);
    font-weight: 600;
}

.content-hero-meta .year {
    color: var(--text-primary);
}

.content-hero-meta .duration {
    color: var(--text-secondary);
}

.content-hero-meta .rating {
    border: 1px solid var(--text-secondary);
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
}

.content-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-chip {
    padding: 0.4rem 1rem;
    background: var(--surface);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.category-chip:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.content-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.content-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

/* Content Info Section */
.content-info {
    padding: 3rem 4%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-info-main h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-info-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-info-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Related Content */
.related-content {
    padding: 2rem 4% 4rem;
}

.related-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==================== WATCH PAGE ==================== */
.watch-page {
    min-height: 100vh;
    background: var(--background-dark);
}

.watch-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

.watch-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.watch-header-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.watch-container {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Theater Mode - Full Width Video */
.video-theater {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Watch Info */
.watch-info {
    padding: 2rem 4%;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.watch-info-main h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.watch-info-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.watch-info-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.watch-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.watch-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.episode-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--background-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.episode-item:hover,
.episode-item.active {
    background: var(--surface-light);
}

.episode-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    ), url('../images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem;
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--background);
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface-light);
}

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

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

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

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

/* Social Login */
.social-login {
    margin-top: 1.5rem;
}

.social-login-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border);
}

.social-login-title::before {
    left: 0;
}

.social-login-title::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

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

.alert-warning {
    background: rgba(232, 124, 3, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 113, 235, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ==================== CATEGORY PAGE ==================== */
.category-page {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
}

.category-header {
    padding: 2rem 4%;
    background: linear-gradient(to bottom, var(--surface), transparent);
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    max-width: 600px;
}

.category-content {
    padding: 2rem 4%;
}

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

/* ==================== FAVORITES PAGE ==================== */
.favorites-page {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
}

.favorites-header {
    padding: 2rem 4%;
}

.favorites-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.favorites-count {
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

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

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 4rem 4% 2rem;
    background: var(--background-dark);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-primary);
}

/* ==================== LOADING & SKELETON ==================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface) 25%,
        var(--surface-light) 50%,
        var(--surface) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .content-card {
        width: 20%;
    }
    
    .content-info {
        grid-template-columns: 1fr;
    }
    
    .watch-info {
        grid-template-columns: 1fr;
    }
    
    .watch-sidebar {
        order: -1;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-card {
        width: 25%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }
    
    .nav {
        display: none;
    }

    .nav.active {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 4%;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        z-index: 2000;
    }

    .nav.active a {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .content-card {
        width: 33.333%;
        min-width: 140px;
    }
    
    .content-hero-title {
        font-size: 2rem;
    }
    
    .content-hero-poster {
        width: 150px;
    }
    
    .auth-container {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .content-card {
        width: 50%;
    }
    
    .row-title {
        font-size: 1.1rem;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-slideUp {
    animation: slideUp 0.5s ease;
}

/* ==================== GLASS EFFECT ==================== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.hover-glow {
    transition: box-shadow var(--transition-fast);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}
