:root {
  --bg: #06131e;
  --bg-2: #081a28;
  --panel: #0c2130;
  --panel-2: #102838;
  --panel-3: #142e3d;
  --line: rgba(179, 218, 232, .10);
  --line-strong: rgba(179, 218, 232, .17);
  --text: #f3f7fa;
  --muted: #9db0bc;
  --muted-2: #6f8795;
  --pink: #ef1355;
  --pink-2: #ff3d76;
  --cyan: #15c5cf;
  --blue: #17659a;
  --green: #25bd7a;
  --radius: 22px;
  --shadow: 0 24px 65px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 10% 10%, rgba(4,91,111,.18), transparent 35%), radial-gradient(ellipse at 90% 30%, rgba(7,66,101,.18), transparent 32%), var(--bg); font-family: 'Tajawal', Inter, system-ui, sans-serif; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); opacity: .11; pointer-events: none; }
.ambient-one { top: 250px; right: -250px; background: #0c9eae; }
.ambient-two { top: 1100px; left: -270px; background: #164c93; }
.topbar { height: 78px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 38px; padding: 0 clamp(20px, 5vw, 82px); background: rgba(3, 9, 14, .91); border-bottom: 1px solid rgba(255,255,255,.055); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand-mark { width: 35px; height: 35px; object-fit: contain; }
.brand-word { font-family: Inter, sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -.9px; direction: ltr; }
.brand-word span { color: var(--pink-2); }
.desktop-nav { display: flex; gap: 8px; align-items: center; height: 100%; }
.nav-link { position: relative; border: 0; background: transparent; color: #a7b4bc; padding: 28px 14px 25px; font-size: 16px; transition: .2s; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 15px; right: 15px; height: 3px; border-radius: 6px 6px 0 0; background: var(--pink); box-shadow: 0 0 15px rgba(239,19,85,.5); }
.topbar-actions { margin-right: auto; display: flex; align-items: center; gap: 16px; }
.search-box { height: 42px; width: min(310px, 28vw); display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.035); }
.search-symbol { font-family: Arial; font-size: 26px; line-height: 1; transform: rotate(-20deg); }
.search-box input { min-width: 0; width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #718592; }
kbd { color: #748895; background: rgba(255,255,255,.06); border-radius: 5px; padding: 2px 5px; font: 10px Inter, sans-serif; white-space: nowrap; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; color: #e3edf2; font-size: 26px; }
.notification-button { position: relative; }
.bell-icon { position: relative; display: block; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 10px 10px 4px 4px; border-bottom: 0; font-size: 0; }
.bell-icon::before { content: ''; position: absolute; bottom: -4px; right: -4px; left: -4px; height: 5px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; }
.bell-icon::after { content: ''; position: absolute; bottom: -8px; right: 5px; width: 5px; height: 3px; border-radius: 0 0 5px 5px; background: currentColor; }
.notification-button i { position: absolute; width: 6px; height: 6px; top: 7px; left: 9px; border-radius: 50%; background: var(--pink); }
.profile-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(135deg, #176986, #192d56 55%, #7b245a); font-weight: 800; }
.profile-button span { display: grid; place-items: center; width: 100%; height: 100%; }
.mobile-menu { display: none; }
.menu-lines { width: 22px; height: 15px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-lines::after { content: ''; position: absolute; top: 5px; right: 0; width: 14px; border-top: 2px solid currentColor; }
.app-shell { width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(18px, 5vw, 76px) 85px; }
.view { display: none; animation: viewIn .32s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-section { min-height: 430px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; position: relative; isolation: isolate; padding: 38px 0 46px; }
.hero-copy { position: relative; z-index: 2; padding: 10px 8px 10px 0; }
.eyebrow, .section-kicker { color: var(--cyan); font-family: Inter, 'Tajawal', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; }
.eyebrow-dot, .live-dot, .tiny-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px rgba(239,19,85,.8); }
.hero-copy h1 { margin: 0; font-size: clamp(43px, 5vw, 69px); line-height: 1.14; font-weight: 800; letter-spacing: -.8px; }
.hero-copy h1 em { color: var(--pink-2); font-style: normal; text-shadow: 0 0 35px rgba(239,19,85,.18); }
.hero-copy p { max-width: 490px; margin: 22px 0 27px; color: #a9bac4; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; align-items: center; }
.primary-button, .ghost-button, .outline-button { min-height: 47px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border-radius: 13px; font-weight: 700; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { background: linear-gradient(120deg, #e90f53, #ff376e); color: white; box-shadow: 0 10px 28px rgba(239,19,85,.2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,19,85,.29); }
.button-arrow { font-family: Arial; font-size: 20px; }
.ghost-button, .outline-button { background: rgba(255,255,255,.035); border-color: var(--line-strong); color: #e6eff3; }
.ghost-button:hover, .outline-button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.bookmark-mini { font-size: 20px; color: var(--cyan); }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 37px; color: #8197a4; font-size: 12px; }
.hero-meta b { color: white; font: 700 12px Inter, sans-serif; margin-left: 7px; }
.meta-divider { height: 15px; width: 1px; background: var(--line-strong); }
.hero-visual { min-height: 355px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(114,207,222,.12); border-radius: 30px; background: radial-gradient(ellipse at 50% 50%, rgba(14,110,140,.33), transparent 44%), linear-gradient(135deg, rgba(17,54,74,.86), rgba(5,19,31,.88) 55%, rgba(28,18,48,.7)); box-shadow: var(--shadow); }
.hero-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.035) 48%, transparent 75%); }
.hero-orbit { position: absolute; width: 350px; height: 350px; border: 1px solid rgba(20,198,211,.27); border-radius: 50%; transform: rotate(-23deg) scaleX(1.42); }
.orbit-b { width: 270px; height: 270px; border-color: rgba(239,19,85,.27); transform: rotate(40deg) scaleX(1.55); }
.hero-glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(9,189,201,.16); filter: blur(52px); }
.hero-sigil { position: relative; z-index: 1; width: 190px; height: 220px; display: grid; place-items: center; color: #e8fbff; border: 1px solid rgba(122,230,235,.4); clip-path: polygon(50% 0, 95% 23%, 88% 83%, 50% 100%, 12% 83%, 5% 23%); background: linear-gradient(155deg, rgba(16,98,121,.57), rgba(4,19,38,.91) 58%, rgba(40,22,65,.86)); box-shadow: 0 0 70px rgba(15,181,200,.15); }
.hero-sigil b { font: 900 117px Inter, sans-serif; color: transparent; -webkit-text-stroke: 2px rgba(70,225,235,.76); text-shadow: 0 0 35px rgba(18,204,216,.32); }
.hero-sigil span { position: absolute; top: 25px; font-size: 11px; letter-spacing: 4px; color: #87dce2; }
.hero-sigil i { position: absolute; bottom: 34px; width: 38px; height: 38px; border: 2px solid var(--pink); border-radius: 50%; box-shadow: 0 0 20px rgba(239,19,85,.4); }
.hero-floating-card { position: absolute; z-index: 2; padding: 12px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(4,16,27,.74); backdrop-filter: blur(15px); box-shadow: 0 12px 25px rgba(0,0,0,.2); }
.floating-top { top: 52px; right: 25px; display: grid; gap: 3px; transform: rotate(3deg); }
.floating-top small { color: var(--cyan); font-size: 10px; }
.floating-top strong { font-size: 14px; }
.floating-bottom { bottom: 46px; left: 26px; display: flex; align-items: center; gap: 9px; color: #d5e5ec; font-size: 12px; transform: rotate(-3deg); }
.hero-caption { position: absolute; bottom: 17px; right: 0; left: 0; display: flex; gap: 11px; justify-content: center; color: #668491; font: 600 9px Inter, sans-serif; letter-spacing: 2px; }
.quick-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 10px 0 62px; }
.category-tile { min-height: 106px; display: flex; align-items: center; gap: 17px; position: relative; overflow: hidden; padding: 19px 22px; text-align: right; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(110deg, rgba(11,49,64,.9), rgba(10,31,46,.8)); transition: .25s; }
.category-tile:hover { transform: translateY(-3px); border-color: rgba(20,197,207,.35); }
.category-tile::after { content: ''; position: absolute; width: 180px; height: 180px; left: -50px; top: -80px; border-radius: 50%; background: rgba(18,187,201,.08); filter: blur(20px); }
.donghua-tile::after { background: rgba(239,19,85,.09); }
.tile-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #83edf0; font-size: 27px; background: rgba(18,191,201,.12); border: 1px solid rgba(18,191,201,.2); }
.donghua-tile .tile-icon { color: #ff7fa6; background: rgba(239,19,85,.11); border-color: rgba(239,19,85,.2); }
.category-tile > span:nth-child(2) { display: grid; gap: 2px; z-index: 1; }
.category-tile small { color: #6e99a8; font: 600 9px Inter, sans-serif; letter-spacing: 1.5px; }
.category-tile strong { font-size: 21px; }
.category-tile em { font-size: 12px; color: var(--muted); font-style: normal; }
.tile-arrow { margin-right: auto; color: var(--cyan); font: 24px Inter, sans-serif; }
.donghua-tile .tile-arrow { color: var(--pink-2); }
.content-section { margin: 0 0 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.section-heading h2, .panel-heading h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.section-heading p { margin: 6px 0 0; color: var(--muted-2); font-size: 13px; }
.text-link { background: none; border: 0; color: #9cb1bd; font-size: 14px; padding: 8px 0; white-space: nowrap; }
.text-link span { color: var(--pink-2); font: 18px Inter, sans-serif; margin-right: 4px; }
.poster-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(155px, 1fr); grid-auto-columns: 176px; gap: 16px; overflow-x: auto; padding: 2px 1px 13px; scrollbar-width: thin; scrollbar-color: #244a5d transparent; }
.poster-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.055); border-radius: 17px; background: linear-gradient(180deg, #102a3a, #0b1d2a); cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.poster-card:hover { transform: translateY(-5px); border-color: rgba(24,190,204,.28); box-shadow: 0 15px 30px rgba(0,0,0,.22); }
.poster-art { --poster-a: #0b7483; --poster-b: #13264b; --poster-c: #ef1355; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--poster-a) 72%, white), transparent 25%), radial-gradient(circle at 25% 70%, color-mix(in srgb, var(--poster-c) 70%, transparent), transparent 35%), linear-gradient(145deg, var(--poster-a), var(--poster-b) 66%, #07131e); }
.poster-art .poster-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-art::before { z-index: 1; content: ''; position: absolute; width: 120%; height: 55%; left: -15%; top: 10%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transform: rotate(-32deg); box-shadow: 0 0 0 13px rgba(255,255,255,.025), 0 0 0 27px rgba(255,255,255,.025); }
.poster-art::after { z-index: 1; content: ''; position: absolute; width: 64%; height: 80%; top: 4%; right: 14%; background: linear-gradient(155deg, rgba(255,255,255,.19), rgba(255,255,255,0) 60%); clip-path: polygon(50% 0, 100% 88%, 50% 68%, 0 88%); filter: drop-shadow(0 0 30px rgba(255,255,255,.12)); }
.poster-art .poster-glyph { position: absolute; z-index: 1; top: 22%; right: 0; left: 0; text-align: center; color: rgba(255,255,255,.76); font-size: 42px; font-weight: 800; text-shadow: 0 10px 25px rgba(0,0,0,.45); }
.poster-art .poster-ribbon { position: absolute; z-index: 2; left: -28px; top: 20px; width: 110px; height: 22px; transform: rotate(-42deg); background: rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.2); }
.poster-art .poster-index { position: absolute; z-index: 2; left: 12px; top: 12px; color: rgba(255,255,255,.72); font: 700 9px Inter, sans-serif; letter-spacing: 1.5px; }
.poster-art .poster-bottom { position: absolute; z-index: 3; bottom: 0; right: 0; left: 0; padding: 45px 12px 12px; background: linear-gradient(transparent, rgba(2,9,15,.88)); }
.poster-art .poster-bottom b { display: block; font-size: 13px; line-height: 1.45; }
.poster-art .poster-bottom small { display: block; color: rgba(255,255,255,.68); font-size: 10px; margin-top: 3px; }
.poster-cover { height: 225px; position: relative; }
.poster-info { padding: 11px 12px 13px; }
.poster-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; text-align: right; font: 600 13px Inter, 'Tajawal', sans-serif; }
.poster-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.rating { color: #ffcb45; font-family: Inter, sans-serif; font-weight: 700; }
.rating span { color: #879ba7; font-weight: 500; font-size: 10px; }
.continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.continue-card { min-height: 115px; display: flex; align-items: center; gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(13,36,52,.77); }
.continue-cover { width: 74px; height: 88px; flex: 0 0 auto; border-radius: 10px; }
.continue-info { min-width: 0; flex: 1; }
.continue-info b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; text-align: right; font: 600 13px Inter, sans-serif; }
.continue-info small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.progress-track { height: 4px; border-radius: 9px; background: rgba(255,255,255,.1); margin-top: 12px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff668c); }
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.genre-card { min-height: 140px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px; position: relative; overflow: hidden; padding: 17px; text-align: right; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: linear-gradient(135deg, #a33a28, #431b36 75%); }
.genre-card::before { content: ''; position: absolute; width: 160px; height: 160px; top: -60px; left: -30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 0 15px rgba(255,255,255,.035), 0 0 0 31px rgba(255,255,255,.025); }
.genre-card span { color: rgba(255,255,255,.62); font: 600 9px Inter, sans-serif; letter-spacing: 1.2px; }
.genre-card strong { font-size: 23px; }
.genre-card i { position: absolute; top: 14px; left: 15px; font: normal 21px Inter; color: rgba(255,255,255,.8); }
.genre-fantasy { background: linear-gradient(135deg, #265b72, #281e4b); }
.genre-drama { background: linear-gradient(135deg, #8c3157, #301d43); }
.genre-adventure { background: linear-gradient(135deg, #89602b, #3d2a3a); }
.final-note { display: flex; align-items: center; gap: 20px; padding: 25px 28px; border: 1px solid rgba(19,190,204,.16); border-radius: 22px; background: linear-gradient(110deg, rgba(12,58,73,.72), rgba(13,30,48,.85)); }
.note-mark { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.055); }
.note-mark img { width: 45px; height: 45px; object-fit: contain; }
.final-note h2 { margin: 5px 0; font-size: 20px; }
.final-note p { margin: 0; color: var(--muted); font-size: 12px; }
.final-note .outline-button { margin-right: auto; white-space: nowrap; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px 0 27px; }
.page-intro h1 { margin: 7px 0 2px; font-size: 39px; }
.page-intro p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }
.catalog-stats { display: flex; align-items: center; gap: 23px; padding: 14px 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.catalog-stats span:not(.stat-separator) { display: grid; gap: 2px; }
.catalog-stats b { font: 700 19px Inter, sans-serif; }
.catalog-stats small { color: var(--muted-2); font-size: 10px; }
.stat-separator { width: 1px; height: 30px; background: var(--line-strong); }
.catalog-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); }
.catalog-search { height: 42px; min-width: 220px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.13); }
.catalog-search span { font-size: 24px; color: var(--cyan); }
.catalog-search input { width: 100%; color: white; border: 0; outline: none; background: transparent; font-size: 13px; }
.catalog-toolbar select, .player-control-group select { height: 42px; min-width: 130px; padding: 0 12px; color: #d9e4ea; border: 1px solid var(--line); border-radius: 10px; background: #102534; }
.catalog-toolbar option, .player-control-group option { background: #102534; }
.filter-reset { height: 42px; padding: 0 12px; border: 0; background: transparent; color: #a1b3bd; font-size: 12px; }
.filter-reset span { color: var(--pink); font-size: 18px; margin-right: 4px; }
.active-filter-line { display: flex; gap: 8px; align-items: center; margin: 19px 2px 18px; color: var(--muted); font-size: 12px; }
.filter-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.demo-note { color: #8297a3; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.045); font-size: 10px; }
.active-filter-line .demo-note { margin-right: auto; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 17px; }
.catalog-grid .poster-cover { height: clamp(190px, 22vw, 265px); }
.empty-state { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.empty-state > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: rgba(17,197,207,.09); color: var(--cyan); font-size: 32px; }
.empty-state h3 { margin: 14px 0 3px; color: white; font-size: 22px; }
.empty-state p { margin: 0 0 18px; font-size: 13px; }
.hidden { display: none !important; }
.library-tabs { display: flex; gap: 8px; margin: 0 0 23px; }
.library-tab { padding: 10px 19px; color: #9bb0bc; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.library-tab.active { color: white; border-color: rgba(20,197,207,.3); background: rgba(18,152,166,.15); }
.detail-hero { position: relative; margin: 5px 0 25px; padding: 22px 25px 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(ellipse at 12% 20%, rgba(16,131,146,.2), transparent 40%), linear-gradient(135deg, rgba(16,43,58,.96), rgba(6,19,31,.95)); }
.detail-hero::before { content: ''; position: absolute; width: 500px; height: 500px; top: -300px; left: 15%; border: 1px solid rgba(20,190,205,.12); border-radius: 50%; box-shadow: 0 0 0 35px rgba(20,190,205,.018), 0 0 0 70px rgba(20,190,205,.018); }
.back-button { display: inline-flex; align-items: center; gap: 9px; position: relative; z-index: 2; padding: 8px 0; border: 0; background: none; color: #b1c3cc; font-size: 13px; }
.back-button:first-letter { color: var(--cyan); }
.detail-layout { display: grid; position: relative; z-index: 1; grid-template-columns: 220px 1fr; gap: 29px; align-items: center; margin-top: 17px; }
.detail-poster { height: 300px; border-radius: 14px; box-shadow: 0 18px 35px rgba(0,0,0,.28); }
.detail-poster .poster-glyph { font-size: 68px; }
.detail-main h1 { margin: 13px 0 2px; font: 800 clamp(25px, 3vw, 36px) Inter, 'Tajawal', sans-serif; direction: ltr; text-align: right; }
.detail-alternate { margin: 0 0 14px; color: #92aab6; font: 500 13px Inter, sans-serif; direction: ltr; text-align: right; }
.detail-badges { display: flex; gap: 8px; align-items: center; }
.type-badge, .status-badge { padding: 5px 9px; border-radius: 7px; font: 700 9px Inter, sans-serif; letter-spacing: .7px; }
.type-badge { color: #79e6eb; background: rgba(17,190,202,.12); }
.status-badge { color: #8ee2bc; background: rgba(37,189,122,.12); font-family: 'Tajawal'; font-size: 11px; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px 17px; color: #c5d1d7; font-size: 12px; }
.detail-facts span { display: flex; align-items: center; gap: 6px; }
.detail-facts b { color: #ffcb45; font: 700 12px Inter, sans-serif; }
.detail-description { max-width: 750px; margin: 16px 0; color: #a6b7c0; line-height: 1.85; font-size: 14px; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-genres span { padding: 5px 11px; color: #c0d0d7; border-radius: 7px; background: rgba(255,255,255,.07); font-size: 10px; }
.detail-actions { display: flex; gap: 9px; margin-top: 20px; }
.detail-actions .primary-button { min-width: 175px; }
.detail-source-note { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #7e96a2; font-size: 11px; }
.detail-source-note .tiny-pulse { width: 6px; height: 6px; background: var(--cyan); box-shadow: none; }
.detail-content { border: 1px solid var(--line); border-radius: 20px; background: rgba(7,26,39,.7); overflow: hidden; }
.detail-tabs { display: flex; gap: 3px; padding: 11px 14px 0; border-bottom: 1px solid var(--line); }
.detail-tab { position: relative; padding: 13px 18px; border: 0; background: transparent; color: #8fa5b1; font-weight: 600; }
.detail-tab.active { color: white; }
.detail-tab.active::after { content: ''; position: absolute; bottom: -1px; right: 16px; left: 16px; height: 3px; border-radius: 6px 6px 0 0; background: var(--pink); }
.detail-panel { display: none; padding: 23px; }
.detail-panel.active { display: block; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.panel-heading h2 { font-size: 22px; }
.episode-list { display: grid; gap: 8px; }
.episode-row { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.episode-number { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #9ee8e9; background: rgba(15,170,181,.13); font: 700 12px Inter, sans-serif; }
.episode-copy { min-width: 0; flex: 1; }
.episode-copy b { display: block; font-size: 13px; }
.episode-copy small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.episode-play { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(239,19,85,.22); border-radius: 50%; color: white; background: rgba(239,19,85,.13); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.about-item small { display: block; color: var(--muted-2); font-size: 10px; }
.about-item b { display: block; margin-top: 6px; font-size: 14px; }
.provider-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.provider-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.provider-logo { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #79e2e7; background: rgba(17,180,193,.12); font: 800 14px Inter, sans-serif; }
.provider-card:nth-child(2n) .provider-logo { color: #ff8cac; background: rgba(239,19,85,.12); }
.provider-copy { min-width: 0; flex: 1; }
.provider-copy b { display: block; font-size: 13px; }
.provider-copy small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.provider-status { color: #e7b66c; font-size: 10px; white-space: nowrap; }
.provider-disclaimer { margin: 15px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.7; }
.player-topline { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 20px; }
.player-brand { display: flex; align-items: center; gap: 8px; direction: ltr; font: 700 12px Inter; color: #a9bec8; }
.player-brand img { width: 24px; height: 24px; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 17px; }
.video-frame { min-height: 470px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(23,192,204,.19); border-radius: 21px; background: radial-gradient(ellipse, rgba(8,106,123,.25), transparent 50%), #02080e; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px; }
.video-emblem { width: 77px; height: 77px; display: grid; place-items: center; margin-bottom: 15px; border: 1px solid rgba(20,196,207,.3); border-radius: 22px; background: rgba(14,90,107,.22); }
.video-emblem img { width: 58px; height: 58px; }
.video-placeholder h2 { margin: 8px 0; font-size: 25px; }
.video-placeholder p { max-width: 380px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.video-state { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 12px; border-radius: 7px; background: rgba(255,255,255,.06); color: #a9bac3; font-size: 10px; }
.video-state i { width: 6px; height: 6px; border-radius: 50%; background: #edb451; }
#episodeVideo { width: 100%; max-height: 560px; background: black; }
.player-sidebar { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(12,34,49,.85); }
.player-sidebar h1 { margin: 9px 0 4px; font: 700 20px Inter, sans-serif; direction: ltr; text-align: right; }
.player-sidebar > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.player-control-group { display: grid; gap: 8px; margin: 16px 0; }
.player-control-group label { color: #afc0c9; font-size: 12px; }
.player-control-group select { width: 100%; }
.full-width { width: 100%; margin-top: 10px; }
.player-help { margin-top: 18px; padding: 12px; border-right: 2px solid var(--cyan); background: rgba(16,178,191,.06); color: #91a9b4; font-size: 11px; line-height: 1.7; }
.next-episode-strip { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.next-episode-strip strong { display: block; margin-top: 4px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 27px 0 8px; margin-top: 30px; border-top: 1px solid var(--line); color: #718896; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 7px; color: #e4edf1; font: 700 13px Inter; }
.footer-brand img { width: 25px; height: 25px; }
.footer-status { display: flex; align-items: center; gap: 7px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.bottom-nav { display: none; }
.toast { position: fixed; z-index: 70; bottom: 28px; left: 50%; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 11px 17px; border: 1px solid var(--line-strong); border-radius: 12px; background: #112c3d; color: white; box-shadow: var(--shadow); font-size: 12px; transition: .25s; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.mobile-drawer { display: none; }
.drawer-scrim { display: none; }

@media (max-width: 1080px) {
  .topbar { gap: 22px; padding: 0 24px; }
  .desktop-nav { gap: 0; }
  .nav-link { padding-inline: 10px; }
  .app-shell { padding-inline: 28px; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .poster-rail { grid-auto-columns: 165px; }
  .hero-section { min-height: 390px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .topbar { height: 62px; padding: 0 15px; gap: 12px; }
  .mobile-menu { display: grid; width: 34px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-word { font-size: 19px; }
  .desktop-nav { display: none; }
  .topbar-actions { gap: 8px; }
  .search-box { width: 38px; height: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search-box .search-symbol { font-size: 29px; }
  .search-box input { display: none; }
  .search-box kbd { display: none; }
  .search-box.expanded { position: fixed; z-index: 51; top: 69px; right: 15px; left: 15px; width: auto; height: 43px; justify-content: flex-start; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: #0d2332; box-shadow: 0 14px 35px rgba(0,0,0,.36); }
  .search-box.expanded input { display: block; }
  .notification-button { width: 34px; font-size: 23px; }
  .profile-button { width: 32px; height: 32px; font-size: 12px; }
  .app-shell { padding: 17px 15px 30px; }
  .hero-section { display: flex; flex-direction: column-reverse; gap: 22px; padding: 4px 0 23px; align-items: stretch; }
  .hero-visual { min-height: 240px; border-radius: 22px; }
  .hero-orbit { width: 260px; height: 260px; }
  .orbit-b { width: 210px; height: 210px; }
  .hero-sigil { width: 115px; height: 138px; }
  .hero-sigil b { font-size: 72px; }
  .hero-sigil span { top: 14px; font-size: 8px; }
  .hero-sigil i { bottom: 20px; width: 25px; height: 25px; }
  .floating-top { top: 20px; right: 13px; padding: 8px 11px; }
  .floating-top strong { font-size: 11px; }
  .floating-bottom { bottom: 25px; left: 12px; font-size: 10px; padding: 9px 11px; }
  .hero-copy { padding: 0 3px; }
  .eyebrow { margin-bottom: 11px; }
  .hero-copy h1 { font-size: clamp(39px, 10vw, 53px); }
  .hero-copy p { margin: 13px 0 17px; font-size: 14px; line-height: 1.75; }
  .hero-meta { margin-top: 19px; }
  .quick-categories { gap: 9px; margin: 5px 0 38px; }
  .category-tile { min-height: 103px; padding: 12px; gap: 9px; border-radius: 15px; align-items: flex-start; flex-direction: column; }
  .tile-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
  .category-tile small { font-size: 7px; }
  .category-tile strong { font-size: 15px; }
  .category-tile em { font-size: 9px; }
  .tile-arrow { position: absolute; left: 11px; bottom: 10px; font-size: 17px; }
  .content-section { margin-bottom: 42px; }
  .section-heading { align-items: flex-end; margin-bottom: 15px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { font-size: 11px; }
  .text-link { font-size: 11px; }
  .section-kicker { font-size: 8px; letter-spacing: 1.3px; }
  .poster-rail { grid-auto-columns: 140px; gap: 11px; margin-left: -15px; margin-right: -15px; padding: 2px 15px 12px; }
  .poster-cover { height: 185px; }
  .poster-art .poster-glyph { font-size: 34px; }
  .poster-info { padding: 9px 9px 11px; }
  .poster-title { font-size: 11px; }
  .poster-meta { font-size: 9px; }
  .continue-grid { grid-template-columns: 1fr; gap: 9px; }
  .continue-card { min-height: 90px; padding: 9px; }
  .continue-cover { width: 60px; height: 70px; }
  .continue-info b { font-size: 11px; }
  .genre-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .genre-card { min-height: 110px; padding: 13px; }
  .genre-card strong { font-size: 19px; }
  .final-note { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 17px; }
  .note-mark { width: 46px; height: 46px; border-radius: 13px; }
  .note-mark img { width: 34px; height: 34px; }
  .final-note > div:nth-child(2) { flex: 1; }
  .final-note h2 { font-size: 16px; }
  .final-note p { font-size: 10px; line-height: 1.6; }
  .final-note .outline-button { margin-right: 0; min-height: 39px; font-size: 11px; }
  .page-intro { display: block; padding: 13px 0 19px; }
  .page-intro h1 { font-size: 31px; }
  .page-intro p { font-size: 12px; }
  .catalog-stats { display: inline-flex; margin-top: 14px; padding: 9px 13px; gap: 15px; }
  .catalog-stats b { font-size: 15px; }
  .catalog-stats small { font-size: 9px; }
  .catalog-toolbar { gap: 7px; padding: 9px; border-radius: 13px; }
  .catalog-search { min-width: 100%; height: 39px; }
  .catalog-toolbar select { height: 38px; min-width: calc(50% - 4px); flex: 1; font-size: 11px; }
  .filter-reset { height: 35px; margin-right: auto; }
  .active-filter-line { margin: 14px 2px; font-size: 10px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .catalog-grid .poster-cover { height: clamp(180px, 58vw, 260px); }
  .catalog-grid .poster-title { font-size: 11px; }
  .library-tabs { margin-bottom: 15px; }
  .library-tab { padding: 8px 14px; font-size: 12px; }
  .detail-hero { margin-top: 0; padding: 14px; border-radius: 18px; }
  .detail-layout { grid-template-columns: 105px 1fr; gap: 14px; margin-top: 9px; align-items: start; }
  .detail-poster { height: 152px; border-radius: 10px; }
  .detail-poster .poster-glyph { font-size: 42px; }
  .detail-main h1 { font-size: 19px; margin: 9px 0 4px; }
  .detail-alternate { font-size: 9px; margin-bottom: 9px; }
  .detail-facts { gap: 5px 9px; font-size: 9px; }
  .detail-description { grid-column: 1 / -1; font-size: 11px; margin: 13px 0; line-height: 1.7; }
  .detail-genres { gap: 4px; }
  .detail-genres span { font-size: 8px; padding: 4px 7px; }
  .detail-actions { grid-column: 1/-1; gap: 7px; margin-top: 13px; }
  .detail-actions .primary-button, .detail-actions .ghost-button { min-height: 38px; padding: 0 10px; min-width: 0; font-size: 10px; flex: 1; }
  .detail-source-note { font-size: 9px; line-height: 1.6; }
  .detail-tabs { padding: 7px 7px 0; }
  .detail-tab { padding: 11px 11px; font-size: 11px; }
  .detail-panel { padding: 14px 11px; }
  .panel-heading h2 { font-size: 18px; }
  .episode-row { gap: 8px; padding: 8px; }
  .episode-number { width: 29px; height: 29px; font-size: 10px; }
  .episode-copy b { font-size: 11px; }
  .episode-copy small { font-size: 9px; }
  .episode-play { width: 30px; height: 30px; }
  .about-grid { grid-template-columns: repeat(2,1fr); gap: 7px; }
  .about-item { padding: 10px; }
  .about-item b { font-size: 12px; }
  .provider-list { grid-template-columns: 1fr; }
  .provider-card { padding: 10px; }
  .player-topline { padding-top: 0; }
  .player-layout { grid-template-columns: 1fr; gap: 11px; }
  .video-frame { min-height: 240px; border-radius: 14px; }
  .player-sidebar { padding: 15px; }
  .player-sidebar h1 { font-size: 17px; }
  .player-control-group { display: inline-grid; width: calc(50% - 8px); margin: 14px 3px 5px 0; }
  .player-control-group select { min-width: 0; font-size: 11px; }
  .player-sidebar .full-width { min-height: 40px; font-size: 11px; }
  .next-episode-strip { padding: 12px; }
  .next-episode-strip strong { font-size: 12px; }
  .next-episode-strip .outline-button { min-height: 36px; font-size: 10px; padding: 0 9px; }
  .site-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px 17px; padding: 22px 0 8px; font-size: 9px; }
  .bottom-nav { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(4,1fr); right: 0; left: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(100deg, rgba(3,71,87,.97), rgba(4,35,69,.98)); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -9px 30px rgba(0,0,0,.25); backdrop-filter: blur(16px); }
  .bottom-link { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-radius: 11px; padding: 5px 2px; color: #b5c8d1; background: transparent; }
  .bottom-link span { font-size: 22px; line-height: 1; }
  .bottom-link small { font-size: 9px; }
  .bottom-link.active { color: white; background: rgba(255,255,255,.12); }
  .mobile-drawer { display: flex; flex-direction: column; gap: 7px; position: fixed; z-index: 61; top: 0; bottom: 0; right: 0; width: min(290px, 82vw); padding: 19px; background: #0a1d2b; border-left: 1px solid var(--line-strong); transform: translateX(110%); transition: transform .25s; }
  .mobile-drawer.open { transform: translateX(0); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 21px; font-weight: 800; }
  .mobile-drawer > button:not(.icon-button) { padding: 14px; text-align: right; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
  .drawer-scrim { display: block; position: fixed; z-index: 60; inset: 0; background: rgba(0,0,0,.56); opacity: 0; visibility: hidden; transition: .25s; }
  .drawer-scrim.open { opacity: 1; visibility: visible; }
  .toast { bottom: 90px; max-width: calc(100vw - 30px); white-space: normal; text-align: center; }
}
@media (max-width: 370px) {
  .brand-word { font-size: 17px; }
  .topbar { padding-inline: 10px; }
  .quick-categories { grid-template-columns: 1fr 1fr; }
  .category-tile strong { font-size: 13px; }
  .catalog-grid { gap: 8px; }
}
#episodeFrame { width: 100%; height: 100%; min-height: 470px; border: 0; background: #02080e; }
@media (max-width: 760px) { #episodeFrame { min-height: 240px; } }
.auth-overlay { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,5,10,.72); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .22s; }
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-modal { width: min(440px, 100%); max-height: min(90vh, 780px); overflow-y: auto; position: relative; padding: 28px; border: 1px solid rgba(112,205,217,.2); border-radius: 22px; background: linear-gradient(145deg, #102b3a, #081824 70%); box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.auth-close { position: absolute; top: 14px; left: 15px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); color: #c2d2da; font-size: 22px; }
.auth-modal-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; direction: ltr; font: 800 18px Inter,sans-serif; }
.auth-modal-brand img { width: 30px; height: 30px; }
.auth-modal h2 { margin: 6px 0; font-size: 28px; }
.auth-intro { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; color: #b6c7cf; font-size: 12px; }
.auth-form input { width: 100%; height: 44px; padding: 0 12px; color: white; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: rgba(0,0,0,.17); }
.auth-form input:focus { border-color: rgba(20,197,207,.5); }
.auth-form .primary-button, .auth-form .outline-button { width: 100%; margin-top: 5px; }
.owner-panel { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.owner-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.owner-panel-heading b { font-size: 16px; }
.logout-button { width: 100%; margin-top: 17px; padding: 10px; color: #ff91ae; border: 1px solid rgba(239,19,85,.22); border-radius: 10px; background: rgba(239,19,85,.08); }
.auth-message { min-height: 17px; margin: 12px 0 0; color: #7fe2bd; font-size: 11px; }
@media (max-width:760px) { .auth-modal { padding: 22px 18px; } }
