/* =========================================
   HERO SLIDER (from index.php)
   ========================================= */
.hero-3d-section {
    position: relative;
    min-height: 75vh;
    background: linear-gradient(135deg, #070707 0%, #1a1a1a 100%);
    padding: var(--space-4) 0 var(--space-8) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 7, 7, 0.2) 0%, rgba(7, 7, 7, 0.5) 100%);
    backdrop-filter: blur(2px);
}

.hero-bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(7, 7, 7, 0.6) 100%);
}

.swiper-hero {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.swiper-hero .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 650px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    opacity: 0.6;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.swiper-hero .swiper-slide-active {
    opacity: 1;
    transform: scale(1.02);
}

.swiper-hero .swiper-slide-next {
    opacity: 0.8;
}

.swiper-hero .swiper-slide-prev {
    opacity: 0.8;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 7, 0.98) 0%, rgba(7, 7, 7, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.hero-slide-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-0-5);
    color: #d4af37;
    font-weight: 700;
    font-size: var(--text-xs);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
    background: rgba(7, 7, 7, 0.7);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-primary);
    color: #070707;
    transform: scale(1.15);
    border-color: var(--color-primary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}


.swiper-hero .swiper-pagination {
    bottom: 0px !important;
}

.swiper-pagination-bullet {
    background: rgba(212, 175, 55, 0.3);
    opacity: 0.8;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}


/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: var(--space-16);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-4) var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

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

.footer-heading {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: #070707;
    transform: translateY(-2px);
}



/* Responsive Design (Hero) */
@media (max-width: 1024px) {
    .hero-3d-section {
        min-height: 60vh;
        padding: var(--space-3) 0 var(--space-6) 0;
    }
}

@media (max-width: 768px) {
    .hero-3d-section {
        min-height: 55vh;
        padding: var(--space-2) 0 var(--space-4) 0;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-3d-section {
        min-height: 50vh;
        padding: var(--space-1) 0 var(--space-3) 0;
    }
}


/* =========================================
   SINGLE PAGE STYLES (Movies & TV)
   ========================================= */
.single-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: #070707;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #070707 0%, rgba(7, 7, 7, 0.8) 50%, rgba(7, 7, 7, 0.4) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-12);
}

.movie-title,
.show-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.movie-meta,
.show-meta {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    color: #d4af37;
    font-weight: 600;
}

.player-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border-primary);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: #000;
}

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

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.cast-member {
    text-align: center;
}

.cast-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border-primary);
}

.cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TV Show Specifics */
.season-tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.episode-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.episode-item:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.episode-thumb {
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

/* Theater Mode Styles */
.theater-mode .player-card {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    z-index: 1001;
    border-radius: 0;
    margin-bottom: 0;
}

.theater-mode .video-container {
    padding-top: 0;
    height: calc(100% - 65px);
    /* Substracting controls height */
}

.theater-mode #masthead {
    z-index: 1002;
}

/* Plyr Customization for Gold Theme */
:root {
    --plyr-color-main: #d4af37;
}

.plyr--full-ui input[type=range] {
    color: #d4af37;
}


/* =========================================
   DASHBOARD STYLES
   ========================================= */
:root {
    --dash-sidebar-width: 280px;
    --dash-bg: #0a0a0a;
    --dash-panel-bg: rgba(22, 22, 22, 0.8);
    --dash-border: rgba(255, 255, 255, 0.08);
    --dash-primary: #d4af37;
    --dash-text-muted: #a1a1aa;
}

.dash-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 80vh;
}

/* Layout Grid */
.dash-layout {
    display: grid;
    grid-template-columns: var(--dash-sidebar-width) 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.dash-sidebar {
    position: sticky;
    top: 100px;
}

.dash-panel {
    background: var(--dash-panel-bg);
    border: 1px solid var(--dash-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-p-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--dash-border);
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--dash-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

/* Navigation */
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    width: 100%;
    padding: 0.8rem 1rem;
    color: var(--dash-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dash-nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--dash-primary);
    box-shadow: inset 2px 0 0 var(--dash-primary);
}

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

.nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.nav-badge {
    margin-left: auto;
    background: var(--dash-primary);
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 700;
}

/* Main Area - Hero Banner */
.dash-hero {
    position: relative;
    margin-bottom: 2rem;
    background: var(--dash-panel-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dash-border);
}

.dash-banner {
    height: 200px;
    background: linear-gradient(to right, #111, #222);
    background-size: cover;
    background-position: center;
}

.dash-hero-content {
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 2rem;
    margin-top: -60px;
    gap: 1.5rem;
}

.dash-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.dash-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--dash-bg);
    object-fit: cover;
    background: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dash-pro-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--dash-primary);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    border: 2px solid var(--dash-bg);
}

.dash-user-info {
    padding-bottom: 10px;
}

.dash-username {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.dash-joined {
    color: var(--dash-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dash-panel-bg);
    border: 1px solid var(--dash-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.icon-movies {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon.icon-shows {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon.icon-comments {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    margin-top: 4px;
}

/* Media Grid */
.dash-main .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dash-main .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.dash-main .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.dash-main .media-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.dash-main .media-card:hover {
    transform: translateY(-5px);
}

.dash-main .media-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dash-main .media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.dash-main .media-card:hover .media-poster img {
    transform: scale(1.05);
}

.dash-main .media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--dash-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Remove from Watchlist Button */
.btn-remove-watchlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(100, 100, 100, 0.9);
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important;
    transition: all 0.3s ease;
    z-index: 10;
    color: #ef4444;
    backdrop-filter: blur(8px);
    font-weight: 900;
}

.btn-remove-watchlist:hover {
    background: rgba(120, 120, 120, 0.95);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-remove-watchlist svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}


.media-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    display: flex;
    justify-content: space-between;
}

.rating {
    color: #f59e0b;
    font-weight: 600;
}

/* Empty States */
.dash-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--dash-panel-bg);
    border: 1px solid var(--dash-border);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--dash-text-muted);
    opacity: 0.5;
}

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

.dash-empty-state p {
    color: var(--dash-text-muted);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dash-text-muted);
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dash-border);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--dash-primary);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.form-input.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.dash-search {
    background: var(--dash-panel-bg);
    border: 1px solid var(--dash-border);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    color: #fff;
    min-width: 250px;
}

/* Requests Grid */
.requests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {

    .requests-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.request-table {
    width: 100%;
    border-collapse: collapse;
}

.request-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.request-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dash-border);
    font-size: 0.95rem;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Customization */
.banner-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--dash-border);
}

.banner-placeholder {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px dashed var(--dash-border);
}

.avatar-upload-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.current-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.current-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-error {
    color: #ef4444;
}

.mt-2 {
    margin-top: 0.5rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin: 0.25rem 0 0;
}

/* Custom File Input */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.btn-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--dash-border);
}

.btn-file:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Notifications Details */
.notif-full-list {
    min-height: 400px;
}

.unread-bg {
    background: rgba(212, 175, 55, 0.05);
}

.notif-msg-full {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #fff;
}

.notif-time-full {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 7, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.search-box {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-box {
        display: block;
    }
}

.search-input {
    width: 220px;
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-10);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    width: 280px;
}

.search-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .header-actions .btn {
        display: inline-flex !important;
    }
}

.mobile-menu-btn:hover {
    background: var(--color-bg-elevated);
    color: var(--color-primary);
}

/* Notifications Styles */
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.notif-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-title {
    font-weight: 700;
    font-size: var(--text-sm);
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-primary);
    display: block;
    text-decoration: none;
    transition: background 0.3s ease;
}

.notif-item:hover {
    background: var(--color-bg-tertiary);
}

.notif-item.unread {
    background: rgba(212, 175, 55, 0.05);
}

.notif-message {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.notif-empty {
    padding: var(--space-8);
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.custom-logo-link img {
    max-height: 45px;
    width: auto;
}


/* =========================================
   HOMEPAGE CONTENT STYLES
   ========================================= */

/* Section Separator */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: var(--space-12) 0 var(--space-8);
}

.separator-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    z-index: 1;
}

.separator-icon {
    position: relative;
    z-index: 2;
    background: #070707;
    padding: 0 var(--space-4);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-12);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-primary);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -9px;
    /* adjust based on parent padding */
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 500;
}

.view-all-btn:hover {
    color: var(--color-primary);
}

/* Content Cards */
.content-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2/3;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.rating-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 2;
}

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

.card-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}


/* =========================================
   SINGLE PAGE GRID (Responsive Fix)
   ========================================= */
.single-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-12);
}

@media (max-width: 1024px) {
    .single-content-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PLAYER STYLES
   ========================================= */
.player-card {
    background: #000;

    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.player-controls {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.player-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
    /* Fix overflow on mobile */
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Make buttons smaller on very small screens if needed */
@media (max-width: 480px) {
    .player-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}