/* Brand colors and width: edit these to customize the whole page. */
:root {
  color-scheme: dark;
  --background: #09090c;
  --surface: #131317;
  --text: #f7f5f7;
  --muted: #aaa5ae;
  --pink: #ff307c;
  --border: #2c252e;
  --page-width: 560px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 50% 0%, #2b101d 0, transparent 440px), var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.page { width: min(100% - 36px, var(--page-width)); margin: 0 auto; }
.brand { padding: 36px 0 32px; text-align: center; }
.logo { display: block; width: 144px; height: 144px; margin: 0 auto 14px; border-radius: 50%; object-fit: contain; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
h1 span { color: var(--pink); }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
h2 { font-size: 20px; letter-spacing: -.5px; }
.accent-line { flex: 1; height: 1px; background: linear-gradient(90deg, #a32b58, transparent); }
.pick-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
h3 { font-size: 16px; font-weight: 600; }
h3 span { color: var(--pink); margin-left: 4px; }
.edition { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); }
.preview-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 28px; text-align: center; background: radial-gradient(ellipse at 50% 70%, #401126, transparent 75%), #0d0b10; border-block: 1px solid var(--border); }
.preview-label { color: #dca6bb; font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.play-symbol { display: grid; place-items: center; width: 52px; height: 52px; padding-left: 3px; margin: 20px 0 16px; color: var(--pink); background: #ff307c12; border: 1px solid #ff307c55; border-radius: 50%; font-size: 20px; }
.preview-placeholder strong { font-size: clamp(23px, 6vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.7px; }
.coming-soon { margin-top: 12px; color: var(--muted); font-size: 14px; }
.duration { position: absolute; right: 14px; bottom: 12px; background: #09090cb3; border-radius: 4px; padding: 2px 7px; font-size: 12px; color: #d5cbd3; }
.preview-video { display: block; width: 100%; max-height: 560px; background: #000; }
.drama-list { padding: 0 20px; }
.drama-row { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.drama-row + .drama-row { border-top: 1px solid var(--border); }
.drama-number { color: var(--pink); font-size: 14px; font-variant-numeric: tabular-nums; }
.drama-info { flex: 1; min-width: 0; }
h4 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.drama-info p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.watch { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--pink); border-radius: 7px; background: var(--pink); color: #fff; font: 700 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .6px; text-decoration: none; flex-shrink: 0; }
.watch:disabled { background: #492035; border-color: #683149; color: #e7bccd; cursor: not-allowed; }
a.watch:hover { background: #d91d62; border-color: #d91d62; }
a.watch:focus-visible { outline: 3px solid white; outline-offset: 4px; }
footer { padding: 28px 10px 36px; color: var(--muted); font-size: 12px; text-align: center; }
@media (min-width: 600px) { .brand { padding-top: 48px; } .logo { width: 160px; height: 160px; } }
@media (max-width: 340px) { .card-heading, .drama-list { padding-inline: 14px; } .drama-row { gap: 9px; } .watch { padding-inline: 10px; } .edition { letter-spacing: .5px; } }

/* Each drama uses a fixed 9:16 preview. No video downloads before a click. */
.drama-block { padding: 24px 20px; text-align: center; }
.drama-block + .drama-block { border-top: 1px solid var(--border); }
.preview-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(200px, 100%); aspect-ratio: 9 / 16; margin: 0 auto 18px; padding: 16px; overflow: hidden; border: 1px solid #623046; border-radius: 12px; background: radial-gradient(ellipse at 50% 65%, #47132b, #100d13 85%); color: var(--text); font: inherit; cursor: pointer; }
.preview-tile:hover { border-color: var(--pink); }
.preview-tile:focus-visible, .close-preview:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.preview-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-caption { font-size: 14px; }
.drama-block h4 { font-size: 20px; margin-bottom: 14px; }
.drama-block .watch { width: min(100%, 280px); min-height: 48px; font-size: 14px; }
.destination { font-size: 12px; color: var(--muted); margin-top: 9px; }
.preview-dialog { width: min(352px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 15px; overflow: auto; border: 1px solid #633047; border-radius: 16px; background: #131016; color: var(--text); }
.preview-dialog::backdrop { background: #000d; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 16px; overflow-wrap: anywhere; }
.close-preview { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #251b24; color: white; cursor: pointer; font-size: 18px; }
.expanded-video, .empty-preview { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100dvh - 120px); background: #08070a; object-fit: contain; border-radius: 8px; }
.empty-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-preview span { color: var(--pink); font-size: 32px; margin-bottom: 16px; }
[hidden] { display: none !important; }
