:root {
  color-scheme: dark;
  --black: #070a16;
  --surface: #0d1530;
  --raised: #141f40;
  --line: #2a3b6b;
  --white: #f3f6ff;
  --muted: #aab6d6;
  --dim: #74809f;
  --blue: #5278d5;
  --purple: #7b5ac7;
  --green: #96d37b;
  --sans: "Space Grotesk", "Trebuchet MS", Arial, sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--black); }
button, input, select { font: inherit; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.loading-screen {
  position: fixed; z-index: 20; inset: 0; display: grid; align-content: center;
  justify-items: center; gap: 1.25rem; background: var(--black);
  transition: opacity .35s ease, visibility .35s ease;
}
.loading-screen.done { opacity: 0; visibility: hidden; }
.loading-screen img { width: 78px; height: 78px; object-fit: contain; }
.loading-screen p { margin: 0; color: var(--muted); font-size: 1rem; }
.loading-ring {
  width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
  position: sticky; z-index: 5; top: 0; min-height: 76px; display: flex; align-items: center;
  gap: clamp(1rem, 3vw, 3rem); padding: .75rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(42, 59, 107, .75);
  background: rgba(7, 10, 22, .94); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; color: var(--white); text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { font: 700 .95rem/1 var(--mono); letter-spacing: .13em; }
.main-nav { display: flex; align-items: center; gap: .45rem; }
.nav-button, .search-button {
  min-height: 46px; padding: .7rem 1rem; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font-weight: 700; cursor: pointer;
}
.nav-button:hover, .nav-button.active { background: var(--raised); color: var(--white); }
.nav-button.active { border-color: var(--line); }
.saved-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: .3rem; padding: 0 .35rem; border-radius: 99px; background: var(--blue); color: white; font-size: .76rem; }
.search-form { display: flex; gap: .5rem; width: min(390px, 42vw); margin-left: auto; }
.search-form input, .watch-options select {
  min-width: 0; min-height: 46px; padding: .65rem .9rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--white);
}
.search-form input { flex: 1; font-size: 1rem; }
.search-form input::placeholder { color: var(--dim); }
.search-button { background: var(--blue); color: #fff; }
.search-button:hover, .primary-button:hover { background: #6b8be0; }

.hero {
  position: relative; display: flex; align-items: center; min-height: clamp(360px, 49vw, 590px);
  padding: clamp(2rem, 8vw, 7rem); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 76% 36%, rgba(123, 90, 199, .34), transparent 40%),
    radial-gradient(ellipse at 83% 83%, rgba(82, 120, 213, .3), transparent 42%),
    linear-gradient(115deg, #0d1530 0%, #111a38 54%, #171a3e 100%);
}
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.hero::before { inset: 0; opacity: .4; background: repeating-linear-gradient(0deg, transparent 0 62px, rgba(170,182,214,.08) 63px), repeating-linear-gradient(90deg, transparent 0 62px, rgba(170,182,214,.08) 63px); }
.hero::after { right: 8%; top: 50%; width: clamp(180px, 30vw, 380px); aspect-ratio: 1; border: 1px solid rgba(170,182,214,.14); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 32px rgba(170,182,214,.035), 0 0 0 72px rgba(170,182,214,.025), 0 0 100px rgba(82,120,213,.25); }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,10,22,.8), rgba(7,10,22,.08) 78%); }
.hero-copy { max-width: 670px; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 .85rem; color: var(--muted); font: 700 .68rem/1.3 var(--mono); letter-spacing: .11em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero h1 { margin: 0; font-size: clamp(3.1rem, 8vw, 6.7rem); line-height: .94; letter-spacing: -.055em; }
.hero h1 span { color: var(--muted); font-weight: 400; }
.hero-copy > p { max-width: 490px; margin: 1.35rem 0 1.7rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.65; }
.primary-button, .secondary-button {
  min-height: 50px; padding: .8rem 1.35rem; border: 0; border-radius: 8px;
  background: var(--blue); color: white; font-weight: 700; cursor: pointer;
}
.primary-button:hover { transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover { border-color: var(--blue); background: var(--raised); }
.text-button { min-height: 42px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.text-button:hover, .text-button:focus-visible { border-color: var(--blue); color: var(--white); }

.content-section { width: min(1440px, 100%); margin: 0 auto; padding: 3rem clamp(1.25rem, 5vw, 5rem) 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading .eyebrow { margin-bottom: .45rem; color: var(--blue); }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.continue-section { margin-bottom: 2.5rem; }
.popular-heading { margin-top: 3rem; }
.anime-rail { display: grid; grid-auto-columns: clamp(150px, 16vw, 230px); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .25rem .2rem 1.5rem; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent; }
.anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1.1rem; }
.anime-card { min-width: 0; scroll-snap-align: start; }
.poster-wrap { position: relative; }
.poster-button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; }
.poster-button img { display: block; width: 100%; aspect-ratio: 2 / 2.85; object-fit: cover; background: linear-gradient(140deg, var(--raised), var(--surface)); transition: transform .28s ease, filter .28s ease; }
.anime-card:hover .poster-button img, .poster-button:focus-visible img { transform: scale(1.045); filter: brightness(1.08); }
.poster-gradient { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(7,10,22,.88)); pointer-events: none; }
.poster-score { position: absolute; top: .55rem; left: .55rem; padding: .36rem .5rem; border-radius: 6px; background: rgba(7,10,22,.83); color: var(--green); font: 700 .72rem var(--mono); }
.poster-wrap > .save-button { position: absolute; z-index: 2; top: .55rem; right: .55rem; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(7,10,22,.96); color: white; font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.65); }
.detail-title-line > .save-button { position: static; flex: none; }
.save-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(7,10,22,.96); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.55); }
.save-button:hover, .save-button.saved { background: var(--blue); border-color: var(--blue); }
.poster-title { position: absolute; right: .65rem; bottom: .7rem; left: .65rem; color: white; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 7px #000; }
.card-title { display: block; margin: .65rem 0 .25rem; overflow: hidden; color: var(--white); font-size: .98rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { margin: 0; color: var(--dim); font-size: .82rem; }
.continue-card { position: relative; min-width: 0; scroll-snap-align: start; }
.continue-card-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.continue-card-button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); }
.continue-card-button:hover, .continue-card-button:focus-visible { border-color: var(--blue); }
.continue-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 8px #000; }
.continue-progress { height: 5px; overflow: hidden; background: var(--line); }
.continue-progress span { display: block; height: 100%; background: var(--blue); }
.continue-copy { display: grid; gap: .25rem; padding: .55rem .1rem; }
.continue-episode { overflow: hidden; color: var(--muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-mark { color: var(--blue); font-size: 2rem; }
.empty-state h3 { margin: .6rem 0; font-size: 1.5rem; }
.empty-state p, .result-message { color: var(--muted); }
.empty-state .secondary-button { margin-top: .7rem; }
.load-more { display: block; min-width: 170px; margin: 1rem auto 3rem; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding: 1.2rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span { font-size: .75rem; }
.footer > p { color: var(--dim); font-size: .9rem; }

dialog { padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--white); box-shadow: 0 24px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(3,5,13,.84); backdrop-filter: blur(5px); }
.anime-dialog { width: min(900px, calc(100% - 2rem)); max-height: min(86vh, 880px); overflow: auto; }
.dialog-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: rgba(7,10,22,.9); color: white; font-size: 1.8rem; cursor: pointer; }
.dialog-close:hover { background: var(--blue); }
.detail-hero { position: relative; display: flex; align-items: end; min-height: 270px; padding: 2rem; overflow: hidden; background: linear-gradient(0deg, var(--surface), rgba(13,21,48,.1)), var(--detail-backdrop, var(--raised)) center / cover; }
.detail-content { padding: 1.5rem 2rem 2rem; }
.detail-title-line { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.detail-title-line h2 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.detail-meta, .detail-description { color: var(--muted); line-height: 1.65; }
.detail-description { max-width: 780px; }
.genre-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.genre-chip { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .85rem; }
.detail-section-title { margin: 1.8rem 0 .8rem; font-size: 1.25rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.episode-list { display: grid; gap: .5rem; overflow: auto; padding: .25rem; }
.episode-button { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: .85rem; min-height: 88px; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; }
.episode-button:hover, .episode-button.active { border-color: var(--blue); background: var(--raised); }
.episode-image-wrap { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: linear-gradient(140deg, var(--raised), var(--black)); }
.episode-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.episode-image-placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(ellipse, rgba(82,120,213,.32), transparent 70%), linear-gradient(140deg,var(--raised),var(--black)); }
.episode-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,10,22,.16); color: white; font-size: 1.15rem; text-shadow: 0 2px 8px #000; }
.episode-copy { display: grid; min-width: 0; gap: .28rem; }
.episode-name { overflow: hidden; color: var(--white); font-size: .92rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.episode-description { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.episode-meta { color: var(--dim); font: 700 .62rem/1.3 var(--mono); letter-spacing: .05em; }
.poster-button.image-failed::before { position: absolute; inset: 0; content: ""; background: radial-gradient(ellipse, rgba(82,120,213,.32), transparent 70%), linear-gradient(140deg,var(--raised),var(--black)); }
.poster-button.image-failed .poster-title { z-index: 1; }
.episode-loading, .episode-error { padding: 1.5rem .5rem; color: var(--muted); }

.player-dialog { width: min(1280px, calc(100% - 2rem)); max-height: 92vh; padding: clamp(1rem, 2vw, 1.5rem); overflow: auto; }
.player-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-right: 4rem; }
.player-topbar .eyebrow { color: var(--blue); }
.player-topbar h2 { margin: 0 0 1rem; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.player-close { top: 1rem; right: 1rem; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: 1rem; }
.video-frame { position: relative; display: grid; place-items: center; min-height: 240px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-message { z-index: 1; max-width: 80%; color: var(--muted); text-align: center; line-height: 1.55; pointer-events: none; }
.video-controls { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: grid; gap: .35rem; padding: 1.8rem .75rem .6rem; background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.68) 70%, transparent); }
.video-controls { opacity: 1; transition: opacity .2s ease; }
.video-frame.controls-hidden { cursor: none; }
.video-frame.controls-hidden .video-controls { opacity: 0; pointer-events: none; }
.seek-slider, .volume-slider { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
.seek-slider { height: 24px; background: transparent; }
.video-controls-row, .video-transport, .video-settings { display: flex; align-items: center; }
.video-controls-row { flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.video-transport, .video-settings { gap: .35rem; }
.seek-slider, .volume-slider { appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--blue) var(--seek-progress, 0%), rgba(255,255,255,.35) var(--seek-progress, 0%)); }
.volume-slider { height: 5px; background: linear-gradient(to right, var(--blue) var(--volume-progress, 100%), rgba(255,255,255,.35) var(--volume-progress, 100%)); }
.seek-slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--blue); }
.volume-slider::-webkit-slider-thumb { width: 14px; height: 14px; }
.seek-slider::-moz-range-thumb, .volume-slider::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); }
.seek-slider::-moz-range-progress, .volume-slider::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--blue); }
.player-control-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: .35rem .55rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #fff; font: 700 .9rem var(--sans); cursor: pointer; }
.player-control-button:hover, .player-control-button:focus-visible { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.player-play-button { min-width: 48px; font-size: 1.15rem; }
.video-time { padding: 0 .35rem; color: #fff; font: 700 .8rem var(--mono); white-space: nowrap; }
.video-settings select { min-height: 40px; padding: .35rem; border-color: transparent; background: rgba(0,0,0,.25); color: #fff; }
.volume-slider { width: clamp(58px, 8vw, 100px); }
.video-frame:fullscreen { width: 100vw; height: 100vh; min-height: 0; max-width: none; aspect-ratio: auto; border-radius: 0; }
.video-frame:fullscreen .video-controls { padding: 2.5rem clamp(1rem, 4vw, 3rem) 1.25rem; }
.video-frame:fullscreen .subtitle-overlay { bottom: 7.5rem; }
.subtitle-overlay { position: absolute; z-index: 2; right: 5%; bottom: clamp(6rem, 11vw, 7.5rem); left: 5%; max-height: 35%; overflow: hidden; color: #fff; font-size: clamp(1rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.35; text-align: center; text-shadow: 0 2px 3px #000, 2px 0 2px #000, -2px 0 2px #000, 0 -2px 2px #000; white-space: pre-line; pointer-events: none; }
.skip-button { position: absolute; z-index: 5; right: clamp(.75rem, 3vw, 1.5rem); bottom: clamp(6rem, 11vw, 7.5rem); min-height: 48px; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; background: rgba(7,10,22,.9); color: var(--white); font-weight: 700; cursor: pointer; }
.skip-button:hover, .skip-button:focus-visible { border-color: var(--blue); background: var(--raised); }
.episode-panel { display: flex; min-height: 0; max-height: min(65vh, 600px); flex-direction: column; gap: .8rem; }
.watch-options { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem .6rem; }
.watch-options label { color: var(--muted); font-size: .88rem; }
.watch-options select { min-height: 42px; width: 100%; }
.episode-list { flex: 1; }
.toast { position: fixed; z-index: 15; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100vw - 2rem)); padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--white); opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.skeleton { aspect-ratio: 2 / 2.85; border-radius: 10px; background: linear-gradient(100deg, var(--surface) 20%, var(--raised) 38%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

@media (min-width: 1280px) and (min-height: 720px) {
  .topbar { min-height: 88px; padding-block: 1rem; }
  .brand img { width: 46px; height: 46px; }
  .nav-button, .search-button { min-height: 56px; padding-inline: 1.25rem; font-size: 1.05rem; }
  .search-form input, .watch-options select { min-height: 56px; font-size: 1.05rem; }
  .hero { min-height: clamp(520px, 48vw, 760px); padding: clamp(4rem, 9vw, 9rem); }
  .hero h1 { font-size: clamp(4.2rem, 8vw, 8.5rem); }
  .content-section { width: min(1680px, 100%); padding: 4rem clamp(2rem, 5vw, 6rem) 1.5rem; }
  .section-heading h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
  .anime-rail { grid-auto-columns: clamp(210px, 17vw, 290px); gap: 1.3rem; }
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.3rem; }
  .card-title { font-size: 1.1rem; }
  .primary-button, .secondary-button, .text-button { min-height: 58px; padding-inline: 1.5rem; font-size: 1.05rem; }
  .poster-wrap > .save-button, .save-button { width: 54px; height: 54px; font-size: 1.65rem; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline-width: 5px;
    outline-offset: 5px;
  }
  .anime-dialog { width: min(1100px, calc(100% - 4rem)); max-height: 90vh; }
  .player-dialog { width: min(1440px, calc(100% - 4rem)); max-height: 94vh; padding: 2rem; }
  .video-frame { min-height: 360px; }
  .episode-panel { max-height: 72vh; }
  .episode-button { min-height: 96px; }
  .player-control-button { min-width: 54px; min-height: 54px; font-size: 1rem; }
}

@media (min-width: 1600px) {
  .topbar { padding-right: max(5rem, calc((100vw - 1440px) / 2)); padding-left: max(5rem, calc((100vw - 1440px) / 2)); }
}
@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .6rem 1rem; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: .8rem; }
  .main-nav { justify-self: end; margin-left: 0; }
  .nav-button { min-height: 42px; padding: .55rem .7rem; font-size: .9rem; }
  .search-form { grid-column: 1 / -1; width: 100%; min-width: 0; margin-left: 0; }
  .hero { min-height: 400px; padding: 2rem 1.25rem; }
  .hero::after { right: -20%; width: 250px; opacity: .7; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,10,22,.8), rgba(7,10,22,.25)); }
  .content-section { padding: 2rem 1rem .5rem; }
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .8rem; }
  .anime-rail { grid-auto-columns: 155px; gap: .75rem; }
  .detail-content { padding: 1.1rem; }
  .detail-hero { min-height: 200px; padding: 1.2rem; }
  .watch-layout { grid-template-columns: 1fr; }
  .episode-panel { max-height: 34vh; }
  .episode-button { grid-template-columns: 104px minmax(0, 1fr); min-height: 78px; gap: .65rem; }
  .episode-description { font-size: .74rem; }
  .video-frame { min-height: 190px; }
  .video-controls { padding: 1.4rem .35rem .35rem; }
  .video-controls-row { gap: .2rem; }
  .video-transport, .video-settings { gap: 0; }
  .player-control-button { min-width: 42px; min-height: 44px; padding: .25rem; font-size: .78rem; }
  .video-time { padding: 0 .15rem; font-size: .68rem; }
  .volume-slider { width: 50px; }
  .video-settings select { min-height: 38px; padding: .2rem; font-size: .75rem; }
  .subtitle-overlay { bottom: 5.5rem; font-size: 1rem; }
  .skip-button { bottom: 5.5rem; }
  .footer { flex-wrap: wrap; }
}
@media (min-width: 761px) {
  .episode-panel .episode-button { grid-template-columns: 100px minmax(0, 1fr); gap: .65rem; }
  .episode-panel .episode-description { -webkit-line-clamp: 1; }
}
@media (max-width: 430px) {
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-message { display: none; }
  .footer > p { flex-basis: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
