/* Dynasty finishing pass: consistent controls, quiet borders and aligned actions. */
html body { --control-line:color-mix(in srgb,currentColor 24%,transparent); --control-fill:color-mix(in srgb,currentColor 5%,transparent); }
html body :is(a.btn,button.btn,.discovery-share__button,.iconbtn,.reader-back,.lore-launch-btn) {
  box-sizing:border-box; border:1px solid var(--control-line); border-radius:8px;
  background:var(--control-fill); color:inherit; min-height:44px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 18px; line-height:1.3; text-align:center; text-decoration:none;
  vertical-align:middle; box-shadow:none; transform:none;
}
html body :is(a.btn,button.btn,.discovery-share__button,.iconbtn,.reader-back,.lore-launch-btn):hover { background:color-mix(in srgb,currentColor 10%,transparent); border-color:color-mix(in srgb,currentColor 48%,transparent); }
html body :is(a.btn.crown,button.btn.crown),html body .experience-continue a {
  background:var(--crown,#cda367); color:var(--crown-ink,#171c1b); border:1px solid transparent;
  border-radius:8px; padding:12px 20px; box-shadow:none;
}
html body :is(a.btn.crown,button.btn.crown):hover,html body .experience-continue a:hover { background:var(--crown-hi,#dfb97e); color:var(--crown-ink,#171c1b); }
html body :is(a.btn.text,button.btn.text) { border:1px solid var(--control-line); padding:11px 18px; text-decoration:none; }
html body :is(a.btn,button.btn,.discovery-share__button,.iconbtn,.reader-back,.lore-launch-btn):focus-visible { outline:3px solid var(--focus,var(--brass-hi,#e6ba74)); outline-offset:3px; }
html body :is(button.btn:disabled,.btn[aria-disabled=true]) { opacity:.55; cursor:not-allowed; border-style:solid; }
html body .bar .iconbtn { border-radius:8px; padding:8px 12px; border-color:#ffffff30; background:#1116; }
html body .bar .reader-back { border-color:#ffffff30; background:#1116; }
html body .bar .menu-btn,html body .bar [data-settings] { padding:6px; }
html body .bar nav a { text-decoration:none; border-bottom:0; border-radius:6px; }
html body .bar nav a[aria-current=page] { background:#ffffff0d; color:var(--brass-hi,#dbbb87); }
html body .free-catalog-nav { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; padding-block:16px; }
html body .free-catalog-nav a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; border:1px solid var(--control-line); border-radius:8px; text-decoration:none; font:600 14px/1.3 var(--f-ui,system-ui); background:var(--control-fill); }
html body .free-catalog-nav a:hover { background:color-mix(in srgb,currentColor 10%,transparent); }
.discovery-library-head { margin-bottom:32px; }
.discovery-library .discovery-controls { display:grid; grid-template-columns:minmax(200px,480px) 1fr; align-items:end; gap:10px 24px; margin-bottom:6px; }
.discovery-library .discovery-controls>label { grid-column:1; margin:0; }
.discovery-library .discovery-controls>input { grid-column:1; width:100%; border-radius:8px; border-color:var(--control-line); }
.discovery-library .discovery-filters { grid-column:2; grid-row:1 / 3; align-self:end; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
html body .discovery-filters .btn { min-height:48px; padding:10px 14px; }
html body .discovery-filters .btn[aria-pressed=true] { background:var(--brass,#b69458); color:#111; border-color:transparent; }
.discovery-grid { align-items:stretch; gap:32px 24px; }
.discovery-card { display:flex; flex-direction:column; border:1px solid var(--hair,#ffffff18); border-radius:12px; overflow:hidden; background:color-mix(in srgb,currentColor 3%,transparent); }
.discovery-card-picture { flex:none; }
.discovery-card-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:20px; }
.discovery-card h2,.discovery-card h3 { font-size:clamp(21px,2vw,25px); line-height:1.25; }
.discovery-card-copy .discovery-parent { margin-bottom:20px; }
.discovery-card-copy>.discovery-share { margin-top:auto; width:100%; }
.discovery-card-copy .discovery-share__button { width:100%; }
.discovery-card-copy .discovery-share__status:empty { display:none; }
.discovery-result-count { margin-block:20px 24px; }
.discovery-player { border-radius:12px; overflow:hidden; transform:none; }
.discovery-watch-details .discovery-book-links { gap:10px; }
.experience-books { align-items:stretch; }
.experience-book { align-content:stretch; grid-template-rows:1fr; padding-block:24px; }
.experience-book>div { display:flex; flex-direction:column; align-items:flex-start; }
.experience-book .experience-actions { margin-top:auto; padding-top:18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
.experience-book .experience-actions a { width:100%; min-height:44px; justify-content:center; border:1px solid var(--control-line); border-radius:8px; padding:10px 12px; text-decoration:none; }
.experience-book .experience-actions a:last-child { grid-column:1 / -1; }
.experience-continue { border-radius:10px; padding:22px 24px; }
.discovery-book-card { align-items:stretch; }
.discovery-book-copy .acts { gap:10px; }
.discovery-book-copy .acts :is(a,.discovery-share) { min-width:0; }
.discovery-carousel-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:24px; }
.discovery-carousel-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px!important; width:100%; max-width:760px; }
.discovery-carousel-tabs .t-tab { border-radius:7px; border-color:#ffffff30; min-height:44px; white-space:normal; }
.discovery-carousel-playback { display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.discovery-carousel-playback button { border:1px solid #ffffff30; border-radius:7px; padding:10px 16px; min-height:44px; }
.discovery-carousel-copy,.discovery-carousel-controls { width:100%; max-width:none; padding-inline:var(--gut); }
.chapter-sharing summary,.figure-sharing summary { padding:10px 14px; border:1px solid var(--control-line); border-radius:8px; gap:14px; background:var(--control-fill); }
.reader.chapter .r-head .row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
html body .character-controls { gap:8px; align-items:center; }
html body .w-hero .acts { gap:10px; align-items:stretch; }
html body .w-hero .acts>.discovery-share { display:flex; align-items:stretch; }
html body .w-hero .acts .discovery-share__button { height:100%; }
@media(max-width:1000px) {
  .discovery-library .discovery-controls { grid-template-columns:1fr; }
  .discovery-library .discovery-filters { grid-column:1; grid-row:auto; margin-top:10px; max-width:560px; }
  .discovery-carousel-controls { grid-template-columns:1fr; }
  .discovery-carousel-playback { flex-direction:row; justify-content:flex-start; }
}
@media(max-width:760px) {
  .discovery-carousel-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .discovery-carousel-copy { padding-bottom:24px; }
  .discovery-carousel-controls { padding-bottom:28px; }
  .discovery-card-copy { padding:18px; }
  html body .w-hero .acts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  html body .w-hero .acts :is(.btn,.discovery-share,.discovery-share__button) { width:100%; min-width:0; }
  html body .w-hero .acts>.btn.text { width:100%; }
}
@media(max-width:540px) {
  html body .free-catalog-nav { gap:6px; }
  html body .free-catalog-nav a { flex:1; padding:10px 8px; font-size:12px; }
  html body .discovery-filters .btn { font-size:13px; padding:10px 8px; }
  .discovery-library-head .lede { font:16px/1.6 var(--f-ui); }
  .experience-book { grid-template-columns:78px minmax(0,1fr); }
  .experience-book .experience-actions a { font-size:13px; }
  .discovery-book-card { grid-template-columns:84px minmax(0,1fr); gap:16px; }
  .discovery-book-copy .acts { grid-template-columns:1fr; }
  .discovery-carousel-playback { display:grid; grid-template-columns:1fr 1fr; }
  .discovery-carousel-playback button { font-size:12px; }
}
@media(forced-colors:active) { html body :is(.btn,.iconbtn,.discovery-share__button) { border:1px solid ButtonText; } }
/* Full-frame reels: the artwork has its own canvas, separate from the copy. */
html body .bar.over { position:relative; background:var(--ink,#0b0b0c); }
html body :is(.discovery-carousel.tellings,.w-hero) {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:24px 40px;
  min-height:0!important; height:auto; max-height:none; padding:40px var(--gut); overflow:visible;
}
html body :is(.discovery-carousel.tellings,.w-hero)>.stage {
  position:relative; inset:auto; grid-column:2; grid-row:1; width:100%; height:auto;
  min-height:0; aspect-ratio:4/3; align-self:center; border-radius:12px;
  background:#050607; overflow:hidden; border:1px solid #ffffff1c;
}
html body :is(.tellings,.w-hero) .stage :is(video,img,.reel-item) {
  object-fit:contain!important; object-position:center!important; transform:none!important; animation:none!important;
  width:100%; height:100%; max-width:100%;
}
html body :is(.tellings,.w-hero) .stage::before,
html body :is(.tellings,.w-hero) .stage::after,
html body .discovery-carousel::after { display:none; }
html body .discovery-carousel-copy { grid-column:1; grid-row:1; padding:16px 0!important; align-self:center; margin:0; }
html body .discovery-carousel-copy h1 { font-size:clamp(40px,5.2vw,76px); overflow-wrap:normal; }
html body .discovery-carousel-line { min-height:0; }
html body .discovery-carousel-controls { grid-column:1 / -1; grid-row:2; padding:8px 0 0; }
html body .w-hero .in { grid-column:1; grid-row:1 / 3; padding:16px 0; margin:0; align-self:center; min-width:0; }
html body .w-hero .copy { width:100%; max-width:none; }
html body .w-hero h1,html body[data-world] .w-hero h1 { font-size:clamp(44px,5.8vw,84px); line-height:1; white-space:normal; overflow-wrap:normal; margin:0 0 24px; }
html body .w-hero .loop-ctl { position:static; grid-column:2; grid-row:2; justify-self:end; width:auto; }
html body .w-hero .acts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .w-hero .acts :is(.btn,.discovery-share,.discovery-share__button) { width:100%; }
html body :is(.frame,.discovery-card-picture) :is(img,video) { object-fit:contain; transform:none; }
html body .r-print figure,html body .r-fig .print { transform:none; }
@media(max-width:900px) {
  html body :is(.discovery-carousel.tellings,.w-hero) { display:flex; flex-direction:column; gap:20px; padding:24px var(--gut) 32px; }
  html body :is(.discovery-carousel.tellings,.w-hero)>.stage { aspect-ratio:4/3; max-height:480px; flex:none; order:0; }
  html body .discovery-carousel-copy { order:1; padding:8px 0!important; }
  html body .discovery-carousel-controls { order:2; display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  html body .w-hero .loop-ctl { order:1; align-self:flex-end; }
  html body .w-hero .in { order:2; padding:0; }
  html body .w-hero .loop-ctl :is(.lbl,span) { position:static; width:auto; height:auto; clip:auto; }
  html body .w-hero h1,html body[data-world] .w-hero h1 { font-size:clamp(38px,8.4vw,68px); }
}
@media(max-width:540px) {
  html body :is(.discovery-carousel.tellings,.w-hero)>.stage { aspect-ratio:3/4; max-height:480px; }
  html body .discovery-carousel-copy h1 { font-size:clamp(36px,10vw,50px); }
  html body .discovery-carousel-copy .acts>.btn { padding:12px; }
}

/* One shared content axis on wide displays, matched to every section below. */
html body :is(.bar,.discovery-carousel.tellings,.w-hero) {
  padding-inline:max(var(--gut),calc((100% - var(--wrap))/2));
}
html body .w-hero.w-hero { align-items:center; grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .w-hero .in { grid-row:1; }
html body .w-hero.right .in { justify-items:stretch; text-align:left; }
html body .w-hero.right .copy { max-width:none; }
html body .premium-hero-media { grid-column:2; grid-row:1; display:grid; gap:12px; min-width:0; }
html body .premium-hero-media>.stage { position:relative; inset:auto; width:100%; height:auto; min-height:0; aspect-ratio:4/3; background:#050607; border:1px solid #ffffff1c; border-radius:12px; overflow:hidden; }
html body .premium-hero-media>.loop-ctl { grid-column:1; grid-row:auto; justify-self:end; margin:0; }
html body .w-hero .acts>* { min-height:48px; }
html body .w-hero .acts .discovery-share__button { min-height:48px; height:100%; }
html body .discovery-carousel-tabs .t-tab { width:100%; height:auto; padding:10px 12px; }
html body .band .frame,html body .band .art { transform:none; }
@media(max-width:900px) {
 html body .premium-hero-media { order:0; width:100%; }
 html body .premium-hero-media>.stage { aspect-ratio:4/3; max-height:480px; }
 html body .w-hero .in { width:100%; }
}
@media(max-width:540px) {
 html body .premium-hero-media>.stage { aspect-ratio:3/4; max-height:440px; }
}

html body .w-hero .in,.w-hero .copy { min-width:0; width:100%; }
html body[data-world="ekaladerhan"] .w-hero h1 { font-size:clamp(30px,3.6vw,60px); letter-spacing:.01em; }
html body .w-hero .acts .discovery-share__button { display:flex; justify-content:center; text-align:center; border-color:var(--control-line); border-radius:8px; }
html body .discovery-share__status:empty { display:none; }

/* Keep a small, equal decorative margin without shrinking the reader's text. */
@media(max-width:760px) {
 html body .reader.chapter .ch-text { width:calc(100% - 56px); margin-inline:auto; padding-inline:0; }
}

html body .free-catalog-nav a { text-align:center; }
@media(min-width:861px) {
 html body .reader.chapter .r-cover { grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; min-height:0; padding:48px max(var(--gut),calc((100% - var(--wrap))/2)); align-items:start; }
 html body .reader.chapter .r-head,html body .reader.chapter .r-print { padding:16px 0; min-width:0; width:100%; }
 html body .reader.chapter .r-print { background:none; }
}
