/* ============================================
   FullHDHatipCehennemi - Netflix Tarzı Premium
   Dark Cinematic Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --bg-glass: rgba(20, 20, 20, 0.92);
    --bg-tertiary: #1e1e1e;

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #666;

    --accent: #e50914;
    --accent-dark: #b20710;
    --accent-glow: rgba(229, 9, 20, 0.35);
    --accent-gold: #f5c518;
    --accent-blue: #2563eb;
    --accent-green: #22c55e;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --header-height: 70px;
    --announcement-height: 36px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    width: 100%;
    height: var(--announcement-height);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.announcement-bar p {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
    font-family: var(--font-display);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
    transform: scale(1.25);
    transform-origin: left center;
}

.header-logo img:hover {
    transform: scale(1.25);
    /* Keep same scale, no zoom */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search box in header */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    /* More Glassy */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 8px 16px;
    gap: 10px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    background: #000;
    border-color: #fff;
    box-shadow: 0 0 0 1px #fff;
}

.search-icon {
    font-size: 14px;
    color: #ffffff;
    opacity: 1;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 180px;
    font-family: var(--font-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 2000;
}

.search-results.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(229, 9, 20, 0.15);
}

/* Auth Buttons */
.header-login-btn,
.header-register-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-login-btn {
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
}

.header-login-btn:hover {
    text-decoration: underline;
}

.header-register-btn {
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-weight: 600;
}

.header-register-btn:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.search-result-item img {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item .info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-item .info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Header Buttons */
.header-user-btn,
.header-admin-btn,
.header-logout-btn,
.header-login-btn,
.header-register-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-primary);
}

.header-user-btn {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.header-user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.header-admin-btn {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.header-admin-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-blue);
}

.header-logout-btn {
    color: var(--text-secondary);
}

.header-logout-btn:hover {
    color: var(--accent);
}

.header-login-btn {
    color: var(--text-secondary);
    background: transparent;
}

.header-login-btn:hover {
    color: var(--text-primary);
}

.header-register-btn {
    color: #fff;
    background: var(--accent);
    border: none;
}

.header-register-btn:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE SLIDE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
    z-index: 1060;
    overflow-y: auto;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-logo {
    height: 36px;
    border-radius: var(--radius-sm);
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-menu-links {
    padding: 12px 0;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(229, 9, 20, 0.06);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.mobile-menu-categories {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.mobile-menu-categories h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 8px 24px;
}

.mobile-menu-categories a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-categories a:hover {
    background: rgba(229, 9, 20, 0.06);
    color: var(--text-primary);
}

.mobile-menu-auth {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-login {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary) !important;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.mobile-auth-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-auth-register {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--accent);
    border-radius: var(--radius);
    color: #fff !important;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.mobile-auth-register:hover {
    background: var(--accent-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
    display: block;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    display: none !important;
}

.main-content {
    width: 100%;
    min-width: 0;
}

.content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px;
}

/* ============================================
   CATEGORY FILTER
   ============================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-blue {
    background: var(--accent-blue);
    color: #fff;
}

.btn-blue:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

/* ============================================
   MOVIE GRID
   ============================================ */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

/* ============================================
   MOVIE CARD
   ============================================ */
.movie-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-normal);
    position: relative;
    text-decoration: none;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(229, 9, 20, 0.15);
    z-index: 10;
    color: var(--text-primary);
}

.movie-card .poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.movie-card:hover .poster img {
    transform: scale(1.08);
}

.movie-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.movie-card:hover .overlay {
    opacity: 1;
}

.movie-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.movie-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding: 12px;
}

.card-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-info .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-info .views {
    display: flex;
    align-items: center;
    gap: 3px;
}

.category-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: rgba(229, 9, 20, 0.12);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   LEADERBOARD / ADMIN CARD
   ============================================ */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.admin-card h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(229, 9, 20, 0.04);
}

.poster-thumb {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
}

.badge-blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 28px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.pagination a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================
   WATCH PAGE
   ============================================ */
.watch-header {
    padding: 20px 30px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.movie-meta h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.movie-meta h1 span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 20px;
}

.date-info {
    font-size: 13px;
    color: var(--text-muted);
}

.watch-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.language-tabs,
.source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.lang-tab,
.source-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-tab.active,
.source-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Player */
.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 30px 20px;
    max-width: calc(100% - 60px);
    box-shadow: var(--shadow-lg);
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ad Overlay */
.ad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ad-info {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.skip-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    cursor: not-allowed;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.skip-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* Like Bar */
.like-bar {
    display: flex;
    gap: 8px;
    padding: 12px 30px;
}

.like-btn,
.dislike-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.like-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.like-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.dislike-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.dislike-btn.active {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    padding: 20px 30px 40px;
}

.comments-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.form-body {
    flex: 1;
}

.form-body textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-body textarea:focus {
    border-color: var(--accent);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-body h4 span,
.comment-body h4 a {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.comment-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 24px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.08), transparent);
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.profile-info h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.profile-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.profile-tab {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Collection Card */
.collection-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-fast);
}

.collection-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.collection-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.collection-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.collection-card .movie-count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 20px;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(229, 9, 20, 0.04) 0%, transparent 50%);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.auth-box h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow-md);
}

.toast.success {
    background: var(--accent-green);
}

.toast.error {
    background: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 80px;
    border-radius: var(--radius-sm);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-info strong {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease both;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.stat-card .number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   TOP BAR (Legacy - for admin pages only)
   ============================================ */
.top-bar {
    display: none;
}

.mobile-toggle {
    display: none;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.4) 25%,
            rgba(0, 0, 0, 0.05) 55%,
            transparent 100%);
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 48px 60px;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.hero-year {
    color: var(--accent-green);
    font-weight: 700;
    border: 1px solid var(--accent-green);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.hero-category {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-views {
    color: var(--text-muted);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #000;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-hero-play:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    transform: scale(1.05);
}

.btn-hero-play .play-icon {
    font-size: 13px;
}

.btn-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-arrow-left {
    left: 16px;
}

.hero-arrow-right {
    right: 16px;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    right: 48px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    width: 28px;
    background: #fff;
}

















/* ============================================
   NETFLIX ROWS (Shared)
   ============================================ */
.netflix-row {
    margin-bottom: 40px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.row-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.row-see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.row-see-all:hover {
    color: var(--accent);
}

.row-scroll-wrapper {
    position: relative;
}

.row-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
    scrollbar-width: none;
}

.row-scroll::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    opacity: 0;
}

.row-scroll-wrapper:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.scroll-left {
    left: -12px;
}

.scroll-btn.scroll-right {
    right: -12px;
}

/* ============================================
   TOP 10 SECTION
   ============================================ */
.top10-section {
    margin-bottom: 48px;
}

.top10-scroll {
    gap: 4px !important;
    padding-left: 8px;
    padding-right: 8px;
}

.top10-card {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 260px;
    height: 320px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform var(--transition-normal);
}

.top10-card:hover {
    /* transform: scale(1.05); removed */
    z-index: 5;
    color: var(--text-primary);
}

.top10-number {
    font-family: var(--font-display);
    font-size: 180px;
    font-weight: 900;
    font-style: italic;
    line-height: 0.7;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.25);
    text-shadow: 0 0 40px rgba(229, 9, 20, 0.2);
    position: absolute;
    left: 40px;
    /* Moved closer to image (overlap) */
    bottom: 10px;
    z-index: 5;
    user-select: none;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.top10-card:hover .top10-number {
    -webkit-text-stroke: 3px var(--accent);
    text-shadow: 0 0 60px var(--accent-glow);
    transform: scale(1.05);
}

.top10-poster {
    position: relative;
    width: 140px;
    height: 210px;
    margin-left: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.top10-card:hover .top10-poster {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-glow);
}

.top10-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.top10-card:hover .top10-poster img {
    /* transform: scale(1.08); removed */
}

.top10-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.top10-card:hover .top10-poster-overlay {
    opacity: 1;
}

.top10-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    z-index: 3;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.top10-card:hover .top10-play {
    transform: translate(-50%, -50%) scale(1);
}

.top10-info {
    display: none;
}

/* ============================================
   ROW CARDS (Category / New)
   ============================================ */
.row-card {
    flex-shrink: 0;
    width: 220px;
    text-decoration: none;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-normal);
    position: relative;
}

.row-card:hover {
    /* transform: translateY(-8px) scale(1.04); removed */
    transform: translateY(-8px);
    /* Keep slight lift */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(229, 9, 20, 0.2);
    z-index: 10;
    color: var(--text-primary);
}

.row-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.row-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Top 10 Ribbon */
.top10-ribbon {
    position: absolute;
    top: 10px;
    left: -6px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 2px;
    z-index: 20;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.top10-ribbon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    border-top: 6px solid #8f040b;
    /* Darker red */
    border-left: 6px solid transparent;
}

/* Poster Bottom Overlay (Age/Year) */
.poster-bottom-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    pointer-events: none;
}

.poster-bottom-meta span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.badge-age {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 11px;
}

.row-card:hover .row-card-poster img {
    /* transform: scale(1.1); removed */
}

.row-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.row-card:hover .row-card-overlay {
    opacity: 1;
}

.row-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 46px;
    height: 46px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px var(--accent-glow);
    z-index: 3;
}

.row-card:hover .row-card-play {
    transform: translate(-50%, -50%) scale(1);
}

.row-card-info {
    padding: 10px 12px;
}

.row-card-info h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* All Movies Section */
.all-movies-section {
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header-right {
        gap: 8px;
    }

    .search-box input {
        width: 140px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-content {
        padding: 40px 32px 40px;
    }

    .top10-number {
        font-size: 140px;
    }

    .top10-card {
        width: 190px;
        height: 240px;
    }

    .top10-poster {
        width: 120px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-user-btn,
    .header-admin-btn,
    .header-logout-btn,
    .header-login-btn,
    .header-register-btn {
        display: none;
    }

    .search-box {
        flex: 1;
        max-width: 200px;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
    }

    .content-area {
        padding: 20px 16px;
    }

    .category-filter {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h1 {
        font-size: 22px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .player-container {
        margin: 0 16px 16px;
        max-width: calc(100% - 32px);
        border-radius: var(--radius);
    }

    .watch-header {
        padding: 16px;
    }

    .movie-meta h1 {
        font-size: 22px;
    }

    .like-bar {
        padding: 12px 16px;
    }

    .comments-section {
        padding: 16px;
    }

    .profile-header {
        padding: 24px 16px;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .profile-info h1 {
        font-size: 20px;
    }

    .profile-tabs {
        padding: 0 16px;
        overflow-x: auto;
    }

    .profile-tab {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .stats-bar {
        gap: 20px;
        padding: 20px 16px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 20px;
    }

    .announcement-bar p {
        font-size: 11px;
        padding: 0 12px;
        text-align: center;
    }

    .footer-inner {
        padding: 28px 16px 16px;
    }

    .auth-box {
        padding: 28px 24px;
    }

    .auth-box h1 {
        font-size: 24px;
    }

    /* Hero responsive */
    .hero-carousel {
        height: 400px;
    }

    .hero-slide-content {
        padding: 0 20px 36px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-meta {
        gap: 10px;
        font-size: 13px;
    }

    .btn-hero-play,
    .btn-hero-info {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        right: 20px;
        bottom: 12px;
    }

    /* Top 10 responsive */
    .top10-number {
        font-size: 110px;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    }

    .top10-card {
        width: 160px;
        height: 210px;
    }

    .top10-poster {
        width: 100px;
        height: 150px;
    }

    /* Row responsive */
    .row-title {
        font-size: 18px;
    }

    .row-card {
        width: 140px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .netflix-row {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-info {
        padding: 8px;
    }

    .card-info h3 {
        font-size: 12px;
    }

    .card-info .meta {
        font-size: 11px;
    }

    .header-logo img {
        height: 34px;
    }

    .search-box {
        max-width: 160px;
    }

    /* Hero mobile */
    .hero-banner {
        min-height: 340px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-content {
        padding: 24px 16px 30px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .btn-hero-play,
    .btn-hero-info {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Top 10 mobile */
    .top10-number {
        font-size: 90px;
    }

    .top10-card {
        width: 140px;
        height: 180px;
    }

    .top10-poster {
        width: 85px;
        height: 128px;
    }

    .top10-play {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Row mobile */
    .row-card {
        width: 120px;
    }

    .row-card-info {
        padding: 8px;
    }

    .row-card-info h3 {
        font-size: 12px;
    }

    .row-card-meta {
        font-size: 10px;
    }

    .scroll-btn {
        display: none;
    }
}

/* Watch Page Premium */
.watch-container {
    padding-top: 20px;
}

.watch-player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 80vh;
    background: #000;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-info-wrapper {
    padding: 0 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.watch-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}

.watch-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.meta-badge-age {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
}

.meta-quality {
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.watch-actions-row {
    display: flex;
    gap: 12px;
}

.action-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.action-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.1);
}

.action-btn-icon.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.watch-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 40px;
    padding-left: 20px;
}

/* ============================================
   MOBILE RESPONSIVE (Watch Page & Extras)
   ============================================ */
@media (max-width: 768px) {
    .watch-container {
        padding-top: 0;
    }

    .watch-player-wrapper {
        border-radius: 0;
        margin-bottom: 0;
        border: none;
    }

    .watch-info-wrapper {
        padding: 20px;
    }

    .watch-header-flex {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .watch-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .watch-meta-row {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .watch-actions-row {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .action-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .watch-description {
        font-size: 14px;
        padding-left: 15px;
        border-left-width: 3px;
        margin-bottom: 30px;
    }

    /* Adjust Ribbon for smaller cards */
    .top10-ribbon {
        font-size: 10px;
        padding: 3px 8px;
        top: 8px;
    }

    .poster-bottom-meta {
        padding: 40px 8px 8px;
        font-size: 10px;
    }

    .badge-age {
        padding: 1px 4px;
        font-size: 9px;
    }
}

/* Mobile Header/Footer Fixes */
@media (max-width: 768px) {
    .main-header {
        height: 60px;
        padding: 0 15px;
    }

    .header-logo {
        display: flex;
        align-items: center;
    }

    .header-logo img {
        height: 30px !important;
        transform: none !important;
        /* Remove desktop scale */
        width: auto;
    }

    .search-box {
        padding: 6px 10px;
        border-radius: 20px;
        /* More rounded on mobile? Or keep consistent */
    }

    .search-box input {
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-logo {
        height: 40px;
        margin-bottom: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Optimize Hero text for very small screens */
    .hero-content {
        padding-bottom: 60px;
        /* Space for dots */
    }

    .hero-title {
        font-size: 20px !important;
        margin-bottom: 8px;
    }

    .hero-meta {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .btn-hero-play,
    .btn-hero-info {
        padding: 8px 16px;
        font-size: 13px;
    }
}