/* DriveFlix UI · responsive desktop + mobile layout */
:root {
  --bg: #090b10;
  --bg-soft: #0f131c;
  --panel: #141923;
  --panel-strong: #1a2030;
  --line: #30394b;
  --line-soft: rgba(255,255,255,.10);
  --text: #f7f8fb;
  --muted: #aab3c3;
  --muted-strong: #c8cfdb;
  --brand: #e50914;
  --brand-hover: #ff3d47;
  --ok: #2fc98f;
  --warn: #f4bf4f;
  --danger: #ff757c;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 46px rgba(0,0,0,.34);
  --container: 1440px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -16%, rgba(68,76,111,.40), transparent 33rem),
    radial-gradient(circle at -16% 40%, rgba(105,10,20,.14), transparent 26rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
main { min-width: 0; }

.is-hidden, [hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 64px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(10,13,19,.90);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1rem;
  letter-spacing: .01em;
}
.brand strong { white-space: nowrap; }
.brand-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5660, var(--brand));
  box-shadow: 0 8px 18px rgba(229,9,20,.30);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--muted);
  font-size: .9rem;
}
.header-nav > a {
  padding: 8px 2px;
  white-space: nowrap;
}
.header-nav > a:hover { color: #fff; }
.logout-form { margin: 0; }
.user-pill {
  max-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #181e2a;
}
.user-pill span { color: var(--muted); }

/* Login / registration */
.auth-page, .auth-layout { min-height: calc(100vh - 20px); }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(40px, 8vw, 122px);
  width: min(1180px, calc(100% - 96px));
  margin: 36px auto 72px;
  padding: 44px 0;
}
.auth-hero { max-width: 620px; }
.eyebrow {
  margin: 0 0 10px;
  color: #ff9ba0;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}
.auth-hero .brand { margin-bottom: 26px; }
.auth-hero h1 {
  max-width: 680px;
  margin: 10px 0 20px;
  font-size: clamp(2.55rem, 5vw, 5.05rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}
.auth-hero > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.68;
}
.hero-points {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: #e3e8f2;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.auth-card, .panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(29,36,51,.97), rgba(15,19,28,.98));
  box-shadow: var(--shadow);
}
.auth-card { width: 100%; padding: clamp(24px, 3.5vw, 40px); }
.auth-card h2 { margin: 0 0 20px; font-size: 1.45rem; letter-spacing: -.02em; }

/* Inputs, forms and controls */
.stack-form, .content-form { display: grid; gap: 16px; }
.stack-form label, .content-form label {
  display: grid;
  gap: 8px;
  color: #e7ebf3;
  font-size: .88rem;
  font-weight: 760;
}
.stack-form small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.stack-form input,
.content-form input,
.content-form textarea,
.content-form select,
.inline-search input,
.inline-search select,
.episode-drive-form input,
.progress-panel input {
  width: 100%;
  min-height: 47px;
  border: 1px solid #3a455a;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: #fff;
  outline: none;
  background: #0d1119;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.stack-form input:focus,
.content-form input:focus,
.content-form textarea:focus,
.content-form select:focus,
.inline-search input:focus,
.inline-search select:focus,
.episode-drive-form input:focus,
.progress-panel input:focus {
  border-color: #ff6870;
  background: #10151f;
  box-shadow: 0 0 0 3px rgba(229,9,20,.16);
}
textarea { min-height: 112px; resize: vertical; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.2;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--brand-hover), var(--brand)); }
.button-secondary { color: #fff; border-color: #3b465b; background: #252d3d; }
.button-ghost { color: #eaf0fa; border-color: #3c465a; background: transparent; }
.button-danger { color: #ffdce0; border-color: #863f49; background: #48262c; }
.button-wide { width: 100%; }
.button-pair { display: flex; flex-wrap: wrap; gap: 9px; }
.tab-buttons {
  display: flex;
  margin: -4px 0 26px;
  border-bottom: 1px solid var(--line);
}
.tab-button {
  flex: 1;
  min-height: 43px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 850;
  background: transparent;
}
.tab-button.is-active { border-bottom-color: var(--brand); color: #fff; }
.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #364056;
  border-radius: var(--radius-sm);
  color: #e8edf6;
  font-size: .9rem;
  line-height: 1.45;
  background: #202738;
}
.alert-success { border-color: #2c765f; color: #d5ffec; background: #10392d; }
.alert-error { border-color: #874047; color: #ffd9dd; background: #48262b; }

/* Shared footer */
.tmdb-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 64px));
  margin: 42px auto 26px;
  padding: 21px 2px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8d97aa;
  font-size: .78rem;
  line-height: 1.5;
}
.tmdb-footer p { margin: 0; }
.tmdb-footer a { flex: 0 0 auto; color: #d7dce8; text-decoration: underline; }

/* Catalog */
.catalog-page, .detail-page {
  width: min(var(--container), calc(100% - 64px));
  margin: 24px auto 0;
  padding-bottom: 12px;
}
.catalog-hero, .detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(9,11,16,.98) 0%, rgba(9,11,16,.78) 38%, rgba(9,11,16,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%),
    var(--hero-image),
    #151a24;
  background-position: center;
  background-size: cover;
}
.catalog-hero-content, .detail-hero-content { position: relative; z-index: 1; max-width: 690px; }
.catalog-hero h1, .detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.catalog-hero p:not(.eyebrow), .detail-overview {
  margin: 0 0 20px;
  color: #d2d9e7;
  font-size: 1rem;
  line-height: 1.62;
}
.catalog-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px 5px;
}
.search-control {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(530px, 100%);
  min-height: 48px;
  border: 1px solid #374155;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: #111722;
}
.search-control span { color: var(--muted); font-size: 1.15rem; }
.search-control input { width: 100%; border: 0; padding: 12px 0; color: #fff; outline: none; background: transparent; }
.catalog-count { flex: 0 0 auto; color: var(--muted); font-size: .85rem; }
.catalog-row { padding: 25px 4px 4px; }
.section-title {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.026em; }
.section-title span { color: var(--muted); font-size: .8rem; }
.card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(152px, 14.4vw);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 16px;
  scroll-snap-type: inline proximity;
  scrollbar-color: #3d4659 transparent;
  scrollbar-width: thin;
}
.card-rail::-webkit-scrollbar { height: 8px; }
.card-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: #3c4659; }
.media-card { min-width: 0; scroll-snap-align: start; }
.media-card-link { display: grid; gap: 8px; }
.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #202633;
  box-shadow: 0 11px 24px rgba(0,0,0,.24);
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-card:hover .poster-frame img { transform: scale(1.055); }
.poster-empty { display: grid; height: 100%; place-items: center; color: #9aa5b6; font-size: .8rem; background: linear-gradient(135deg, #252c3a, #151a23); }
.play-badge { position: absolute; bottom: 9px; left: 9px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; font-size: .8rem; background: rgba(7,8,11,.80); backdrop-filter: blur(6px); }
.watch-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand) var(--progress), rgba(255,255,255,.22) var(--progress)); }
.media-card-copy { display: grid; min-width: 0; gap: 2px; }
.media-card-copy strong { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.media-card-copy small { color: var(--muted); font-size: .78rem; }
.empty-state { max-width: 620px; margin: 40px auto; padding: 35px; border: 1px dashed #434e63; border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(20,24,33,.65); }
.empty-state h2, .empty-state h3 { margin: 0 0 9px; color: #fff; }
.empty-state p { margin: 0 0 18px; line-height: 1.55; }
.empty-state.compact { margin: 14px 0; padding: 24px; }
.top-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); color: #d8ffef; background: #113b2d; }

/* Detail / series page */
.detail-hero { min-height: 500px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 13px; color: #dfe4ed; font-size: .88rem; }
.meta-line span { padding-right: 9px; border-right: 1px solid rgba(255,255,255,.25); }
.meta-line span:last-child { padding-right: 0; border-right: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.tag-list span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #e6e9f1; font-size: .75rem; }
.detail-section { padding: 32px 4px 0; }
.season-block { padding: 20px 0 4px; border-top: 1px solid var(--line); }
.season-block h3 { margin: 0 0 12px; }
.episode-row { display: grid; grid-template-columns: 175px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.episode-thumb { display: grid; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; place-items: center; color: #dfe5ed; background: #202635; }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-info { min-width: 0; }
.episode-title { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.episode-title strong { font-size: .95rem; }
.episode-title span, .episode-info small { color: var(--muted); font-size: .78rem; }
.episode-info p { margin: 7px 0; color: #bac3d2; font-size: .86rem; line-height: 1.5; }
.unavailable { color: #939daf; font-size: .86rem; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px; }
.cast-item { display: grid; gap: 5px; }
.cast-item img, .cast-avatar { aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; background: #252b38; }
.cast-avatar { display: grid; place-items: center; color: #bdc6d6; font-size: 1.5rem; }
.cast-item strong { font-size: .84rem; line-height: 1.2; }
.cast-item small { color: var(--muted); font-size: .73rem; }

/* Player */
.watch-page { width: min(1300px, calc(100% - 64px)); margin: 24px auto 0; padding: 8px 0 44px; }
.back-link { display: inline-block; margin: 6px 0 18px; color: #c8d0de; font-size: .9rem; }
.back-link:hover { color: #fff; }
.watch-header h1 { margin: 0 0 18px; font-size: clamp(1.35rem, 2.6vw, 2.15rem); letter-spacing: -.035em; }
.video-shell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #000; box-shadow: var(--shadow); }
.video-shell iframe { position: absolute; width: 100%; height: 100%; border: 0; inset: 0; }
.watch-information { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); gap: 30px; padding: 28px 0; }
.watch-information h2 { margin: 0 0 10px; font-size: 1.2rem; }
.watch-information p { margin: 0; color: #bbc4d2; line-height: 1.62; }
.progress-panel { display: grid; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #151a25; }
.progress-panel strong { font-size: 1.28rem; }
.progress-panel label { display: grid; gap: 7px; color: #dce3ef; font-size: .84rem; font-weight: 750; }
.notice-box { padding: 13px 15px; border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; color: #f6e5b5; font-size: .86rem; line-height: 1.55; background: #2d291b; }

/* Admin */
.admin-page { width: min(1450px, calc(100% - 64px)); margin: 24px auto 0; padding: 8px 0 50px; }
.admin-titlebar { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 6px 0 25px; }
.admin-titlebar h1 { margin: 0 0 5px; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.06em; }
.admin-titlebar p { margin: 0; color: var(--muted); line-height: 1.55; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.panel-card { margin: 0 0 18px; padding: 23px; }
.panel-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.panel-heading p { margin-bottom: 6px; }
.status-dot { display: inline-flex; flex: 0 0 auto; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid #72542b; border-radius: 999px; color: #f9cc86; font-size: .76rem; white-space: nowrap; }
.status-dot::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: #e3a438; }
.status-dot.is-on { border-color: #31725d; color: #bfead9; }
.status-dot.is-on::before { background: var(--ok); }
.compact-form { max-width: 520px; }
.tmdb-attribution-box { display: grid; gap: 3px; margin-top: 18px; padding: 11px 12px; border-radius: 9px; color: #bac3d2; font-size: .77rem; background: #0f131c; }
.inline-search { display: grid; grid-template-columns: 155px minmax(0, 1fr) auto; gap: 9px; }
.tmdb-results { display: grid; max-height: 430px; gap: 8px; margin-top: 13px; overflow: auto; }
.tmdb-result { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid #2e3647; border-radius: 9px; background: #10141d; }
.tmdb-result img, .tmdb-result .tmdb-result-image { width: 48px; height: 70px; border-radius: 5px; object-fit: cover; background: #242b38; }
.tmdb-result div { min-width: 0; }
.tmdb-result strong, .tmdb-result small { display: block; }
.tmdb-result small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.content-editor { scroll-margin-top: 110px; }
.content-form { gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.form-grid label.wide { grid-column: span 2; }
.form-grid textarea { min-height: 130px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.checkbox-line { display: inline-flex; gap: 7px; align-items: center; color: #dce3ef; font-size: .86rem; }
.checkbox-line.mini { font-size: .78rem; white-space: nowrap; }
.manager-card { padding-bottom: 8px; }
.admin-media-list { display: grid; gap: 8px; }
.admin-media-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.admin-thumb { width: 48px; height: 68px; overflow: hidden; border-radius: 6px; background: #242b37; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-item strong, .admin-media-item small { display: block; }
.admin-media-item small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.admin-item-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.admin-item-actions form { margin: 0; }
.season-admin { padding: 0; overflow: hidden; }
.season-admin .panel-heading { margin: 0; padding: 20px 22px; background: rgba(255,255,255,.025); }
.season-admin .form-help { padding: 0 22px 18px; }
.episode-admin-list { display: grid; }
.episode-admin-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(400px,1.6fr); gap: 15px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.episode-admin-title strong, .episode-admin-title small { display: block; }
.episode-admin-title small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.episode-drive-form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; }
.file-note, .form-help { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.48; }

/* Credits / installer */
.check-list { display: grid; gap: 8px; padding: 0; margin: 0 0 20px; list-style: none; }
.check-list li { display: flex; gap: 8px; align-items: center; color: #dfe6f2; font-size: .9rem; }
.check-list li span { width: 21px; font-weight: 900; text-align: center; }
.check-list .is-ok span { color: var(--ok); }
.check-list .is-bad span { color: var(--danger); }
.credits-page { width: min(820px, calc(100% - 64px)); margin: 30px auto 0; padding: 20px 0 50px; }
.credits-page h1 { margin: 0 0 14px; font-size: 2rem; }
.credits-page p { color: #c4ccda; line-height: 1.65; }

/* Tablets */
@media (max-width: 980px) {
  .site-header,
  .catalog-page,
  .detail-page,
  .admin-page,
  .watch-page,
  .tmdb-footer,
  .credits-page { width: min(100% - 40px, var(--container)); }
  .auth-layout { width: min(100% - 48px, 800px); grid-template-columns: 1fr; gap: 36px; padding: 22px 0; }
  .auth-hero { max-width: none; }
  .auth-card { max-width: 620px; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-rail { grid-auto-columns: minmax(145px, 25vw); }
  .episode-row { grid-template-columns: 145px minmax(0,1fr); }
  .episode-row > .button, .episode-row > .unavailable { grid-column: 2; justify-self: start; }
  .watch-information { grid-template-columns: 1fr; }
  .episode-admin-row { grid-template-columns: 1fr; }
  .tmdb-footer { display: grid; gap: 7px; }
}

/* Phones */
@media (max-width: 680px) {
  .site-header {
    top: 0;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 0 15px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .brand { gap: 8px; font-size: .94rem; }
  .brand-badge { width: 28px; height: 28px; border-radius: 8px; }
  .header-nav { gap: 5px; }
  .header-nav > a { display: none; }
  .user-pill { max-width: 143px; padding: 8px 10px; font-size: .82rem; }

  .auth-layout {
    width: 100%;
    min-height: auto;
    gap: 28px;
    margin: 0;
    padding: 31px 17px 48px;
  }
  .auth-hero .brand { margin-bottom: 22px; }
  .auth-hero h1 { margin-bottom: 16px; font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .auth-hero > p:not(.eyebrow) { font-size: 1rem; line-height: 1.6; }
  .hero-points { gap: 9px; margin-top: 22px; font-size: .93rem; }
  .auth-card { padding: 22px 18px; border-radius: 16px; }
  .auth-card h2 { font-size: 1.28rem; }
  .button { min-height: 48px; }

  .catalog-page, .detail-page, .admin-page, .watch-page, .credits-page, .tmdb-footer { width: calc(100% - 28px); }
  .catalog-page, .detail-page, .admin-page, .watch-page { margin-top: 14px; }
  .catalog-hero, .detail-hero { min-height: 410px; border-radius: 16px; padding: 32px 20px; }
  .catalog-hero h1, .detail-hero h1 { font-size: clamp(2rem, 10.4vw, 3.35rem); }
  .catalog-hero p:not(.eyebrow), .detail-overview { font-size: .95rem; line-height: 1.56; }
  .catalog-toolbar { display: block; padding: 18px 0 0; }
  .catalog-count { display: none; }
  .search-control { width: 100%; }
  .catalog-row, .detail-section { padding: 24px 0 0; }
  .card-rail { grid-auto-columns: minmax(124px, 43vw); gap: 11px; padding-bottom: 13px; }
  .section-title { align-items: center; }
  .section-title h2 { font-size: 1.15rem; }
  .empty-state { padding: 28px 20px; }

  .episode-row { grid-template-columns: 1fr; gap: 11px; }
  .episode-row > .button, .episode-row > .unavailable { grid-column: auto; }
  .episode-thumb { max-width: 260px; }
  .episode-title { align-items: flex-start; }
  .cast-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }

  .watch-page { padding-bottom: 38px; }
  .watch-header h1 { font-size: 1.3rem; }
  .video-shell { border-radius: 11px; }
  .watch-information { gap: 20px; padding: 21px 0; }
  .button-pair .button { flex: 1 1 140px; }

  .admin-titlebar { flex-direction: column; align-items: stretch; gap: 15px; }
  .admin-titlebar > .button { width: 100%; }
  .panel-card { padding: 17px; border-radius: 16px; }
  .panel-heading { gap: 12px; }
  .inline-search { grid-template-columns: 1fr; }
  .inline-search .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .form-actions { align-items: stretch; }
  .form-actions .button { width: 100%; }
  .admin-media-item { grid-template-columns: 40px minmax(0,1fr); }
  .admin-thumb { width: 38px; height: 54px; }
  .admin-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .season-admin .panel-heading { flex-direction: column; padding: 17px; }
  .season-admin .form-help { padding: 0 17px 17px; }
  .episode-admin-row { padding: 14px 17px; }
  .episode-drive-form { grid-template-columns: 1fr; }
  .episode-drive-form .button { width: 100%; }
  .tmdb-result { grid-template-columns: 40px minmax(0,1fr); }
  .tmdb-result img, .tmdb-result .tmdb-result-image { width: 40px; height: 59px; }
  .tmdb-result .button { grid-column: 2; width: 100%; }
  .tmdb-footer { margin: 30px auto 20px; padding-top: 18px; }
  .credits-page { padding-bottom: 36px; }
}

@media (max-width: 390px) {
  .auth-layout { padding-right: 14px; padding-left: 14px; }
  .catalog-page, .detail-page, .admin-page, .watch-page, .credits-page, .tmdb-footer { width: calc(100% - 24px); }
  .catalog-hero, .detail-hero { padding: 28px 16px; }
  .card-rail { grid-auto-columns: minmax(118px, 48vw); }
  .cast-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .status-dot { font-size: .7rem; }
}

/* Episode manager update */
.panel-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}
.drive-url-field small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 550;
  line-height: 1.45;
}
.drive-url-field.is-series-mode {
  border: 1px solid rgba(244,191,79,.24);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(244,191,79,.05);
}
.series-next-step {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(47,201,143,.35);
  border-radius: var(--radius-sm);
  background: rgba(47,201,143,.08);
}
.series-next-step div { display: grid; gap: 3px; }
.series-next-step span { color: var(--muted-strong); font-size: .86rem; line-height: 1.45; }
.episode-manager-card {
  border-color: rgba(229,9,20,.38);
  background:
    linear-gradient(145deg, rgba(45,27,36,.97), rgba(17,22,33,.98));
}
.series-manager-item .button-primary {
  box-shadow: 0 8px 20px rgba(229,9,20,.22);
}
.episode-admin-page .admin-titlebar {
  align-items: center;
}
.episode-flow-box { margin-bottom: 18px; }
.episode-tools-grid { align-items: start; }
.episode-manual-form { gap: 16px; }
.compact-episode-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.compact-episode-grid label.wide { grid-column: span 2; }
.editable-episode-row {
  grid-template-columns: minmax(220px,.8fr) minmax(480px,1.6fr) auto;
  align-items: start;
}
.episode-edit-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.episode-edit-grid {
  display: grid;
  grid-template-columns: 110px 110px minmax(180px,1fr) 110px;
  gap: 9px;
}
.episode-edit-grid label {
  display: grid;
  gap: 6px;
  color: #e7ebf3;
  font-size: .74rem;
  font-weight: 780;
}
.episode-edit-grid label.wide { grid-column: span 2; }
.episode-edit-grid input,
.episode-edit-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #3a455a;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: #fff;
  outline: none;
  background: #0d1119;
}
.episode-edit-grid textarea { min-height: 78px; resize: vertical; }
.episode-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.delete-episode-form { margin: 0; }
.delete-episode-form .button { white-space: nowrap; }

@media (max-width: 1180px) {
  .editable-episode-row { grid-template-columns: 1fr; }
  .delete-episode-form { justify-self: start; }
}

@media (max-width: 980px) {
  .compact-episode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .episode-edit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .panel-heading-actions { justify-content: stretch; }
  .panel-heading-actions .button { flex: 1 1 100%; width: 100%; }
  .series-next-step { flex-direction: column; align-items: stretch; }
  .series-next-step .button { width: 100%; }
  .compact-episode-grid { grid-template-columns: 1fr; }
  .compact-episode-grid label.wide { grid-column: auto; }
  .episode-edit-grid { grid-template-columns: 1fr; }
  .episode-edit-grid label.wide { grid-column: auto; }
  .episode-row-actions { justify-content: stretch; }
  .episode-row-actions .button,
  .delete-episode-form,
  .delete-episode-form .button { width: 100%; }
}

/* Player mobile/tablet correction · 20260708 */
body.watch-mode {
  overflow-x: hidden;
  background: #07090d;
}
body.watch-mode .site-header {
  width: min(1300px, calc(100vw - 64px));
}
.watch-page {
  max-width: 100vw;
}
.video-shell {
  width: 100%;
  max-width: 100%;
  contain: layout paint;
}
.video-shell iframe {
  display: block;
  max-width: 100%;
  background: #000;
}
.watch-information,
.progress-panel,
.notice-box {
  min-width: 0;
}
.progress-panel input {
  max-width: 100%;
}

@media (max-width: 980px) {
  body.watch-mode .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  body.watch-mode .watch-page {
    width: 100%;
    margin-top: 0;
    padding: 0 20px 42px;
  }
  body.watch-mode .back-link {
    margin-top: 18px;
  }
  body.watch-mode .video-shell {
    aspect-ratio: auto;
    height: calc((100vw - 40px) * .5625 + 62px);
    min-height: 265px;
    max-height: 72vh;
    border-radius: 12px;
  }
  body.watch-mode .watch-information {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  body.watch-mode .site-header {
    min-height: 56px;
    padding: 0 13px;
  }
  body.watch-mode .watch-page {
    width: 100%;
    margin: 0;
    padding: 0 0 34px;
  }
  body.watch-mode .back-link,
  body.watch-mode .watch-header,
  body.watch-mode .watch-information,
  body.watch-mode .notice-box {
    width: calc(100% - 28px);
    margin-right: auto;
    margin-left: auto;
  }
  body.watch-mode .back-link {
    margin-top: 14px;
    margin-bottom: 12px;
  }
  body.watch-mode .watch-header h1 {
    margin-bottom: 13px;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    line-height: 1.22;
  }
  body.watch-mode .video-shell {
    left: 50%;
    width: 100vw;
    height: calc(100vw * .5625 + 62px);
    min-height: 260px;
    max-height: 74vh;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(-50%);
  }
  body.watch-mode .video-shell iframe {
    width: 100%;
    height: 100%;
  }
  body.watch-mode .watch-information {
    padding-top: 19px;
  }
  body.watch-mode .progress-panel {
    padding: 16px;
    border-radius: 13px;
  }
  body.watch-mode .progress-panel strong {
    font-size: 1.08rem;
  }
  body.watch-mode .notice-box {
    margin-top: 4px;
    font-size: .8rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.watch-mode .site-header {
    position: relative;
    min-height: 50px;
  }
  body.watch-mode .watch-page {
    padding-top: 0;
  }
  body.watch-mode .watch-header h1 {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  body.watch-mode .back-link {
    margin-top: 10px;
    margin-bottom: 8px;
  }
  body.watch-mode .video-shell {
    aspect-ratio: auto;
    height: min(56.25vw, calc(100vh - 112px));
    min-height: 190px;
  }
}

@supports (height: 100dvh) {
  @media (orientation: landscape) and (max-height: 560px) {
    body.watch-mode .video-shell {
      height: min(56.25vw, calc(100dvh - 112px));
    }
  }
}

/* Drive preview mobile chrome fix · 20260708b
   Google Drive adds its own control bar inside iframe on Android.
   Extra height prevents the internal video from being squeezed. */
@media (max-width: 430px) {
  body.watch-mode .video-shell {
    height: calc(100vw * .5625 + 68px);
    min-height: 270px;
  }
  body.watch-mode .watch-information h2 {
    font-size: 1.05rem;
  }
  body.watch-mode .watch-information p {
    font-size: .96rem;
    line-height: 1.7;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.watch-mode .video-shell {
    height: min(calc(56.25vw + 48px), calc(100vh - 112px));
  }
}

@supports (height: 100dvh) {
  @media (orientation: landscape) and (max-height: 560px) {
    body.watch-mode .video-shell {
      height: min(calc(56.25vw + 48px), calc(100dvh - 112px));
    }
  }
}

/* Google Drive mobile touch guard · 20260708c
   Google Drive iframe darkens the embedded video on Android when it receives touch events.
   This layer intercepts accidental touches/scrolls and enables Drive controls only on demand. */
.drive-video-shell { isolation: isolate; }
.mobile-drive-guard { display: none; }
.drive-video-shell.is-drive-locked iframe { pointer-events: none; }
.drive-video-shell.is-drive-unlocked iframe { pointer-events: auto; }

@media (hover: none), (pointer: coarse) {
  body.watch-mode .drive-video-shell .mobile-drive-guard {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    pointer-events: auto;
    touch-action: pan-y;
    background: linear-gradient(180deg, transparent 0%, transparent 52%, rgba(0,0,0,.52) 100%);
    transition: opacity .18s ease, visibility .18s ease;
  }
  body.watch-mode .drive-video-shell.is-drive-unlocked .mobile-drive-guard {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.watch-mode .mobile-drive-panel {
    display: grid;
    width: min(94vw, 560px);
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    color: #fff;
    background: rgba(11, 15, 24, .86);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  body.watch-mode .mobile-drive-panel strong {
    font-size: .86rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  body.watch-mode .mobile-drive-panel span {
    color: #d7deeb;
    font-size: .78rem;
    line-height: 1.45;
  }
  body.watch-mode .mobile-drive-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.watch-mode .mobile-drive-actions .button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: .78rem;
  }
}

@media (hover: none) and (max-width: 430px), (pointer: coarse) and (max-width: 430px) {
  body.watch-mode .drive-video-shell .mobile-drive-guard { padding: 9px; }
  body.watch-mode .mobile-drive-panel {
    gap: 7px;
    padding: 10px;
    border-radius: 14px;
  }
  body.watch-mode .mobile-drive-panel span { font-size: .72rem; }
  body.watch-mode .mobile-drive-actions { grid-template-columns: 1fr; }
  body.watch-mode .mobile-drive-actions .button { min-height: 40px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.watch-mode .mobile-drive-panel span { display: none; }
  body.watch-mode .mobile-drive-panel { width: min(78vw, 620px); }
  body.watch-mode .mobile-drive-actions { grid-template-columns: 1fr 1fr; }
}

/* Video.js player replacement · 20260708-videojs-a */
.videojs-shell {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  background: #000;
}
.videojs-shell .video-js,
.videojs-shell .vjs-tech {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.videojs-shell .video-js {
  border-radius: inherit;
  overflow: hidden;
  background: #000;
  font-family: inherit;
}
.videojs-shell .vjs-poster img { object-fit: cover; }
.videojs-shell .vjs-big-play-button {
  top: 50% !important;
  left: 50% !important;
  width: 76px !important;
  height: 76px !important;
  margin-top: -38px !important;
  margin-left: -38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(229, 9, 20, .94) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.videojs-shell .vjs-control-bar {
  min-height: 44px;
  padding: 0 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88)) !important;
}
.videojs-shell .vjs-play-progress,
.videojs-shell .vjs-volume-level {
  background: var(--brand) !important;
}
.videojs-shell .vjs-load-progress div { background: rgba(255,255,255,.34) !important; }
.player-support-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: #c7d0df;
  font-size: .82rem;
  line-height: 1.45;
  background: rgba(18,23,34,.82);
}
.player-support-box strong { color: #fff; }
.player-support-box a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
body.watch-mode .notice-box { margin-top: 16px; }

@media (max-width: 680px) {
  body.watch-mode .videojs-shell {
    left: 50%;
    width: 100vw;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    transform: translateX(-50%);
  }
  body.watch-mode .videojs-shell .vjs-big-play-button {
    width: 58px !important;
    height: 58px !important;
    margin-top: -29px !important;
    margin-left: -29px !important;
  }
  body.watch-mode .videojs-shell .vjs-control-bar {
    min-height: 38px;
    padding: 0 4px;
    font-size: 11px;
  }
  .player-support-box {
    width: calc(100% - 28px);
    margin-right: auto;
    margin-left: auto;
    font-size: .76rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.watch-mode .videojs-shell {
    width: min(100%, calc((100vh - 112px) * 1.777));
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Fix Video.js + Google Drive fallback · 20260708-videojs-b */
.videojs-shell .drive-fallback-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #000;
}
.videojs-shell .drive-fallback-layer[hidden] { display: none !important; }
.videojs-shell .drive-fallback-layer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.videojs-shell.is-using-drive-fallback .video-js {
  visibility: hidden;
  pointer-events: none;
}
.button-small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: .78rem;
}
@media (max-width: 680px) {
  .player-support-box .button-small { width: 100%; }
  .player-support-box a { display: inline-flex; align-items: center; min-height: 34px; }
}

/* Corrección final reproductor móvil/tablet · 20260709-mobile-player-final
   Mantiene Video.js / respaldo Drive dentro de un marco 16:9 real, sin desbordes en Android/iOS. */
html, body { max-width: 100%; overflow-x: hidden; }
body.watch-mode { min-width: 0; }
body.watch-mode .watch-page {
  width: min(1300px, calc(100vw - 48px));
  max-width: 100%;
  margin-inline: auto;
}
body.watch-mode .video-shell.videojs-shell {
  position: relative !important;
  left: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  transform: none !important;
  background: #000 !important;
  contain: layout paint style;
}
body.watch-mode .videojs-shell .video-js,
body.watch-mode .videojs-shell .vjs-tech,
body.watch-mode .videojs-shell .drive-fallback-layer,
body.watch-mode .videojs-shell .drive-fallback-layer iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  object-fit: contain !important;
  background: #000 !important;
}
body.watch-mode .videojs-shell .video-js {
  border-radius: inherit !important;
  overflow: hidden !important;
}
body.watch-mode .videojs-shell .vjs-poster img,
body.watch-mode .videojs-shell .vjs-tech {
  object-fit: contain !important;
}
body.watch-mode .videojs-shell .vjs-big-play-button {
  z-index: 6 !important;
}
body.watch-mode .videojs-shell .vjs-control-bar {
  z-index: 7 !important;
}
body.watch-mode .player-support-box,
body.watch-mode .notice-box,
body.watch-mode .watch-information {
  max-width: 100%;
  min-width: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  body.watch-mode .video-shell.videojs-shell {
    height: 0 !important;
    padding-top: 56.25% !important;
  }
}

@media (max-width: 900px) {
  body.watch-mode .site-header {
    width: 100% !important;
    margin: 0 !important;
    border-top: 0 !important;
    border-inline: 0 !important;
    border-radius: 0 !important;
  }
  body.watch-mode .watch-page {
    width: calc(100vw - 24px) !important;
    margin-top: 12px !important;
    padding-inline: 0 !important;
  }
  body.watch-mode .watch-header h1 {
    margin-bottom: 12px !important;
    font-size: clamp(1.05rem, 4.6vw, 1.45rem) !important;
    line-height: 1.22 !important;
  }
  body.watch-mode .video-shell.videojs-shell {
    border-radius: 12px !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.34) !important;
  }
  body.watch-mode .watch-information {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding-top: 18px !important;
  }
}

@media (max-width: 560px) {
  body.watch-mode .site-header {
    min-height: 56px !important;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)) !important;
  }
  body.watch-mode .watch-page {
    width: calc(100vw - 16px) !important;
    padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
  }
  body.watch-mode .back-link,
  body.watch-mode .watch-header,
  body.watch-mode .watch-information,
  body.watch-mode .notice-box,
  body.watch-mode .player-support-box {
    width: 100% !important;
    margin-inline: auto !important;
  }
  body.watch-mode .back-link {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  body.watch-mode .video-shell.videojs-shell {
    width: 100% !important;
    border-radius: 10px !important;
  }
  body.watch-mode .videojs-shell .vjs-big-play-button {
    width: 56px !important;
    height: 56px !important;
    margin-top: -28px !important;
    margin-left: -28px !important;
    line-height: 56px !important;
  }
  body.watch-mode .videojs-shell .vjs-control-bar {
    min-height: 42px !important;
    padding-inline: 3px !important;
    font-size: 10.5px !important;
  }
  body.watch-mode .videojs-shell .vjs-volume-panel,
  body.watch-mode .videojs-shell .vjs-picture-in-picture-control,
  body.watch-mode .videojs-shell .vjs-playback-rate,
  body.watch-mode .videojs-shell .vjs-remaining-time {
    display: none !important;
  }
  body.watch-mode .player-support-box {
    margin-top: 10px !important;
    padding: 10px 11px !important;
    font-size: .73rem !important;
  }
  body.watch-mode .player-support-box span:not(:first-of-type) {
    display: none !important;
  }
  body.watch-mode .player-support-box .button-small,
  body.watch-mode .player-support-box a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  body.watch-mode .notice-box {
    font-size: .78rem !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 380px) {
  body.watch-mode .watch-page { width: calc(100vw - 12px) !important; }
  body.watch-mode .videojs-shell .vjs-current-time,
  body.watch-mode .videojs-shell .vjs-time-divider,
  body.watch-mode .videojs-shell .vjs-duration {
    display: none !important;
  }
  body.watch-mode .videojs-shell .vjs-control-bar { min-height: 40px !important; }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.watch-mode .site-header {
    position: relative !important;
    min-height: 48px !important;
  }
  body.watch-mode .watch-page {
    width: min(100vw - 18px, calc((100dvh - 108px) * 1.777)) !important;
    margin-top: 8px !important;
  }
  body.watch-mode .back-link,
  body.watch-mode .watch-header {
    margin-bottom: 7px !important;
  }
  body.watch-mode .watch-header h1 {
    font-size: .98rem !important;
    margin-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.watch-mode .video-shell.videojs-shell {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
  }
  body.watch-mode .watch-information,
  body.watch-mode .notice-box,
  body.watch-mode .player-support-box {
    display: none !important;
  }
}
