:root {
  color-scheme: light;
  --ink: #211a38;
  --muted: #59536b;
  --accent: #5d43d7;
  --accent-shadow: #4a32bb;
  --lavender: #f3f0fc;
  --border: #e9e5f0;
  --grad: linear-gradient(105deg, #6044e4, #934bf0 55%, #e55a91);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 900; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
h2 { font-size: clamp(1.32rem, 2.3vw, 1.72rem); }
p { line-height: 1.52; }
button, a, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #9a66f4; outline-offset: 3px; }
a { color: inherit; }
.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 65px;
  padding: 10px max(20px, calc((100vw - 1100px)/2)); border-bottom: 1px solid var(--border); background: #fbf8ef;
}
.brand { grid-column: 2; white-space: nowrap; text-decoration: none; font-size: 1.55rem; }
.brand span { color: #e5b347; }
.menu { justify-self: start; background: none; border: 0; padding: 8px; display: inline-flex; }
.menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.demo-switch { justify-self: end; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.demo-switch span { padding-inline: 4px; }
.demo-switch a { padding: 5px 7px; border-radius: 7px; text-decoration: none; }
.demo-switch a[aria-current] { background: #eee7ff; color: var(--accent); font-weight: 800; }
.children {
  position: absolute; top: 65px; left: 0; width: 240px; height: calc(100vh - 65px); min-height: 240px;
  display: flex; flex-direction: column; gap: 10px; padding: 25px 16px 20px 24px;
  border-right: 1px solid var(--border); background: var(--lavender);
}
body:not(.menu-open) .children { visibility: visible; }
body.menu-open .children { visibility: hidden; }
body.menu-open .main { margin-left: auto; }
.eyebrow { color: #6e667e; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .73rem; }
.child { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-top: 7px; }
.avatar { display: grid; place-content: center; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; color: white; background: var(--grad); box-shadow: 0 2px 6px #30244926; }
.child-film { text-align: left; padding: 10px 12px; background: #eae4fd; border: 0; border-left: 3px solid var(--accent); border-radius: 13px; color: var(--accent); font-weight: 800; }
.add-child { margin-top: auto; text-align: left; }
.text-button { border: 0; background: none; color: var(--accent); padding: 5px 0; font-size: .88rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.main { margin: 0 0 0 240px; padding: 30px 34px 72px; }
.access-message { max-width: 580px; margin: 0 auto; padding: 58px 18px; }
.access-message p, #episode-description { margin-top: 8px; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 8px; }
.order-link { text-align: right; white-space: nowrap; }
.player { position: relative; max-width: 850px; aspect-ratio: 16/9; background: #201936; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 38px #2b1f5425; }
.player video, .poster, .poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.poster { border: none; padding: 0; background: none; color: #fff; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #130e2e3a, transparent 40%, transparent 67%, #100b262b); pointer-events: none; }
.ready, .duration, .play { position: absolute; z-index: 1; }
.ready { top: 14px; left: 14px; background: #fff; color: #317147; border-radius: 999px; padding: 7px 12px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.duration { bottom: 12px; right: 12px; background: #171224bc; padding: 4px 8px; border-radius: 7px; font-size: .75rem; font-weight: 800; }
.play { top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(54px, 7vw, 80px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; padding-left: 3px; background: #fff; color: #241846; font-size: 1.4rem; box-shadow: 0 7px 22px #0004; }
.episode { max-width: 850px; margin-top: 12px; border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.episode .eyebrow { color: var(--accent); margin-bottom: 5px; }
.owned { color: #34734b; margin-top: 4px; font-size: .9rem; font-weight: 750; }
.episode-actions { max-width: 500px; margin-top: 12px; display: grid; gap: 7px; }
.action { display: flex; justify-content: center; align-items: center; min-height: 44px; width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid transparent; font-weight: 800; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: white; box-shadow: inset 0 -4px var(--accent-shadow); }
.primary:hover { background: #513ac6; }
.secondary { border-color: var(--accent); color: var(--accent); background: #f7f3ff; }
.secondary:hover, .soft:hover { background: #e6defa; }
.soft { background: #eee7fc; color: var(--accent); }
.download-help { font-size: .82rem; color: var(--muted); padding: 2px 0 4px; }
.film-nav { margin: 13px 0; }
.film-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.film-card { padding: 5px 5px 6px; border: 1px solid var(--border); background: white; border-radius: 12px; font-size: .82rem; font-weight: 800; }
.film-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 5px; }
.film-card[aria-current] { border-color: var(--accent); color: var(--accent); background: #f6f2ff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 9px 0 0; }
.pagination > button { border: 1px solid var(--border); border-radius: 50%; width: 43px; height: 43px; background: white; color: var(--accent); font-size: 1.2rem; }
.pagination button:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 5px; }
.dots button { border: 0; width: 15px; height: 28px; background: radial-gradient(circle, #e4dff0 4px, transparent 4.5px); }
.dots button[aria-current] { background: radial-gradient(circle, var(--accent) 4px, transparent 4.5px); }
.gradient-panel { border-radius: 20px; padding: 17px 18px; margin-top: 14px; background: var(--grad); color: white; }
.gradient-panel h2 { margin-bottom: 6px; }
.gradient-panel .white { background: white; color: var(--accent); margin-top: 12px; }
.review-panel p { color: #fff; font-size: .92rem; }
.stars { display: flex; gap: 4px; margin: 9px 0; }
.stars button { border: 0; background: #fff2; color: #fff; min-width: 40px; min-height: 38px; font-size: 1.4rem; border-radius: 8px; }
.stars button:hover { color: #ffdf85; }
.gift-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gift-card { display: grid; justify-items: center; gap: 5px; padding: 13px 6px; border: 0; border-radius: 13px; background: white; color: var(--ink); font-size: .89rem; }
.gift-card span { font-size: 1.65rem; }
.gift-card small { text-transform: uppercase; background: #ffda75; padding: 2px 6px; border-radius: 4px; font-weight: 900; }
.next { margin-top: 24px; }
.next > p { color: var(--muted); margin-top: 4px; }
.next .offer { background: linear-gradient(95deg, #e55a91, #954bef 58%, #6044e4); border-radius: 9px; color: white; font-weight: 800; padding: 9px 12px; margin: 13px 0 15px; font-size: .9rem; }
.offer span { font-size: .73rem; margin-left: 8px; font-weight: 600; }
.recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }
.recommendations article { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px #37215a15; }
.recommendation-art { aspect-ratio: 3/4; position: relative; background: #302244; }
.recommendation-art img { width: 100%; height: 100%; object-fit: cover; }
.recommendation-art span { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #c43173; color: white; font-size: .78rem; font-weight: 800; }
.recommendation-body { padding: 12px; }
.recommendation-body p { font-size: .83rem; color: #7c580b; font-weight: 750; margin: 4px 0 10px; }
.recommendation-body .action + .action { margin-top: 7px; }
.contact { max-width: 760px; margin: 64px auto 0; padding: 24px; background: var(--lavender); border: 1px solid var(--border); border-radius: 22px; }
.contact > p { color: var(--muted); margin: 5px 0 14px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact input, .contact textarea { width: 100%; border: 1px solid #ded7ec; border-radius: 11px; padding: 13px; color: var(--ink); background: white; }
.contact textarea { margin: 8px 0 6px; resize: vertical; }
#contact-status { margin-top: 10px; }
.contact form label { display: block; font-weight: 700; margin-top: 10px; }
.contact input, .contact textarea { font-size: 16px; }
.contact textarea { margin-top: 0; }
#contact-status:empty { margin: 0; }
.portal-gifts { max-width: 760px; margin: 34px auto 0; padding: 20px; background: var(--lavender); border: 1px solid var(--border); border-radius: 22px; }
.portal-gifts ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.portal-gifts .action { white-space: normal; overflow-wrap: anywhere; }
dialog { width: min(440px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--border); border-radius: 18px; color: var(--ink); }
dialog::backdrop { background: #160f36a6; }
dialog p { margin: 10px 0 17px; }
@media (max-width: 850px) {
  .topbar { padding-inline: 10px; }
  .demo-switch span { display: none; }
  .children { position: fixed; z-index: 5; top: 65px; box-shadow: 0 4px 30px #26174338; }
  body:not(.menu-open) .children { visibility: hidden; }
  body.menu-open .children { visibility: visible; }
  .main { margin-left: 0; padding: 23px 14px 40px; }
  .order-link { white-space: normal; }
}
@media (max-width: 430px) {
  .page-head { display: grid; gap: 3px; margin-bottom: 12px; }
  .order-link { justify-self: start; }
  .film-cards { gap: 5px; }
  .film-card { padding: 3px; }
  .episode, .gradient-panel, .contact { padding: 13px; }
  .contact-fields { grid-template-columns: 1fr; }
  .recommendation-body { padding: 8px; }
  .recommendation-body h3 { font-size: .94rem; }
}

.brand img { display: block; width: clamp(116px, 20vw, 158px); height: auto; }
#portal-gifts { max-width: none; }
#portal-gifts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; list-style: none; padding: 0; }
#portal-gifts-list[hidden] { display: none; }
#portal-gifts-list li { min-width: 0; color: var(--ink); background: white; border-radius: 14px; padding: 12px; }
#portal-gifts-list strong { display: block; margin: 8px 0; }
#portal-gifts-list audio { display: block; width: 100%; margin-block: 7px 10px; }
.gift-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fcfbff; }
.gift-thumb img { display: block; width: 100%; height: 170px; object-fit: contain; }
#gift-dialog-image { display: block; max-width: 100%; max-height: 66vh; margin: 10px auto; object-fit: contain; }
.stars { border: 0; padding: 0; }
.stars legend { margin-bottom: 7px; }
.stars label { display: grid; place-items: center; position: relative; min-width: 43px; min-height: 43px; border-radius: 8px; background: #fff2; cursor: pointer; }
.stars input { position: absolute; opacity: 0; }
.stars label:focus-within { outline: 2px solid white; outline-offset: 2px; }
.stars label span { font-size: 1.45rem; }
.stars label.is-selected { color: #ffdc74; }
.recommendations { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.recommendation-art { display: grid; place-items: center; aspect-ratio: 4/3; background: linear-gradient(140deg,#291552,#8550c3); }
.recommendation-art b { font-size: 3.8rem; }
.recommendation-body .action { width: 100%; }
.film-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); }
.tv-tabs { display: flex; gap: 8px; margin: 12px 0; }
.tv-tabs button { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--lavender); }
.tv-tabs button[aria-selected="true"] { background: var(--accent); color: white; }
#tv-dialog ol { line-height: 1.6; padding-inline-start: 24px; }
#tv-dialog [role="tabpanel"] { margin-bottom: 15px; }
.recommendation-body .action small { display: block; font-size: .78em; font-weight: 700; }
.recommendation-body s { opacity: .75; }
.topbar { background: #171035; color: white; }
.demo-switch { color: #e8ddff; }
.recommendation-prices { margin: 7px 0 11px; }
.recommendation-prices p { margin: 2px 0; }
.recommendation-prices s { color: var(--muted); }
#tv-dialog form { margin-top: 12px; }
.review-panel { padding: clamp(17px, 4vw, 25px); }
.review-panel .stars button { min-width: 44px; min-height: 44px; color: #ffdc74; }
.review-panel .stars button:hover { background: #fff4; }
.review-public { display: block; margin-top: 12px; }
#review-dialog { max-height: 90vh; overflow-y: auto; }
.review-dialog-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.review-dialog-head form { margin: 0; }
.review-close { background: var(--lavender); border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; color: var(--accent); }
#review-form > label { display: block; font-weight: 700; margin: 13px 0 5px; }
#review-form > label span, .review-note { color: var(--muted); font-weight: normal; font-size: .9rem; }
#review-form textarea, #review-form input:not([type="radio"]) { width: 100%; padding: 11px; border: 1px solid #d3c8e5; border-radius: 9px; background: white; }
#review-form .action { margin-top: 15px; }
#review-test, #review-status { margin-top: 12px; }
.review-rating { border: 0; padding: 0; display: flex; gap: 5px; margin: 14px 0; }
.review-rating legend { margin-bottom: 6px; font-weight: 700; }
.review-rating label { display: grid; place-items: center; position: relative; min-width: 44px; min-height: 44px; border-radius: 8px; background: var(--lavender); color: #554579; cursor: pointer; }
.review-rating input { position: absolute; opacity: 0; }
.review-rating label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-rating label span { font-size: 1.4rem; }
.review-rating .is-selected { color: #6d3c00; background: #ffe4a1; }

.recommendation-body h3, .recommendation-body > p { color: var(--ink); }
.recommendation-body > p { font-weight: 600; }
.recommendation-prices { display: grid; gap: 7px; }
.recommendation-offer { padding: 8px; border: 1px solid #d8cbea; border-radius: 10px; background: #f8f4ff; font-size: .86rem; }
.recommendation-offer > strong { display: block; color: var(--ink); }
.recommendation-offer > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; margin-top: 2px; }
.recommendation-offer s { color: #4b435d; white-space: nowrap; }
.recommendation-offer > div strong { color: #4524a6; white-space: nowrap; }

.recommendations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recommendations article, .recommendation-body { display: flex; flex-direction: column; }
.recommendation-body { flex: 1; }
.recommendation-prices { margin-top: auto; }
@media (max-width: 1120px) { .recommendations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 330px) { .recommendations { grid-template-columns: 1fr; } }
