/* TVOREC ANIME - Standalone Online Cinema Style */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #030712;
    --panel-bg: rgba(17, 24, 39, 0.65);
    --panel-border: rgba(236, 72, 153, 0.15); /* Pink/fuchsia theme for anime */
    --border-hover: rgba(236, 72, 153, 0.35);
    
    --primary: #ec4899; /* Fuchsia */
    --primary-glow: rgba(236, 72, 153, 0.25);
    --secondary: #8b5cf6; /* Violet */
    --secondary-glow: rgba(139, 92, 246, 0.2);
    --accent: #06b6d4; /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-header: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.2);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout */
/* Sidebar Layout overrides */
@media (min-width: 1025px) {
    .mobile-header {
        display: none !important;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        background: rgba(10, 15, 30, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid rgba(236, 72, 153, 0.12);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 100;
        transition: transform 0.3s ease;
    }
    .sidebar .brand {
        margin-bottom: 0;
    }
    .sidebar .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .sidebar .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .sidebar-close-btn {
        display: none !important;
    }
    .sidebar-footer {
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding-top: 1.5rem;
    }
    .main-content {
        margin-left: 250px !important;
        margin-right: 2rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 1.5rem !important;
    }
    .sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(3, 7, 18, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.03);
        padding: 0.75rem 1.25rem;
        position: sticky;
        top: 0;
        z-index: 90;
    }
    .mobile-menu-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        width: 2.25rem;
        height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: var(--transition);
    }
    .mobile-menu-btn:hover {
        background: rgba(255,255,255,0.05);
    }
    .mobile-brand h1 {
        font-family: var(--font-header);
        font-size: 0.95rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #fff;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid rgba(236, 72, 153, 0.15);
        box-shadow: 10px 0 40px rgba(0,0,0,0.6);
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .sidebar .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .sidebar .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .sidebar-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 1.25rem;
        cursor: pointer;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }
    .sidebar-close-btn:hover {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }
    .sidebar-footer {
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding-top: 1.5rem;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    .main-content {
        padding: 1.25rem !important;
        margin-top: 1rem !important;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text h1 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-text p {
    font-size: 0.52rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.85rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

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

.nav-link.active {
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
    box-shadow: inset 0 0 10px rgba(236, 72, 153, 0.05);
}

.main-content {
    max-width: 1400px;
    width: 96%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* Page Transitions */
.page-section {
    display: none;
    animation: sectionFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
    display: block;
}

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

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

.anime-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.anime-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
}

.anime-poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%; /* Aspect ratio 5:7 */
    background: #0f172a;
    overflow: hidden;
}

.anime-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .anime-poster {
    transform: scale(1.05);
}

.anime-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3,7,18,0.95) 0%, rgba(3,7,18,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

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

.anime-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(236, 72, 153, 0.95);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(236,72,153,0.5);
    z-index: 5;
}

.anime-card-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.anime-card-title {
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-card-subtitle {
    font-size: 0.58rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Forms and Inputs */
.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

.btn-primary:hover {
    background: #f472b6;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

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

/* Skeleton Loading Loader */
.skeleton-card {
    border-radius: 0.75rem;
    height: 270px;
    background: linear-gradient(90deg, rgba(15,23,42,0.45) 25%, rgba(15,23,42,0.7) 50%, rgba(15,23,42,0.45) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border: 1px solid rgba(255,255,255,0.02);
}

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

.hidden {
    display: none !important;
}

/* Player Custom Layout */
.player-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
}

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

/* Custom Video Player Styles */
.custom-player-wrapper {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-player-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-player-wrapper.hide-cursor {
    cursor: none;
}

/* Big center play button */
.player-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(236,72,153,0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.custom-player-wrapper.paused .player-center-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.player-center-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 35px rgba(236,72,153,0.8);
}

/* Loading Spinner */
.player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(236,72,153,0.6);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Floating Control Bar Container */
.player-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(236,72,153,0.05);
}

.custom-player-wrapper:hover .player-controls,
.custom-player-wrapper.paused .player-controls,
.player-controls:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Timeline / Seekbar */
.player-timeline-container {
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.player-timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    position: relative;
    transition: height 0.15s ease;
}

.player-timeline-container:hover .player-timeline {
    height: 6px;
}

.player-timeline-loaded {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    width: 0;
}

.player-timeline-current {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 99px;
    width: 0;
    box-shadow: 0 0 8px rgba(236,72,153,0.6);
}

.player-timeline-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(236,72,153,0.8);
    transition: transform 0.15s ease;
}

.player-timeline-container:hover .player-timeline-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Time indicator tooltip */
.player-timeline-tooltip {
    position: absolute;
    bottom: 22px;
    transform: translateX(-50%) scale(0.8);
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.58rem;
    font-family: var(--font-mono);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 0 10px rgba(236,72,153,0.3);
}

.player-timeline-container:hover .player-timeline-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Buttons row */
.player-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.player-controls-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.player-controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    transition: var(--transition);
}

.player-control-btn:hover {
    color: var(--primary);
    background: rgba(236, 72, 153, 0.08);
}

.player-time-display {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.35rem;
}

/* Volume Slider styling */
.player-volume-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.player-volume-slider {
    width: 0;
    opacity: 0;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    outline: none;
    transition: width 0.25s ease, opacity 0.2s ease;
}

.player-volume-container:hover .player-volume-slider,
.player-volume-slider:focus {
    width: 65px;
    opacity: 1;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(236,72,153,0.6);
}

/* Auto-hide controls and cursor integration */
.custom-player-wrapper.hide-cursor {
    cursor: none !important;
}
.custom-player-wrapper.hide-cursor .player-controls {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
}

/* Skip button overrides */
.video-skip-btn-custom {
    position: absolute !important;
    bottom: 5.5rem !important; /* raised slightly to clear custom control bar */
    right: 1.5rem !important;
    z-index: 99 !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #fff !important;
    background: rgba(10, 15, 30, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center !important;
    gap: 0.45rem !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.video-skip-btn-custom.hidden {
    display: none !important;
}

.video-skip-btn-custom:hover {
    background: var(--primary) !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 15px rgba(236,72,153,0.5) !important;
}

.btn.active-tab {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(236,72,153,0.3) !important;
    border-color: transparent !important;
}

/* Toggle switch styles */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.08);
    transition: .3s ease;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.05);
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: .3s ease;
    border-radius: 50%;
}
input:checked + .slider-round {
    background-color: var(--primary);
    box-shadow: 0 0 12px rgba(236,72,153,0.5);
}
input:checked + .slider-round:before {
    transform: translateX(20px);
    background-color: #fff;
}

/* Bookmark List Buttons (Vertical Stack) */
.bookmark-list-btn {
    font-size: 0.68rem !important;
    padding: 0.55rem 0.8rem !important;
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    text-align: left !important;
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
    color: var(--text-secondary) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bookmark-list-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateX(3px) !important;
}

.bookmark-list-btn.active {
    background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.03)) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(236,72,153,0.15) !important;
}

/* Continue Watching Section */
.continue-card {
    display: flex;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.continue-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(236,72,153,0.12);
}

.continue-poster-wrapper {
    width: 65px;
    height: 90px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.continue-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.continue-card:hover .continue-play-overlay {
    opacity: 1;
}

.continue-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.continue-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.continue-subtitle {
    font-size: 0.58rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 0.1rem;
}

.continue-episode {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--primary);
}

.continue-time {
    font-size: 0.55rem;
    color: var(--text-secondary);
    margin-top: 0.05rem;
}

.continue-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.35rem;
}

.continue-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

/* Card bookmark overlay button (hover state details) */
.card-bookmark-btn {
    font-size: 0.52rem !important;
    width: 100% !important;
    padding: 0.35rem 0.5rem !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin-top: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background: rgba(10, 15, 30, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 6px !important;
}

.card-bookmark-btn:hover {
    background: rgba(236, 72, 153, 0.15) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.card-bookmark-btn.active {
    background: var(--primary) !important;
    border-color: transparent !important;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5) !important;
    color: #fff !important;
}

/* Floating Mini-Player Container */
#mini-player-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 320px;
    height: 180px;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(236, 72, 153, 0.25);
    border: 2px solid var(--primary);
    background: #000;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mini-player-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(236, 72, 153, 0.4);
}

#mini-player-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10001;
    width: 24px;
    height: 24px;
    background: rgba(10, 15, 30, 0.85);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#mini-player-close:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

/* Adjust video controls inside mini mode */
.custom-player-wrapper.mini-mode {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Hide timeline and some controls inside mini mode to save space */
.custom-player-wrapper.mini-mode .player-controls {
    display: none !important;
}
.custom-player-wrapper.mini-mode .player-center-play {
    font-size: 1.5rem !important;
    width: 45px !important;
    height: 45px !important;
}

/* --- Badges & Roles from Portal --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: inherit;
    border: 1px solid transparent;
    line-height: 1;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.legendary-gradient {
    background: linear-gradient(90deg, #ff007f, #7f00ff, #3b82f6, #ff007f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    animation: shineAdminText 3s linear infinite;
    display: inline-block;
}

@keyframes shineAdminText {
    to {
        background-position: 200% center;
    }
}

.admin-badge-style {
    position: relative !important;
    overflow: hidden !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.7) !important;
    color: #fff !important;
    text-shadow: 0 0 6px #ef4444, 0 0 12px rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2), inset 0 0 6px rgba(239, 68, 68, 0.1) !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    animation: pulseAdminBadge 2.5s infinite alternate !important;
}

.admin-badge-style::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: adminShimmer 3s infinite ease-in-out;
}

@keyframes adminShimmer {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes pulseAdminBadge {
    0% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.25), inset 0 0 6px rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.5);
    }
    100% {
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.5), inset 0 0 10px rgba(239, 68, 68, 0.3);
        border-color: rgba(239, 68, 68, 0.9);
    }
}
