/* momen.evil */
:root {
    --bg-main: #080a0f;
    --bg-surface: #10141e;
    --bg-card: rgba(20, 26, 38, 0.7);
    --bg-card-hover: rgba(28, 36, 54, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 82, 22, 0.4);
    --primary: #ff5216;
    --primary-hover: #ff6835;
    --primary-glow: rgba(255, 82, 22, 0.35);
    --imdb-gold: #f5c518;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    direction: rtl;
    user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Container */
.cinema-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.cinema-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(8, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #e11d48);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
    margin-right: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: white;
    background: rgba(255, 82, 22, 0.15);
    border: 1px solid var(--border-highlight);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 260px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    width: 300px;
}

.search-box .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.room-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: #818cf8;
    font-size: 13px;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.user-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
}

.user-profile span {
    font-size: 14px;
    font-weight: 700;
}

/* Main Content */
.cinema-main {
    flex: 1;
    padding-bottom: 60px;
}

.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

/* Hero Slider (Screenshot 1) */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 540px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px 60px;
    margin-bottom: 24px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.4) saturate(1.2);
    transition: background-image 0.6s ease-in-out;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main) 5%, rgba(8, 10, 15, 0.7) 50%, rgba(8, 10, 15, 0.95) 100%),
                linear-gradient(to right, transparent, rgba(8, 10, 15, 0.9) 70%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    gap: 40px;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    background: rgba(255, 82, 22, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-highlight);
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.imdb-badge {
    background: var(--imdb-gold);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-genre {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.hero-plot {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

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

.btn-hero-play {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-hero-play:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 82, 22, 0.5);
}

.btn-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-hero-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.hero-poster-wrapper {
    position: relative;
}

.hero-poster {
    width: 220px;
    height: 330px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-subtle);
}

.hero-indicators {
    position: absolute;
    bottom: 24px;
    right: 60px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-indicator-dot {
    width: 24px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator-dot.active {
    background: var(--primary);
    width: 40px;
}

/* Sections */
.media-section {
    padding: 0 60px;
    margin-bottom: 44px;
}

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

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
    font-size: 20px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-view-all, .btn-clear-history {
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-view-all:hover {
    gap: 10px;
}

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

.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

/* Media Card (Screenshot 1) */
.media-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
    border-color: var(--border-highlight);
}

.card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    background: #1e293b;
}

.card-rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: var(--imdb-gold);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 10, 15, 0.95) 40%, rgba(8, 10, 15, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

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

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-plot {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-quick-play {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.card-quick-play:hover {
    background: var(--primary-hover);
}

/* Continue Watching Card */
.continue-card {
    min-width: 240px;
    width: 240px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.continue-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.continue-thumb-wrap {
    position: relative;
    width: 100%;
    height: 135px;
    background: #0f172a;
}

.continue-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.continue-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.continue-progress-fill {
    height: 100%;
    background: var(--primary);
}

.continue-info {
    padding: 12px;
}

.continue-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Catalog View Header */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px 20px;
}

.catalog-header h2 {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-count {
    color: var(--text-muted);
    font-size: 14px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
}

.btn-page {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-page:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Details Modal (Screenshot 2) */
.details-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.details-modal-box {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.btn-close-modal {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.btn-close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.details-poster-col {
    display: flex;
    justify-content: center;
}

.details-poster {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-subtle);
    object-fit: cover;
}

.details-info-col {
    display: flex;
    flex-direction: column;
}

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

.details-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
}

.details-action-buttons {
    display: flex;
    gap: 10px;
}

.btn-detail-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-detail-action:hover {
    background: var(--primary);
}

.details-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.imdb-chip {
    background: var(--imdb-gold);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
}

.details-plot {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 28px;
}

/* Seasons & Episodes (Screenshot 2) */
.seasons-container {
    margin-bottom: 28px;
}

.seasons-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.season-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.season-select-wrapper label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
}

.season-select-wrapper select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.episodes-count-badge {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.ep-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.ep-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.ep-btn i {
    font-size: 11px;
}

.btn-movie-play {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--primary-glow);
    margin-bottom: 28px;
}

.btn-movie-play:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Cast Section (Screenshot 2) */
.cast-section {
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.cast-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cast-scroll-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 85px;
    flex-shrink: 0;
}

.cast-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--border-subtle);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.cast-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.cast-role {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Video Player Overlay (Screenshot 3) */
.player-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    display: none;
    flex-direction: column;
}

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

.player-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.player-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.now-playing-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.current-track-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

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

.watch-together-pill {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-top-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-top-action.orange {
    background: var(--primary);
    border-color: var(--primary);
}

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

.btn-top-action.orange:hover {
    background: var(--primary-hover);
}

.btn-top-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-top-close:hover {
    background: #ef4444;
}

.player-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

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

.player-buffering-spinner {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

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

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

.sync-notification-toast {
    position: absolute;
    top: 80px;
    background: rgba(16, 20, 30, 0.9);
    border: 1px solid var(--border-highlight);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 30;
}

.sync-notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Player Bottom Controls (Screenshot 3) */
.player-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 16px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.player-timeline-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    direction: ltr;
}

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

.timeline-buffered {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    width: 0%;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: var(--radius-pill);
    width: 0%;
}

.timeline-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-timeline-wrapper:hover .timeline-thumb {
    opacity: 1;
}

.timeline-hover-time {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    display: none;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.ctrl-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.ctrl-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.skip-num {
    font-size: 10px;
    margin-right: -2px;
    font-weight: 800;
}

.time-display {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    direction: ltr;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .cinema-topbar {
        padding: 12px 16px;
    }
    .hero-slider {
        padding: 20px;
        min-height: 420px;
    }
    .hero-poster-wrapper {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .media-section {
        padding: 0 20px;
    }
    .details-layout {
        grid-template-columns: 1fr;
    }
    .details-poster-col {
        order: -1;
    }
    .search-box {
        display: none;
    }
}
