/* Disney+-style theme for personal.html#series -- active only while
   body.theme-disney is set by assets/personal-disney.js.
   v1 (2026-09-29): modelled on the Disney+ home Audi sent (navy gradient,
   wide rounded banner carousel with next-slide peek, brand tiles, rounded
   16:9 rows with a lift + white ring on hover). */

body.theme-disney {
    --dp-bg: #1a1d29; --dp-text: #f9f9f9; --dp-sub: #cacaca; --dp-ring: rgba(249,249,249,0.8);
    background: radial-gradient(ellipse at 50% -10%, #25324f 0%, #1a1d29 55%, #0f1119 100%) fixed #1a1d29;
}
body.theme-disney .gallery-wrap { max-width: none; padding: 0 calc(3.5vw + 5px) 5rem; }
body.theme-disney .back-bar,
body.theme-disney .hero-title,
body.theme-disney .hero-sub,
body.theme-disney .category-view-header,
body.theme-disney .pcms-admin-only[onclick="openDraftModal()"],
body.theme-disney[data-dp-cat="series"] .gallery-section[data-category="series"] { display: none !important; }

#disneyView { display: none; font-family: 'Outfit', 'Mitr', var(--font-body, 'Plus Jakarta Sans', 'Sarabun'), sans-serif; color: var(--dp-text); }
body.theme-disney #disneyView { display: block; }

/* ---------- top: back · centred logo · add ---------- */
.dp-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 0 10px; }
.dp-back, .dp-add, .dp-clear {
    justify-self: start; background: rgba(249,249,249,0.08); color: var(--dp-text); border: 1px solid rgba(249,249,249,0.2);
    border-radius: 6px; padding: 7px 14px; font: inherit; font-size: .85rem; cursor: pointer; letter-spacing: .02em;
    transition: background .2s ease, border-color .2s ease;
}
.dp-add { justify-self: end; background: #0063e5; border-color: #0063e5; font-weight: 600; }
.dp-back:hover, .dp-clear:hover { background: rgba(249,249,249,0.18); border-color: var(--dp-ring); }
.dp-add:hover { background: #0483ee; }
.dp-top-spacer { justify-self: end; }
.dp-logo { position: relative; display: flex; align-items: baseline; font-weight: 700; line-height: 1; padding: 14px 10px 0; user-select: none; }
.dp-logo span { font-family: 'Bebas Neue', 'Outfit', 'Mitr', sans-serif; font-size: 3.3rem; letter-spacing: .04em; color: #f9f9f9; font-weight: 400; }
.dp-logo i { font-style: normal; font-size: 2.5rem; color: #f9f9f9; margin-left: 2px; font-weight: 300; }
.dp-arc { position: absolute; left: -6px; right: -12px; top: -4px; width: calc(100% + 18px); height: 40px; pointer-events: none; }

/* ---------- hero carousel: centred slide, neighbours peeking ---------- */
.dp-hero { position: relative; margin: 14px calc(-3.5vw - 5px) 0; overflow: hidden; padding: 0 0 30px; }
.dp-hero-track {
    --w: 86%; --gap: 20px;
    display: flex; gap: var(--gap);
    transform: translateX(calc((100% - var(--w)) / 2 - var(--i) * (var(--w) + var(--gap))));
    transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.dp-slide {
    position: relative; flex: 0 0 var(--w); aspect-ratio: 3.2 / 1; min-height: 220px; border-radius: 10px; overflow: hidden;
    border: 0; padding: 0; background: #0e0f15; cursor: pointer; color: inherit; font: inherit; text-align: left;
    box-shadow: rgb(0 0 0 / 69%) 0 26px 30px -10px, rgb(0 0 0 / 73%) 0 16px 10px -10px;
    opacity: .55; transition: opacity .5s ease, outline-color .25s ease;
    outline: 4px solid transparent; outline-offset: -4px;
}
.dp-slide.is-on { opacity: 1; }
.dp-slide.is-on:hover, .dp-slide.is-on:focus-visible { outline-color: var(--dp-ring); }
.dp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,20,0.85) 0%, rgba(10,12,20,0.35) 40%, rgba(10,12,20,0) 65%); }
.dp-slide-text { position: absolute; left: 4%; bottom: 14%; display: flex; flex-direction: column; gap: 8px; max-width: 50%; }
.dp-slide-text b { font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.05; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.dp-slide-text small { font-size: .95rem; color: #f3d27a; letter-spacing: .03em; }
.dp-hero-arrow {
    position: absolute; top: 0; bottom: 30px; width: 7%; border: 0; background: none; color: #fff; font-size: 3rem;
    cursor: pointer; opacity: 0; transition: opacity .2s ease; z-index: 2;
}
.dp-hl { left: 0; } .dp-hr { right: 0; }
.dp-hero:hover .dp-hero-arrow, .dp-hero-arrow:focus-visible { opacity: 1; }
.dp-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.dp-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(249,249,249,0.35); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dp-dot.is-on { background: #f9f9f9; transform: scale(1.25); }
.dp-pause { margin-left: 8px; background: none; border: 1px solid rgba(249,249,249,0.35); color: #f9f9f9; border-radius: 50%; width: 26px; height: 26px; font-size: .62rem; cursor: pointer; }

/* ---------- brand tiles = Audi's collections ---------- */
.dp-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 20px 0 30px; }
.dp-brand {
    position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; cursor: pointer; color: #f9f9f9; font: inherit; padding: 0;
    border: 3px solid rgba(249,249,249,0.1);
    background: linear-gradient(160deg, rgb(52,55,70) 0%, rgb(26,28,38) 100%);
    box-shadow: rgb(0 0 0 / 69%) 0 26px 30px -10px, rgb(0 0 0 / 73%) 0 16px 10px -10px;
    transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s ease, box-shadow .3s ease;
}
/* Fan of that tier's own covers, sitting dim behind the wordmark. */
.dp-brand-fan { position: absolute; inset: 0; display: block; }
.dp-brand-fan img {
    position: absolute; top: 50%; left: 50%; width: 27%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.6);
    transform: translate(calc(-50% + var(--k) * 72%), -50%) rotate(calc(var(--k) * 8deg));
    filter: saturate(.75) brightness(.5); opacity: .75;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), filter .35s ease, opacity .35s ease;
}
.dp-brand-tint { position: absolute; inset: 0; background: var(--dp-grad); opacity: .38; mix-blend-mode: soft-light; transition: opacity .3s ease; }
.dp-brand::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(14,16,24,0.72) 0%, rgba(14,16,24,0.3) 75%, rgba(14,16,24,0.6) 100%); pointer-events: none; }
.dp-brand-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.dp-brand-name {
    font-family: 'Bebas Neue', 'Outfit', 'Mitr', sans-serif; font-size: clamp(1.7rem, 2.9vw, 2.7rem); line-height: 1; letter-spacing: .06em;
    background: var(--dp-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.dp-brand-stars { font-size: .9rem; letter-spacing: .18em; color: #f3d27a; margin-top: 2px; }
.dp-brand-sub { font-size: .8rem; color: rgba(249,249,249,0.75); letter-spacing: .03em; }
.dp-brand:hover, .dp-brand:focus-visible { transform: scale(1.05); border-color: var(--dp-ring); box-shadow: rgb(0 0 0 / 80%) 0 40px 58px -16px, rgb(0 0 0 / 72%) 0 30px 22px -10px; outline: none; }
.dp-brand:hover .dp-brand-fan img, .dp-brand:focus-visible .dp-brand-fan img, .dp-brand.is-on .dp-brand-fan img {
    filter: saturate(1) brightness(.62); opacity: 1;
    transform: translate(calc(-50% + var(--k) * 125%), -52%) rotate(calc(var(--k) * 12deg)) scale(1.06);
}
.dp-brand:hover .dp-brand-tint, .dp-brand.is-on .dp-brand-tint { opacity: .6; }
.dp-brand.is-on { border-color: #f9f9f9; box-shadow: 0 0 0 1px rgba(249,249,249,0.4), rgb(0 0 0 / 80%) 0 40px 58px -16px; }
.dp-brand.is-empty { background: linear-gradient(160deg, rgb(44,46,60) 0%, rgb(24,26,35) 100%); border-style: dashed; border-color: rgba(255,117,140,0.45); }

/* ---------- rows ---------- */
.dp-row { margin: 0 0 30px; }
.dp-row-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; letter-spacing: .01em; color: var(--dp-text); }
.dp-row-title span { font-size: .85rem; color: var(--dp-sub); font-weight: 400; margin-left: 6px; }
.dp-row-wrap { position: relative; margin: 0 calc(-3.5vw - 5px); }
.dp-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * (3.5vw + 5px) - 3 * 20px) / 4.3);
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 calc(3.5vw + 5px);
    padding: 12px calc(3.5vw + 5px) 26px; scrollbar-width: none;
}
.dp-track::-webkit-scrollbar { display: none; }
.dp-track > * { scroll-snap-align: start; }
.dp-arrow {
    position: absolute; top: 12px; bottom: 26px; width: calc(3.5vw + 5px); z-index: 3; border: 0; cursor: pointer;
    background: rgba(26,29,41,0.7); color: #fff; font-size: 2.2rem; opacity: 0; transition: opacity .2s ease; display: none;
}
.dp-left { left: 0; } .dp-right { right: 0; }
.dp-row-wrap.has-overflow .dp-arrow { display: block; }
.dp-row-wrap.at-start .dp-left, .dp-row-wrap.at-end .dp-right { display: none; }
.dp-row-wrap:hover .dp-arrow { opacity: 1; }

.dp-tile { display: block; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.dp-art {
    position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #262a3a;
    border: 3px solid rgba(249,249,249,0.1);
    box-shadow: rgb(0 0 0 / 69%) 0 26px 30px -10px, rgb(0 0 0 / 73%) 0 16px 10px -10px;
    transition: transform .25s cubic-bezier(.25,.46,.45,.94), border-color .25s ease, box-shadow .25s ease;
}
.dp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-noart { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; }
.dp-hover {
    position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(0deg, rgba(10,12,20,0.92) 0%, rgba(10,12,20,0) 100%);
    opacity: 0; transition: opacity .25s ease;
}
.dp-hover b { font-size: .95rem; line-height: 1.2; }
.dp-hover small { font-size: .74rem; color: #f3d27a; }
.dp-tile:hover .dp-art, .dp-tile:focus-visible .dp-art { transform: scale(1.05); border-color: var(--dp-ring); box-shadow: rgb(0 0 0 / 80%) 0 40px 58px -16px, rgb(0 0 0 / 72%) 0 30px 22px -10px; }
.dp-tile:hover .dp-hover, .dp-tile:focus-visible .dp-hover { opacity: 1; }
.dp-tile:focus-visible { outline: none; }
/* Touch screens have no hover: always show the title strip there. */
@media (hover: none) { .dp-hover { opacity: 1; } }

/* ---------- filtered grid ---------- */
.dp-grid-sec { margin: 0 0 30px; }
.dp-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dp-grid-head .dp-row-title { margin: 0; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 20px; padding-top: 12px; }
.dp-empty { color: var(--dp-sub); padding: 30px 0; }

.dp-back:focus-visible, .dp-add:focus-visible, .dp-clear:focus-visible, .dp-dot:focus-visible, .dp-pause:focus-visible, .dp-hero-arrow:focus-visible { outline: 2px solid #f9f9f9; outline-offset: 2px; }

/* The review modal follows the theme while it's open over a Disney+ page. */
body.theme-disney .modal-content { background: #1f2330; border-color: #30354a; }
body.theme-disney .modal-tag { color: #fff; background: #0063e5; }

@media (prefers-reduced-motion: reduce) {
    .dp-hero-track, .dp-art, .dp-brand, .dp-brand-fan img, .dp-slide { transition: none; }
}
@media (max-width: 900px) {
    .dp-track { grid-auto-columns: calc((100% - 2 * (3.5vw + 5px) - 20px) / 2.3); }
    .dp-brands { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 190px; overflow-x: auto; gap: 12px; padding: 6px 4px 18px; margin-top: 10px; scrollbar-width: none; }
    .dp-brands::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
    .dp-top { grid-template-columns: auto 1fr auto; gap: 8px; }
    .dp-logo { justify-self: center; }
    .dp-logo span { font-size: 2rem; } .dp-logo i { font-size: 1.6rem; }
    .dp-back, .dp-add { padding: 6px 10px; font-size: .78rem; }
    .dp-hero-track { --w: 90%; --gap: 10px; }
    .dp-slide { aspect-ratio: 16 / 9; min-height: 0; }
    .dp-slide-text { max-width: 80%; }
    .dp-hero-arrow { display: none; }
    .dp-brands { grid-auto-columns: 160px; }
    .dp-brand-name { font-size: 1.35rem; }
    .dp-brand-sub { font-size: .7rem; }
    .dp-track { grid-auto-columns: 72%; gap: 12px; }
    .dp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
