:root {
  color-scheme: dark;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: #0b0b12;
  color: #f4f1f8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: radial-gradient(circle at 90% 0%, #362045, transparent 34rem), #0b0b12; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #e0baff; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }

.showcase-shell { width: min(100%, 1480px); margin: auto; padding: 0 clamp(18px, 4vw, 56px); }
.provider { margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #e7e1ef; font-size: clamp(1rem, 1.65vw, 1.15rem); }
.provider a { color: #e0baff; text-decoration-color: #aa6bdd; text-underline-offset: .22em; font-weight: 700; }
.provider a:hover { color: #fff; }
.page-nav { padding: 22px 0 0; }
.page-nav a { display: inline-flex; align-items: center; min-height: 38px; color: #ccb7dd; text-decoration: none; font-size: .9rem; }
.page-nav a::before { content: "←"; margin-right: 8px; }
.page-nav a:hover { color: #fff; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 46px 0 50px; }
.eyebrow { margin-bottom: 10px; color: #b694d8; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin-bottom: 15px; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.1; letter-spacing: -.05em; }
.hero-copy { margin-bottom: 0; color: #b9b2c2; font-size: clamp(.98rem, 1.5vw, 1.1rem); }
.video-count { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; padding: 15px 18px; border: 1px solid rgba(224,186,255,.23); border-radius: 18px; background: rgba(138,87,181,.12); white-space: nowrap; }
.video-count strong { font-size: 2rem; line-height: 1; }
.video-count span { color: #bcb5c9; font-size: .86rem; }
.collection { padding-bottom: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.collection-note { max-width: 32rem; margin-bottom: 2px; color: #aaa4b3; font-size: .88rem; text-align: right; }

.showcase-grid { column-count: 4; column-gap: clamp(14px, 2vw, 24px); }
.showcase-card { display: inline-block; width: 100%; margin: 0 0 clamp(14px, 2vw, 24px); break-inside: avoid; overflow: hidden; border: 1px solid rgba(235,219,250,.13); border-radius: 18px; background: #191823; box-shadow: 0 12px 32px rgba(0,0,0,.16); vertical-align: top; }
.poster-link { position: relative; display: block; aspect-ratio: 416 / 752; overflow: hidden; background: linear-gradient(150deg, #48345d, #1b243b); }
.poster-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.poster-link:hover .poster-image, .poster-link:focus-visible .poster-image { transform: scale(1.025); }
.poster-fallback { display: grid; place-items: center; height: 100%; color: #d2c5da; }
.poster-play { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; background: rgba(250,245,255,.94); color: #30263a; box-shadow: 0 5px 18px rgba(0,0,0,.3); }
.card-body { padding: 19px 19px 21px; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; color: #bca4ce; font-size: .76rem; letter-spacing: .03em; }
.card-body h3 { margin-bottom: 15px; font-size: 1.13rem; line-height: 1.45; }
.x-copy { display: -webkit-box; margin-bottom: 5px; overflow: hidden; color: #d4cedb; font-size: .93rem; line-height: 1.7; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.x-copy.is-expanded { display: block; overflow: visible; -webkit-line-clamp: unset; }
.expand-copy { padding: 7px 0; border: 0; background: transparent; color: #dcb6ff; cursor: pointer; font-size: .84rem; font-weight: 700; }
.expand-copy:hover { color: #fff; }
.card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 16px; }
.copy-prompt { width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #8f67af; border-radius: 10px; background: #58376f; color: #fff; cursor: pointer; font-size: .86rem; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.copy-prompt:hover { background: #70448e; border-color: #d6a6f5; }
.copy-status { min-height: 1em; color: #bfe0c4; font-size: .79rem; }
.copy-status[data-kind="error"] { color: #ffb4b4; }
.page-footer { padding: 25px 0 35px; border-top: 1px solid rgba(255,255,255,.1); color: #858091; font-size: .75rem; letter-spacing: .12em; }
.empty-state { margin: 20px 0 80px; padding: 70px 20px; border: 1px dashed #665575; border-radius: 20px; background: #191823; text-align: center; }
.empty-state p { margin-bottom: 0; color: #aaa4b3; }

.video-dialog { width: min(92vw, 560px); max-height: 94vh; padding: 18px; border: 1px solid #7b5b93; border-radius: 18px; background: #191823; color: #f4f1f8; box-shadow: 0 24px 70px rgba(0,0,0,.65); }
.video-dialog::backdrop { background: rgba(4,3,8,.82); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dialog-heading h2 { margin-bottom: 0; font-size: 1.1rem; line-height: 1.4; }
.dialog-close { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #665575; border-radius: 9px; background: #302637; color: white; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.video-dialog video { display: block; width: min(100%, 380px); max-height: 75vh; margin: auto; aspect-ratio: 416 / 752; background: #050509; }
.dialog-status { margin: 12px 0 0; color: #ffb4b4; font-size: .86rem; }

@media (max-width: 1180px) { .showcase-grid { column-count: 3; } }
@media (max-width: 840px) { .showcase-grid { column-count: 2; } }
@media (max-width: 620px) {
  .showcase-grid { column-count: 1; }
  .hero, .section-heading { align-items: start; flex-direction: column; }
  .hero { padding: 34px 0 38px; }
  .collection-note { text-align: left; }
  .video-count { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .poster-image, .copy-prompt { transition: none; } }
