:root {
    --primary: #00bcd4;
    --primary-rgb: 0, 188, 212;
    --cyan: #00bcd4;
    --cyan-rgb: 0, 188, 212;
    --dark: #070b13;
    --card: #0c111c;
    --accent: #00bcd4;
}

body {
    background: var(--dark);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* Global Reset for Sidebar */
.sidebar-nav { display: none !important; }
.lg:ml-20 { margin-left: 0 !important; }

/* BlackBunny Styles */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}
.nav-link:hover, .nav-link.active {
    color: white;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hero-gradient {
    background: linear-gradient(to right, #070b13 10%, transparent 60%),
                linear-gradient(to top, #070b13 2%, transparent 30%);
}

.play-btn-large {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.2rem;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.play-btn-large:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.category-pill {
    background: #1e293b;
    color: #94a3b8;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}
.category-pill.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.movie-card-v2 {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.movie-card-v2:hover {
    transform: scale(1.05);
}

/* Movie Card Components */
.movie-card-poster {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1e293b;
    margin-bottom: 12px;
}

.movie-card-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.movie-card-v2:hover .movie-card-poster img {
    transform: scale(1.1);
}

.hd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00bcd4;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

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

.play-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.movie-card-v2:hover .play-overlay i {
    transform: scale(1);
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.type-pill {
    padding: 1px 8px;
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
}

.movie-title-v2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.movie-card-v2:hover .movie-title-v2 {
    color: var(--primary);
}

/* Sidebar Styles */
.sidebar-section {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary);
    display: block;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-item-thumb {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

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

.sidebar-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
}

.sidebar-item-meta {
    font-size: 0.65rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Safe Play Overlay */
.player-container-v2 {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.safe-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.safe-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.safe-play-btn {
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    animation: pulse 2s infinite;
}

.safe-play-overlay:hover .safe-play-btn {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 70px rgba(255, 0, 0, 0.8);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 30px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.player-safe-tag {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-safe-tag span {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

/* UI Components */
.btn-neon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-neon:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.7);
    background: #FF2222;
}
.btn-neon:active {
    transform: translateY(0) scale(0.98);
}

/* Movie Details Page Specific Styles */
.details-hero {
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    background: radial-gradient(circle at center, rgba(var(--cyan-rgb), 0.05) 0%, transparent 70%);
}

.large-play-btn {
    width: 90px;
    height: 90px;
    background: var(--cyan);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 0 50px rgba(var(--cyan-rgb), 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto 40px;
}

.large-play-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 70px rgba(var(--cyan-rgb), 0.7);
}

.utility-chip {
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.utility-chip:hover {
    background: rgba(var(--cyan-rgb), 0.1);
    color: var(--cyan);
    border-color: rgba(var(--cyan-rgb), 0.2);
}

.server-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.server-pill {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-pill.active {
    background: var(--cyan);
    color: #070b13;
    box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.3);
}

/* Info Section Components */
.info-badge-cyan {
    background: var(--cyan);
    color: #070b13;
    font-size: 0.7rem;
    font-weight: 950;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.info-badge-gray {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.details-table-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.details-table-label {
    width: 80px;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.details-table-value {
    color: #cbd5e1;
}

/* Sidebar "Movie Files" Tab styling */
.file-tab-header {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    border-bottom: 2px solid var(--cyan);
}

.file-item {
    background: #0c111c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Watch Page Player Styles */
.watch-hero {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    background: radial-gradient(circle at center, rgba(var(--cyan-rgb), 0.05) 0%, transparent 70%);
}

.player-container-v3 {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-splash {
    position: absolute;
    inset: 0;
    z-index: 50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-splash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.player-splash.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(1.05);
}

.player-splash-icon {
    position: relative;
    z-index: 10;
    font-size: 5rem;
    color: white;
    filter: drop-shadow(0 0 30px rgba(var(--cyan-rgb), 0.6));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-splash:hover .player-splash-icon {
    transform: scale(1.1);
}

/* Episode List Styles */
.episode-sidebar {
    background: #070b13;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.season-tab {
    background: #facc15;
    color: #000;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.episode-list-container {
    max-height: 480px;
    overflow-y: auto;
}

.episode-item-v2 {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.episode-item-v2:last-child {
    border-bottom: none;
}

.episode-item-v2:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.episode-item-v2.active {
    background: var(--cyan);
    color: #000;
}

/* Custom Scrollbar for Episode List */
.episode-list-container::-webkit-scrollbar {
    width: 4px;
}

.episode-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.episode-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Clarity Refinements: Premium Pills & Labels */
.label-cyan {
    background: var(--cyan);
    color: #070b13;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.label-gray {
    background: #1e293b;
    color: #94a3b8;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

/* 85vh Hero Overrides */
.details-hero.expanded {
    min-height: 85vh;
}

.details-hero .overlay-fade {
    background: linear-gradient(to top, #070b13 0%, rgba(7, 11, 19, 0.4) 40%, rgba(7, 11, 19, 0.9) 100%);
}

/* Refined Movie Files Sidebar */
.sidebar-box-refined {
    background: #070b13;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sidebar-box-header {
    background: rgba(255,255,255,0.02);
    padding: 15px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.03);
}

.sidebar-box-header .accent-bar {
    width: 14px;
    height: 14px;
    background: var(--cyan);
    border-radius: 3px;
    display: inline-block;
}

.sidebar-item-refined {
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.sidebar-item-refined.active {
    background: var(--cyan);
    color: #070b13;
}

.sidebar-item-refined:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

/* Telegram System Enhancements */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.telegram-gradient-text {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
