/* Keep reference text sizes when a phone fits the 750px layout to its screen. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { color-scheme: dark; font-family: Arial, sans-serif; background: #060707; color: #f1f0eb; --gold: #f3ce68; --muted: #8c8e91; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 850px 700px at 50% 0, #33230a30, transparent); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: #242016; z-index: 5; }
.skip-link:focus { top: 16px; }
.home-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header { --brand-label-offset: 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 150px; padding: 9px 0 0; border-bottom: 1px solid #8a6f315c; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-wordmark { display: block; width: 208px; height: auto; }
/* Match the approved character lockup: cat paws sit on the header rule. */
.brand-character { position: relative; display: block; flex-shrink: 0; width: 140px; height: 140px; }
.brand-character > img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 4px #ffffff12); }
.brand-character .cat-eyes { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cat-eye-glow { opacity: .75; animation: cat-eye-warmth 7.6s ease-in-out infinite; }
.cat-eye-glint { opacity: .95; animation: cat-eye-catchlight 9.3s ease-in-out infinite; }
@keyframes cat-eye-warmth { 0%, 100% { opacity: .6; } 46% { opacity: .95; } 72% { opacity: .75; } }
@keyframes cat-eye-catchlight { 0%, 100% { opacity: .9; } 52% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cat-eye-glow { animation: none; opacity: .75; } .cat-eye-glint { animation: none; opacity: .95; } }
.site-header > .brand { align-self: flex-end; position: relative; z-index: 1; }
.site-header .brand-character { transform: translateY(8.5%); }
.site-header .brand-wordmark { width: 180px; margin-left: -16px; transform: translateY(var(--brand-label-offset)); }
.site-header > .account { transform: translateY(var(--brand-label-offset)); }
.account { display: flex; align-items: center; gap: 18px; position: relative; min-width: 0; max-width: 100%; }
.profile-button { display: grid; place-items: center; padding: 6px; border: 0; background: none; cursor: pointer; }
.profile-button img { display: block; }
.wallet-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 184px; min-height: 46px; padding: 10px 14px; border: 1px solid #b79a43; border-radius: 11px; background: #14130d; font-size: 15px; }
.wallet-button img { flex-shrink: 0; object-fit: contain; }
.wallet-button span { min-width: 0; overflow-wrap: anywhere; }
.disconnect-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #7d683950; border-radius: 11px; color: #c6b58d; background: #14130d; cursor: pointer; }
.disconnect-button:disabled { opacity: .5; }
.wallet-feedback { position: absolute; top: 100%; right: 0; margin: 6px 0 0; color: var(--gold); font-size: 11px; }
.wallet-feedback:empty { display: none; }
.site-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px 19px; margin: 22px 0 24px; border: 1px solid #232528; border-radius: 14px; background: linear-gradient(#101112, #090a0b); }
.nav-item { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px; border: 1px solid #2a2d2f; border-radius: 10px; background: #0c0e0f; color: #f1f0eb; font-size: 14px; white-space: nowrap; }
.nav-item img { flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; }
.nav-item.active { border-color: #c3a34a; background: linear-gradient(135deg, #382c0c, #15120a); color: var(--gold); font-weight: 600; }
.home-page .nav-item.active { background: linear-gradient(135deg, rgb(56 44 12 / 70%), rgb(21 18 10 / 70%)); }
.nav-item:disabled { opacity: .65; cursor: default; }
.home-banner { overflow: hidden; border: 1px solid #8a6f31; border-radius: 16px; }
.home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 48px 0 30px; }
h1 { margin: 0 0 10px; font-size: 31px; line-height: 1.2; }
#home-disclaimer, .home-premium-note-text { color: #d0cec6; font: 400 16px/1.5 Arial, sans-serif; }
#home-disclaimer p { margin: 0; }
.video-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.release-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.release-order { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.release-order button, .release-count { min-height: 44px; padding: 10px 16px; border: 1px solid #39372f; border-radius: 10px; color: #aaa79d; background: #0e1011; font-size: 14px; }
.release-order button { cursor: pointer; }
.release-count { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; border-color: #9d8244; box-shadow: 0 0 0 1px #b99a561a; }
.release-count p { display: flex; gap: 6px; margin: 0; line-height: 1.4; }
.release-count span { color: var(--gold); font-variant-numeric: tabular-nums; }
.release-order button:hover { border-color: #8a6f31; color: var(--gold); }
.release-order button[aria-pressed="true"] { border-color: #a78a43; color: var(--gold); background: linear-gradient(135deg, #30270f, #15130d); }
.video-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.page-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #514329; border-radius: 12px; color: #bbb6a8; background: linear-gradient(#151512, #0a0b0c); font-size: 18px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.page-button:hover:not(:disabled) { color: #ffe79a; border-color: #c4a450; box-shadow: 0 0 14px #e9be4820; }
.page-button.current { color: #ffe596; border-color: #bfa04c; background: radial-gradient(ellipse at 50% 0, #65512466, transparent 80%), #17140d; box-shadow: inset 0 1px 0 #fff0b11a, 0 0 18px #e5ba3617; font-weight: bold; }
.page-button:disabled { opacity: .3; cursor: default; }
.page-gap { color: #8c8574; padding: 0 2px; }
.video-card { min-width: 0; padding: 24px 28px 28px; border: 1px solid #303032; border-radius: 18px; background: linear-gradient(#111213, #0a0b0c); }
.video-heading { display: flex; justify-content: space-between; gap: 28px; margin-bottom: 16px; }
.video-title { min-width: 0; }
.video-release { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.video-access { margin: 0; color: var(--gold); font-size: 16px; white-space: nowrap; }
h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.published-at { margin: 0; color: var(--muted); font-size: 13px; }
.release-timer { flex-shrink: 0; min-width: 260px; align-self: center; }
.release-timer[hidden] { display: none; }
.timer-label { display: flex; align-items: center; gap: 10px; margin: 0; color: #b6af9b; font-size: 12px; }
.countdown { margin: 8px 0 6px; color: var(--gold); font: 600 25px 'Courier New', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown.unscheduled { font: 500 19px Arial, sans-serif; }
.release-date { margin: 0; color: var(--muted); font-size: 11px; }
.release-date:empty { display: none; }
.premium-video-link { color: var(--gold); text-underline-offset: 4px; }
.video-player { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #24272a; border-radius: 12px; background: #090b0c; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, #1c1a12, #0d1010 55%, #090b0c); }
.video-placeholder::before { content: ''; position: absolute; inset: 0; background: url('assets/home/brand/diamond.webp') center / 42% auto no-repeat; opacity: .05; }
.player-watermark { position: absolute; top: 22px; left: 28px; width: 123px; height: auto; opacity: .5; }
.player-access { position: absolute; top: 24px; right: 28px; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #4c4022; border-radius: 18px; color: var(--gold); background: #16150f; font-size: 12px; }
.player-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.play-symbol { display: grid; place-items: center; width: 94px; height: 94px; padding-left: 5px; border: 1.5px solid #c8a447; border-radius: 50%; background: #18170f; box-shadow: 0 0 0 9px #8b713112; }
.player-center p { margin: 30px 0 10px; font-size: 25px; }
.player-center > span:last-child { color: var(--muted); font-size: 15px; }
.video-details { margin-top: 24px; border: 1px solid #303032; border-radius: 16px; overflow: hidden; background: #0e1011; }
.video-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; color: var(--gold); font-size: 15px; font-weight: bold; cursor: pointer; }
.video-details summary::-webkit-details-marker { display: none; }
.video-details summary::after { content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.video-details[open] summary::after { transform: rotate(225deg); }
.video-details summary:hover { background: #ffffff08; }
.video-details summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.video-materials { padding: 0 18px 18px; }
.video-description { margin: 0; color: #cbcdc8; font-size: 16px; line-height: 1.6; white-space: pre-line; }
.video-description:empty, .video-images:empty { display: none; }
.video-images figure { margin: 18px 0; }
.video-images img { display: block; width: 100%; height: auto; border-radius: 12px; }
.video-images figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.materials-collapse { display: block; width: 100%; margin-top: 18px; padding: 14px 0 0; border: 0; border-top: 1px solid #292a2b; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.materials-collapse:hover { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .video-details summary::after { transition: none; } }
.video-links { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.video-links:empty { display: none; }
.video-links a { display: flex; align-items: flex-start; gap: 10px; width: fit-content; color: #ceb66e; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.video-links img { flex-shrink: 0; margin-top: 1px; }
.video-links a:hover { text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 40px; padding: 22px 0 48px; border-top: 1px solid #8a6f315c; }
.footer-brand .brand-wordmark { width: 108px; }
.footer-socials { display: flex; align-items: center; gap: 24px; }
.footer-social-link, .footer-social-placeholder { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.footer-social-link:focus { outline: none; }
.footer-socials img { display: block; width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 5px #e7b73740); transition: filter .25s, transform .25s; }
.footer-social-link:hover img, .footer-social-link:focus-visible img { filter: brightness(1.15) drop-shadow(0 0 9px #f3ce6875); transform: translateY(-2px); }
.footer-social-placeholder { opacity: .65; }
@media (prefers-reduced-motion: reduce) { .footer-socials img, .page-button { transition: none; } .footer-social-link:hover img, .footer-social-link:focus-visible img { transform: none; } }
@media (max-width: 900px) {
  .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; }
  .video-heading { gap: 20px; }
  h2 { font-size: 23px; }
  .release-timer { min-width: 238px; }
  .countdown { font-size: 23px; }
  .account { gap: 8px; }
}
@media (max-width: 740px) {
  .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { gap: 18px; }
  .brand-wordmark { width: 156px; }
  .site-header .brand-wordmark { width: 156px; }
  .account { margin-left: auto; }
  .wallet-button { min-width: 164px; font-size: 13px; gap: 8px; }
  .profile-button { display: grid; }
  .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .nav-item { font-size: 13px; }
  .home-banner { border-radius: 10px; }
  .section-heading { flex-direction: column; gap: 14px; margin: 28px 0 22px; }
  h1 { font-size: 25px; }
  #home-disclaimer, .home-premium-note-text { font-size: 14px; }
  .video-card { padding: 18px 14px 20px; border-radius: 14px; }
  .video-heading { flex-direction: column; gap: 18px; }
  h2 { font-size: 22px; }
  .video-release { gap: 12px; }
  .video-access { font-size: 14px; }
  .release-timer { min-width: 0; }
  .countdown { font-size: 17px; }
  .video-player { min-height: 200px; }
  .player-watermark { width: 74px; top: 12px; left: 12px; }
  .player-access { font-size: 9px; padding: 4px 8px; top: 12px; right: 12px; gap: 5px; }
  .player-access img { width: 14px; height: 14px; }
  .play-symbol { width: 54px; height: 54px; }
  .play-symbol img { width: 25px; height: 25px; }
  .player-center p { margin: 16px 0 7px; font-size: 18px; }
  .player-center > span:last-child { font-size: 12px; }
  .video-description { font-size: 14px; }
  .site-footer { flex-wrap: wrap; gap: 20px; padding-bottom: 32px; }
  .footer-socials { gap: 8px; margin-left: auto; }
  .footer-social-link, .footer-social-placeholder { width: 36px; height: 36px; }
  .footer-socials img { width: 28px; height: 28px; }
}

/* Keep the brand and wallet in one row as the page narrows. */
@media (max-width: 680px) {
  .site-header { --brand-label-offset: clamp(10px, 3vw, 18px); gap: 6px; min-height: 0; }
  .site-header > .brand { min-width: 0; flex-shrink: 1; }
  .site-header .brand-character { width: clamp(64px, calc(25vw - 5px), 140px); height: auto; aspect-ratio: 1; }
  .site-header .brand-wordmark { min-width: 0; width: clamp(76px, calc(30vw - 6px), 156px); margin-left: -8px; }
  .site-header > .account { flex-shrink: 0; gap: 4px; }
  .site-header .profile-button { padding: 3px; }
  .site-header .profile-button img { width: 24px; height: 24px; }
  .site-header .wallet-button { min-width: 0; width: clamp(92px, 25vw, 164px); min-height: 38px; padding: 8px 6px; gap: 5px; font-size: 11px; }
  .site-header .wallet-button img { width: 16px; height: 16px; }
  .site-header .disconnect-button { width: 30px; height: 38px; }
}

.site-nav .preview-locked > span { color: #b7a16a; font-size: 15px; margin-left: 5px; }

@media(min-width:1100px) { .site-nav { grid-template-columns: repeat(6,minmax(0,1fr)); } }

/* Confirmed remaining Premium time, before the profile link. */
/* Premium belongs to the profile icon and never changes header width. */
.site-header .account { position: relative; }
.profile-button { position: relative; padding-bottom: 6px; }
.premium-time-badge { position: absolute; top: calc(50% + 18px); left: 6px; width: 30px; display: block; text-align: center; color: #efd29a; font: 500 12px/1.2 Arial,sans-serif; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; margin-top: 3px; white-space: nowrap; }
.premium-time-badge svg { display: none; }
.brand-text { font-family: Georgia,'Times New Roman',serif; font-weight: 500; color: #f6df9d; background: linear-gradient(#fff4ce 15%,#e9c56b 42%,#fff5c9 55%,#b98432 78%,#ffe9a7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 1px #a66b23); letter-spacing: -.04em; }
@media (max-width:600px) { .premium-time-badge { left: 6px; font-size: 10px; } }

.video-access { display: inline-flex; align-items: center; gap: 8px; }
.premium-crown { width: 21px; height: 21px; fill: #f3ce6833; stroke: #f3ce68; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 5px #efc350aa); animation: crown-glow 3s ease-in-out infinite; }
@keyframes crown-glow { 50% { filter: drop-shadow(0 0 9px #efc350dd); } }
@media(prefers-reduced-motion:reduce) { .premium-crown { animation: none; } }

.section-heading > div { min-width: 0; }
#releases-title { display: flex; align-items: center; height: 1.2em; }
.notebook-title-wordmark { display: block; width: auto; height: 1em; max-width: 100%; object-fit: contain; object-position: left center; }

#home-premium-note-slot:empty { display: none; }
.home-premium-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; margin: 0 0 30px; padding: 24px; border: 1px solid #8a6f315c; border-radius: 16px; background: linear-gradient(120deg, #1d1a1166, #0d0f0f); }
.home-premium-note-text { min-width: 0; overflow-wrap: anywhere; }
.home-premium-note-text p { margin: 0; }
.home-premium-note-text p:last-child { margin-bottom: 0; }
.home-premium-note-badge { justify-self: end; padding-top: 2px; }
@media(max-width:640px) { .home-premium-note { padding: 18px; gap: 14px; } }

/* Editable introduction uses the typography of the Premium description. */
#home-disclaimer { color: #c7c5bc; font: 400 17px/1.7 Arial, sans-serif; }
#home-disclaimer p { margin: 0 0 19px; text-wrap: pretty; }
#home-disclaimer p:last-child { margin-bottom: 0; }
#releases-title, #home-disclaimer h2 { display: block; height: auto; font: 500 29px/1.3 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-variant-caps: small-caps; letter-spacing: .015em; margin: 36px 0 19px; color: #f3d79f; background: linear-gradient(180deg,#fff4d8,#e8c680 65%,#c29b57); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#releases-title { margin-top: 0; }
