:root{
  --bg:#07120f;--panel:#10211d;--panel2:#152a24;--green:#29e5a6;
  --white:#f1faf7;--muted:#97afa6;--stroke:#224438;
  --safe-top:env(safe-area-inset-top, 0px);--safe-bottom:env(safe-area-inset-bottom,0px);
  color-scheme:dark;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;height:100dvh;margin:0;background:var(--bg);color:var(--white);overflow:hidden}
button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:3px}
img{display:block;object-fit:cover}a{color:var(--green)}
.app{height:100%;height:100dvh;display:flex;flex-direction:column;background:var(--bg);padding-top:var(--safe-top)}
.app-header{height:58px;flex:0 0 58px;display:flex;align-items:center;padding:8px 18px;gap:5px;background:var(--bg);z-index:5}
.app-header h1{font-size:22px;letter-spacing:-.4px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;margin:0;flex:1}
.app-header h1 .green{color:var(--green)}
.header-button{width:43px;height:42px;border:0;background:transparent;color:var(--green);font-size:28px;display:grid;place-items:center;padding:0}
.header-button.back{color:var(--white);font-size:36px;width:38px}
.page{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.page::-webkit-scrollbar,.h-scroll::-webkit-scrollbar{display:none}
.page-content{padding:6px 16px 22px}
.bottom-nav{flex:none;display:flex;justify-content:space-around;height:calc(66px + var(--safe-bottom));padding:5px 3px calc(5px + var(--safe-bottom));background:var(--panel);border-top:1px solid var(--stroke)}
.nav-tab{width:20%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:transparent;border:0;color:var(--muted);min-width:0;padding:0}
.nav-tab.active{color:var(--green)}.nav-tab svg{width:27px;height:30px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-tab span{font-size:10px;line-height:20px;font-weight:500;white-space:nowrap}.nav-tab.active span{font-weight:700}
.hero{width:100%;height:215px;border:1px solid var(--stroke);border-radius:16px;overflow:hidden;position:relative;background:var(--panel);padding:0;text-align:left;color:var(--white);display:block}
.hero>img{width:100%;height:100%}.hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,18,15,.97),rgba(7,18,15,.48) 47%,transparent 95%)}
.hero-caption{position:absolute;left:15px;right:15px;bottom:12px;display:flex;flex-direction:column;gap:3px}
.hero-caption .eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:1px}.hero-caption strong{font-size:23px;line-height:1.14;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-caption small{color:var(--white);font-size:12px}
.section-title{font-weight:750;font-size:19px;line-height:33px;margin:15px 0 10px}
.h-scroll{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin-right:-16px;padding:0 16px 4px 0;-webkit-overflow-scrolling:touch}
.poster-card{flex:0 0 122px;width:122px;border:0;background:transparent;text-align:left;color:var(--white);padding:0;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px}
.poster-card>img,.poster-empty{width:122px;height:165px;border:1px solid var(--stroke);border-radius:12px;background:var(--panel2)}
.poster-card strong{font-size:13px;line-height:18px;height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.poster-card small{font-size:11px;color:var(--muted)}.poster-card small.views{color:var(--green);font-size:10px}
.empty{color:var(--muted);font-size:14px;line-height:1.55;padding:20px 0}
.feature-row,.catalog-row,.episode-row{width:100%;display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--stroke);border-radius:12px;color:var(--white);text-align:left;margin-bottom:9px}
.feature-row{padding:8px;height:96px}.feature-row img{width:56px;height:76px;border-radius:9px;flex:none;background:var(--panel2)}
.feature-row.continue{height:103px}.feature-row.continue img{width:66px;height:86px}
.feature-copy{display:flex;flex-direction:column;gap:6px;min-width:0;padding-left:2px;flex:1}
.feature-copy strong,.catalog-copy strong{font-size:15px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-copy .accent{color:var(--green);font-size:13px;font-weight:750}.feature-copy small{color:var(--muted);font-size:11px}
.heading{font-size:20px;margin:2px 0 14px;font-weight:750}
.filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 0 10px;margin:13px 0 0}
.chip{border:0;border-radius:9px;background:var(--panel2);color:var(--white);padding:0 13px;height:39px;font-size:12px;white-space:nowrap}
.chip.active{color:var(--bg);background:var(--green);font-weight:800}.chip.small{height:28px;padding:0 12px;font-size:12px}
.catalog-row{padding:7px;border-radius:14px;height:115px;margin-bottom:10px}
.catalog-row>img{width:78px;height:100px;border-radius:9px;flex:none;background:var(--panel2)}
.catalog-copy{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:7px;min-width:0;flex:1;padding:0 1px 0 2px}
.catalog-copy small{font-size:11px;color:var(--muted);line-height:1.35}.catalog-copy .chip{height:26px}
.search-field{display:block;width:100%;background:var(--panel2);border:1px solid var(--stroke);border-radius:14px;color:var(--white);font-size:15px;height:50px;min-height:50px;padding:0 15px;outline:none;margin-bottom:10px}
.search-field::placeholder{color:var(--muted)}.search-results{padding-bottom:20px}
.detail-banner{width:100%;height:220px;object-fit:cover;border-radius:15px;border:1px solid var(--stroke);background:var(--panel)}
.detail-title{font-size:24px;line-height:1.2;margin:15px 0 5px}.meta{font-size:13px;color:var(--muted)}
.tags{display:flex;gap:6px;overflow-x:auto;padding:10px 0 14px}.tags .chip{height:28px;flex-shrink:0}
.detail-actions{display:flex;gap:10px;height:48px}.primary-button,.secondary-button{border-radius:12px;border:1px solid var(--stroke);font-weight:750;font-size:15px;padding:0 16px;background:var(--panel2);color:var(--white)}
.primary-button{background:var(--green);color:var(--bg);flex:1}.favorite-button{font-size:26px;width:56px;padding:0}
.description{font-size:14px;line-height:1.65;white-space:pre-wrap;margin:0}
.episode-row{height:77px;padding:10px 12px;gap:12px}.episode-row .ep-icon{color:var(--green);font-size:19px;width:30px}.episode-row strong{font-size:14px;line-height:1.3}.episode-row small{color:var(--muted);font-size:12px;display:block;margin-top:5px}
.toast{position:fixed;left:50%;bottom:calc(80px + var(--safe-bottom));transform:translate(-50%,15px);max-width:min(90vw,450px);background:#1e3b30;color:var(--white);padding:12px 16px;border-radius:12px;border:1px solid var(--green);box-shadow:0 5px 22px #0009;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;z-index:50;font-size:13px}
.toast.show{opacity:1;transform:translate(-50%,0)}
[hidden]{display:none!important}
/* Media3 Android 3.5.4-inspired mobile player. */
.player-screen{position:fixed;inset:0;background:var(--bg);color:var(--white);z-index:20;display:flex;flex-direction:column;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}
.player-top{display:flex;align-items:center;gap:8px;height:58px;min-height:58px;padding:8px 14px}.player-top strong{font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.player-btn{border:1px solid var(--stroke);background:var(--panel2);border-radius:10px;color:var(--white);font-size:13px;font-weight:650;min-height:38px;padding:7px 12px}
.player-back{font-size:28px;background:transparent;border:0;color:var(--white);padding:0 5px;min-width:33px}
.player-view{background:#000;position:relative;width:100%;min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.player-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.player-view video::-webkit-media-controls{display:none!important}
.subtitle-overlay{position:absolute;z-index:2;bottom:13%;left:6%;right:6%;text-align:center;pointer-events:none;display:flex;justify-content:center;white-space:pre-line;line-height:1.4;word-break:break-word;color:#fff;text-shadow:0 1px 2px #000,1px -1px 1px #000,-1px 0 1px #000}
.subtitle-overlay .subtitle-text{max-width:100%;padding:2px 6px;border-radius:3px}
.subtitle-overlay[data-background="none"] .subtitle-text{background:transparent}.subtitle-overlay[data-background="dark"] .subtitle-text{background:rgba(0,0,0,.70)}.subtitle-overlay[data-background="black"] .subtitle-text{background:#000}
.player-center{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(94vw,310px);pointer-events:none;opacity:0;transition:opacity .15s}
.player-center.visible{opacity:1;pointer-events:auto}
.center-button{width:62px;height:62px;flex:none;display:grid;place-items:center;background:rgba(16,33,29,.87);border:1px solid #ffffff35;border-radius:50%;color:#fff;font-size:15px;font-weight:700;backdrop-filter:blur(4px)}
.center-button.big{width:70px;height:70px;font-size:29px}.center-button:disabled{opacity:.4}
.player-touch{position:absolute;inset:0;z-index:1;border:0;background:transparent;cursor:pointer}
.player-buffer{position:absolute;left:50%;top:24%;transform:translate(-50%,-50%);color:var(--muted);font-size:13px;pointer-events:none;z-index:2}
.player-overlay-bar{position:absolute;bottom:0;left:0;right:0;z-index:4;padding:12px 14px 15px;background:linear-gradient(transparent,rgba(0,0,0,.93));opacity:0;pointer-events:none;transition:opacity .15s}
.player-overlay-bar.visible{opacity:1;pointer-events:auto}
.seek-line{display:flex;align-items:center;gap:8px}.seek-line small{font-size:12px;font-variant-numeric:tabular-nums;min-width:36px}
.seek-line input[type=range]{flex:1;min-width:0;accent-color:var(--green);touch-action:pan-x;min-height:34px}
.player-inline-options{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-top:5px}
.player-inline-options button{font-size:12px;min-height:32px}
.player-actions{display:flex;gap:8px;padding:12px 10px;min-height:65px;background:var(--bg)}
.player-actions button{flex:1;padding:6px;font-size:12px}.player-actions button:disabled{opacity:.4}
.player-view.faux-fullscreen{position:fixed;inset:0;z-index:30;width:100%;height:100%;height:100dvh;flex:none;background:black}
.player-view.faux-fullscreen .subtitle-overlay{bottom:12%}
.player-view.faux-fullscreen .player-overlay-bar{padding-bottom:calc(15px + var(--safe-bottom))}
.fullscreen-exit{position:absolute;top:calc(8px + var(--safe-top));right:12px;z-index:5;display:none}
.faux-fullscreen .fullscreen-exit{display:block}
.player-settings{position:fixed;inset:0;z-index:45;background:#000b;display:flex;align-items:center;justify-content:center;padding:22px}
.player-settings-panel{max-width:360px;width:100%;border:1px solid var(--stroke);border-radius:16px;background:var(--panel);padding:18px;box-shadow:0 15px 50px #0008}
.player-settings-panel h2{font-size:18px;margin:0 0 20px}.player-settings-panel label{display:block;font-size:14px;margin:10px 0}.player-settings-panel input[type=range]{width:100%;accent-color:var(--green);margin:8px 0 12px}
.player-settings-panel .radio-row{display:flex;flex-direction:column;gap:10px;padding:6px 0}.player-settings-panel input[type=radio]{accent-color:var(--green)}
.player-settings-panel .primary-button{min-height:42px;width:100%;margin-top:12px}
@media(orientation:landscape){.player-view.faux-fullscreen .subtitle-overlay{bottom:13%}.player-center{width:min(68vw,380px)}.player-overlay-bar{padding-bottom:8px}}
@media(min-width:700px){.app{max-width:540px;margin:auto;border-left:1px solid var(--stroke);border-right:1px solid var(--stroke)}.player-screen{max-width:750px;left:50%;transform:translateX(-50%);width:100%}}
@media(prefers-reduced-motion:reduce){.player-center,.player-overlay-bar,.toast{transition:none}}
