* { user-select: none; }
input, textarea { user-select: text; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #000; color: #fff; }
::-webkit-scrollbar { width: 4px; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 8px; }
.scroll-x > * { flex-shrink: 0; scroll-snap-align: start; min-width: 120px; max-width: 120px; }
.scroll-x-sm { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 8px; }
.scroll-x-sm > * { flex-shrink: 0; scroll-snap-align: start; min-width: 150px; max-width: 150px; }
.grid-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px; padding-bottom: 8px; }
.grid-cards > * { flex-shrink: 0; scroll-snap-align: start; min-width: calc((100vw - 44px) / 3); max-width: calc((100vw - 44px) / 3); }
@media(min-width:768px){.grid-cards{display:grid;overflow-x:visible;grid-template-columns:repeat(4,1fr);gap:16px}.grid-cards > * { min-width: auto; max-width: none; }}
@media(min-width:1024px){.grid-cards{grid-template-columns:repeat(6,1fr);gap:20px}}
.card-item { transition: opacity 0.15s; }
.card-item:hover { opacity: 0.85; }
.card-uniform { display:block;text-decoration:none;width:100%;}
.card-thumb-uniform { aspect-ratio: 2/3; overflow: hidden; border-radius: 10px; background: #111; position: relative; }
.card-thumb-uniform img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb-uniform .ep-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.85); padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; }
.card-title-uniform { font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #e0e0e0; text-align: center; }
.card-sm { transition: opacity 0.15s; }
.card-sm:hover { opacity: 0.85; }
.card-thumb-sm { aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: #111; position: relative; }
.card-thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb-sm .card-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.15s; }
.card-thumb-sm:hover .card-play-overlay { opacity: 1; }
.card-thumb-sm .play-circle-btn { width: 32px; height: 32px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.3); }
.card-title-sm { font-size: 11px; font-weight: 600; margin-top: 5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #eee; }
.view-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; }
.section-header h2 { font-size: 18px; font-weight: 700; }
.section-header a { font-size: 13px; color: #e50914; text-decoration: none; font-weight: 600; }
.hero-banner { position: relative; height: 60vh; overflow: hidden; background: #111; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.3) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 20px 40px; }
.hero-title { font-size: 28px; font-weight: 800; text-align: center; text-shadow: 0 2px 20px rgba(0,0,0,0.8); margin-bottom: 16px; }
.btn-play-hero { display: inline-flex; align-items: center; gap: 8px; padding: 14px 40px; background: #fff; color: #000; font-size: 18px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn-play-hero:hover { background: #eee; }
.player-vertical { position: relative; aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; background: #000; border-radius: 8px; overflow: hidden; }
.player-vertical video { width: 100%; height: 100%; object-fit: cover; }
.ep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ep-btn-square { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #1a1a1a; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; border: 1px solid #2a2a2a; }
.ep-btn-square:hover { background: #333; }
.ep-btn-square.active { background: linear-gradient(135deg, #e50914, #ff6b6b); border-color: #e50914; color: #fff; }
.ep-scroll-mob { display: flex; overflow-x: auto; gap: 6px; scroll-snap-type: x mandatory; padding: 4px 0; }
.ep-scroll-mob .ep-btn-mob { flex-shrink: 0; min-width: 72px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; padding: 10px 12px; background: #1a1a1a; border-radius: 8px; border: 1px solid #2a2a1a; cursor: pointer; transition: background 0.2s; }
.ep-btn-mob:hover { background: #333; }
.ep-btn-mob.active { background: #e50914; border-color: #e50914; }
.ep-btn-mob .ep-num { font-size: 16px; font-weight: 700; }
.ep-btn-mob .ep-title { font-size: 10px; opacity: 0.7; margin-top: 4px; }
.action-bar { display: flex; justify-content: space-around; padding: 16px 0; border-top: 1px solid #222; margin-top: 16px; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: #ccc; cursor: pointer; font-size: 14px; }
.action-btn svg { width: 24px; height: 24px; fill: currentColor; }
.action-btn:hover { color: #fff; }
.tab-nav { display: flex; gap: 24px; border-bottom: 1px solid #222; padding: 0 16px; }
.tab-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; color: #666; text-decoration: none; position: relative; }
.tab-nav a.active { color: #fff; }
.tab-nav a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #e50914; border-radius: 1px; }
.breadcrumb { padding: 12px 16px; font-size: 13px; color: #888; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.info-box { background: #111; border-radius: 8px; padding: 12px; margin: 12px 0; font-size: 13px; line-height: 1.6; color: #ccc; }
.loading-spinner { display: flex; align-items: center; justify-content: center; height: 100%; }
.spinner { width: 36px; height: 36px; border: 3px solid #333; border-top-color: #e50914; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.error-msg p { color: #888; font-size: 14px; }
.pb-safe { padding-bottom: max(0px, env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
    .hero-banner { height: 50vh; }
    .hero-title { font-size: 22px; }
    .btn-play-hero { padding: 12px 32px; font-size: 16px; }
}/* Desktop Layout */
@media (min-width: 1024px) {
    .watch-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .episode-sidebar { position: sticky; top: 60px; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 8px; }
}
.header-reelshort { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #000; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #1a1a1a; }
.header-logo { height: 64px; width: auto; max-width: 160px; display: block; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-center { flex: 1; text-align: center; }
.header-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(135deg, #e50914, #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-icon { width: 24px; height: 24px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.header-icon:hover { opacity: 1; }
.hamburger { width: 28px; height: 20px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 2px; background: #fff; border-radius: 1px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none; justify-content: space-around; padding: 6px 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: #000; border-top: 1px solid #222; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px; cursor: pointer; background: none; border: none; color: #666; font-size: 10px; }
.bottom-nav-item.active { color: #e50914; }
.bottom-nav-item svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .bottom-nav { display: flex !important; } main { padding-bottom: 56px !important; } }
@media (min-width: 1024px) { .bottom-nav { display: none !important; } }
