:root {
  color-scheme: dark;
  --bg: #0c0c10;
  --surface: #121217;
  --raised: #191920;
  --border: #292830;
  --text: #f3f1f8;
  --muted: #a3a0b1;
  --accent: #9563fa;
  --accent-hover: #aa82ff;
  --green: #85d4b0;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
input,
select {
  color: var(--text);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 5px;
}
a,
button {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 36px;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
.container {
  width: min(1480px, calc(100% - 96px));
  margin-inline: auto;
}
main {
  flex: 1;
  padding-bottom: 72px;
}
.site-header {
  min-height: 85px;
  padding-block: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #202026;
}
.wordmark {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 23px;
  letter-spacing: -0.9px;
  font-weight: 750;
  min-height: 44px;
}
.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.brand-symbol {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--accent);
  margin-right: 11px;
  color: #fff;
}
.brand-symbol svg {
  width: 21px;
  fill: currentColor;
  stroke-width: 0;
  margin-left: -3px;
}
.brand-dot {
  color: var(--accent);
}
.site-footer {
  border-top: 1px solid #222128;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-footer a {
  padding: 12px 0;
}
.site-footer a:hover {
  color: var(--text);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.library-intro {
  padding: 78px 0 62px;
  position: relative;
}
.library-intro h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.09;
  letter-spacing: -3px;
}
.library-intro h1 span {
  color: var(--accent-hover);
}
.library-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.tiny-line {
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.intro-copy {
  color: var(--muted);
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
#library-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  padding: 0 6px;
}
.search-form {
  display: flex;
  align-items: center;
  width: 300px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding-left: 13px;
  color: var(--muted);
}
.search-form > svg {
  width: 17px;
}
.search-form input {
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 10px;
  font-size: 13px;
}
.search-form input::placeholder {
  color: var(--muted);
}
.search-form button {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
}
.search-form button:hover {
  color: var(--accent-hover);
}
.anime-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
}
.poster {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff09;
  background: #251e3e;
}
.poster-violet {
  background: linear-gradient(145deg, #34204a, #13111d);
}
.poster-blue {
  background: linear-gradient(145deg, #1e3448, #101820);
}
.poster-amber {
  background: linear-gradient(145deg, #4a3324, #1d1611);
}
.poster-teal {
  background: linear-gradient(145deg, #1b3936, #101c1b);
}
.poster-monogram {
  font-size: 140px;
  font-weight: 800;
  color: #ffffff12;
  line-height: 1;
}
.poster-title {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -1px;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.card-play {
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid #ffffff30;
  background: #0007;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
}
.card-play svg {
  width: 15px;
  fill: currentColor;
  stroke: 0;
  margin-left: -2px;
}
.anime-card:hover .poster {
  border-color: var(--accent);
}
.anime-card:hover h3 {
  color: var(--accent-hover);
}
.card-meta {
  margin: 15px 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.card-meta span:first-child {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--accent-hover);
}
.anime-card h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.empty-library {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 64px 24px;
  background: var(--surface);
}
.empty-icon {
  width: 56px;
  height: 56px;
  border: 1px solid #38323f;
  background: #211b2c;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent-hover);
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty-library p {
  color: var(--muted);
  max-width: 400px;
  margin-top: 12px;
  font-size: 14px;
}
.empty-library .button {
  margin-top: 24px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 28px 0 27px;
  min-height: 24px;
}
.breadcrumbs a:hover {
  color: var(--accent-hover);
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
  color: #726b80;
}
.breadcrumbs span {
  overflow-wrap: anywhere;
}
.watch-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.watch-heading .eyebrow {
  color: var(--accent-hover);
  margin-bottom: 9px;
}
.watch-heading h1 {
  font-size: 32px;
  overflow-wrap: anywhere;
}
.protection-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--green);
  margin-bottom: 5px;
  white-space: nowrap;
}
.protection-label svg {
  width: 15px;
  height: 15px;
}
.watch-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 24px;
  align-items: start;
}
.watch-main {
  min-width: 0;
}
.player {
  background: #030305;
  border: 1px solid #25222c;
  border-radius: 11px 11px 0 0;
  position: relative;
  overflow: hidden;
}
.player-stage {
  aspect-ratio: 16/9;
  position: relative;
  width: 100%;
  min-height: 0;
}
.player:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.player:fullscreen .player-stage {
  flex: 1;
  aspect-ratio: auto;
}
.player-preview-image,
.player-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.player-placeholder.has-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000c, #0005 65%, #0004);
  pointer-events: none;
}
.player-placeholder.has-preview
  > :not(.player-preview-image):not(.player-preview-canvas) {
  z-index: 1;
}
.preview-probe {
  position: absolute;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}
.custom-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  min-height: 56px;
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.seek-controls,
.quality-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seek-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 65px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
}
.seek-button svg {
  width: 15px;
  height: 15px;
}
.seek-button:hover:not(:disabled) {
  border-color: var(--accent);
}
.seek-button:disabled,
.quality-control select:disabled {
  opacity: 0.5;
  cursor: default;
}
.mirror {
  transform: scaleX(-1);
}
.quality-control label {
  font-size: 11px;
  color: var(--muted);
}
.quality-control select {
  min-height: 44px;
  max-width: 150px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}
@media (max-width: 520px) {
  .custom-player-controls {
    padding: 6px 9px;
    gap: 8px;
  }
  .seek-controls {
    gap: 6px;
  }
  .seek-button {
    min-width: 57px;
    gap: 5px;
  }
  .quality-control {
    gap: 6px;
  }
  .quality-control select {
    max-width: 112px;
    padding: 0 6px;
  }
}
.player-placeholder {
  overflow: hidden;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, #19102450, transparent 65%);
}
.player-preview-storyboard {
  width: 400%;
  height: 400%;
  left: -100%;
  top: -100%;
  right: auto;
  bottom: auto;
  object-fit: fill;
}
.play-button {
  width: 76px;
  height: 76px;
  border: 1px solid #b48cff4a;
  border-radius: 50%;
  background: #8b5cf61a;
  color: #b592ff;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  box-shadow: 0 0 0 12px #9563fa06;
}
.play-button:hover {
  background: #8b5cf633;
  color: white;
  border-color: var(--accent);
}
.play-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke-width: 0;
  margin-left: -4px;
}
.player-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.player-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.press-play {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa0b6;
  margin-top: 28px;
}
.player-mount,
.player-mount iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
}
.player-mount video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  accent-color: var(--accent);
}
.player-mount:empty {
  pointer-events: none;
}
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 6px 18px;
}
.watching-label {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.muted {
  color: var(--muted);
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  min-height: 44px;
}
.text-button svg,
.icon-button svg {
  width: 14px;
  height: 14px;
}
.text-button:hover,
.icon-button:hover {
  color: var(--text);
}
.icon-button {
  width: 44px;
}
.episode-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.episode-details .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.episode-details h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.episode-navigation {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  border: 1px solid transparent;
}
.button svg {
  width: 15px;
  height: 15px;
}
.secondary {
  background: var(--raised);
  border-color: var(--border);
}
a.secondary:hover {
  border-color: #686074;
  background: #25212c;
}
.disabled {
  color: #8b8796;
  background: transparent;
  border-color: #25232c;
  opacity: 0.65;
}
.flip {
  transform: rotate(180deg);
}
.anime-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 21px;
  max-width: 760px;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: anywhere;
}
.player-feedback {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.player-feedback:empty {
  display: none;
}
.quality-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.watch-sidebar { min-width: 0; }
.report-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #69404f;
  border-radius: 9px;
  background: #24151d;
}
.report-strip > span { color: #e4ccd5; font-size: 13px; }
.report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #dc7797;
  border-radius: 7px;
  background: #83314e;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
.report-button:hover { background: #a13f61; }
.report-button svg { width: 18px; height: 18px; }
.report-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #655174;
  border-radius: 14px;
  box-shadow: 0 28px 100px #0009;
}
.report-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.report-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.report-dialog-heading h2 { font-size: 22px; }
.report-dialog-heading .icon-button { font-size: 26px; }
.report-context { color: var(--accent-hover); font-size: 13px; line-height: 1.7; margin: 12px 0 22px; overflow-wrap: anywhere; }
.report-form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.report-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  max-height: 45dvh;
  resize: vertical;
  padding: 12px;
  border: 1px solid #51445f;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.report-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.report-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.report-status { margin: 14px 0; color: #f5d4e0; font-size: 14px; overflow-wrap: anywhere; }
.report-status:empty { display: none; }
.report-form .errorlist { color: #ffabbf; padding-left: 20px; font-size: 13px; margin-bottom: 14px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.report-form .button:not(.secondary) { background: #7844cf; color: #fff; }
.report-form .button:not(.secondary):hover { background: #8c57e4; }
.report-form button:disabled { opacity: .65; cursor: wait; }
.report-page { max-width: 620px; margin: 48px auto; }
.report-page .text-button { display: inline-block; margin-top: 24px; }
@media (max-width: 520px) {
  .report-strip { padding: 14px; }
  .report-button { width: 100%; }
  .report-dialog { padding: 20px; }
}
.playback-help {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.playback-help summary {
  cursor: pointer;
  min-height: 28px;
}
.playback-help p {
  padding: 12px 0;
  max-width: 700px;
  line-height: 1.8;
}
.resources {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.resources-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.resources-heading h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.resources-heading svg {
  width: 16px;
  height: 16px;
  color: #9992a6;
}
.field-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 9px;
}
.resources select {
  width: 100%;
  background: var(--raised);
  border: 1px solid #35303f;
  border-radius: 7px;
  min-height: 45px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}
.resource-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  margin: 20px 0 12px;
}
.resource-meta span:first-child {
  color: #c3bdce;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  max-height: 370px;
  overflow-y: auto;
  padding: 2px;
  margin: -2px;
  scrollbar-width: thin;
}
.episode-tile {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #34303e;
  background: var(--raised);
  border-radius: 6px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
.episode-tile:hover {
  border-color: var(--accent);
  background: #282035;
}
.episode-tile.active {
  background: #8951ee;
  border-color: #a674ff;
  color: #fff;
  box-shadow: 0 3px 14px #7c3aed26;
}
.selected-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #fff;
}
.movie-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 370px;
  overflow-y: auto;
}
.movie-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
}
.movie-link svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.movie-link span {
  flex: 1;
  overflow-wrap: anywhere;
}
.movie-link:hover,
.movie-link.active {
  background: #251a3a;
  border-color: var(--accent);
}
.movie-link.active {
  color: #c4a7ff;
}
.resources-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.download-button {
  width: 100%;
  background: #24202d;
  border-color: #40334f;
  color: #d5c2f6;
}
.download-button:hover {
  background: #30243e;
  border-color: var(--accent);
}
.download-caption {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  margin: 9px 0 24px;
}
.protection-note {
  display: flex;
  gap: 10px;
  padding-top: 21px;
  border-top: 1px solid var(--border);
}
.protection-note > svg {
  color: var(--green);
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.protection-note strong {
  font-size: 11px;
  font-weight: 550;
  color: #cec8da;
}
.protection-note p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 5px;
}
.resource-empty {
  font-size: 12px;
  color: var(--muted);
  grid-column: 1/-1;
  padding: 8px 0;
}
.legal-page {
  max-width: 720px;
  margin: 60px auto 30px;
}
.legal-page h1 {
  font-size: 54px;
}
.legal-page .eyebrow {
  color: var(--accent-hover);
}
.legal-lead {
  font-size: 19px;
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 42px;
}
.legal-page h2 {
  font-size: 20px;
  margin: 32px 0 14px;
}
.legal-page > p:not(.eyebrow):not(.legal-lead) {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 16px;
}
.contact-box {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 30px 0;
}
.contact-box span {
  font-size: 12px;
  color: var(--muted);
}
.contact-box a {
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--accent-hover);
  font-size: 13px;
  margin-top: 24px;
}
.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;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: -80px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .resources {
    min-height: 490px;
  }
  .episode-tile {
    min-height: 47px;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 56px);
  }
  .anime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .watch-layout {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .resources {
    padding: 19px;
  }
  .episode-grid {
    gap: 6px;
  }
  .episode-details {
    align-items: start;
    flex-direction: column;
  }
  .watch-heading h1 {
    font-size: 28px;
  }
}
@media (max-width: 820px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .resources {
    min-height: 0;
  }
  .resources-bottom {
    padding-top: 24px;
  }
  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }
  .episode-details {
    flex-direction: row;
    align-items: center;
  }
  .anime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-intro {
    padding: 54px 0;
  }
  .protection-note p {
    font-size: 12px;
  }
  .resource-meta,
  .field-label,
  .download-caption {
    font-size: 11px;
  }
  .resources select {
    font-size: 14px;
  }
  .legal-page {
    margin-top: 40px;
  }
}
@media (max-width: 520px) {
  :root {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .site-header {
    min-height: 72px;
    padding-block: 14px;
  }
  .wordmark {
    font-size: 21px;
  }
  .library-intro {
    padding: 45px 0 40px;
  }
  .library-intro h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .search-form {
    width: 100%;
  }
  .search-form input {
    font-size: 16px;
  }
  .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .poster-monogram {
    font-size: 100px;
  }
  .poster-title {
    left: 14px;
    right: 14px;
    bottom: 18px;
    font-size: 21px;
  }
  .card-meta {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .anime-card h3 {
    font-size: 15px;
  }
  .breadcrumbs {
    margin: 21px 0;
    font-size: 11px;
  }
  .watch-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .watch-heading h1 {
    font-size: 27px;
  }
  .watch-heading .eyebrow {
    font-size: 9px;
  }
  .play-button {
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    box-shadow: none;
  }
  .play-button svg {
    width: 24px;
    height: 24px;
  }
  .player-title {
    font-size: 16px;
  }
  .player-subtitle {
    font-size: 11px;
    margin-top: 4px;
  }
  .press-play {
    display: none;
  }
  .player-toolbar {
    padding: 3px 10px;
    min-height: 50px;
  }
  .toolbar-actions {
    gap: 4px;
  }
  .episode-details {
    flex-direction: column;
    align-items: start;
    gap: 17px;
    margin-top: 24px;
  }
  .episode-details h2 {
    font-size: 22px;
  }
  .episode-navigation {
    width: 100%;
  }
  .episode-navigation .button {
    flex: 1;
  }
  .watching-label {
    font-size: 10px;
    gap: 7px;
  }
  .anime-description {
    font-size: 14px;
  }
  .player-feedback,
  .playback-help {
    font-size: 13px;
  }
  .resources {
    padding: 20px;
  }
  .protection-label {
    font-size: 11px;
  }
  .footer-inner {
    align-items: start;
    min-height: 90px;
    padding-top: 22px;
    gap: 12px;
    font-size: 11px;
  }
  .site-footer a {
    padding: 0;
  }
  .legal-page h1 {
    font-size: 42px;
  }
  .legal-page > p {
    font-size: 14px;
  }
  .legal-lead {
    font-size: 17px;
  }
  .empty-library {
    padding: 45px 20px;
  }
  .empty-library h3 {
    font-size: 19px;
  }
  .contact-box {
    padding: 16px;
  }
  .contact-box a {
    font-size: 14px;
  }
  main {
    padding-bottom: 48px;
  }
}
#site-content { display: flex; flex: 1; flex-direction: column; min-height: 100dvh; width: 100%; }
.access-pending #site-content,
.access-locked #site-content { visibility: hidden; }
.access-pending,
.access-locked { overflow: hidden; }
.site-access {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid #393046;
  border-radius: 20px;
  background: #141019;
  color: #f5f2fa;
  box-shadow: 0 24px 90px #0009;
  text-align: center;
}
.site-access::backdrop { background: #08070bf2; }
.access-pending .site-access,
.access-locked .site-access { display: block; position: fixed; inset: 0; margin: auto; z-index: 2147483647; }
.site-access[hidden] { display: none !important; }
.site-access h2 { font-size: clamp(24px, 5vw, 31px); line-height: 1.2; margin: 12px 0 16px; }
.site-access p { line-height: 1.65; color: #c7bfd1; }
.site-access .eyebrow { color: #bfa0f7; margin-top: 18px; }
.site-access-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; border-radius: 16px; background: #2b203a; color: #c4a1ff; }
.site-access-icon svg { width: 27px; height: 27px; }
.site-access-steps { padding-left: 24px; margin: 24px 0; text-align: left; color: #ddd6e6; font-size: 14px; line-height: 1.7; }
.site-access-steps li + li { margin-top: 10px; }
.site-access .button { width: 100%; min-height: 48px; white-space: normal; background: var(--accent); color: #100b18; font-size: 14px; font-weight: 700; cursor: pointer; }
.site-access .button:hover:not(:disabled) { background: var(--accent-hover); }
.site-access .button:disabled { opacity: .55; cursor: wait; }
.site-access .button:focus-visible { outline: 3px solid #dbc4ff; outline-offset: 4px; }
.site-access-status { min-height: 22px; margin: 14px 0 0; font-size: 13px; }
.site-check-probe { position: absolute; top: -10000px; left: -10000px; width: 1px; height: 1px; min-height: 1px; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
