@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f5f5f7; --surface: #fff; --elevated: #ededf0;
  --text: #1d1d1f; --muted: #6e6e73; --blue: #0066cc; --line: #dedee3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { opacity: .4; cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #007aff; outline-offset: 4px; }
button, input, select { min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-header { position: sticky; top: 0; z-index: 30; background: #f5f5f7de; backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid #00000008; padding-top: env(safe-area-inset-top); }
.header-inner { height: 76px; max-width: 1440px; margin: auto; padding: 0 48px; display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.desktop-nav { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 28px; background: #e8e8edb0; font-size: 13px; color: var(--muted); }
.desktop-nav a { display: flex; align-items: center; justify-content: center; padding: 0 20px; min-height: 36px; white-space: nowrap; border-radius: 22px; transition: background .18s; }
.desktop-nav a.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px #0000000c; font-weight: 600; }
.header-search { margin-left: auto; width: 240px; display: flex; align-items: center; background: #e9e9edb0; border-radius: 25px; }
.header-search input { width: 100%; min-width: 0; border: 0; background: none; padding: 10px 0 10px 18px; font-size: 14px; color: var(--text); border-radius: 25px; }
.header-search input::placeholder { color: #77777e; }
.header-search button { display: grid; place-items: center; flex-shrink: 0; width: 46px; background: none; color: #55555c; border-radius: 50%; }
.header-search svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-actions .header-search { margin-left: 0; }
.install-trigger { background: none; color: var(--blue); padding: 0; font-size: 13px; white-space: nowrap; }
.installed [data-install], .installed .install-note { display: none; }
.bottom-nav { display: none; }
#app { max-width: 1440px; margin: auto; padding: 34px 48px 42px; min-height: calc(100svh - 76px); }
.home-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.home-heading h1, .page-title h1 { font-size: 38px; font-weight: 750; letter-spacing: -1.4px; line-height: 1.2; margin: 0; }
.home-heading p, .page-title p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.category-strip { display: flex; gap: 10px; overflow: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 24px 0 34px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; padding: 0 22px; border-radius: 24px; color: #515156; font-size: 14px; font-weight: 500; background: #e9e9ed; }
.chip.active { background: #1d1d1f; color: #fff; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; padding: 50px; display: flex; align-items: flex-end; border-radius: 24px; background: #1c1d1e; color: #fff; box-shadow: 0 14px 35px -22px #0006; }
.hero-art { position: absolute; top: 0; right: 0; width: 65%; height: 100%; object-fit: cover; object-position: center 27%; z-index: -2; }
.hero:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#1c1d1e 12%,#1c1d1ef0 32%,#1c1d1e40 65%,#1c1d1e00 90%), linear-gradient(0deg,#0008,transparent 60%); }
.hero-label { position: absolute; left: 50px; top: 34px; font-size: 12px; font-weight: 600; letter-spacing: 1px; background: #ffffff1f; padding: 8px 13px; border: 1px solid #ffffff30; border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-copy { width: 55%; }
.hero h2 { font-size: clamp(38px,4vw,54px); line-height: 1.2; font-weight: 700; letter-spacing: -1px; margin: 0 0 12px; text-wrap: balance; }
.hero p { color: #ffffffc7; font-size: 15px; margin: 0 0 24px; line-height: 1.6; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #0071e3; color: #fff; border-radius: 25px; padding: 0 23px; min-height: 46px; font-size: 14px; font-weight: 600; transition: filter .2s, transform .2s; }
.primary svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.hero .primary { background: #fff; color: #1d1d1f; min-height: 48px; padding: 0 25px; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--elevated); border-radius: 23px; padding: 0 17px; font-size: 14px; min-height: 44px; font-weight: 500; }
.section { margin: 0 0 38px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-heading h2 { font-size: 25px; margin: 0; letter-spacing: -.7px; font-weight: 700; }
.section-heading small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 10px; }
.section-heading a, .text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue); font-size: 13px; white-space: nowrap; background: none; padding: 4px 0 4px 8px; }
.section-heading a span { font-size: 22px; font-weight: 400; line-height: 1; }
.poster-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 30px 20px; }
.poster-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 100px)/6); gap: 20px; overflow: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 0 10px; }
.poster-card { display: block; min-width: 0; scroll-snap-align: start; }
.poster-wrap { position: relative; aspect-ratio: 2/2.9; overflow: hidden; border-radius: 12px; background: #e4e4e8; box-shadow: 0 2px 8px #00000009; }
.poster-wrap img { height: 100%; width: 100%; object-fit: cover; transition: transform .3s; }
.poster-wrap:after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent,#0009); }
.poster-badge { position: absolute; z-index: 1; bottom: 9px; left: 10px; right: 9px; font-size: 11px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px #0008; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card h3 { font-size: 15px; font-weight: 550; letter-spacing: -.2px; line-height: 1.5; margin: 10px 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.poster-card p { font-size: 12px; line-height: 1.5; margin: 0; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.continue-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.continue-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border-radius: 16px; min-width: 0; box-shadow: 0 2px 9px #00000004; }
.continue-card img { width: 48px; height: 68px; object-fit: cover; border-radius: 8px; }
.continue-card > div { min-width: 0; flex: 1; }
.continue-card h3 { font-size: 14px; margin: 0 0 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.continue-card p { font-size: 11px; color: var(--muted); margin: 0; }
.continue-progress { height: 3px; background: #ebebef; border-radius: 3px; margin-top: 11px; overflow: hidden; }
.continue-progress span { display: block; height: 100%; min-width: 3px; background: #77777e; border-radius: inherit; }
.continue-play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0f0f3; flex-shrink: 0; }
.continue-play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }
.page-title { margin: 5px 0 28px; }
.page-title.section-heading { align-items: flex-end; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters select, .tool-select { background: #fff; color: var(--text); border: 1px solid #e4e4e8; border-radius: 12px; padding: 0 12px; max-width: 100%; font-size: 14px; }
.filters select { min-width: 120px; }
.load-more { display: block; margin: 34px auto 12px; background: #e9e9ed; padding: 0 30px; border-radius: 25px; font-size: 14px; font-weight: 500; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { width: 70px; height: 70px; background: #e8e8ed; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 24px; color: #86868b; }
.empty-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.empty-state h2 { font-size: 22px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.5px; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.empty-state .secondary { margin-top: 15px; }
.skeleton { background: linear-gradient(90deg,#e7e7eb,#f0f0f2,#e7e7eb); background-size: 200% 100%; animation: shimmer 1.8s infinite; border-radius: 12px; aspect-ratio: 2/2.9; }
.skeleton-hero { height: 420px; aspect-ratio: auto; margin-bottom: 32px; border-radius: 24px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer-note { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 23px; color: #77777e; font-size: 12px; margin-top: 38px; line-height: 1.8; }
.footer-note span:first-child { color: #515156; font-weight: 600; }
.install-note { display: flex; align-items: center; gap: 18px; padding: 25px 28px; background: #fff; border-radius: 18px; margin-top: 12px; }
.install-icon { background: #f0f0f3; border-radius: 14px; width: 48px; height: 48px; display: grid; place-items: center; color: #515156; flex-shrink: 0; }
.install-note strong { font-size: 15px; font-weight: 600; }
.install-note p { color: var(--muted); font-size: 13px; margin: 6px 0 0; line-height: 1.6; }
.install-note > button { margin-left: auto; white-space: nowrap; }
.install-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: #10101465; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.install-backdrop[hidden] { display: none; }
.install-sheet { position: relative; width: 440px; max-width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; padding: 30px; background: #fafafa; border-radius: 28px; box-shadow: 0 20px 70px #0003; outline: none; }
.install-close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: #ebebef; border-radius: 50%; color: var(--muted); }
.install-app-icon { border-radius: 15px; margin-bottom: 20px; }
.install-sheet h2 { font-size: 24px; line-height: 1.35; letter-spacing: -.6px; margin: 0 0 10px; }
.install-sheet > p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
.install-layout-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.install-layout-options[hidden] { display: none; }
.install-layout-options button { min-height: 62px; padding: 10px 8px; background: #ededf1; border: 1px solid transparent; border-radius: 13px; }
.install-layout-options button[aria-pressed="true"] { background: #e7f1ff; border-color: #93bcf5; color: #0066cc; }
.install-layout-options strong { display: block; font-size: 13px; font-weight: 600; }
.install-layout-options small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.install-steps { list-style: none; padding: 0; margin: 25px 0 20px; display: grid; gap: 20px; }
.install-steps li { display: flex; gap: 12px; }
.install-steps li > span { width: 28px; height: 28px; border-radius: 50%; background: #e7e7ec; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.install-steps strong { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 15px; font-weight: 600; }
.install-steps p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.share-symbol { width: 20px; height: 20px; color: #0071e3; flex-shrink: 0; }
.install-sheet .install-help { padding: 13px 15px; background: #ededf1; border-radius: 12px; font-size: 12px; }
.install-done { width: 100%; margin-top: 24px; }
body.install-open { overflow: hidden; }
.search-page-form { display: flex; gap: 12px; margin: 24px 0 32px; max-width: 720px; }
.search-page-form input { background: #e9e9ed; border: 0; border-radius: 14px; padding: 14px 18px; color: var(--text); min-width: 0; flex: 1; font-size: 17px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: -10px 0 16px; overflow: hidden; }
.breadcrumb button { background: none; color: var(--blue); padding: 0; font-size: 15px; white-space: nowrap; }
.breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.player-column { min-width: 0; }
.player-shell { aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; position: relative; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #101014c9; color: #fff; text-align: center; padding: 24px; gap: 14px; }
.player-overlay[hidden] { display: none; }
.player-overlay p { max-width: 400px; font-size: 13px; color: #d1d1d6; line-height: 1.7; margin: 0; }
.player-overlay strong { font-size: 20px; font-weight: 600; }
.player-overlay button { background: #fff; color: #1d1d1f; margin-top: 2px; min-height: 44px; }
.spinner { width: 26px; height: 26px; border: 2px solid #8e8e9329; border-top-color: #86868b; border-radius: 50%; animation: spin .9s linear infinite; }
.player-overlay .spinner { border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.source-status { font-size: 12px; color: var(--muted); margin-right: auto; }
.player-tools button, .player-tools select { font-size: 13px; min-height: 44px; border: 0; border-radius: 23px; padding: 0 15px; background: #e9e9ed; }
.movie-info { padding-top: 25px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
.movie-title-row, .meta, .movie-info details[open] { grid-column: 1 / -1; }
.movie-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.movie-info h1 { font-size: 32px; line-height: 1.3; letter-spacing: -1px; margin: 0; font-weight: 700; }
.movie-title-row .secondary { flex-shrink: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 13px; margin: 15px 0 20px; }
.meta span + span:before { content: "·"; margin-right: 10px; color: #a1a1a6; }
.movie-title-row svg { width: 18px; height: 18px; }
.movie-info details { color: var(--muted); font-size: 14px; line-height: 1.9; border-top: 1px solid var(--line); }
.movie-info summary { color: var(--text); font-size: 14px; cursor: pointer; padding: 14px 0; font-weight: 500; }
.movie-info details p { margin: 0 0 18px; }
.sidebar { background: #fff; border-radius: 20px; padding: 24px; position: sticky; top: 100px; box-shadow: 0 3px 20px #00000003; }
.sidebar h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; font-weight: 650; margin: 0 0 16px; letter-spacing: -.5px; }
.sidebar h2 small { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.source-select { display: block; width: 100%; margin-bottom: 12px; background: #f5f5f7; border: 0; font-size: 14px; padding-right: 5px; }
.source-hint { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }
.episode-ranges { display: flex; gap: 5px; overflow: auto; margin-bottom: 12px; scrollbar-width: none; }
.episode-ranges:empty { display: none; }
.episode-ranges button { min-height: 36px; white-space: nowrap; font-size: 12px; padding: 0 12px; border-radius: 18px; background: #f5f5f7; color: var(--muted); }
.episode-ranges button.active { background: #e8e8ed; color: var(--text); font-weight: 600; }
.episode-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; max-height: 410px; overflow: auto; align-content: start; padding: 3px; margin: -3px; }
.episode-grid button { min-height: 46px; min-width: 0; border-radius: 12px; background: #f5f5f7; color: #515156; font-size: 14px; padding: 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-grid button.active { background: #1d1d1f; color: #fff; font-weight: 600; }
.active-favorite { color: var(--blue); background: #e2edfb; }
.toast { position: fixed; left: 50%; bottom: 105px; transform: translate(-50%,12px); background: #29292eea; backdrop-filter: blur(16px); color: #fff; border-radius: 24px; font-size: 14px; line-height: 1.5; padding: 13px 24px; box-shadow: 0 6px 25px #0002; z-index: 100; opacity: 0; pointer-events: none; max-width: calc(100vw - 36px); width: max-content; text-align: center; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
@media(hover:hover) {
  .poster-card:hover img { transform: scale(1.035); }
  .primary:hover { filter: brightness(.95); }
  .chip:not(.active):hover, .secondary:hover { background: #dedee4; }
  .desktop-nav a:not(.active):hover { color: #1d1d1f; }
}
@media(max-width:1150px) {
  .header-inner { padding: 0 32px; gap: 24px; }
  .desktop-nav a { padding: 0 15px; }
  .header-search { width: 200px; }
  #app { padding: 30px 32px 36px; }
  .hero { min-height: 380px; padding: 40px; }
  .hero-label { left: 40px; top: 30px; }
  .poster-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 26px 18px; }
  .poster-rail { grid-auto-columns: calc((100% - 72px)/5); gap: 18px; }
  .continue-list { display: flex; overflow: auto; scrollbar-width: none; }
  .continue-card { flex: 0 0 285px; }
  .watch-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
  .sidebar { padding: 20px; }
  .player-tools .source-status { width: 100%; margin: 0 0 3px; }
}
@media(max-width:900px) {
  .header-inner { gap: 18px; height: 70px; }
  .brand span { font-size: 18px; }
  .desktop-nav a { padding: 0 13px; }
  .header-search { width: 44px; flex-shrink: 0; }
  .header-search input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
  .header-search button { width: 44px; }
  .hero-art { width: 75%; }
  .hero-copy { width: 62%; }
  .poster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .poster-rail { grid-auto-columns: calc((100% - 64px)/4.25); gap: 18px; }
  .watch-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; padding: 26px; }
  .episode-grid { grid-template-columns: repeat(8,minmax(0,1fr)); max-height: 300px; }
  .source-select { max-width: 460px; }
  .player-tools .source-status { width: auto; margin: 0 auto 0 0; }
}
@media(max-width:650px) {
  .site-header { border: 0; }
  .header-inner { height: 64px; padding: 0 20px; }
  .header-actions { gap: 10px; }
  .install-trigger { font-size: 12px; }
  .brand img { width: 29px; height: 29px; border-radius: 8px; }
  .brand span { font-size: 19px; }
  .desktop-nav { display: none; }
  .header-search { background: #e9e9edc0; }
  .bottom-nav { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(12px,env(safe-area-inset-bottom)); height: 68px; padding: 6px; border: 1px solid #ffffffcf; background: #f8f8fae8; backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 5px 28px #00000017,0 0 1px #00000030; border-radius: 36px; z-index: 35; }
  .bottom-nav a { width: 25%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #64646b; font-size: 10px; font-weight: 500; border-radius: 28px; }
  .bottom-nav a.active { color: #0066cc; background: #e8e8edbd; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .active svg { stroke-width: 2; }
  #app { padding: 16px 20px calc(100px + env(safe-area-inset-bottom)); min-height: calc(100svh - 64px); }
  .home-heading { display: block; margin-bottom: 23px; }
  .home-heading h1, .page-title h1 { font-size: 32px; letter-spacing: -1px; }
  .home-heading p, .page-title p { font-size: 14px; margin-top: 7px; }
  .hero { min-height: 350px; padding: 25px; border-radius: 22px; }
  .hero-art { width: 100%; object-position: center 28%; }
  .hero:after { background: linear-gradient(0deg,#161616f5 0%,#161616a0 32%,#16161610 70%); }
  .hero-label { top: 20px; left: 20px; font-size: 11px; padding: 7px 12px; background: #16161635; }
  .hero-copy { width: 100%; }
  .hero h2 { font-size: 34px; letter-spacing: -.7px; margin-bottom: 7px; }
  .hero p { font-size: 13px; margin-bottom: 17px; }
  .hero .primary { min-height: 44px; font-size: 13px; padding: 0 20px; }
  .category-strip { margin: 19px -20px 27px 0; padding-right: 20px; gap: 8px; }
  .chip { padding: 0 18px; min-height: 42px; font-size: 13px; }
  .section { margin-bottom: 28px; }
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: 22px; letter-spacing: -.5px; }
  .section-heading a, .text-button { font-size: 12px; }
  .poster-rail { grid-auto-columns: 138px; gap: 14px; margin-right: -20px; padding-right: 20px; scroll-padding-left: 0; }
  .poster-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 12px; }
  .poster-wrap { border-radius: 10px; }
  .poster-card h3 { font-size: 13px; margin-top: 9px; }
  .poster-rail .poster-card h3 { font-size: 14px; }
  .poster-card p { font-size: 11px; }
  .poster-badge { font-size: 10px; left: 8px; bottom: 8px; }
  .continue-list { margin-right: -20px; padding-right: 20px; gap: 12px; }
  .continue-card { flex-basis: 278px; }
  .page-title { margin: 0 0 24px; }
  .page-title.section-heading { align-items: center; }
  .filters { gap: 10px; padding-bottom: 20px; margin-bottom: 25px; }
  .filters select { flex: 1 1 calc(50% - 5px); min-width: 0; max-width: calc(50% - 5px); font-size: 16px; }
  .empty-state { padding: 65px 8px; }
  .empty-state p { font-size: 13px; }
  .install-note { padding: 20px; gap: 13px; border-radius: 16px; flex-wrap: wrap; }
  .install-note > button { margin: 2px 0 0 53px; }
  .install-note strong { font-size: 14px; }
  .install-note p { font-size: 11px; }
  .install-icon { width: 40px; height: 48px; border-radius: 12px; }
  .install-backdrop { align-items: flex-end; padding: 12px; padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .install-sheet { width: 100%; padding: 26px 24px; max-height: calc(100dvh - 40px - env(safe-area-inset-bottom)); border-radius: 26px; }
  .install-sheet h2 { font-size: 22px; }
  .footer-note { font-size: 11px; margin-top: 28px; padding-top: 20px; }
  .skeleton-hero { height: 350px; }
  .search-page-form { gap: 8px; }
  .search-page-form input { padding: 13px; font-size: 16px; }
  .search-page-form .primary { padding: 0 19px; }
  .watching .bottom-nav { display: none; }
  .watching #app { padding: 3px 0 calc(28px + env(safe-area-inset-bottom)); }
  .breadcrumb { margin: 0 20px 8px; font-size: 12px; }
  .watch-layout { display: block; }
  .player-shell { border-radius: 0; }
  .player-tools, .movie-info { margin-left: 20px; margin-right: 20px; }
  .player-tools { padding: 15px 0; gap: 8px; }
  .player-tools .source-status { width: 100%; margin: 0 0 3px; }
  .player-tools button, .player-tools select { font-size: 13px; min-height: 44px; padding: 0 15px; }
  .player-tools select { font-size: 16px; }
  .movie-info { padding-top: 23px; }
  .movie-info h1 { font-size: 28px; }
  .movie-title-row { gap: 10px; }
  .movie-title-row .secondary { font-size: 13px; padding: 0 15px; }
  .meta { font-size: 12px; gap: 7px; margin: 14px 0 18px; }
  .meta span + span:before { margin-right: 7px; }
  .sidebar { margin: 22px 20px 0; padding: 20px; border-radius: 18px; }
  .sidebar h2 { font-size: 19px; }
  .source-select { max-width: 100%; font-size: 16px; }
  .episode-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
  .episode-grid button { font-size: 13px; min-height: 44px; border-radius: 10px; }
  .player-overlay { padding: 20px; gap: 10px; }
  .player-overlay strong { font-size: 18px; }
  .player-overlay p { font-size: 12px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); font-size: 13px; }
  .watching .toast { bottom: 30px; }
}
@media(max-width:360px) {
  .header-inner { padding: 0 16px; }
  #app { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 325px; padding: 21px; }
  .hero h2 { font-size: 30px; }
  .poster-grid { gap: 20px 9px; }
  .poster-rail, .continue-list, .category-strip { margin-right: -16px; padding-right: 16px; }
  .poster-rail { grid-auto-columns: 128px; gap: 12px; }
  .player-tools, .movie-info, .breadcrumb { margin-left: 16px; margin-right: 16px; }
  .player-tools button, .player-tools select { padding: 0 12px; }
  .sidebar { margin-left: 16px; margin-right: 16px; padding: 18px; }
  .episode-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .install-note { padding: 17px 14px; }
}
@media(orientation:landscape) and (max-height:500px) {
  .watching .site-header { position: relative; }
  .watching .player-shell { max-height: calc(100dvh - 30px); }
  .hero { min-height: 320px; }
}
select.tool-select, .filters select {
  appearance: none; -webkit-appearance: none; height: 44px; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
