@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: dark;
  --ink: #f3f1ec;
  --muted: #9ca5ad;
  --night: #09111b;
  --panel: #101b27;
  --panel-deep: #0b141e;
  --line: rgba(215, 197, 159, .17);
  --gold: #d6bd86;
  --gold-soft: #eadbb7;
  --red: #d75d54;
  --green: #7dd2a3;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  font-family: var(--sans);
  background: var(--night);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(42, 73, 91, .28), transparent 31rem),
    linear-gradient(145deg, #09111b 0%, #0a131d 52%, #0b1119 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: .14;
  background-image: linear-gradient(rgba(237, 226, 204, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 226, 204, .12) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: inherit; }
button { font: inherit; }
.site-shell { position: relative; z-index: 1; max-width: 1240px; padding: 0 44px; margin: 0 auto; }
.ambient { position: absolute; z-index: 0; pointer-events: none; filter: blur(1px); }
.ambient-one { width: 410px; height: 410px; top: 120px; right: -110px; border: 1px solid rgba(214, 189, 134, .08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(214, 189, 134, .018), 0 0 0 112px rgba(214, 189, 134, .012); }
.ambient-two { width: 190px; height: 190px; left: -120px; top: 670px; border: 1px solid rgba(215, 93, 84, .11); border-radius: 50%; }

.topbar { min-height: 98px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(224, 213, 190, .12); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: min(220px, 27vw); height: auto; border-radius: 3px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); }
.main-nav { display: flex; gap: clamp(26px, 4vw, 58px); margin-left: 65px; }
.main-nav a { color: #abb2b7; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-soft); }
.install-button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid rgba(214, 189, 134, .4); border-radius: 999px; background: rgba(214, 189, 134, .08); color: var(--gold-soft); font-size: 12px; font-weight: 600; letter-spacing: .025em; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.install-button:hover { transform: translateY(-1px); border-color: var(--gold); background: rgba(214, 189, 134, .15); }
.install-button svg, .watch-link svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(470px, 1.18fr); gap: clamp(38px, 6vw, 82px); align-items: center; padding: 73px 0 80px; }
.hero-copy { padding: 12px 0 0 9px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px rgba(215, 93, 84, .75); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(44px, 5.1vw, 69px); font-weight: 500; letter-spacing: -.05em; line-height: 1.06; }
h1 span { color: var(--gold-soft); font-style: italic; font-weight: 500; }
.hero-description { max-width: 390px; margin-bottom: 30px; color: #aab2b7; font-size: 15px; line-height: 1.8; }
.watch-link { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 19px 0 10px; border: 1px solid rgba(214, 189, 134, .45); border-radius: 4px; color: #f1e7cf; text-decoration: none; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.watch-link:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(214, 189, 134, .09); }
.watch-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--gold); color: #111821; }
.watch-icon svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.arrow-icon { margin-left: 15px; color: var(--gold); }
.hero-caption { display: flex; align-items: center; gap: 11px; margin-top: 43px; color: #77828b; font-size: 11px; letter-spacing: .03em; }
.caption-rule { width: 28px; height: 1px; background: rgba(214, 189, 134, .55); }

.player-card { position: relative; overflow: hidden; border: 1px solid rgba(214, 189, 134, .28); border-radius: 9px; background: #070d13; box-shadow: 0 26px 72px rgba(0, 0, 0, .35), 0 0 0 7px rgba(255, 255, 255, .012); }
.player-card::before { position: absolute; z-index: 2; pointer-events: none; inset: 0; border: 1px solid rgba(255, 255, 255, .035); border-radius: inherit; content: ''; }
.player-head { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; height: 48px; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid rgba(229, 219, 199, .1); background: linear-gradient(to bottom, rgba(7, 13, 19, .93), rgba(7, 13, 19, .5)); }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #d2d2cb; letter-spacing: .13em; }
.live-label strong { color: #fff; font-size: 9px; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 11px rgba(215, 93, 84, .8); }
.live-divider { color: #77818a; }
.player-mark { color: var(--gold); font-family: var(--serif); font-size: 17px; font-style: italic; letter-spacing: -.08em; }
.player-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-top: 48px; background: radial-gradient(ellipse at 52% 42%, #172936, #0a121a 56%, #070d13 100%); }
.player-stage iframe { position: absolute; z-index: 2; display: block; width: 100%; height: 100%; border: 0; inset: 0; background: #000; }
.player-stage iframe[hidden] { display: none; }
.player-placeholder { position: absolute; display: grid; place-items: center; overflow: hidden; inset: 0; background: radial-gradient(ellipse at 50% 48%, rgba(39, 70, 82, .43), transparent 47%), linear-gradient(135deg, rgba(13, 25, 36, .7), rgba(5, 10, 16, .8)); }
.player-placeholder::before, .player-placeholder::after { position: absolute; content: ''; width: 52%; aspect-ratio: 1; border: 1px solid rgba(218, 198, 153, .09); border-radius: 50%; transform: rotate(-22deg) scaleY(.45); }
.player-placeholder::after { width: 37%; border-color: rgba(218, 198, 153, .13); }
.signal-art { position: absolute; width: 280px; height: 240px; left: 50%; top: 46%; transform: translate(-50%, -50%); opacity: .56; }
.signal-ring { position: absolute; border: 1px solid rgba(214, 189, 134, .35); border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.ring-one { width: 85px; height: 85px; }
.ring-two { width: 160px; height: 160px; opacity: .68; }
.ring-three { width: 237px; height: 237px; opacity: .48; }
.signal-core { position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 22px rgba(214, 189, 134, .85); transform: translate(-50%, -50%); }
.player-prompt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 13px; padding-top: 62px; text-align: center; }
.prompt-kicker { color: #b8b6ae; font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.play-button { display: inline-flex; align-items: center; gap: 11px; padding: 12px 17px; border: 1px solid rgba(226, 205, 161, .57); border-radius: 999px; background: rgba(9, 17, 27, .78); color: #f4ead3; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.play-button:hover { transform: translateY(-1px); background: rgba(214, 189, 134, .17); box-shadow: 0 0 26px rgba(214, 189, 134, .13); }
.play-button svg { width: 14px; height: 14px; fill: var(--gold); stroke: none; }
.player-hint { color: #89949b; font-size: 10px; }
.player-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 19px 10px; border-top: 1px solid rgba(229, 219, 199, .1); background: #0a1118; }
.player-title-block { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.player-title { color: #f0eee8; font-size: 12px; font-weight: 600; }
.player-subtitle { overflow: hidden; color: #89929a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.player-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(215, 224, 224, .15); border-radius: 50%; background: transparent; color: #c7c7c0; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.icon-button:hover:not(:disabled) { color: var(--gold-soft); border-color: rgba(214, 189, 134, .55); background: rgba(214, 189, 134, .07); }
.icon-button:disabled { opacity: .35; cursor: not-allowed; }
.icon-button svg { width: 15px; height: 15px; }
.open-link { margin-left: 4px; color: var(--gold); font-size: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.open-link:hover { color: #fff0cc; }
.player-note { margin: 0; padding: 0 19px 15px; background: #0a1118; color: #68747d; font-size: 9px; line-height: 1.5; }

.book-section { padding: 18px 0 82px; }
.section-index { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; color: #878e92; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.index-line { width: 34px; height: 1px; background: var(--gold); opacity: .62; }
.section-index span:last-child { color: var(--gold); }
.book-banner { position: relative; display: grid; grid-template-columns: 176px minmax(0, 1fr) auto; align-items: center; gap: clamp(27px, 5vw, 62px); min-height: 268px; overflow: hidden; padding: 27px clamp(26px, 5vw, 59px); border: 1px solid rgba(214, 189, 134, .27); border-radius: 7px; background: linear-gradient(105deg, rgba(23, 32, 40, .98) 0%, rgba(16, 25, 33, .97) 55%, rgba(15, 22, 30, .95) 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.book-banner::before { position: absolute; content: ''; width: 370px; height: 370px; right: 5%; top: 50%; border: 1px solid rgba(214, 189, 134, .09); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 40px rgba(214, 189, 134, .018), 0 0 0 80px rgba(214, 189, 134, .015); }
.book-cover-wrap { position: relative; z-index: 1; justify-self: end; width: 163px; aspect-ratio: 1; padding: 7px; background: #0a1016; border: 1px solid rgba(214, 189, 134, .42); box-shadow: 0 14px 33px rgba(0, 0, 0, .45), 8px 8px 0 rgba(214, 189, 134, .09); transform: rotate(-2deg); }
.book-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-copy { position: relative; z-index: 1; max-width: 510px; }
.book-eyebrow { margin-bottom: 11px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .21em; }
.book-copy h2 { margin-bottom: 11px; color: #f5f1e9; font-family: var(--serif); font-size: clamp(33px, 4vw, 47px); font-weight: 500; letter-spacing: -.045em; line-height: .99; }
.book-copy h2 em { color: var(--gold-soft); font-weight: 500; }
.book-description { max-width: 430px; margin-bottom: 17px; color: #a3adb3; font-size: 12px; line-height: 1.7; }
.book-link { display: inline-flex; align-items: center; gap: 23px; padding-bottom: 7px; border-bottom: 1px solid rgba(214, 189, 134, .55); color: #e8d6ad; font-size: 11px; font-weight: 600; text-decoration: none; }
.book-link span { font-size: 15px; }
.book-link:hover { color: #fff2cf; border-color: var(--gold-soft); }
.book-watermark { position: relative; z-index: 1; align-self: end; margin-bottom: 2px; color: rgba(235, 225, 201, .06); font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); font-weight: 700; letter-spacing: -.08em; writing-mode: vertical-rl; }
.book-corner { position: absolute; right: 17px; top: 17px; width: 24px; height: 24px; border-top: 1px solid rgba(214, 189, 134, .45); border-right: 1px solid rgba(214, 189, 134, .45); }

.offline-note { margin: 0 auto 24px; padding: 13px 16px; border: 1px solid rgba(214, 189, 134, .3); border-radius: 5px; background: rgba(214, 189, 134, .07); color: #dbc99f; font-size: 12px; text-align: center; }
.site-footer { display: flex; min-height: 83px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(224, 213, 190, .12); color: #737f87; font-size: 10px; }
.footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.footer-logo { display: block; width: 125px; height: auto; border-radius: 2px; background: #fff; }
.footer-credit { color: #8e969b; }
.footer-credit a { color: #e2d2ae; font-weight: 600; text-decoration: none; }
.footer-credit a:hover, .footer-site:hover { color: #fff; }
.footer-site { color: #aab1b3; text-decoration: none; }
.footer-site span { color: var(--gold); }

.install-dialog { position: fixed; width: min(390px, calc(100% - 36px)); padding: 31px; border: 1px solid rgba(214, 189, 134, .35); border-radius: 9px; background: #101a24; color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.install-dialog::backdrop { background: rgba(1, 5, 9, .72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 9px; right: 13px; border: 0; background: transparent; color: #aab0b2; font-size: 25px; cursor: pointer; }
.dialog-logo { display: block; width: min(190px, 75%); height: auto; margin: 4px 0 23px; border-radius: 3px; background: #fff; }
.install-dialog .eyebrow { margin-bottom: 8px; font-size: 9px; }
.install-dialog h2 { margin-bottom: 9px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.install-dialog p:not(.eyebrow) { margin-bottom: 22px; color: #a6afb4; font-size: 13px; line-height: 1.65; }
.dialog-action { width: 100%; padding: 12px; border: 1px solid rgba(214, 189, 134, .55); border-radius: 4px; background: rgba(214, 189, 134, .1); color: var(--gold-soft); font-size: 12px; font-weight: 600; cursor: pointer; }

:focus-visible { outline: 2px solid #f0d79e; outline-offset: 4px; }
[hidden] { display: none !important; }

@media (max-width: 920px) {
  .site-shell { padding: 0 28px; }
  .hero { grid-template-columns: minmax(210px, .72fr) minmax(400px, 1.28fr); gap: 30px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(42px, 5.5vw, 58px); }
  .book-banner { grid-template-columns: 145px minmax(0, 1fr) auto; gap: 30px; }
  .book-cover-wrap { width: 140px; }
}

@media (max-width: 720px) {
  .site-shell { padding: 0 20px; }
  .topbar { min-height: 78px; }
  .brand-logo { width: min(176px, 49vw); }
  .main-nav { display: none; }
  .install-button { padding: 10px 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 34px; padding: 51px 0 55px; }
  .hero-copy { padding: 0 3px; }
  .eyebrow { margin-bottom: 17px; font-size: 9px; }
  h1 { margin-bottom: 15px; font-size: clamp(43px, 12vw, 61px); }
  .hero-description { max-width: 450px; margin-bottom: 22px; font-size: 14px; }
  .hero-caption { margin-top: 23px; }
  .player-card { width: 100%; }
  .player-head { height: 42px; padding: 0 14px; }
  .player-stage { margin-top: 42px; }
  .player-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px 14px 8px; }
  .player-actions { width: 100%; justify-content: flex-end; }
  .player-note { padding: 0 14px 13px; }
  .book-section { padding: 6px 0 51px; }
  .book-banner { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; min-height: 0; padding: 22px 18px; }
  .book-cover-wrap { width: 108px; padding: 5px; justify-self: start; }
  .book-copy h2 { font-size: 35px; }
  .book-eyebrow { font-size: 8px; letter-spacing: .15em; }
  .book-description { font-size: 11px; line-height: 1.6; }
  .book-watermark { display: none; }
  .book-corner { right: 10px; top: 10px; width: 18px; height: 18px; }
  .site-footer { min-height: 81px; flex-wrap: wrap; justify-content: space-between; gap: 9px 15px; padding: 15px 0; }
  .footer-credit { order: 3; width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .site-shell { padding: 0 15px; }
  .book-banner { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px 13px; }
  .book-cover-wrap { width: 87px; }
  .book-copy h2 { font-size: 30px; }
  .book-description { font-size: 10px; }
  .player-actions { gap: 6px; }
  .open-link { margin-left: 0; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
