/* v4: brand kit (lockup, logo intro, covers, batik), on-page players, rating prompts. Loaded after faces.css. */
:root { --brand: #961e1e; --brand-ink: #7a1515; }

/* ---------- logo: the horizontal lockup from the brand kit ---------- */
.logo img { display: block; height: 44px; width: auto; }
@media (max-width: 560px) { .logo img { height: 36px; } }
.ftr-logo { display: block; width: 200px; height: auto; margin-bottom: 18px; }

/* ---------- batik red, the colour of the podcast cover ---------- */
.band-red { background: var(--brand) url(img/brand/batik-red.jpg) center / 620px repeat; }
.band-red .btn-white { color: var(--brand-ink); }
.band-red .btn svg { width: 16px; height: 16px; }

/* ---------- logo intro: home page, first visit of the session ---------- */
.boot { display: none; }
.boot-on body { overflow: hidden; }
.boot-on .boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 30px; color: var(--white);
  background: var(--brand) url(img/brand/batik-red.jpg) center / 620px repeat; animation: boot-out .7s cubic-bezier(.76, 0, .24, 1) 1.6s forwards; }
.boot-mark { position: relative; width: min(80vw, 620px); aspect-ratio: 960 / 296; animation: boot-slide .62s var(--ease) .82s both; }
.boot-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.i-ring { transform-origin: 15.01% 51.14%;
  -webkit-mask: conic-gradient(from -90deg at 15.01% 51.14%, #000 var(--sweep), transparent 0); mask: conic-gradient(from -90deg at 15.01% 51.14%, #000 var(--sweep), transparent 0);
  animation: boot-ring 1.05s var(--ease) .05s both, boot-sweep .95s cubic-bezier(.45, 0, .2, 1) .05s both; }
.i-letters { animation: boot-letters .75s var(--ease) .28s both; }
.i-rule { transform-origin: 37% 50%; animation: boot-rule .45s var(--ease) 1s both; }
.i-words { animation: boot-words .62s var(--ease) 1.05s both; }
.boot-kicker { font-weight: 700; font-stretch: var(--wide); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; animation: boot-kicker .6s var(--ease) 1.15s both; }
.boot.boot-skip { animation: boot-fade .3s ease forwards; }
@keyframes boot-out { to { transform: translateY(-100%); } }
@keyframes boot-fade { to { opacity: 0; } }
@keyframes boot-slide { from { transform: translateX(35%) scale(1.2); } }
@keyframes boot-ring { from { transform: rotate(-200deg) scale(.86); opacity: 0; } 25% { opacity: 1; } }
@keyframes boot-sweep { from { --sweep: 0deg; } }
@keyframes boot-letters { from { clip-path: inset(100% 0 0 0); transform: translateY(12%); } }
@keyframes boot-rule { from { transform: scaleY(0); } }
@keyframes boot-words { from { clip-path: inset(0 100% 0 45%); transform: translateX(-4%); } }
@keyframes boot-kicker { from { opacity: 0; transform: translateY(8px); } to { opacity: .85; } }
/* the hero waits for the intro to leave */
.boot-on .hero .rv > span > span { animation-delay: 1.72s; }
.boot-on .hero .rv > span:nth-child(2) > span { animation-delay: 1.8s; }
.boot-on .hero .fade { animation-delay: 1.95s; }
@media (prefers-reduced-motion: reduce) { .boot-on .boot { display: none; } }

/* ---------- covers in grids ---------- */
[role="tabpanel"] .tickets, section[aria-labelledby^="rel-"] .tickets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- episode page ---------- */
.ep-media { max-width: 460px; width: 100%; justify-self: end; }
/* on phones the cover comes first, right under the breadcrumb, like an episode page in a podcast app */
@media (max-width: 860px) { .ep-media { order: -1; justify-self: start; max-width: min(100%, 420px); } }

/* Spotify, embedded directly */
.sp-embed { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--paper); }
/* a still of the player for the claude.ai preview, which blocks third-party frames */
.sp-still { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 12px; background: var(--brand); color: var(--white); }
.sp-still img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; }
.sp-still b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; line-height: 1.25; }
.sp-still small { display: block; margin-top: 4px; font-size: .78rem; opacity: .8; }
.sp-play { width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; }
.sp-play svg { width: 18px; height: 18px; margin-left: 2px; }
.sp-note { margin-top: -6px; }
/* YouTube loads on click: no cookies or tracking before the visitor asks for the video */
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; color: var(--white); background: #0c0c0c var(--poster) center / cover; font: inherit; }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .65)); }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 48px; border-radius: 12px; background: var(--red); display: grid; place-items: center; z-index: 1; transition: transform .3s var(--ease); }
.yt-play svg { width: 22px; height: 22px; }
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-label { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-weight: 800; font-stretch: var(--wide); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; text-align: left; }

/* ---------- ratings and comments go to the platforms ---------- */
.support { border-top: var(--rule); padding-top: 26px; display: grid; gap: 12px; }
.support > p:not(.eyebrow) { max-width: 60ch; color: var(--ink-2); }
.support-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.support-list a, .support-list button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-content: start; width: 100%; height: 100%; text-align: left; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); padding: 14px 16px; font: inherit; cursor: pointer; transition: background .2s, color .2s; }
.support-list .s-n { grid-row: span 2; font-weight: 900; font-stretch: var(--x-wide); color: var(--red); font-size: 1.05rem; line-height: 1.3; }
.support-list b { font-weight: 800; line-height: 1.3; }
.support-list small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.support-list a:hover, .support-list button:hover { background: var(--ink); color: var(--white); }
.support-list a:hover small, .support-list button:hover small { color: #cfcfcc; }
@media (max-width: 560px) { .support-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- icons inside buttons ---------- */
.btn svg { flex: none; }
.btn { --icon-bg: var(--white); }
.btn:hover, .btn-red { --icon-bg: var(--red); }
.btn:hover { --icon-bg: var(--ink); }
.btn-red:hover { --icon-bg: var(--ink); }

/* ---------- follow links on episode pages ---------- */
.follow { display: grid; gap: 8px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fl { --icon-bg: var(--white); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 800; font-stretch: var(--wide); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; transition: background .2s, color .2s; }
.fl svg { width: 18px; height: 18px; }
.fl:hover { background: var(--ink); color: var(--white); --icon-bg: var(--ink); }

/* ---------- follow prompt ---------- */
.nudge { position: fixed; z-index: 70; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 24px));
  background: var(--white); border: var(--rule); box-shadow: 8px 8px 0 var(--red); padding: 22px 22px 20px; display: grid; gap: 10px;
  opacity: 0; transform: translateY(28px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.nudge[hidden] { display: none; }
.nudge.on { opacity: 1; transform: none; }
.nudge-x { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.nudge-x:hover { color: var(--red); }
.nudge-faces { display: flex; padding-left: 8px; }
.nudge-faces .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--white); }
.nudge-h { font-size: 1.45rem; line-height: 1.05; letter-spacing: -.02em; font-stretch: var(--x-wide); padding-right: 24px; }
.nudge-p { font-size: .92rem; color: var(--ink-2); }
.nudge-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.nudge-btns .btn:first-child { grid-column: 1 / -1; }
.nudge-btns .btn { min-height: 44px; padding: 0 12px; }
.nudge-btns .btn svg { width: 18px; height: 18px; }
.nudge-on .sticky-listen { transform: translateY(110%); }
@media (max-width: 560px) { .nudge { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: auto; box-shadow: 6px 6px 0 var(--red); } }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; transform: none; } }

/* ---------- Instagram on the Tentang page ---------- */
.ig-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.ig-av { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.ig-head .h-m { margin-top: 6px; word-break: break-word; }
.ig-meta { margin-top: 8px; color: var(--ink-2); }
.ig-follow svg { width: 18px; height: 18px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #961e1e; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3C/svg%3E") center / 34px no-repeat; opacity: 0; transition: opacity .3s; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile:hover::after, .ig-tile:focus-visible::after { opacity: 1; }
@media (max-width: 860px) { .ig-head { grid-template-columns: auto minmax(0, 1fr); } .ig-follow { grid-column: 1 / -1; justify-self: start; } .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nudge-btns .btn:nth-child(2):last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .ig-head .h-m { font-size: 1.6rem; font-stretch: 100%; overflow-wrap: anywhere; } .ig-av { width: 60px; height: 60px; } }
.sp-video { height: auto; aspect-ratio: 16 / 9; background: #0c0c0c; }
/* on phones the player comes right after the cover and title */
@media (max-width: 860px) { .ep-body > .listen { order: -1; } }
