:root {
  --ink: #171717;
  --muted: #777773;
  --soft: #f5f5f3;
  --line: #e5e5e0;
  --paper: #ffffff;
  --shadow: 0 16px 42px rgba(18, 18, 17, .08);
}

* { box-sizing: border-box; }

html { background: #f8f8f6; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: #f8f8f6;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

button,
input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  min-height: 100dvh;
  padding-bottom: 42px;
  background: #fff;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 76px;
  border-bottom: 1px solid rgba(228, 228, 223, .92);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
}

.app-header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(100%, 1380px);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 74px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #151515;
  direction: ltr;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 22px;
  object-fit: contain;
}

.brand span {
  font: 800 16px/1 Arial, sans-serif;
  letter-spacing: 1.7px;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(380px, 34vw);
  height: 40px;
  margin-right: auto;
  padding: 0 13px;
  border: 1px solid #e1e1dc;
  border-radius: 999px;
  background: #fafaf9;
  color: #888884;
  cursor: pointer;
  font-size: 11px;
  text-align: right;
  transition: border-color .2s ease, background .2s ease;
}

.search-button:hover { border-color: #c3c3bc; background: #fff; }
.search-button svg { width: 17px; height: 17px; color: #4e4e4a; }

.header-actions { display: flex; align-items: center; gap: 2px; }

.header-icon,
.profile-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #272725;
  cursor: pointer;
}

.header-icon svg,
.profile-button svg { width: 18px; height: 18px; stroke-width: 1.7; }

.profile-button {
  border: 1px solid #e2e2dd;
  border-radius: 50%;
  background: #fff;
}

.home-main {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding: 42px clamp(20px, 5vw, 74px) 80px;
}

.home-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 29px;
}

.home-welcome p,
.section-heading p {
  margin: 0 0 7px;
  color: #858581;
  font-size: 10px;
  font-weight: 600;
}

.home-welcome h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(29px, 3.2vw, 47px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.28;
}

.home-welcome span {
  display: block;
  margin-top: 10px;
  color: #777773;
  font-size: 12px;
}

.home-watch-button,
.featured-content button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  padding: 0 18px;
  border: 1px solid #151515;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-watch-button svg,
.featured-content button svg { width: 15px; height: 15px; fill: currentColor; }
.home-watch-button:hover,
.featured-content button:hover { box-shadow: 0 10px 21px rgba(20, 20, 18, .2); transform: translateY(-2px); }

.featured-show {
  position: relative;
  height: 368px;
  overflow: hidden;
  border-radius: 24px;
  background: #222;
  box-shadow: var(--shadow);
}

.featured-show > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(.79) contrast(1.05);
  transform: scale(1.02);
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .76)), linear-gradient(0deg, rgba(0, 0, 0, .44), transparent 58%);
}

.featured-content {
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(22px, 4vw, 42px);
  z-index: 1;
  color: #fff;
}

.featured-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.featured-content p { margin: 14px 0 3px; color: rgba(255, 255, 255, .7); font-size: 10px; }
.featured-content h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); letter-spacing: -1.8px; }
.featured-content small { display: block; margin-top: 6px; color: rgba(255, 255, 255, .85); font-size: 11px; }

.featured-content button {
  height: 38px;
  margin-top: 18px;
  border-color: #fff;
  background: #fff;
  color: #151515;
  font-size: 10px;
}

.app-section { margin-top: 52px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -1px; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #41413e;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.text-button svg { width: 14px; height: 14px; }

.portrait-rail {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scroll-snap-type: x mandatory;
}

.portrait-card {
  display: flex;
  flex: 0 0 178px;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: right;
}

.portrait-image {
  position: relative;
  display: block;
  height: 235px;
  overflow: hidden;
  border-radius: 17px;
  background: #ededeb;
  box-shadow: 0 6px 16px rgba(20, 20, 18, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portrait-card:hover .portrait-image { box-shadow: 0 15px 26px rgba(20, 20, 18, .14); transform: translateY(-4px); }

.portrait-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .44), transparent 42%);
}

.portrait-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.84) contrast(1.03); }

.portrait-image em {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #20201e;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.portrait-card strong { font-size: 13px; }
.portrait-card small { color: #858581; font-size: 10px; }

.continue-section { padding-top: 34px; border-top: 1px solid var(--line); }

.story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.story-row {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 87px;
  padding: 9px;
  border: 1px solid #e6e6e1;
  border-radius: 17px;
  background: #fff;
  color: #20201e;
  cursor: pointer;
  text-align: right;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.story-row:hover { border-color: #c9c9c3; box-shadow: 0 10px 24px rgba(20, 20, 18, .07); transform: translateY(-2px); }
.story-row-image { display: block; height: 69px; overflow: hidden; border-radius: 12px; background: #eee; }
.story-row-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.story-row-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.story-row-copy b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.story-row-copy small { color: #858581; font-size: 9px; }
.story-row > svg { width: 17px; height: 17px; color: #666661; }

.story-progress { display: block; width: 100%; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #ecece8; }
.story-progress i { display: block; width: 31%; height: 100%; border-radius: inherit; background: #171717; }
.story-progress.is-complete i { width: 100%; }

.mobile-nav { display: none; }

.reel-viewer {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  background: #f4f4f1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .28s;
}

.reel-viewer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .2s ease, visibility 0s; }

.viewer-shell {
  position: relative;
  width: min(100%, 620px);
  height: 100dvh;
  margin: 0 auto;
  background: #0d0d0f;
}

.viewer-topbar {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  color: #fff;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.viewer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.viewer-back {
  position: absolute;
  z-index: 7;
  top: max(17px, env(safe-area-inset-top));
  left: 18px;
  gap: 4px;
  min-width: 72px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(18, 18, 18, .25);
  font-size: 10px;
  transition: opacity .22s ease, transform .22s ease, background .18s ease;
  backdrop-filter: blur(10px);
}

.viewer-back svg { width: 16px; height: 16px; }

.reel-track {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.reel-slide {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #111;
}

.reel-image,
.reel-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(.79) contrast(1.08);
  transition: filter .3s ease, transform .36s ease;
}

.reel-video { object-position: center; }

.reel-slide.is-locked .reel-image,
.reel-slide.is-locked .reel-video { filter: saturate(.5) contrast(1.04) blur(5px); transform: scale(1.045); }

.reel-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .53), transparent 35%), linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .05) 60%);
}

.reel-slide.is-locked .reel-veil { background: linear-gradient(180deg, rgba(0, 0, 0, .63), rgba(0, 0, 0, .55)); }

.reel-side-actions { position: absolute; z-index: 3; bottom: 105px; left: 15px; display: grid; gap: 13px; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.social-action,
.social-stat { display: flex; width: 48px; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #fff; font-family: inherit; }
.social-action { cursor: pointer; pointer-events: auto; }
.social-action > span:first-child,
.social-stat > span:first-child { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; background: rgba(18, 18, 18, .28); backdrop-filter: blur(10px); transition: transform .18s ease, color .18s ease, background .18s ease; }
.social-action:hover > span:first-child { transform: scale(1.07); }
.social-action.is-liked > span:first-child { background: #fff; color: #181818; }
.social-action svg,
.social-stat svg { width: 18px; height: 18px; }
.social-action b,
.social-stat b { color: rgba(255, 255, 255, .93); font-size: 9px; font-weight: 700; line-height: 1; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.playback-indicator { position: absolute; z-index: 5; top: 50%; right: 50%; display: grid; width: 58px; height: 58px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .44); border-radius: 50%; background: rgba(16, 16, 16, .4); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transform: translate(50%, -50%) scale(.85); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(12px); }
.playback-indicator svg { width: 25px; height: 25px; }
.reel-viewer.is-paused .playback-indicator { opacity: 1; pointer-events: auto; transform: translate(50%, -50%) scale(1); }

.viewer-speed-badge { position: absolute; z-index: 8; top: 50%; right: 50%; display: grid; width: 60px; height: 60px; place-items: center; border: 1px solid rgba(255, 255, 255, .36); border-radius: 50%; background: rgba(18, 18, 18, .56); color: #fff; font-size: 18px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(50%, -50%) scale(.82); transition: opacity .16s ease, transform .16s ease; backdrop-filter: blur(12px); }
.reel-viewer.is-speeding .viewer-speed-badge { opacity: 1; transform: translate(50%, -50%) scale(1); }

.reel-viewer.controls-hidden .viewer-topbar,
.reel-viewer.controls-hidden .reel-side-actions,
.reel-viewer.controls-hidden .reel-episodes-button { opacity: 0; pointer-events: none; }
.reel-viewer.controls-hidden .viewer-topbar *,
.reel-viewer.controls-hidden .reel-side-actions * { pointer-events: none !important; }
.reel-viewer.controls-hidden .viewer-topbar { transform: translateY(-8px); }
.reel-viewer.controls-hidden .reel-side-actions { transform: translateX(-9px); }
.reel-viewer.controls-hidden .reel-episodes-button { transform: translateY(12px); }

.reel-episodes-button {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 18px;
  background: rgba(20, 20, 20, .48);
  color: #fff;
  cursor: pointer;
  text-align: right;
  backdrop-filter: blur(15px);
  transition: opacity .22s ease, transform .22s ease, background .18s ease;
}

.reel-episodes-button span { display: block; color: rgba(255, 255, 255, .68); font-size: 9px; }
.reel-episodes-button b { display: block; margin-top: 2px; font-size: 12px; }
.reel-episodes-button svg { width: 19px; height: 19px; }

.locked-gate {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 25px;
  left: 25px;
  padding: 21px 19px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 22px;
  background: rgba(20, 20, 20, .55);
  color: #fff;
  text-align: right;
  transform: translateY(-45%);
  backdrop-filter: blur(16px);
}

.locked-gate[hidden] { display: none; }

.locked-gate > svg { width: 23px; height: 23px; }
.locked-gate b { display: block; margin-top: 10px; font-size: 15px; }
.locked-gate p { margin: 6px 0 0; color: rgba(255, 255, 255, .76); font-size: 10px; line-height: 1.8; }
.locked-gate button { display: inline-flex; align-items: center; gap: 6px; height: 35px; margin-top: 15px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: #181818; cursor: pointer; font-size: 10px; font-weight: 700; }
.locked-gate button svg { width: 14px; height: 14px; }

.viewer-desktop-note { display: none; }

.episode-scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .23s ease, visibility 0s linear .23s;
  backdrop-filter: blur(2px);
}

.episode-scrim.is-open { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .23s ease, visibility 0s; }

.episode-sheet {
  position: fixed;
  z-index: 70;
  bottom: 0;
  left: 50%;
  width: min(100%, 620px);
  max-height: min(77dvh, 690px);
  overflow-y: auto;
  padding: 9px 20px calc(26px + env(safe-area-inset-bottom));
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  transition: transform .33s cubic-bezier(.2, .85, .28, 1), opacity .2s ease;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.episode-sheet.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.episode-sheet.is-dragging { transition: none; }
.episode-sheet.is-open.is-dragging { transform: translate(-50%, var(--sheet-drag-y, 0px)); }

.sheet-handle { position: relative; width: 76px; height: 22px; margin: -5px auto 0; cursor: grab; touch-action: none; }
.sheet-handle::after { content: ""; position: absolute; top: 10px; right: 50%; width: 39px; height: 4px; border-radius: 999px; background: #d4d4cf; transform: translateX(50%); }

.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 15px; border-bottom: 1px solid var(--line); }
.sheet-header p { margin: 0 0 3px; color: #858581; font-size: 9px; }
.sheet-header h2 { margin: 0; font-size: 20px; letter-spacing: -.8px; }
.sheet-close { display: grid; width: 35px; height: 35px; place-items: center; padding: 0; border: 1px solid #e0e0db; border-radius: 50%; background: #fff; color: #222; cursor: pointer; }
.sheet-close svg { width: 17px; height: 17px; }

.sheet-tabs { display: inline-flex; gap: 3px; margin-top: 15px; padding: 3px; border: 1px solid #e5e5e0; border-radius: 999px; background: #f6f6f4; }
.sheet-tabs button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #777773; cursor: pointer; font-size: 10px; font-weight: 700; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.sheet-tabs button.active { background: #151515; color: #fff; box-shadow: 0 3px 9px rgba(20, 20, 18, .15); }

.sheet-content { min-height: 160px; padding-top: 19px; }

.episodes-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.episodes-caption b { font-size: 12px; }
.episodes-caption span { color: #858581; font-size: 9px; }

.episode-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

.episode-tile {
  position: relative;
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e1dc;
  border-radius: 15px;
  background: #fff;
  color: #282826;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.episode-tile:hover { border-color: #acaca6; transform: translateY(-2px); }
.episode-tile.is-current { border-color: #151515; background: #151515; color: #fff; box-shadow: 0 7px 16px rgba(20, 20, 18, .16); }
.episode-tile.is-locked { border-color: #ecece7; background: #f6f6f4; color: #a0a09b; }
.episode-tile.is-locked svg { position: absolute; top: 7px; left: 7px; width: 13px; height: 13px; color: #777773; }
.episode-tile.is-locked.is-current { border-color: #151515; background: #151515; color: #fff; box-shadow: 0 7px 16px rgba(20, 20, 18, .16); }
.episode-tile.is-locked.is-current svg { color: rgba(255, 255, 255, .78); }
.episode-tile small { position: absolute; right: 50%; bottom: 5px; color: currentColor; font-size: 7px; font-weight: 600; transform: translateX(50%); }

.free-note { display: flex; align-items: center; gap: 7px; margin: 14px 1px 0; color: #777773; font-size: 9px; }
.free-note i { width: 6px; height: 6px; border-radius: 50%; background: #171717; }

.subscription-card,
.upgrade-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e3e3de;
  border-radius: 19px;
  background: #f7f7f5;
}

.subscription-card { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px; }
.subscription-card p { margin: 0 0 3px; color: #858581; font-size: 9px; }
.subscription-card b { display: block; font-size: 11px; }
.subscribe-cta,
.upgrade-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 0 12px; border: 0; border-radius: 999px; background: #151515; color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.subscribe-cta svg,
.upgrade-button svg { width: 14px; height: 14px; }

.about-panel p { margin: 0; color: #585854; font-size: 12px; line-height: 2.1; }
.about-panel p + p { margin-top: 12px; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.about-facts div { padding: 11px; border: 1px solid #e7e7e2; border-radius: 13px; background: #fafaf8; }
.about-facts small { display: block; margin-bottom: 5px; color: #8a8a86; font-size: 8px; }
.about-facts b { font-size: 10px; }

.episode-sheet.is-comments .sheet-tabs { display: none; }
.episode-sheet.is-comments .sheet-content { padding-top: 15px; }

.comments-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.comments-caption b { font-size: 12px; }
.comments-caption span { color: #858581; font-size: 9px; }
.comments-list { display: grid; gap: 15px; }
.comments-empty { margin: 0; color: #777773; font-size: 11px; line-height: 1.9; }
.comment-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
.comment-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #171717; color: #fff; font-size: 10px; font-weight: 800; }
.comment-body { min-width: 0; }
.comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comment-meta b { font-size: 10px; }
.comment-meta span { flex: 0 0 auto; color: #91918d; font-size: 8px; }
.comment-body p { margin: 4px 0 0; color: #4e4e4a; font-size: 11px; line-height: 1.8; }
.comment-like { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; padding: 0; border: 0; background: transparent; color: #858581; cursor: pointer; font-family: inherit; font-size: 8px; }
.comment-like svg { width: 12px; height: 12px; }
.comment-like.is-liked { color: #151515; }
.comment-form { position: sticky; bottom: -1px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 18px -1px -1px; padding-top: 13px; background: #fff; }
.comment-form input { width: 100%; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid #deded9; border-radius: 14px; outline: 0; background: #fafaf8; color: #222; font: inherit; font-size: 10px; -webkit-user-select: text; user-select: text; }
.comment-form input:focus { border-color: #171717; background: #fff; }
.comment-form button { min-width: 57px; height: 42px; padding: 0 11px; border: 0; border-radius: 14px; background: #151515; color: #fff; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 700; }

.upgrade-card { margin-top: 0; }
.upgrade-card img { display: block; width: 100%; height: 130px; object-fit: cover; object-position: center 37%; filter: saturate(.79) contrast(1.04); }
.upgrade-copy { padding: 17px; }
.upgrade-copy p { margin: 0; color: #858581; font-size: 9px; }
.upgrade-copy h3 { margin: 6px 0 8px; font-size: 18px; letter-spacing: -.7px; }
.upgrade-copy ul { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; color: #5b5b57; font-size: 10px; list-style: none; }
.upgrade-copy li { display: flex; align-items: center; gap: 6px; }
.upgrade-copy li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #151515; }
.upgrade-copy > button + button { margin-right: 8px; border: 0; background: transparent; color: #666661; cursor: pointer; font-size: 10px; }

.toast {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: calc(25px + env(safe-area-inset-bottom));
  max-width: calc(100% - 34px);
  padding: 11px 15px;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-size: 10px;
  transform: translate(50%, 90px);
  transition: transform .22s ease;
}

.toast.show { transform: translate(50%, 0); }

@media (min-width: 801px) {
  .reel-viewer { display: grid; place-items: center; padding: 24px; }
  .viewer-shell {
    width: min(50.625dvh, 461px);
    height: min(90dvh, 820px);
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .025);
  }
  .reel-track,
  .reel-slide { height: 100%; min-height: 100%; border-radius: 27px; }
  .viewer-back { position: fixed; z-index: 7; top: 30px; left: max(24px, calc(50% - 340px)); }
  .reel-side-actions { bottom: 112px; left: 14px; }
  .reel-episodes-button { right: 14px; bottom: 14px; left: 14px; }
  .viewer-desktop-note { display: none; }
  .episode-sheet { bottom: 20px; border-radius: 24px; }
}

@media (max-width: 800px) {
  .app-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app-header { height: 65px; }
  .app-header-inner { gap: 8px; padding: 0 16px; }
  .brand img { width: 35px; height: 19px; }
  .brand span { font-size: 14px; letter-spacing: 1.4px; }
  .search-button { width: auto; flex: 1; height: 36px; padding: 0 10px; font-size: 9px; }
  .search-button svg { width: 15px; height: 15px; }
  .header-actions { gap: 0; }
  .header-icon { display: none; }
  .profile-button { width: 34px; height: 34px; }
  .profile-button svg { width: 16px; height: 16px; }
  .home-main { padding: 27px 16px 30px; }
  .home-welcome { display: block; padding-bottom: 22px; }
  .home-welcome p { margin-bottom: 5px; font-size: 9px; }
  .home-welcome h1 { font-size: 31px; letter-spacing: -1.4px; }
  .home-welcome span { margin-top: 8px; font-size: 10px; }
  .home-watch-button { height: 39px; margin-top: 17px; padding: 0 14px; font-size: 10px; }
  .featured-show { height: 331px; border-radius: 20px; }
  .featured-content { right: 19px; bottom: 19px; }
  .featured-content h2 { font-size: 34px; }
  .featured-content p { margin-top: 11px; font-size: 9px; }
  .featured-content small { font-size: 9px; }
  .featured-content button { height: 34px; margin-top: 13px; padding: 0 12px; font-size: 9px; }
  .featured-chip { min-height: 22px; padding: 0 8px; font-size: 8px; }
  .app-section { margin-top: 39px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading p { margin-bottom: 3px; font-size: 8px; }
  .section-heading h2 { font-size: 21px; }
  .text-button { font-size: 9px; }
  .portrait-rail { gap: 11px; margin-left: -16px; padding: 1px 16px 8px; }
  .portrait-card { flex-basis: 144px; gap: 5px; }
  .portrait-image { height: 194px; border-radius: 14px; }
  .portrait-image em { top: 8px; right: 8px; padding: 3px 6px; font-size: 7px; }
  .portrait-card strong { font-size: 11px; }
  .portrait-card small { font-size: 8px; }
  .continue-section { margin-top: 36px; padding-top: 29px; }
  .story-list { grid-template-columns: 1fr; gap: 9px; }
  .story-row { grid-template-columns: 57px minmax(0, 1fr) auto; min-height: 75px; gap: 10px; border-radius: 14px; }
  .story-row-image { height: 57px; border-radius: 10px; }
  .story-row-copy b { font-size: 11px; }
  .story-row-copy small { font-size: 8px; }
  .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(66px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid #e7e7e2; background: rgba(255, 255, 255, .96); backdrop-filter: blur(15px); }
  .mobile-nav button { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 13px; background: transparent; color: #878783; cursor: pointer; font-size: 8px; }
  .mobile-nav svg { width: 18px; height: 18px; stroke-width: 1.8; }
  .mobile-nav button.active { color: #151515; font-weight: 700; }
  .mobile-nav button.active svg { fill: #151515; }
  .viewer-topbar { height: 64px; }
  .viewer-back { top: max(15px, env(safe-area-inset-top)); left: 14px; min-width: 64px; height: 33px; font-size: 9px; }
  .reel-side-actions { bottom: 96px; left: 8px; gap: 10px; }
  .social-action,
  .social-stat { width: 44px; }
  .social-action > span:first-child,
  .social-stat > span:first-child { width: 35px; height: 35px; }
  .social-action svg,
  .social-stat svg { width: 16px; height: 16px; }
  .social-action b,
  .social-stat b { font-size: 8px; }
  .reel-episodes-button { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; min-height: 51px; border-radius: 16px; }
  .locked-gate { right: 18px; left: 18px; padding: 18px 16px; }
  .episode-sheet { max-height: min(79dvh, calc(100dvh - 47px)); padding: 9px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sheet-header { padding: 8px 0 14px; }
  .sheet-header h2 { font-size: 18px; }
  .sheet-tabs { margin-top: 13px; }
  .sheet-tabs button { min-height: 30px; padding: 0 11px; font-size: 9px; }
  .episode-grid { gap: 7px; }
  .episode-tile { min-height: 54px; border-radius: 13px; font-size: 16px; }
  .subscription-card { align-items: flex-start; flex-direction: column; }
  .subscribe-cta { width: 100%; }
  .about-panel p { font-size: 11px; }
}

/* TIVIMA dark system: all product surfaces stay black or charcoal. */
:root {
  color-scheme: dark;
  --ink: #f3f3f1;
  --muted: #a1a19d;
  --soft: #151516;
  --line: #2a2a2d;
  --paper: #0b0b0c;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

html,
body { background: #090909; }

body { color: var(--ink); }

.app-shell { background: #0b0b0c; }

.app-header { border-color: rgba(52, 52, 56, .9); background: rgba(10, 10, 11, .93); }
.brand { color: #f3f3f1; }
.brand img { filter: invert(1) grayscale(1) contrast(1.15); }
.search-button { border-color: #303034; background: #151516; color: #a9a9a5; }
.search-button:hover { border-color: #535358; background: #1b1b1e; }
.search-button svg { color: #b4b4b0; }
.header-icon,
.profile-button { color: #e8e8e5; }
.profile-button { border-color: #333337; background: #171719; }

.home-welcome p,
.section-heading p,
.home-welcome span,
.portrait-card small,
.story-row-copy small { color: #9c9c98; }
.home-welcome h1,
.section-heading h2 { color: #f3f3f1; }
.home-watch-button,
.featured-content button { border-color: #3d3d42; background: #1d1d20; color: #f4f4f1; }
.home-watch-button:hover,
.featured-content button:hover { box-shadow: 0 12px 25px rgba(0, 0, 0, .42); background: #28282c; }
.featured-content button { border-color: rgba(255, 255, 255, .24); background: rgba(17, 17, 18, .8); color: #f5f5f2; }
.featured-chip { border: 1px solid rgba(255, 255, 255, .18); background: rgba(9, 9, 10, .42); }

.text-button { color: #d2d2ce; }
.portrait-card { color: #f1f1ee; }
.portrait-image { background: #19191b; box-shadow: 0 8px 20px rgba(0, 0, 0, .34); }
.portrait-card:hover .portrait-image { box-shadow: 0 16px 30px rgba(0, 0, 0, .52); }
.portrait-image em { border: 1px solid rgba(255, 255, 255, .18); background: rgba(12, 12, 13, .9); color: #ecece8; }
.continue-section { border-color: var(--line); }
.story-row { border-color: #2e2e32; background: #141416; color: #eeeeeb; }
.story-row:hover { border-color: #56565b; box-shadow: 0 12px 26px rgba(0, 0, 0, .4); }
.story-row-image { background: #1b1b1e; }
.story-row > svg { color: #b5b5b1; }
.story-progress { background: #303034; }
.story-progress i { background: #cececa; }

.reel-viewer { background: #070707; }
.social-action.is-liked > span:first-child { border-color: #68686c; background: #2c2c30; color: #fff; }
.locked-gate button { border: 1px solid rgba(255, 255, 255, .25); background: #222225; color: #f2f2ef; }
.viewer-desktop-note { color: #ededeb; }
.viewer-desktop-note p,
.viewer-desktop-note span { color: #a5a5a1; }

.episode-sheet { border: 1px solid #303034; background: #111113; box-shadow: 0 -18px 48px rgba(0, 0, 0, .58); }
.sheet-handle::after { background: #66666a; }
.sheet-header { border-color: #2c2c2f; }
.sheet-header p,
.episodes-caption span,
.free-note,
.about-facts small,
.comments-caption span,
.comments-empty,
.comment-meta span,
.comment-like,
.subscription-card p,
.upgrade-copy p { color: #a1a19d; }
.sheet-close { border-color: #38383c; background: #1b1b1e; color: #ededeb; }
.sheet-tabs { border-color: #353539; background: #19191b; }
.sheet-tabs button { color: #a9a9a5; }
.sheet-tabs button.active { background: #343438; color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .32); }

.episode-tile { border-color: #38383c; background: #1a1a1d; color: #f0f0ed; }
.episode-tile:hover { border-color: #737378; background: #202023; }
.episode-tile.is-current,
.episode-tile.is-locked.is-current { border-color: #5b5b60; background: #343438; color: #fff; box-shadow: 0 8px 17px rgba(0, 0, 0, .34); }
.episode-tile.is-locked { border-color: #29292d; background: #151517; color: #77777b; }
.episode-tile.is-locked svg { color: #8d8d91; }
.episode-tile.is-locked.is-current svg { color: #e3e3df; }
.free-note i,
.upgrade-copy li::before { background: #d4d4d0; }

.subscription-card,
.upgrade-card { border-color: #303034; background: #19191b; }
.subscribe-cta,
.upgrade-button { border: 1px solid #4a4a4e; background: #29292d; color: #f5f5f2; }
.about-panel p,
.comment-body p,
.upgrade-copy ul { color: #cececa; }
.about-facts div { border-color: #303034; background: #18181a; }
.comment-avatar { background: #313135; color: #fff; }
.comment-like.is-liked { color: #f1f1ed; }
.comment-form { background: #111113; }
.comment-form input { border-color: #3a3a3e; background: #19191b; color: #f1f1ed; }
.comment-form input:focus { border-color: #77777c; background: #202023; }
.comment-form button { border: 1px solid #48484d; background: #2a2a2e; color: #f4f4f0; }
.upgrade-copy > button + button { color: #bcbcb8; }

.toast { border: 1px solid #3d3d41; background: #1c1c1f; color: #f2f2ee; }

@media (max-width: 800px) {
  .mobile-nav { border-color: #2d2d31; background: rgba(12, 12, 13, .96); }
  .mobile-nav button { color: #99999d; }
  .mobile-nav button.active { color: #f1f1ed; }
  .mobile-nav button.active svg { fill: #f1f1ed; }
  .viewer-back { width: 35px; min-width: 35px; padding: 0; }
  .viewer-back span { display: none; }
}

/* Reels: permanent actions, a two-pane desktop stage and Instagram-like comments. */
.viewer-desktop-panel { display: none; }

.viewer-back {
  position: fixed;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.reel-viewer.is-open + .viewer-back {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.social-action > span:first-child,
.social-stat > span:first-child {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  backdrop-filter: none;
}

.social-action:hover > span:first-child { transform: scale(1.12); }
.social-action.is-liked > span:first-child { border: 0; background: transparent; color: #ff385c; }
.social-action.is-liked svg { fill: currentColor; stroke: currentColor; }
.social-action.is-saved > span:first-child { border: 0; background: transparent; color: #fff; }
.social-action.is-saved svg { fill: currentColor; stroke: currentColor; }
.social-stat > span:first-child { color: rgba(255, 255, 255, .68); }

.comments-caption { align-items: flex-start; margin-bottom: 19px; }
.comments-caption > div { display: grid; gap: 3px; }
.comments-caption b { font-size: 15px; }
.comments-caption span { font-size: 9px; }
.comments-sort { margin-top: 1px; padding: 0; border: 0; background: transparent; color: #a8a8a4; cursor: pointer; font: inherit; font-size: 9px; }
.comments-list { gap: 20px; }
.comment-card { grid-template-columns: 38px minmax(0, 1fr) 26px; align-items: start; gap: 10px; }
.comment-avatar { width: 38px; height: 38px; background: linear-gradient(145deg, #45454a, #252529); font-size: 11px; }
.comment-body p { margin: 0; color: #e8e8e4; font-size: 11px; line-height: 1.85; }
.comment-body p b { margin-left: 6px; color: #fff; font-size: 10px; }
.comment-body p span { color: inherit; }
.comment-meta { justify-content: flex-start; gap: 12px; margin-top: 6px; }
.comment-meta span,
.comment-meta button { color: #929296; font-size: 8px; font-weight: 600; }
.comment-meta button { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.comment-like { justify-content: center; margin: 2px 0 0; color: #a0a0a4; }
.comment-like svg { width: 16px; height: 16px; }
.comment-like.is-liked { color: #ff385c; }
.comment-like.is-liked svg { fill: currentColor; stroke: currentColor; }
.comment-form {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 23px 0 -1px;
  padding: 14px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #2d2d31;
  background: #111113;
}
.comment-form .comment-avatar { width: 34px; height: 34px; font-size: 10px; }
.comment-form input { height: 39px; border-radius: 999px; }
.comment-form button { min-width: auto; height: 38px; padding: 0 5px; border: 0; background: transparent; color: #f4f4f1; font-size: 10px; }

@media (min-width: 801px) {
  .reel-viewer {
    direction: ltr;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "panel player";
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
  }

  .viewer-desktop-panel {
    grid-area: panel;
    display: block;
    min-width: 0;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 105px clamp(38px, 6vw, 104px) 34px;
    border-right: 1px solid #252529;
    color: #f3f3f0;
    direction: rtl;
    touch-action: pan-y;
  }

  .desktop-panel-inner { display: flex; width: min(100%, 560px); min-height: calc(100dvh - 139px); margin: 0 auto; flex-direction: column; }
  .desktop-panel-head > p:first-child { margin: 0 0 11px; color: #99999d; font-size: 9px; letter-spacing: 1.3px; }
  .desktop-panel-head h1 { margin: 0; color: #f7f7f4; font-size: clamp(27px, 3.1vw, 43px); line-height: 1.25; letter-spacing: -1.5px; }
  .desktop-episode-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: #a7a7a3; font-size: 10px; }
  .desktop-episode-meta i { width: 3px; height: 3px; border-radius: 50%; background: #5d5d61; }
  .desktop-episode-meta b { color: #e7e7e3; font-weight: 600; }
  .desktop-episode-summary { max-width: 450px; margin: 17px 0 0; color: #b6b6b2; font-size: 12px; line-height: 2.05; }
  .desktop-panel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
  .desktop-panel-actions button { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; padding: 0 13px; border-radius: 11px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
  .desktop-panel-actions svg { width: 16px; height: 16px; }
  .desktop-panel-primary { border: 1px solid #444449; background: #f1f1ed; color: #161617; }
  .desktop-panel-secondary { border: 1px solid #343438; background: #19191c; color: #efefeb; }
  .desktop-comments { flex: 1; min-height: 0; margin-top: 38px; }
  .desktop-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
  .desktop-comments-head b { color: #f2f2ef; font-size: 15px; }
  .desktop-comments-head span { color: #858589; font-size: 9px; }
  .desktop-comments-list { max-height: min(36dvh, 320px); padding-left: 4px; overflow-y: auto; }
  .desktop-comment-form { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #29292d; }
  .desktop-comment-form .comment-avatar { width: 34px; height: 34px; font-size: 10px; }
  .desktop-comment-form input { width: 100%; min-width: 0; height: 39px; padding: 0 13px; border: 1px solid #39393d; border-radius: 999px; outline: 0; background: #18181b; color: #f2f2ef; font: inherit; font-size: 10px; -webkit-user-select: text; user-select: text; }
  .desktop-comment-form input:focus { border-color: #77777c; background: #202023; }
  .desktop-comment-form button { height: 37px; padding: 0 6px; border: 0; background: transparent; color: #f3f3ef; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }

  .viewer-shell {
    grid-area: player;
    justify-self: center;
    align-self: center;
    width: min(50.625dvh, calc(50vw - 36px), 461px);
    height: auto;
    max-height: 90dvh;
    margin: 0;
    aspect-ratio: 9 / 16;
    direction: rtl;
  }
  .reel-track,
  .reel-slide { height: 100%; min-height: 100%; }
  .viewer-back { top: 28px; left: clamp(26px, 4vw, 72px); }
  .viewer-desktop-note { display: none; }

  .episode-scrim { background: transparent; backdrop-filter: none; }
  .episode-sheet {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 50%;
    max-height: none;
    padding: 96px clamp(38px, 6vw, 104px) 32px;
    border: 0;
    border-right: 1px solid #252529;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(-102%);
  }
  .episode-sheet.is-open,
  .episode-sheet.is-open.is-dragging { transform: translateX(0); }
  .episode-sheet .sheet-handle { display: none; }
  .episode-sheet .sheet-header { padding-top: 0; }
  .episode-sheet.is-comments .sheet-content { max-width: 560px; }
}

@media (max-width: 800px) {
  body.sheet-open .viewer-back { visibility: hidden; opacity: 0; pointer-events: none; }
}

/* Refined reel chrome: compact now-playing context, touch-first seek and roomy actions. */
.viewer-now-playing {
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  right: 14px;
  z-index: 1;
  display: flex;
  max-width: calc(100% - 78px);
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  direction: rtl;
  font-family: inherit;
  text-align: right;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.viewer-now-playing img {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
  object-position: center;
  background: #1b1b1e;
}

.viewer-now-playing span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
}

.viewer-now-playing b,
.viewer-now-playing small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-now-playing b { flex: 0 1 auto; color: #f4f4f1; font-size: 11px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.viewer-now-playing small { flex: 0 0 auto; color: rgba(255, 255, 255, .68); font-size: 9px; line-height: 1.25; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }

.viewer-seek {
  --seek-progress: 0%;
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 42px;
  align-items: center;
  gap: 8px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: bottom .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, transform .22s ease;
  direction: ltr;
}

.reel-viewer:not(.controls-hidden) .viewer-seek { bottom: calc(78px + env(safe-area-inset-bottom)); }

.viewer-seek[hidden] { display: none; }

.viewer-seek input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f1;
  cursor: pointer;
  direction: ltr;
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
}

.viewer-seek-rail {
  position: relative;
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
}

.viewer-seek input::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5f5f1 0 var(--seek-progress), rgba(255, 255, 255, .3) var(--seek-progress) 100%);
}

.viewer-seek input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .42);
}

.viewer-seek input::-moz-range-track { height: 4px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.viewer-seek input::-moz-range-progress { height: 4px; border-radius: 999px; background: #f5f5f1; }
.viewer-seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 7px rgba(0, 0, 0, .42); }
.viewer-seek input:disabled { cursor: default; opacity: .42; }
.viewer-seek input:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(255, 255, 255, .32); outline-offset: 3px; }
.viewer-seek-time { min-width: 31px; color: rgba(255, 255, 255, .86); direction: ltr; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.viewer-seek-tooltip {
  position: absolute;
  z-index: 2;
  bottom: 31px;
  left: clamp(18px, var(--seek-progress), calc(100% - 18px));
  min-width: 38px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(10, 10, 11, .9);
  color: #fff;
  direction: ltr;
  font-family: inherit;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 5px) scale(.94);
  transition: opacity .14s ease, transform .14s ease;
  white-space: nowrap;
}

.viewer-seek.is-seeking .viewer-seek-tooltip { opacity: 1; transform: translate(-50%, 0) scale(1); }

.reel-viewer.controls-hidden .viewer-topbar { opacity: 1; pointer-events: auto; transform: none; }
.reel-viewer.controls-hidden .viewer-topbar * { pointer-events: auto !important; }
.reel-viewer.controls-hidden .viewer-seek { opacity: 1; pointer-events: auto; transform: none; }

.reel-side-actions {
  bottom: calc(139px + env(safe-area-inset-bottom));
  left: 13px;
  gap: clamp(15px, 2.4dvh, 23px);
}

.social-action,
.social-stat {
  width: 56px;
  min-height: 46px;
  gap: 7px;
  padding: 3px 0;
}

.social-action svg,
.social-stat svg { width: 24px; height: 24px; stroke-width: 1.8; }
.social-action b,
.social-stat b { font-size: 9px; line-height: 1.1; }

.reel-scroll-cue {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .83);
  direction: rtl;
  font-size: 9px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .72);
  transform: translate(50%, 10px);
  transition: bottom .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, transform .22s ease;
}

.reel-scroll-cue svg { width: 15px; height: 15px; }
.reel-scroll-cue.is-visible { opacity: 1; transform: translate(50%, 0); animation: reel-scroll-cue 1.45s ease-in-out infinite; }
.reel-viewer:not(.controls-hidden) .reel-scroll-cue { bottom: calc(139px + env(safe-area-inset-bottom)); }

@keyframes reel-scroll-cue {
  50% { transform: translate(50%, -5px); }
}

/* Comments deliberately use a short, fixed sheet; only the conversation itself scrolls. */
.episode-sheet.is-comments {
  display: flex;
  height: 60dvh;
  max-height: 60dvh;
  flex-direction: column;
  overflow: hidden;
}

.episode-sheet.is-comments .sheet-handle,
.episode-sheet.is-comments .sheet-header { flex: 0 0 auto; }

.episode-sheet.is-comments .sheet-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  max-width: none;
  flex-direction: column;
  overflow: hidden;
}

.episode-sheet.is-comments .comments-list {
  min-height: 0;
  flex: 1 1 auto;
  padding-left: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.episode-sheet.is-comments .comment-form {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 16px 0 0;
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
}

@media (min-width: 801px) {
  .viewer-now-playing { top: 13px; right: 13px; }
  .viewer-seek { right: 14px; bottom: 10px; left: 14px; }
  .reel-viewer:not(.controls-hidden) .viewer-seek { bottom: 78px; }

  .episode-sheet.is-comments {
    top: auto;
    bottom: 0;
    height: 60dvh;
    max-height: 60dvh;
    padding: 28px clamp(38px, 6vw, 104px) 22px;
    border-top: 1px solid #303034;
  }
}

@media (max-width: 800px) {
  .viewer-now-playing { top: max(11px, calc(env(safe-area-inset-top) + 7px)); right: 12px; max-width: calc(100% - 64px); }
  .viewer-now-playing img { width: 30px; height: 30px; flex-basis: 30px; }
  .viewer-now-playing b { font-size: 10px; }
  .viewer-now-playing small { font-size: 8px; }

  .viewer-seek { right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 12px; }
  .reel-viewer:not(.controls-hidden) .viewer-seek { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .viewer-seek-time { min-width: 29px; font-size: 8px; }
  .viewer-seek-tooltip { bottom: 30px; font-size: 8px; }
  .reel-side-actions { bottom: calc(136px + env(safe-area-inset-bottom)); left: 7px; gap: clamp(14px, 2.2dvh, 20px); }
  .reel-scroll-cue { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .reel-viewer:not(.controls-hidden) .reel-scroll-cue { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .social-action,
  .social-stat { width: 52px; min-height: 44px; gap: 6px; }
  .social-action svg,
  .social-stat svg { width: 23px; height: 23px; }
  .social-action b,
  .social-stat b { font-size: 9px; }
}

/* Home catalog: a compact app surface, not a marketing hero. */
.catalog-section { padding: 4px 0 22px; }

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid #29292d;
}

.catalog-heading p {
  margin: 0 0 7px;
  color: #88888d;
  direction: ltr;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

.catalog-heading h1 {
  margin: 0;
  color: #f1f1ed;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.2;
}

.catalog-heading > span {
  max-width: 250px;
  color: #a0a09d;
  font-size: 10px;
  line-height: 1.9;
  text-align: left;
}

.catalog-toolbar {
  position: sticky;
  z-index: 8;
  top: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
  padding: 15px 0 13px;
  background: linear-gradient(180deg, #0b0b0c 72%, rgba(11, 11, 12, 0));
  backdrop-filter: blur(14px);
}

.catalog-filter-rail {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  padding: 1px;
}

.catalog-filter {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid #333337;
  border-radius: 999px;
  background: #171719;
  color: #aaa9a6;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.catalog-filter:hover { border-color: #55555a; color: #f0f0ec; }
.catalog-filter.active { border-color: #f0f0ec; background: #f0f0ec; color: #151516; box-shadow: 0 4px 14px rgba(255, 255, 255, .09); }
.catalog-filter:active { transform: scale(.96); }
.catalog-filter:focus-visible,
.catalog-card:focus-visible { outline: 2px solid #f1f1ed; outline-offset: 3px; }

.catalog-count { flex: 0 0 auto; color: #8d8d8a; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.6vw, 20px);
}

.catalog-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f1f1ed;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  animation: catalog-card-in .38s both cubic-bezier(.2, .8, .2, 1);
  animation-delay: var(--catalog-delay, 0ms);
}

.catalog-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid #29292d;
  border-radius: 18px;
  background: #19191b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .24);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.catalog-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .46));
  pointer-events: none;
}

.catalog-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.84) contrast(1.04);
  transition: transform .42s ease, filter .28s ease;
}

.catalog-card:hover .catalog-poster { border-color: #69696e; box-shadow: 0 18px 34px rgba(0, 0, 0, .42); transform: translateY(-4px); }
.catalog-card:hover .catalog-poster img { filter: saturate(.95) contrast(1.06); transform: scale(1.045); }

.catalog-poster em {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(9, 9, 10, .77);
  color: #f4f4f0;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  backdrop-filter: blur(10px);
}

.catalog-card.is-free .catalog-poster em { border-color: rgba(190, 221, 196, .28); color: #dcf0df; }
.catalog-card.is-coming .catalog-poster { opacity: .78; }
.catalog-card.is-coming .catalog-poster em { border-color: rgba(218, 210, 180, .26); color: #eee5bd; }

.catalog-card-copy { display: grid; gap: 4px; padding: 10px 2px 1px; }
.catalog-card-copy small { overflow: hidden; color: #919195; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-copy strong { overflow: hidden; color: #efefeb; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.catalog-sentinel { height: 1px; margin-top: 30px; }
.catalog-status { min-height: 22px; margin: 13px 0 0; color: #858589; font-size: 9px; text-align: center; }
.catalog-empty { grid-column: 1 / -1; margin: 40px 0; color: #99999d; font-size: 11px; text-align: center; }

@keyframes catalog-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .home-main { padding: 25px 16px calc(90px + env(safe-area-inset-bottom)); }
  .catalog-heading { align-items: start; flex-direction: column; gap: 8px; padding-bottom: 18px; }
  .catalog-heading h1 { font-size: 27px; }
  .catalog-heading > span { max-width: none; font-size: 9px; text-align: right; }
  .catalog-toolbar { top: 65px; margin: 0 -16px 13px; padding: 12px 16px; }
  .catalog-filter-rail { margin-left: -4px; padding: 1px 4px; }
  .catalog-filter { min-height: 32px; padding: 0 12px; font-size: 9px; }
  .catalog-count { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 11px; }
  .catalog-poster { border-radius: 14px; }
  .catalog-poster em { top: 7px; right: 7px; min-height: 20px; padding: 0 7px; font-size: 7px; line-height: 18px; }
  .catalog-card-copy { gap: 3px; padding-top: 7px; }
  .catalog-card-copy small { font-size: 8px; }
  .catalog-card-copy strong { font-size: 11px; }
  .catalog-status { margin-top: 10px; font-size: 8px; }
}

/* Home refresh: editorial banners, quiet surfaces and purposeful loading states. */
.app-header {
  height: 72px;
  border: 0;
  background: rgba(11, 11, 12, .9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.brand { direction: rtl; gap: 9px; }
.brand img { width: 42px; height: 25px; }
.brand span { font: 800 14px/1 Vazirmatn, Tahoma, sans-serif; letter-spacing: 0; }
.search-button,
.profile-button { border: 0; box-shadow: none; }
.search-button { background: #151516; }
.search-button:hover { border: 0; background: #1b1b1d; }
.profile-button { background: #19191b; }

.fresh-section { padding: 2px 0 54px; }
.fresh-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.fresh-heading p,
.catalog-heading p {
  margin: 0 0 5px;
  color: #89898d;
  direction: rtl;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.fresh-heading h1 {
  margin: 0;
  color: #f4f4f1;
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.fresh-navigation { display: flex; align-items: center; gap: 6px; }
.fresh-nav-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a1a1c;
  color: #eeeeea;
  cursor: pointer;
}

.fresh-nav-button svg { width: 18px; height: 18px; }
.fresh-nav-button:disabled { opacity: .28; cursor: default; }
.fresh-nav-button:focus-visible,
.fresh-card:focus-visible,
.catalog-card:focus-visible,
.catalog-filter:focus-visible { outline: 2px solid #f3f3ef; outline-offset: 3px; }

.fresh-track {
  display: flex;
  gap: clamp(11px, 1.4vw, 18px);
  overflow-x: auto;
  padding: 2px 0 3px;
  scroll-padding-inline: 1px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.fresh-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: min(540px, 42vw);
  flex: 0 0 min(540px, 42vw);
  overflow: hidden;
  aspect-ratio: 32 / 9;
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: #171719;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  scroll-snap-align: start;
  text-align: right;
}

.fresh-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.83) contrast(1.05);
}

.fresh-card-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 7%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, .94) 100%);
}

.fresh-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: clamp(19px, 2.5vw, 34px);
  padding-top: 62px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .86);
}

.fresh-card-copy small { color: rgba(255, 255, 255, .76); font-size: 9px; font-weight: 600; }
.fresh-card-copy strong { color: #fff; font-size: clamp(19px, 2vw, 27px); font-weight: 800; line-height: 1.22; }
.fresh-card-copy p { display: -webkit-box; max-width: 92%; margin: 0; overflow: hidden; color: rgba(255, 255, 255, .83); font-size: 10px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.catalog-section { padding-top: 0; }
.catalog-heading { padding-bottom: 19px; border: 0; }
.catalog-heading p { margin-bottom: 6px; }
.catalog-heading > span { color: #89898d; }
.catalog-toolbar { margin-bottom: 15px; }
.catalog-filter { border: 0; background: #19191b; box-shadow: none; transition: background .18s ease, color .18s ease; }
.catalog-filter:hover { border: 0; background: #222225; color: #f0f0ec; }
.catalog-filter.active { border: 0; background: #f2f2ef; color: #111112; box-shadow: none; }
.catalog-filter:active { transform: none; }
.catalog-poster { border: 0; box-shadow: none; transition: none; }
.catalog-poster img { transition: none; }
.catalog-card { animation: none; }
.catalog-card:hover .catalog-poster,
.catalog-card:hover .catalog-poster img { border: 0; box-shadow: none; filter: saturate(.84) contrast(1.04); transform: none; }
.catalog-poster em { border: 0; background: rgba(9, 9, 10, .83); backdrop-filter: blur(8px); }
.catalog-card.is-free .catalog-poster em,
.catalog-card.is-coming .catalog-poster em { border: 0; color: #f5f5f1; }
.catalog-card-copy { padding-right: 1px; padding-left: 1px; }

.catalog-sentinel { min-height: 0; margin-top: 22px; }
.catalog-sentinel:not([hidden]) { min-height: 50px; }
.catalog-inline-loader { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; color: #89898d; font-size: 9px; }
.loading-dots { display: inline-flex; align-items: center; gap: 3px; direction: ltr; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: #f2f2ef; animation: loader-dot 1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .12s; }
.loading-dots i:nth-child(3) { animation-delay: .24s; }

.catalog-skeleton { display: grid; gap: 9px; min-width: 0; }
.catalog-skeleton span,
.catalog-skeleton b,
.catalog-skeleton i,
.comment-skeleton > span,
.comment-skeleton i,
.comment-skeleton b,
.comments-loading-head span,
.comments-loading-head i { display: block; overflow: hidden; border-radius: 10px; background: linear-gradient(105deg, #18181a 30%, #242427 47%, #18181a 64%); background-size: 230% 100%; animation: skeleton-sheen 1.3s linear infinite; }
.catalog-skeleton span { aspect-ratio: 2 / 3; border-radius: 18px; }
.catalog-skeleton b { width: 44%; height: 8px; border-radius: 999px; }
.catalog-skeleton i { width: 68%; height: 11px; border-radius: 999px; }

.viewer-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #f6f6f2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .86);
  transition: opacity .18s ease;
}

.viewer-loading::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .18s ease; }
.viewer-loading.is-visible { opacity: 1; }
.viewer-loading.is-visible::before { opacity: 1; }
.viewer-loading b { font-size: 10px; font-weight: 600; }
.loading-orbit { position: relative; width: 31px; height: 15px; margin: 0 auto; }
.loading-orbit,
.loading-orbit::before,
.loading-orbit::after { border-radius: 50%; background: #f5f5f1; animation: viewer-loader 1.05s ease-in-out infinite; }
.loading-orbit::before,
.loading-orbit::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; }
.loading-orbit { width: 8px; height: 8px; animation-delay: .12s; }
.loading-orbit::before { right: -12px; animation-delay: .24s; }
.loading-orbit::after { left: -12px; }

.comments-loading { display: grid; gap: 19px; min-height: 260px; padding: 7px 0 4px; }
.comments-loading-head { display: flex; align-items: center; justify-content: space-between; }
.comments-loading-head span { width: 96px; height: 14px; }
.comments-loading-head i { width: 64px; height: 10px; }
.comment-skeleton { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; }
.comment-skeleton > span { width: 34px; height: 34px; border-radius: 50%; }
.comment-skeleton > div { display: grid; gap: 8px; padding-top: 3px; }
.comment-skeleton i { width: 27%; height: 9px; }
.comment-skeleton b { width: 88%; height: 9px; }
.comment-skeleton b:last-child { width: 57%; }

@keyframes loader-dot { 50% { opacity: .28; transform: translateY(-3px); } }
@keyframes skeleton-sheen { to { background-position: -130% 0; } }
@keyframes viewer-loader { 50% { opacity: .35; transform: translateY(-5px); } }

@media (max-width: 800px) {
  .app-header { height: 64px; }
  .app-header-inner { gap: 7px; padding: 0 16px; }
  .brand img { width: 37px; height: 23px; }
  .brand span { font-size: 12px; }
  .search-button { width: 35px; height: 36px; justify-content: center; padding: 0; background: transparent; }
  .search-button span { display: none; }
  .header-actions { gap: 0; }
  .header-icon,
  .profile-button { width: 35px; height: 35px; background: transparent; }
  .profile-button { display: none; }

  .fresh-section { padding: 0 0 38px; }
  .fresh-heading { margin-bottom: 12px; }
  .fresh-heading h1 { font-size: 22px; }
  .fresh-heading p { margin-bottom: 3px; font-size: 8px; }
  .fresh-nav-button { width: 30px; height: 30px; }
  .fresh-nav-button svg { width: 16px; height: 16px; }
  .fresh-track { gap: 10px; margin: 0 -16px; padding: 1px 16px 4px; }
  .fresh-card { min-width: 78vw; flex-basis: 78vw; aspect-ratio: 2.44 / 1; border-radius: 16px; }
  .fresh-card-copy { gap: 4px; padding: 20px 17px; padding-top: 64px; }
  .fresh-card-copy strong { font-size: 20px; }
  .fresh-card-copy p { max-width: 96%; font-size: 9px; line-height: 1.75; }
  .catalog-toolbar { top: 64px; }
  .catalog-poster { border-radius: 15px; }
  .catalog-skeleton span { border-radius: 15px; }
  .comments-loading { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dots i,
  .catalog-skeleton span,
  .catalog-skeleton b,
  .catalog-skeleton i,
  .comment-skeleton > span,
  .comment-skeleton i,
  .comment-skeleton b,
  .comments-loading-head span,
  .comments-loading-head i,
  .loading-orbit,
  .loading-orbit::before,
  .loading-orbit::after { animation: none; }
}

/* Subscription is a destination, not a small interrupting card. */
.subscription-view {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #080809;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
  -webkit-overflow-scrolling: touch;
}

.subscription-view.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s;
}

.subscription-backdrop {
  display: none;
}

.subscription-page {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1040px, 100%);
  min-height: max(100dvh, 720px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  grid-template-rows: auto 1fr auto auto;
  column-gap: clamp(45px, 8vw, 130px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 58px) clamp(24px, 7vw, 98px);
}

.subscription-close {
  display: inline-flex;
  width: fit-content;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  grid-column: 1 / -1;
  justify-self: start;
}

.subscription-close svg { width: 18px; height: 18px; }
.subscription-close:hover { color: #fff; }

.subscription-intro {
  align-self: center;
  max-width: 580px;
  grid-column: 1;
  grid-row: 2;
}

.subscription-intro > p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 700;
}

.subscription-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: clamp(-3px, -.24vw, -1.6px);
  line-height: 1.08;
}

.subscription-context {
  display: block;
  max-width: 470px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 2;
}

.subscription-benefits {
  display: grid;
  align-self: end;
  gap: 13px;
  margin: 0;
  padding: 0 0 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  list-style: none;
  grid-column: 1;
  grid-row: 3;
}

.subscription-benefits li { display: flex; align-items: center; gap: 10px; }
.subscription-benefits svg { width: 17px; height: 17px; color: #fff; stroke-width: 1.6; }

.subscription-plans {
  display: grid;
  align-self: center;
  gap: 10px;
  grid-column: 2;
  grid-row: 2;
}

.subscription-plan {
  position: relative;
  display: grid;
  min-height: 95px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: rgba(26, 26, 28, .94);
  color: #f4f4f1;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.subscription-plan:hover { background: rgba(38, 38, 41, .96); }
.subscription-plan.is-selected { background: #f2f2ee; color: #111112; }
.subscription-plan-radio { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.subscription-plan.is-selected .subscription-plan-radio { position: relative; background: #121213; }
.subscription-plan.is-selected .subscription-plan-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #f2f2ee; }
.subscription-plan-copy { display: grid; min-width: 0; gap: 5px; }
.subscription-plan-copy b { font-size: 15px; font-weight: 800; }
.subscription-plan-copy small { color: rgba(255, 255, 255, .55); font-size: 9px; }
.subscription-plan.is-selected .subscription-plan-copy small { color: rgba(17, 17, 18, .58); }
.subscription-plan > strong { direction: rtl; font-size: 14px; font-weight: 800; text-align: left; white-space: nowrap; }
.subscription-plan > strong small { color: currentColor; font-size: 8px; font-weight: 600; }
.subscription-plan-badge { position: absolute; top: -8px; left: 13px; padding: 4px 8px; border-radius: 999px; background: #fff; color: #141415; font-size: 8px; font-weight: 800; }

.subscription-continue {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #101011;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  grid-column: 2;
  grid-row: 3;
}

.subscription-continue svg { width: 17px; height: 17px; }
.subscription-continue:hover { background: #e8e8e3; }
.subscription-secure {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .43);
  font-size: 8px;
  grid-column: 2;
  grid-row: 4;
}

.subscription-secure svg { width: 12px; height: 12px; }

.trailer-panel { display: grid; overflow: hidden; grid-template-columns: 124px minmax(0, 1fr); gap: 13px; border-radius: 16px; background: #1a1a1c; }
.trailer-panel-art { position: relative; min-height: 148px; }
.trailer-panel-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.trailer-panel-art span { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 999px; background: rgba(8, 8, 9, .72); color: #fff; font-size: 7px; font-weight: 700; }
.trailer-panel-copy { display: grid; align-content: center; gap: 6px; padding: 14px 15px 14px 4px; }
.trailer-panel-copy p { margin: 0; color: #a7a7a3; font-size: 8px; }
.trailer-panel-copy b { color: #f2f2ef; font-size: 14px; }
.trailer-panel-copy small { color: #a5a5a1; font-size: 9px; line-height: 1.75; }
.trailer-panel-copy > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.trailer-reminder { min-height: 37px; padding: 0 10px; border: 0; border-radius: 999px; background: #29292d; color: #f2f2ee; cursor: pointer; font-family: inherit; font-size: 9px; font-weight: 700; }
.trailer-reminder svg { width: 13px; height: 13px; margin-left: 4px; vertical-align: middle; }

.premium-upgrade-card .upgrade-copy > span { display: block; margin: 0 0 13px; color: #b8b8b4; font-size: 10px; line-height: 1.9; }
.premium-upgrade-card .upgrade-copy ul { margin-bottom: 18px; }

.locked-gate { border: 0; background: linear-gradient(150deg, rgba(27, 27, 30, .96), rgba(11, 11, 12, .93)); box-shadow: 0 18px 48px rgba(0, 0, 0, .42); }
.locked-gate .gate-kicker { display: block; color: rgba(255, 255, 255, .58); font-size: 8px; font-weight: 700; }
.locked-gate > svg { margin-top: 12px; color: #fff; }
.locked-gate b { font-size: 17px; }
.locked-gate p { max-width: 360px; color: rgba(255, 255, 255, .76); }
.locked-gate button { border: 0; border-radius: 12px; background: #f2f2ee; color: #131314; }
.locked-gate small { display: block; margin-top: 9px; color: rgba(255, 255, 255, .48); font-size: 8px; }

/* Small cleanup around the paywall: quiet cards, no decorative outlines or hover jumps. */
.episode-tile,
.episode-tile.is-current,
.episode-tile.is-locked,
.episode-tile.is-locked.is-current,
.subscription-card,
.upgrade-card,
.subscribe-cta,
.upgrade-button,
.desktop-panel-primary,
.desktop-panel-secondary { border: 0; }
.episode-tile:hover { border: 0; background: #252528; transform: none; }
.episode-tile.is-current,
.episode-tile.is-locked.is-current { background: #38383c; box-shadow: none; }
.subscription-card,
.upgrade-card { box-shadow: none; }
.subscribe-cta,
.upgrade-button { background: #f2f2ee; color: #151516; }
.desktop-panel-primary { background: #f2f2ee; color: #121213; }
.desktop-panel-secondary { background: #202023; color: #efefeb; }
.desktop-comment-form { border-top: 0; }
.desktop-comment-form input,
.comment-form input { border: 0; }
.social-action:hover > span:first-child,
.social-stat:hover > span:first-child { transform: none; }

@media (min-width: 801px) {
  .fresh-card { min-width: min(680px, 58vw); flex-basis: min(680px, 58vw); }
  .fresh-section { padding-bottom: 33px; }
}

@media (max-width: 800px) {
  .subscription-page { display: flex; min-height: 100dvh; flex-direction: column; padding: max(18px, env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); }
  .subscription-close { margin-bottom: 44px; }
  .subscription-intro { margin-top: 0; }
  .subscription-intro h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: -1.5px; }
  .subscription-context { max-width: none; margin-top: 16px; font-size: 11px; line-height: 1.9; }
  .subscription-benefits { gap: 10px; margin: 30px 0 28px; padding: 0; font-size: 10px; }
  .subscription-plans { gap: 9px; }
  .subscription-plan { min-height: 82px; padding: 14px; border-radius: 16px; }
  .subscription-plan-copy b { font-size: 13px; }
  .subscription-continue { min-height: 50px; margin-top: 12px; }
  .subscription-secure { align-self: center; margin: 10px 0 0; }
  .trailer-panel { grid-template-columns: 106px minmax(0, 1fr); }
  .trailer-panel-art { min-height: 160px; }
  .trailer-panel-copy { padding: 12px 12px 12px 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-view { transition: none; }
}

/* Access flow: one persistent back action, one quiet and clear purchase path. */
.viewer-back { z-index: 82; }
body.sheet-open .viewer-back { visibility: visible; opacity: 1; pointer-events: auto; }

.locked-gate {
  top: clamp(94px, 16dvh, 142px);
  right: 14px;
  left: 14px;
  width: auto;
  max-width: 390px;
  margin-inline: auto;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(29, 29, 32, .97), rgba(12, 12, 14, .96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .46);
  text-align: right;
  transform: none;
  backdrop-filter: blur(18px);
}

.gate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.locked-gate .gate-kicker { color: rgba(255, 255, 255, .56); font-size: 8px; font-weight: 700; }
.gate-lock { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .09); color: #f3f3ef; }
.gate-lock svg { width: 15px; height: 15px; }
.locked-gate > svg { display: none; }
.locked-gate .gate-title { display: block; margin-top: 13px; color: #fbfbf7; font-size: 17px; letter-spacing: -.5px; }
.locked-gate p { max-width: 330px; margin: 6px 0 0; color: rgba(255, 255, 255, .7); font-size: 9px; line-height: 1.9; }
.gate-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 15px; }
.gate-price { display: grid; gap: 3px; min-width: 0; }
.gate-price strong { color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.gate-price small { color: rgba(255, 255, 255, .48); font-size: 7px; white-space: nowrap; }
.locked-gate button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 12px; border: 0; border-radius: 11px; background: #f2f2ee; color: #151516; font-family: inherit; font-size: 9px; font-weight: 800; white-space: nowrap; }
.locked-gate button svg { width: 13px; height: 13px; }
.locked-gate .gate-footnote { display: block; margin-top: 10px; color: rgba(255, 255, 255, .42); font-size: 7px; }

.premium-upgrade-card { overflow: hidden; border: 0; border-radius: 18px; background: linear-gradient(145deg, #202023, #151517); }
.premium-upgrade-card .upgrade-copy { padding: 19px; }
.premium-upgrade-card .upgrade-kicker { display: flex; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, .55); font-size: 8px; font-weight: 700; }
.premium-upgrade-card .upgrade-kicker i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #f4f4ef; }
.premium-upgrade-card .upgrade-kicker svg { width: 15px; height: 15px; }
.premium-upgrade-card .upgrade-copy > p { margin: 15px 0 0; color: rgba(255, 255, 255, .55); font-size: 8px; }
.premium-upgrade-card .upgrade-copy h3 { margin: 6px 0 7px; color: #fafaf6; font-size: 19px; letter-spacing: -.7px; }
.premium-upgrade-card .upgrade-copy > span { display: block; margin: 0; color: rgba(255, 255, 255, .69); font-size: 10px; line-height: 1.9; }
.premium-upgrade-card .upgrade-price { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 17px 0 14px; padding: 12px 13px; border-radius: 13px; background: rgba(255, 255, 255, .07); }
.premium-upgrade-card .upgrade-price small { color: rgba(255, 255, 255, .52); font-size: 8px; }
.premium-upgrade-card .upgrade-price strong { color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; }
.premium-upgrade-card .upgrade-price em { color: rgba(255, 255, 255, .6); font-size: 8px; font-style: normal; font-weight: 600; }
.premium-upgrade-card .upgrade-button { width: 100%; min-height: 43px; justify-content: center; border: 0; border-radius: 12px; background: #f2f2ee; color: #151516; font-size: 10px; }
.premium-upgrade-card .upgrade-back { display: block; margin: 12px auto 0; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .56); cursor: pointer; font: inherit; font-size: 9px; }

.subscription-card { padding: 15px; border: 0; border-radius: 16px; background: #1b1b1e; }
.subscription-card p { color: rgba(255, 255, 255, .53); }
.subscription-card b { color: #f2f2ee; }

.subscription-page {
  width: min(1120px, 100%);
  min-height: 100dvh;
  align-content: start;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  grid-template-rows: auto auto;
  column-gap: clamp(46px, 7vw, 112px);
  row-gap: 0;
  padding: clamp(104px, 11vh, 128px) clamp(34px, 7vw, 98px) 50px;
}

.subscription-close {
  position: absolute;
  top: 28px;
  left: clamp(28px, 4vw, 64px);
  z-index: 2;
  grid-column: auto;
  justify-self: auto;
  height: 36px;
  padding: 0;
  color: rgba(255, 255, 255, .64);
}
.subscription-close:hover { color: #fff; }

.subscription-intro { align-self: start; max-width: 490px; grid-column: 1; grid-row: 1; }
.subscription-intro > p { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: rgba(255, 255, 255, .58); font-size: 9px; }
.subscription-intro > p em { padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .66); font-size: 7px; font-style: normal; }
.subscription-intro h1 { max-width: 440px; font-size: clamp(34px, 3.7vw, 48px); line-height: 1.22; letter-spacing: -1.7px; }
.subscription-context { max-width: 435px; margin-top: 15px; color: rgba(255, 255, 255, .68); font-size: 11px; line-height: 2; }
.subscription-starting-price { display: flex; align-items: baseline; gap: 8px; margin-top: 21px; }
.subscription-starting-price span { color: rgba(255, 255, 255, .47); font-size: 9px; }
.subscription-starting-price b { color: #fff; font-size: 15px; font-weight: 800; }
.subscription-starting-price small { color: rgba(255, 255, 255, .57); font-size: 8px; font-weight: 600; }

.subscription-benefits { align-self: start; gap: 11px; margin: 27px 0 0; padding: 0; color: rgba(255, 255, 255, .76); font-size: 10px; grid-column: 1; grid-row: 2; }
.subscription-benefits li { gap: 9px; }
.subscription-benefits svg { width: 15px; height: 15px; color: rgba(255, 255, 255, .8); }

.subscription-checkout { align-self: start; grid-column: 2; grid-row: 1 / span 2; }
.subscription-checkout-label { margin: 0 0 11px; color: rgba(255, 255, 255, .55); font-size: 9px; font-weight: 700; }
.subscription-plans { display: grid; align-self: auto; gap: 9px; grid-column: auto; grid-row: auto; }
.subscription-plan { min-height: 82px; padding: 15px 16px; border-radius: 15px; background: #1b1b1e; }
.subscription-plan:hover { background: #252528; }
.subscription-plan.is-selected { background: #f2f2ee; }
.subscription-plan-copy { gap: 4px; }
.subscription-plan-copy b { font-size: 14px; }
.subscription-plan > strong { font-size: 13px; }
.subscription-plan-badge { top: -7px; left: 13px; font-size: 7px; }
.subscription-continue { width: 100%; min-height: 49px; margin-top: 11px; border-radius: 13px; grid-column: auto; grid-row: auto; }
.subscription-secure { justify-content: flex-start; margin: 11px 2px 0; font-size: 8px; grid-column: auto; grid-row: auto; }

@media (min-width: 801px) {
  .locked-gate { top: clamp(82px, 14dvh, 120px); right: 16px; left: 16px; max-width: none; }
}

@media (max-width: 800px) {
  .subscription-page { display: flex; min-height: 100dvh; flex-direction: column; padding: max(76px, calc(env(safe-area-inset-top) + 58px)) 20px calc(30px + env(safe-area-inset-bottom)); }
  .subscription-close {
    position: fixed;
    top: max(15px, env(safe-area-inset-top));
    left: 14px;
    display: inline-flex;
    width: 35px;
    min-width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(18, 18, 18, .25);
    color: #fff;
    backdrop-filter: blur(10px);
  }
  .subscription-close span { display: none; }
  .subscription-close svg { width: 16px; height: 16px; }
  .subscription-close:active { transform: scale(.94); }
  .subscription-intro { width: 100%; max-width: none; margin: 0; }
  .subscription-intro > p { gap: 8px; margin-bottom: 12px; }
  .subscription-intro h1 { max-width: 340px; font-size: clamp(31px, 8.5vw, 39px); line-height: 1.22; letter-spacing: -1.4px; }
  .subscription-context { max-width: 350px; margin-top: 14px; color: rgba(255, 255, 255, .72); line-height: 2.05; }
  .subscription-starting-price { gap: 9px; margin-top: 17px; }
  .subscription-starting-price b { font-size: 16px; }
  .subscription-benefits { width: 100%; gap: 0; margin: 28px 0 0; padding: 4px 14px; border-radius: 17px; background: rgba(255, 255, 255, .06); }
  .subscription-benefits li { min-height: 37px; gap: 9px; color: rgba(255, 255, 255, .78); font-size: 9px; }
  .subscription-benefits svg { width: 14px; height: 14px; color: rgba(255, 255, 255, .72); }
  .subscription-checkout { width: 100%; margin-top: 28px; }
  .subscription-checkout-label { margin-bottom: 10px; color: rgba(255, 255, 255, .62); font-size: 10px; }
  .subscription-plans { gap: 10px; }
  .subscription-plan { min-height: 78px; padding: 14px 15px; border-radius: 17px; }
  .subscription-plan-copy b { font-size: 13px; }
  .subscription-plan-copy small { margin-top: 1px; font-size: 9px; }
  .subscription-plan > strong { font-size: 13px; }
  .subscription-continue { min-height: 53px; margin-top: 14px; border-radius: 15px; font-size: 11px; }
  .subscription-secure { justify-content: center; margin-top: 12px; color: rgba(255, 255, 255, .58); font-size: 9px; }
  .locked-gate { top: clamp(92px, 15dvh, 132px); right: 14px; left: 14px; padding: 15px; }
  .locked-gate .gate-title { font-size: 16px; }
  .gate-footer { gap: 8px; }
  .locked-gate button { min-height: 37px; padding: 0 10px; font-size: 8px; }
}

/* Locked episodes are a read-only preview surface: the social proof stays visible, controls do not. */
.playback-indicator[hidden],
.reel-viewer.is-locked .playback-indicator { display: none !important; }
.reel-viewer.is-locked .viewer-seek { display: none !important; }
.reel-viewer.is-locked .reel-side-actions { pointer-events: none; }
.social-stat-locked { cursor: default; opacity: 1; user-select: none; }
.social-stat-locked > span:first-child { color: rgba(255, 255, 255, .78); }
.social-stat-locked b { color: rgba(255, 255, 255, .95); }

.locked-gate {
  top: clamp(96px, 15dvh, 132px);
  right: 14px;
  left: 14px;
  max-width: 390px;
  margin-inline: auto;
  padding: 15px;
  border-radius: 19px;
  background: linear-gradient(142deg, rgba(34, 34, 38, .98), rgba(13, 13, 15, .98));
  box-shadow: 0 20px 56px rgba(0, 0, 0, .5);
}
.gate-head { align-items: center; }
.locked-gate .gate-kicker { color: rgba(255, 255, 255, .52); letter-spacing: .1px; }
.gate-lock { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.locked-gate .gate-title { margin-top: 12px; color: #fff; font-size: 17px; letter-spacing: -.55px; }
.locked-gate p { margin-top: 5px; color: rgba(255, 255, 255, .68); font-size: 9px; line-height: 1.85; }
.gate-offer { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 9px 11px; border-radius: 13px; background: rgba(255, 255, 255, .075); }
.gate-offer > span { display: grid; gap: 3px; }
.gate-offer small { color: rgba(255, 255, 255, .5); font-size: 7px; }
.gate-offer strong { color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.gate-offer em { color: rgba(255, 255, 255, .58); font-size: 8px; font-style: normal; font-weight: 600; }
.gate-offer > b { padding: 5px 7px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); font-size: 7px; font-weight: 700; white-space: nowrap; }
.locked-gate button { width: 100%; min-height: 43px; justify-content: center; margin-top: 10px; border-radius: 13px; background: #f4f4ef; color: #151516; font-size: 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.locked-gate .gate-footnote { margin-top: 9px; color: rgba(255, 255, 255, .43); font-size: 7px; text-align: center; }

@media (min-width: 801px) {
  .locked-gate { top: clamp(86px, 13dvh, 122px); right: 16px; left: 16px; max-width: none; }
}

@media (max-width: 380px) {
  .locked-gate { padding: 14px; }
  .gate-offer > b { display: none; }
}
/* Locked desktop reactions remain visible as proof, but are intentionally read-only. */
.reel-viewer.is-locked .desktop-panel-secondary,
.reel-viewer.is-locked .desktop-comment-form {
  pointer-events: none;
  opacity: .52;
  user-select: none;
}
.reel-viewer.is-locked .desktop-panel-secondary { cursor: default; }
.reel-viewer.is-locked .desktop-comment-form input { cursor: not-allowed; }