:root {
    --bg-main: #0f1014;
    --bg-card: #16181f;
    --text-primary: #ffffff;
    --text-secondary: #8f98a9;
    --sidebar-width: 96px;
    --sidebar-expanded: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); overflow-x: hidden; display: flex; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-width); background: linear-gradient(to right, #0f1014 60%, transparent); z-index: 100; display: flex; flex-direction: column; align-items: center; padding-top: 30px; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.sidebar:hover { width: var(--sidebar-expanded); background: #0f1014; align-items: flex-start; box-shadow: 20px 0 30px rgba(0,0,0,0.7); }
.logo-container { width: 100%; padding: 0 24px; margin-bottom: 40px; display: flex; align-items: center; }
.logo { width: 48px; transition: width 0.3s ease; }
.sidebar:hover .logo { width: 60px; }
.nav-links { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 15px; }
.nav-item { display: flex; align-items: center; padding: 15px 0; cursor: pointer; color: var(--text-secondary); transition: all 0.3s ease; width: 100%; }
.nav-item i { font-size: 1.25rem; width: var(--sidebar-width); text-align: center; transition: transform 0.3s ease; }
.nav-text { font-size: 1.05rem; font-weight: 600; opacity: 0; transform: translateX(-15px); transition: all 0.3s ease; }
.sidebar:hover .nav-text { opacity: 1; transform: translateX(0); }
.nav-item:hover, .nav-item.active { color: var(--text-primary); }

.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(15, 16, 20, 0.98); backdrop-filter: blur(10px); z-index: 100; justify-content: space-around; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.bottom-nav .nav-item { flex-direction: column; padding: 0; gap: 5px; }
.bottom-nav .nav-item i { width: auto; font-size: 1.2rem; }
.bottom-nav .nav-item span { font-size: 0.75rem; opacity: 1; transform: none; }

.main-content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-height: 100vh; padding-bottom: 50px; }

.hero-carousel { position: relative; width: 100%; height: 85vh; overflow: hidden; }
.hero-slides { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: top center; opacity: 0; transition: opacity 0.8s, transform 6s; transform: scale(1); }
.slide.active { opacity: 1; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-main) 0%, rgba(15,16,20,0.6) 30%, transparent 100%), linear-gradient(to right, var(--bg-main) 0%, rgba(15,16,20,0.4) 50%, transparent 100%); z-index: 5; }
.hero-content { position: absolute; bottom: 12%; left: 60px; z-index: 10; max-width: 600px; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.hero-content.active { opacity: 1; transform: translateY(0); }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; }
.hero-meta { font-size: 1rem; color: #e8e8e8; font-weight: 700; margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; color: #ccc; margin-bottom: 35px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-play { background: var(--text-primary); color: #000; border: none; padding: 14px 40px; font-size: 1.15rem; font-weight: 800; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: transform 0.2s; }
.btn-play:hover { transform: scale(1.05); }
.carousel-indicators { position: absolute; bottom: 25px; right: 60px; display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.dot.active { width: 24px; border-radius: 4px; background: var(--text-primary); }

.trays-container { padding: 0 60px; margin-top: -60px; position: relative; z-index: 10; }
.tray-section { margin-bottom: 50px; }
.tray-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.tray-wrapper { position: relative; }
.tray-scroll { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; scrollbar-width: none; }
.tray-scroll::-webkit-scrollbar { display: none; }
.scroll-btn { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(0,0,0,0.6); border: none; color: white; font-size: 1.8rem; padding: 20px 10px; cursor: pointer; z-index: 5; opacity: 0; transition: 0.3s; height: 120px; border-radius: 6px; }
.tray-wrapper:hover .scroll-btn { opacity: 1; }
.scroll-left { left: -25px; }
.scroll-right { right: -25px; }

.card { min-width: 250px; width: 250px; aspect-ratio: 16/9; border-radius: 8px; background: var(--bg-card); position: relative; cursor: pointer; overflow: hidden; transition: 0.3s; border: 2px solid transparent; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); opacity: 0; transition: 0.3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; }
.card:hover { transform: scale(1.1); z-index: 10; border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 20px rgba(0,0,0,0.7); }
.card:hover .card-overlay { opacity: 1; }
.card:hover img { transform: scale(1.05); }
.card-title { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-badge { position: absolute; top: 10px; left: 10px; background: #e50914; color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; font-weight: 800; z-index: 2; }

.player-view { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; flex-direction: column; }
.player-view.hidden { display: none; }
.back-btn { position: absolute; top: 30px; left: 30px; background: rgba(0,0,0,0.6); color: white; border: none; padding: 12px 24px; font-size: 1.1rem; font-weight: 600; border-radius: 8px; cursor: pointer; z-index: 10000; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(5px); }
.video-wrapper { width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; }
video { width: 100%; height: 100%; }
.player-details { padding: 30px 60px; background: linear-gradient(to top, var(--bg-main) 0%, #000 100%); }
.player-details h1 { font-size: 2.2rem; margin-bottom: 10px; }
.player-details p { color: var(--text-secondary); font-size: 1.1rem; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .bottom-nav { display: flex; }
    .main-content { margin-left: 0; width: 100%; padding-bottom: 80px; }
    .hero-carousel { height: 65vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-content { left: 20px; bottom: 8%; max-width: 90%; }
    .trays-container { padding: 0 20px; margin-top: -30px; }
    .card { min-width: 180px; width: 180px; }
    .scroll-btn { display: none; }
    .back-btn { top: 15px; left: 15px; font-size: 0.95rem; padding: 10px 15px; }
    .player-details { padding: 20px; }
    .player-details h1 { font-size: 1.5rem; }
}
