/* The anime detail sheet (detail.js): a card that grows into a page about one anime,
   plus the small "details" affordances on deck cards, shelf picks, duels and tidy cards. */

html.ad-open { overflow: hidden; }

/* ---------- The dialog and the sheet ---------- */
.ad-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: transparent; overflow: hidden; }
.ad-dialog[open] { display: grid; place-items: center; }
.ad-dialog::backdrop { background: transparent; }
.ad-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 11, .88); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.ad-sheet { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1080px, calc(100% - 48px)); height: min(900px, calc(100% - 48px)); overflow: hidden; color: var(--ink); background-color: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(18, 18, 18, .045) 28px); box-shadow: 14px 14px 0 #050505; outline: none; }
.ad-scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ad-content { min-height: 100%; }
.ad-fly { position: fixed; z-index: 5; overflow: hidden; transform-origin: 0 0; pointer-events: none; will-change: transform; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ad-fly img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.ad-sheet.is-flying .ad-cover img { visibility: hidden; }
.ad-grabber { display: none; }

.ad-close { position: absolute; top: 14px; right: 14px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(242, 238, 223, .45); border-radius: 50%; color: var(--paper); background: rgba(18, 18, 18, .62); font: 400 28px/1 Georgia, serif; cursor: pointer; transition: background-color .15s, border-color .15s; }
.ad-close:hover { border-color: var(--red); background: var(--red); }
.ad-close:focus-visible, .ad-back:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 4px var(--red); }

/* ---------- Hero: banner, cover, titles ---------- */
.ad-hero { position: relative; }
.ad-banner { --tint: #2a2a2e; position: relative; height: 240px; overflow: hidden; background: var(--ink); background-image: linear-gradient(135deg, var(--tint), #121212 70%); }
.ad-banner img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .66; }
.ad-banner img.ad-banner-soft { opacity: .45; filter: blur(16px) saturate(1.15); transform: scale(1.25); }
.ad-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .2) 0%, rgba(18, 18, 18, .15) 45%, rgba(18, 18, 18, .82) 100%); }
.ad-banner-mark { position: absolute; top: 86px; right: 26px; z-index: 1; color: rgba(242, 238, 223, .72); font: 400 15px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .4em; writing-mode: vertical-rl; }
.ad-back { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 96px); min-height: 44px; padding: 0 16px; border: 1px solid rgba(242, 238, 223, .45); border-radius: 22px; color: var(--paper); background: rgba(18, 18, 18, .62); font: 14px/1.2 Arial, sans-serif; cursor: pointer; }
.ad-back:hover { border-color: var(--red); }
.ad-back-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ad-hero-body { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "cover meta" "cover titles"; grid-template-rows: auto 1fr; column-gap: 32px; margin-top: -126px; padding: 0 44px 8px; }
.ad-cover { grid-area: cover; position: relative; z-index: 1; align-self: start; width: 200px; margin: 0; padding: 8px; background: var(--paper); box-shadow: 10px 10px 0 #050505; }
.ad-cover img, .ad-cover > i { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #cbc3ae; }
.ad-cover > i { display: grid; place-items: center; color: rgba(18, 18, 18, .35); font: normal 400 54px/1 "Yu Mincho", "MS Mincho", serif; }
.ad-stamp { position: absolute; right: -22px; bottom: 22px; display: grid; justify-items: center; gap: 3px; padding: 8px 12px 6px; border: 3px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(242, 238, 223, .93); box-shadow: 3px 3px 0 rgba(18, 18, 18, .22); transform: rotate(-10deg); pointer-events: none; }
.ad-stamp b { font: 400 26px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .04em; }
.ad-stamp small { font: 800 9px/1 Arial, sans-serif; letter-spacing: .2em; }
.ad-stamp-pass { border-color: var(--ink); color: var(--ink); }

.ad-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; padding-top: 142px; padding-right: 108px; }
.ad-kicker { width: 100%; margin: 0; color: var(--red); font: 800 12px/1.4 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.ad-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 7px 12px; border: 1px solid var(--ink); font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ad-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8a8374; }
.ad-status.is-airing i { background: var(--red); box-shadow: 0 0 0 0 rgba(239, 75, 63, .55); animation: ad-airing 2.2s ease-out infinite; }
.ad-status small { color: #6a665d; font: 600 12px/1.3 Arial, sans-serif; letter-spacing: .02em; text-transform: none; }
@keyframes ad-airing { 70% { box-shadow: 0 0 0 9px rgba(239, 75, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 75, 63, 0); } }
.ad-seal { position: absolute; top: 76px; right: 44px; z-index: 2; display: grid; place-items: center; align-content: center; width: 96px; height: 96px; margin: 0; border-radius: 50%; color: var(--paper); background: var(--red); box-shadow: 0 0 0 5px var(--paper), 6px 8px 0 5px rgba(5, 5, 5, .85); transform: rotate(-8deg); }
.ad-seal b { font: 400 40px/1 Georgia, serif; letter-spacing: -.04em; }
.ad-seal small { margin-top: 2px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .2em; }
.ad-titles { grid-area: titles; min-width: 0; padding: 12px 0 0; }
.ad-titles h2 { margin: 0; font: 400 clamp(32px, 4.6vw, 58px)/.98 Georgia, serif; letter-spacing: -.045em; overflow-wrap: anywhere; outline: none; }
.ad-alt { margin: 10px 0 0; color: #5f5b53; font: italic 17px/1.45 Georgia, serif; overflow-wrap: anywhere; }
.ad-alt span { color: var(--red); }

/* ---------- Body ---------- */
.ad-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 0 48px; padding: 22px 44px 44px; }
.ad-main, .ad-side { min-width: 0; }
.ad-section { padding: 24px 0 26px; border-top: 1px solid #c3bba7; }
.ad-label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; color: var(--red); font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.ad-label span { flex: none; color: var(--ink); font: 400 19px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .06em; text-transform: none; white-space: nowrap; }
.ad-text { min-height: 44px; padding: 0 2px; border: 0; color: var(--ink); background: none; font: 15px/1.4 Arial, sans-serif; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.ad-text:hover { color: #a12519; }
.ad-text:focus-visible, .ad-mini:focus-visible, .ad-stream a:focus-visible, .ad-trailer:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ad-note, .ad-caveat { margin: 12px 0 0; color: #5f5b53; font: italic 15px/1.55 Georgia, serif; }

/* Why it is here */
.ad-why { padding-bottom: 22px; }
.ad-match { display: flex; align-items: center; gap: 14px; margin: 0; }
.ad-match b { display: inline-flex; align-items: baseline; padding: 6px 12px 6px 10px; color: var(--paper); background: var(--red); font: 400 34px/1 Georgia, serif; letter-spacing: -.03em; }
.ad-match b small { margin-left: 2px; font-size: 18px; }
.ad-match span { color: #4f4b44; font: italic 16px/1.4 Georgia, serif; }
.ad-reasons { display: flex; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; }
.ad-reasons li { padding: 0 10px 4px 0; color: #3c3933; font: italic 18px/1.5 Georgia, serif; }
.ad-reasons li:not(:last-child)::after { content: ' /'; color: var(--red); }
.ad-why-line { margin: 12px 0 0; color: #3c3933; font: 16px/1.6 Arial, sans-serif; }
.ad-why-line b { font: italic 17px/1.4 Georgia, serif; }
.ad-why-line small { color: #7a756b; font: 800 10px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ad-caution { display: flex; gap: 10px; align-items: baseline; color: #5f5b53; }
.ad-caution > span { color: var(--red); font: 400 18px/1 "Yu Mincho", "MS Mincho", serif; }

/* Story */
.ad-story-text { position: relative; max-height: 15.5em; overflow: hidden; color: #2b2925; font: 17px/1.7 Georgia, serif; }
.ad-story-text p { margin: 0; }
.ad-story-text p + p { margin-top: .85em; }
.ad-story-text.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(180deg, rgba(242, 238, 223, 0), var(--paper) 88%); pointer-events: none; }
.ad-story.is-open .ad-story-text { max-height: none; }
.ad-story-more { margin-top: 6px; }

/* Genres and themes */
.ad-genres, .ad-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ad-genres li { padding: 8px 14px; color: var(--paper); background: var(--ink); font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ad-tags { margin-top: 12px; }
.ad-tags li { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 12px; border: 1px solid #aaa697; background: rgba(255, 255, 255, .28); font: italic 16px/1.3 Georgia, serif; }
.ad-tags small { color: var(--red); font: normal 800 11px/1 Arial, sans-serif; }
.ad-spoiler-toggle { margin-top: 8px; }
.ad-spoilers li { border-style: dashed; border-color: var(--red); }
.ad-spoilers[hidden] { display: none; }

/* Your notebook */
.ad-notes { padding-top: 22px; }
.ad-shelf { display: flex; align-items: center; gap: 14px; margin: 0; font: 17px/1.4 Georgia, serif; }
.ad-shelf small { display: block; color: #6a665d; font: 14px/1.4 Arial, sans-serif; }
.ad-shelf-mark { flex: none; display: grid; place-items: center; min-width: 50px; height: 50px; padding: 0 6px; color: var(--paper); background: var(--red); font: 400 22px/1 "Yu Mincho", "MS Mincho", serif; }
.ad-viewing { margin: 12px 0 0; color: #4f4b44; font: 15px/1.5 Arial, sans-serif; }

/* The record */
.ad-facts { margin: 0; }
.ad-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dotted #a9a18d; }
.ad-facts dt { flex: none; color: #6a665d; font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ad-facts dd { min-width: 0; margin: 0; text-align: right; font: 16px/1.35 Georgia, serif; overflow-wrap: anywhere; }

/* Where to watch */
.ad-stream { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ad-stream a { --site: var(--ink); display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 7px 12px 7px 7px; border: 1px solid #aaa697; border-left: 5px solid var(--site); color: var(--ink); background: rgba(255, 255, 255, .36); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ad-stream a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--site); }
.ad-stream-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; color: var(--paper); background: var(--site); font: 800 16px/1 Arial, sans-serif; }
.ad-stream-icon img { width: 22px; height: 22px; object-fit: contain; }
.ad-stream-name { flex: 1; min-width: 0; }
.ad-stream-name b, .ad-stream-name small { display: block; }
.ad-stream-name b { font: 400 17px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.ad-stream-name small { color: #6a665d; font: 13px/1.3 Arial, sans-serif; }
.ad-out { color: var(--red); font: 18px/1 Arial, sans-serif; }
/* The trailer is a plain link: no preview image, so nothing is fetched from YouTube before a tap. */
.ad-trailer { display: flex; align-items: center; gap: 14px; min-height: 58px; margin-top: 16px; padding: 8px 14px 8px 8px; border: 1px solid var(--ink); color: var(--ink); background: rgba(255, 255, 255, .36); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ad-trailer:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.ad-trailer-play { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: var(--ink); }
.ad-trailer-play i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--red); }
.ad-trailer-play i::after { content: ''; position: absolute; top: 9px; left: 11px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--paper); }
.ad-trailer-text { flex: 1; min-width: 0; }
.ad-trailer b, .ad-trailer small { display: block; }
.ad-trailer b { font: 400 18px/1.25 Georgia, serif; }
.ad-trailer small { color: #6a665d; font: 13px/1.4 Arial, sans-serif; }
.ad-trailer-note { margin-top: 8px; }

/* Cast */
.ad-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ad-person { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) 46px; align-items: center; gap: 10px; min-height: 62px; padding: 7px; border: 1px solid #cfc7b2; background: rgba(255, 255, 255, .3); }
.ad-avatar { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #cbc3ae; }
.ad-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-avatar i { color: #6a665d; font: normal 400 18px/1 Georgia, serif; }
.ad-avatar-voice { border: 2px solid var(--red); }
.ad-person b, .ad-person small { display: block; overflow-wrap: anywhere; }
.ad-person b { font: 400 15px/1.25 Georgia, serif; }
.ad-person small { margin-top: 2px; color: #6a665d; font: 800 10px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ad-person-voice { text-align: right; }
.ad-person-voice small { color: var(--red); }
.ad-staff { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font: 15px/1.4 Georgia, serif; }
.ad-staff small { color: #6a665d; font: 800 10px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Related and recommended: small covers that open their own sheet */
.ad-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 16px; margin: 0 -4px; padding: 4px 4px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #8a8374 transparent; list-style: none; }
.ad-mini { display: grid; align-content: start; gap: 6px; width: 100%; padding: 0; border: 0; color: var(--ink); background: none; text-align: left; cursor: pointer; scroll-snap-align: start; }
.ad-mini-cover { display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; background: #cbc3ae; box-shadow: 5px 5px 0 rgba(18, 18, 18, .85); transition: transform .18s, box-shadow .18s; }
.ad-mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.ad-mini-cover i { color: rgba(18, 18, 18, .35); font: normal 400 34px/1 "Yu Mincho", "MS Mincho", serif; }
.ad-mini:hover .ad-mini-cover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--red); }
.ad-mini small { margin-top: 6px; color: var(--red); font: 800 10px/1.3 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ad-mini b { display: -webkit-box; overflow: hidden; font: 400 15px/1.25 Georgia, serif; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* Loading and trouble */
.ad-skel { display: grid; gap: 10px; }
.ad-skel i { display: block; height: 14px; background: linear-gradient(90deg, rgba(18, 18, 18, .06), rgba(18, 18, 18, .13), rgba(18, 18, 18, .06)); background-size: 200% 100%; animation: ad-shimmer 1.4s linear infinite; }
.ad-skel i:nth-child(3n) { width: 72%; }
.ad-skel i:nth-child(3n + 2) { width: 88%; }
@keyframes ad-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ad-error { grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; }
.ad-error-mark { display: grid; place-items: center; width: 64px; height: 64px; color: var(--paper); background: var(--red); font: 400 34px/1 "Yu Mincho", "MS Mincho", serif; }
.ad-error p { margin: 0; font: italic 18px/1.5 Georgia, serif; }

/* ---------- The choices at the foot of the sheet ---------- */
.ad-flash { position: absolute; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 3; max-width: min(92%, 520px); margin: 0; padding: 11px 18px; color: var(--paper); background: var(--ink); box-shadow: 5px 5px 0 var(--red); font: 15px/1.4 Arial, sans-serif; text-align: center; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.ad-flash.is-shown { opacity: 1; transform: translate(-50%, 0); }
.ad-flash.is-trouble { box-shadow: 5px 5px 0 #6a665d; }
.ad-flash:empty { display: none; }
.ad-actions { position: relative; z-index: 2; flex: none; display: flex; border-top: 2px solid var(--ink); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
.ad-actions:empty { display: none; }
/* The choices are the shared decision bar (decision.css); here it only sits in the footer. */
.ad-actions .ad-choices { flex: 1; min-width: 0; border-width: 0 1px 0 0; }
.ad-tool:focus-visible { outline: 3px solid var(--red); outline-offset: -5px; }
.ad-tools { flex: none; display: flex; }
.ad-tool { display: grid; place-items: center; align-content: center; gap: 4px; width: 76px; min-height: 64px; padding: 0; border: 0; border-right: 1px solid #b4ad9b; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.ad-tool:last-child { border-right: 0; }
.ad-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-tool-glyph { font: 400 20px/1 Arial, sans-serif; }
.ad-tool small { font: 800 10px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ad-tool:hover { color: var(--red); }

/* ---------- Ways in: details buttons on cards elsewhere ---------- */
.card-detail { position: absolute; z-index: 3; top: 100px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(18, 18, 18, .22); border-radius: 50%; color: var(--ink); background: rgba(242, 238, 223, .94); cursor: pointer; touch-action: manipulation; }
.card-detail svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.card-detail:hover { border-color: var(--red); color: var(--paper); background: var(--red); }
.card-detail:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.companion-pick > img[data-detail-id], .reveal-sheet img, .queue-item { cursor: pointer; }
.companion-pick h3 .pick-title, .companion-pick h4 .pick-title { display: inline-block; min-height: 44px; padding: 6px 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(239, 75, 63, .55); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.companion-pick h3 .pick-title:hover { color: #a12519; }
.companion-pick h3 .pick-title:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.duel-slot { position: relative; display: flex; min-width: 0; }
.duel-slot > .duel-card { flex: 1; }
.duel-slot > .card-detail, .reveal-sheet > .card-detail { top: 10px; right: auto; left: 10px; }
.reveal-sheet > .card-detail { top: 18px; left: 18px; }
.tidy-more { margin-top: 6px; color: var(--ink); }
.tidy-more:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Phones: a full-screen sheet ---------- */
@media (max-width: 760px) {
    .ad-sheet { width: 100%; height: 100%; box-shadow: none; }
    .ad-grabber { position: absolute; top: 8px; left: 50%; z-index: 4; display: block; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(242, 238, 223, .7); pointer-events: none; }
    .ad-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
    .ad-back { top: max(12px, env(safe-area-inset-top)); left: 12px; max-width: calc(100% - 84px); padding: 0 12px; }
    .ad-banner { height: 176px; }
    .ad-banner-mark { top: 66px; right: 16px; font-size: 13px; }
    .ad-hero-body { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "cover meta" "titles titles"; grid-template-rows: auto auto; column-gap: 16px; margin-top: -78px; padding: 0 16px; }
    .ad-cover { width: 112px; padding: 5px; box-shadow: 6px 6px 0 #050505; }
    .ad-stamp { right: -12px; bottom: 10px; padding: 5px 8px 4px; border-width: 2px; }
    .ad-stamp b { font-size: 18px; }
    .ad-stamp small { font-size: 7px; }
    .ad-meta { align-content: start; gap: 8px; padding: 88px 0 0; }
    .ad-kicker { font-size: 11px; letter-spacing: .14em; }
    .ad-status { padding: 6px 9px; font-size: 10px; }
    .ad-seal { position: static; width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--paper), 3px 4px 0 3px rgba(5, 5, 5, .85); }
    .ad-seal b { font-size: 23px; }
    .ad-seal small { font-size: 7px; letter-spacing: .14em; }
    .ad-titles { padding-top: 18px; }
    .ad-titles h2 { font-size: clamp(29px, 8.6vw, 38px); }
    .ad-alt { font-size: 15px; }
    .ad-body { display: flex; flex-direction: column; padding: 8px 16px 28px; }
    .ad-main, .ad-side { display: contents; }
    .ad-section[data-ad-part="why"] { order: 1; }
    .ad-section[data-ad-part="notes"] { order: 2; }
    .ad-section[data-ad-part="story"] { order: 3; }
    .ad-section[data-ad-part="watch"] { order: 4; }
    .ad-section[data-ad-part="facts"] { order: 5; }
    .ad-section[data-ad-part="themes"] { order: 6; }
    .ad-section[data-ad-part="cast"] { order: 7; }
    .ad-section[data-ad-part="related"] { order: 8; }
    .ad-section[data-ad-part="recs"] { order: 9; }
    .ad-section { padding: 20px 0 22px; }
    .ad-story-text { max-height: 11.9em; font-size: 16px; }
    .ad-strip { grid-auto-columns: 108px; gap: 14px; }
    .ad-tool { width: 56px; min-height: 58px; }
    .ad-tool small { font-size: 9px; letter-spacing: .06em; }
    .card-detail { top: 98px; right: 12px; }
    .duel-slot > .card-detail { top: auto; bottom: 8px; left: 8px; }
    .reveal-sheet > .card-detail { top: 12px; left: 12px; }
}

@media (max-width: 380px) {
    .ad-tool { width: 50px; }
    .ad-choices.is-notebook > .ad-choice { padding: 8px 2px; font-size: 10px; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
    .ad-status.is-airing i, .ad-skel i { animation: none; }
    .ad-flash { transform: translate(-50%, 0); }
    .ad-stream a, .ad-mini-cover, .ad-trailer { transition: none; }
}
