/* ==========================================================================
   NETFLIX THEME STYLESHEET
   Curated Dark Aesthetics, Glassmorphism, Responsive Grid & Netflix UI
   ========================================================================== */

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

:root {
    --netflix-red: #E50914;
    --netflix-red-hover: #f40612;
    --netflix-red-glow: rgba(229, 9, 20, 0.4);
    --bg-black: #080808;
    --bg-main: #141414;
    --bg-surface: #181818;
    --bg-elevated: #242424;
    --bg-input: #2f2f2f;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #808080;
    --accent-green: #46D369;
    --accent-gold: #F5C518;
    --glass-bg: rgba(20, 20, 20, 0.88);
    --glass-border: rgba(255, 255, 255, 0.12);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
}

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

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

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.netflix-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.netflix-navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 4%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.netflix-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--netflix-red);
    text-shadow: 0 0 16px var(--netflix-red-glow);
    text-transform: uppercase;
}

.netflix-logo span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--netflix-red);
    border-radius: 4px;
}

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

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: #FFFFFF;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

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

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--netflix-red);
    box-shadow: 0 0 12px var(--netflix-red-glow);
    background: rgba(0, 0, 0, 0.9);
}

.search-input {
    background: transparent;
    color: #fff;
    font-size: 13px;
    width: 140px;
    padding-left: 8px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 220px;
}

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

/* User Menu */
.user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.user-avatar-btn svg {
    transition: transform 0.25s ease;
}

.user-menu-wrapper.open .user-avatar-btn svg,
.user-menu-wrapper:hover .user-avatar-btn svg {
    transform: rotate(180deg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.user-avatar-btn:hover .user-avatar,
.user-menu-wrapper.open .user-avatar {
    border-color: var(--netflix-red);
    box-shadow: 0 0 10px var(--netflix-red-glow);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 1002;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible hover bridge to eliminate the gap trap */
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.show,
.user-menu-wrapper:hover .user-dropdown {
    display: flex;
}

.dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tag {
    display: inline-block;
    background: var(--netflix-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dropdown-link {
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-elevated);
    color: #fff;
    transform: translateX(3px);
}

.dropdown-link.logout-btn:hover {
    background: rgba(229, 9, 20, 0.15);
    color: #ff5555;
}

/* ==========================================================================
   HERO SPOTLIGHT BILLBOARD
   ========================================================================== */
.hero-billboard {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background-size: cover;
    background-position: center top;
    margin-bottom: -60px;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.1) 85%),
                linear-gradient(180deg, rgba(20,20,20,0) 60%, rgba(20,20,20,0.8) 85%, var(--bg-main) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    margin-top: 60px;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.badge-original {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
}

.badge-original::before {
    content: "N";
    color: var(--netflix-red);
    font-size: 20px;
    font-weight: 900;
}

.badge-rating {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.badge-quality {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.match-score {
    color: var(--accent-green);
    font-weight: 700;
}

.imdb-score {
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.hero-synopsis {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.btn-primary {
    background-color: #FFFFFF;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: scale(1.03);
}

.btn-danger {
    background-color: var(--netflix-red);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--netflix-red-glow);
}

.btn-danger:hover {
    background-color: var(--netflix-red-hover);
    transform: scale(1.03);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
    transform: scale(1.03);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-icon.active {
    background: rgba(229, 9, 20, 0.25);
    border-color: var(--netflix-red);
    color: var(--netflix-red);
}

.btn-icon.active:hover {
    background: var(--netflix-red);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ==========================================================================
   MOVIE ROWS & SHELVES
   ========================================================================== */
.netflix-content {
    position: relative;
    z-index: 20;
    padding: 0 4% 80px 4%;
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.movie-row {
    position: relative;
}

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

.row-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--netflix-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.row-see-all:hover {
    color: #fff;
}

.row-scroll-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 4px 26px 4px;
    scrollbar-width: none;
}

.row-scroll-container::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   MOVIE CARD
   ========================================================================== */
.movie-card {
    position: relative;
    flex: 0 0 210px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1400px) {
    .movie-card {
        flex: 0 0 230px;
    }
}

.movie-card:hover {
    transform: scale(1.06) translateY(-4px);
    z-index: 50;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.3);
}

.movie-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.movie-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

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

.movie-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.card-badge-score {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 197, 24, 0.4);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-badge-trending {
    background: var(--netflix-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.movie-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.movie-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.movie-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.card-action-play {
    background: #fff;
    color: #000;
}

.card-action-play:hover {
    background: var(--netflix-red);
    color: #fff;
    transform: scale(1.1);
}

.card-action-add {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.card-action-add:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-action-add.active {
    background: rgba(229, 9, 20, 0.25);
    border-color: var(--netflix-red);
    color: var(--netflix-red);
}

.card-action-add.active:hover {
    background: var(--netflix-red);
    color: #fff;
    border-color: var(--netflix-red);
}

.card-action-add.loading {
    opacity: 0.5;
    pointer-events: none;
    transform: scale(0.95);
}

.card-action-info {
    margin-left: auto;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.card-action-info:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ==========================================================================
   CATALOG & GRID VIEW
   ========================================================================== */
.catalog-page {
    padding: 100px 4% 80px 4%;
}

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

.catalog-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.catalog-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--bg-surface);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus, .filter-select:hover {
    border-color: var(--netflix-red);
}

.genre-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.genre-pill {
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.genre-pill:hover, .genre-pill.active {
    background: var(--netflix-red);
    color: #fff;
    border-color: var(--netflix-red);
    box-shadow: 0 0 10px var(--netflix-red-glow);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
}

.pagination-wrapper .page-link {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.pagination-wrapper .page-item.active .page-link,
.pagination-wrapper .page-link:hover {
    background: var(--netflix-red);
    color: #fff;
    border-color: var(--netflix-red);
}

/* ==========================================================================
   DETAIL MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--glass-border);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 50;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close-btn:hover {
    background: #fff;
    color: #000;
}

.modal-hero {
    position: relative;
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
}

.modal-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0) 50%, var(--bg-surface) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-body {
    padding: 24px 30px 36px 30px;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .modal-details-grid {
        grid-template-columns: 1fr;
    }
}

.modal-synopsis {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-meta-sidebar {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row span:first-child {
    color: var(--text-muted);
}

.meta-row span:last-child {
    color: #fff;
    font-weight: 500;
}

.similar-movies-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

/* ==========================================================================
   CINEMATIC VIDEO PLAYER
   ========================================================================== */
.player-container {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cinema-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

.player-chrome {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 20;
}

.player-chrome.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    pointer-events: auto;
    position: relative;
    z-index: 30;
}

.player-back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    text-decoration: none;
}

.player-back-btn:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    transform: scale(1.1);
}

.player-movie-info h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.player-movie-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Center Large Play/Pause Toggle Indicator */
.center-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 0 30px var(--netflix-red-glow);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 25;
    pointer-events: auto;
}

.center-play-indicator:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--netflix-red);
}

.center-play-indicator.playing {
    opacity: 0;
    pointer-events: none;
}

/* Bottom Controls */
.player-bottom-controls {
    pointer-events: auto;
    position: relative;
    z-index: 30;
}
.player-bottom-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-timeline-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.player-timeline-wrapper:hover {
    height: 10px;
}

.player-timeline-fill {
    height: 100%;
    width: 0%;
    background: var(--netflix-red);
    border-radius: 3px;
    position: relative;
}

.player-timeline-fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    display: none;
}

.player-timeline-wrapper:hover .player-timeline-fill::after {
    display: block;
}

.player-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-controls-left, .player-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--netflix-red);
    transform: scale(1.15);
}

.player-time-display {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* On-screen Seek Indicator Badge (e.g. -10s / +10s) */
.player-seek-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-seek-badge.seek-left {
    left: 15%;
}

.player-seek-badge.seek-right {
    right: 15%;
}

.player-seek-badge.active {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.seek-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 16px 26px;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   AUTH PAGES (Netflix Red Sign-In)
   ========================================================================== */
.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
                url('https://images.unsplash.com/photo-1574375927938-d5a98e8ffe85?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 40px 20px;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--netflix-red);
    background: #333333;
    box-shadow: 0 0 10px var(--netflix-red-glow);
}

.form-helper {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: #ff5555;
    margin-top: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.auth-divider span {
    padding: 0 12px;
}

/* Google Sign-in Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #1f1f1f;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

/* Demo Logins Box */
.demo-logins-box {
    margin-top: 24px;
    padding: 16px;
    background: rgba(229, 9, 20, 0.08);
    border: 1px dashed rgba(229, 9, 20, 0.4);
    border-radius: var(--radius-sm);
}

.demo-logins-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--netflix-red);
    margin-bottom: 10px;
}

.demo-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */
.admin-layout {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
}

.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
}

.admin-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Metric Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--netflix-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(229, 9, 20, 0.15);
    color: var(--netflix-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info p {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

/* Admin Table */
.table-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.table-toolbar {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-movie-thumb {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.table-movie-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin Upload Form */
.upload-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.file-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.file-dropzone:hover {
    border-color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.05);
}

.file-dropzone input[type="file"] {
    display: none;
}

.dropzone-icon {
    font-size: 32px;
    color: var(--netflix-red);
    margin-bottom: 8px;
}

.dropzone-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.dropzone-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dropzone-preview {
    margin-top: 10px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    word-break: break-all;
}

/* Toggle Switches */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.switch-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.switch-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.switch-input:checked + .switch-toggle {
    background: var(--netflix-red);
}

.switch-input:checked + .switch-toggle::after {
    transform: translateX(22px);
}

.switch-input {
    display: none;
}

/* ==========================================================================
   ALERTS & FLASH MESSAGES
   ========================================================================== */
.alert-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.alert-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--netflix-red);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 13px;
    animation: toastSlideIn 0.3s ease;
}

.alert-toast.success {
    border-left-color: var(--accent-green);
}

.alert-toast.warning {
    border-left-color: var(--accent-gold);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.netflix-footer {
    padding: 60px 4% 40px 4%;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #555555;
}

/* ==========================================================================
   ACCOUNT & USER MANAGEMENT STYLES
   ========================================================================== */
.admin-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.admin-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.admin-nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav-tab.active {
    color: #fff;
    background: var(--netflix-red);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.account-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 24px 80px 24px;
}

.account-hero-card {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.account-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--netflix-red);
}

.account-profile-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.account-avatar-wrapper {
    position: relative;
}

.account-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.account-info h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-username {
    color: var(--netflix-red);
    font-weight: 600;
    font-size: 15px;
}

.account-email {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.account-hero-meta {
    display: flex;
    gap: 20px;
}

.account-meta-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: center;
}

.account-meta-badge .meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.account-meta-badge .meta-val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge-admin {
    background: rgba(229, 9, 20, 0.15);
    color: #ff3b47;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.role-badge-viewer {
    background: rgba(70, 211, 105, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(70, 211, 105, 0.3);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.account-panel {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.account-panel-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-presets-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.avatar-presets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.avatar-preset-btn {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.avatar-preset-btn:hover {
    transform: scale(1.08);
}

.avatar-preset-btn.active {
    border-color: var(--netflix-red);
}

.avatar-preset-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
}

/* Modals for Admin User Management */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    animation: modalIn 0.25s ease-out forwards;
}

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

.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-box-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #fff;
}

/* ==========================================================================
   CINEMATIC MOVIE UPLOAD PROGRESS MODAL & PERCENTAGE
   ========================================================================== */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    background: rgba(6, 6, 6, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.upload-progress-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upload-progress-card {
    background: linear-gradient(160deg, #1b1b1b 0%, #111111 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    padding: 34px 38px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(229, 9, 20, 0.15);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.upload-progress-overlay.active .upload-progress-card {
    transform: scale(1);
}

.upload-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--netflix-red), transparent);
}

/* Header */
.upload-progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.upload-indicator-pulse {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.35);
    animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--netflix-red);
    box-shadow: 0 0 10px var(--netflix-red);
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.15; }
    100% { transform: scale(2.2); opacity: 0; }
}

.upload-progress-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    font-family: var(--font-heading);
}

.upload-progress-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Percentage Display */
.upload-percent-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.upload-percent-glow {
    font-family: var(--font-heading);
    font-size: 68px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(229, 9, 20, 0.65), 0 0 60px rgba(229, 9, 20, 0.25);
    display: flex;
    align-items: baseline;
}

.upload-percent-glow .percent-symbol {
    font-size: 32px;
    color: var(--netflix-red);
    margin-left: 4px;
    font-weight: 700;
}

.upload-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stage-spinner {
    animation: stageSpin 0.9s linear infinite;
    color: var(--netflix-red);
}

@keyframes stageSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.upload-bar-track {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin-bottom: 22px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}

.upload-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #990000 0%, #E50914 70%, #ff4b4b 100%);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.85);
    transition: width 0.15s ease-out;
    position: relative;
    overflow: hidden;
}

.upload-bar-fill.completed {
    background: linear-gradient(90deg, #1b7a36 0%, #46D369 100%) !important;
    box-shadow: 0 0 20px rgba(70, 211, 105, 0.8) !important;
}

.upload-bar-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    animation: uploadShimmer 1.8s infinite;
}

@keyframes uploadShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Stats Grid */
.upload-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.upload-stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-body);
}

.stat-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Error Banner */
.upload-error-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    animation: shakeError 0.35s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Footer */
.upload-progress-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .upload-progress-card {
        padding: 24px 20px;
    }
    .upload-percent-glow {
        font-size: 48px;
    }
    .upload-stats-grid {
        grid-template-columns: 1fr;
    }
}


