:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body {
    background: #fff;
    color: #171717;
    font-family: Montserrat, "Noto Sans TC", sans-serif;
}
.twist-shell, .twist-footer { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.twist-shell { padding-top: 108px; }
.twist-shell a, .twist-footer a { color: inherit; }
.twist-shell :is(a, summary):focus-visible, .twist-footer a:focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
.twist-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding: 24px 0 32px;
    border-bottom: 1px solid #ccc;
}
.twist-kicker { font-size: .7rem; letter-spacing: .13em; font-weight: 500; }
.twist-hero h1 { font-size: clamp(2.75rem, 6vw, 6rem); font-weight: 700; letter-spacing: -.065em; line-height: .98; }
.twist-hero h1 span { display: block; font-size: clamp(1rem, 2vw, 1.6rem); letter-spacing: -.02em; margin-top: 12px; }
.twist-intro { margin: 14px 0 0; max-width: 50ch; color: #505050; }
.twist-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.twist-actions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid #ddd; }
.twist-actions a:hover { text-decoration: underline; }
.twist-actions .twist-primary { color: #fff; background: #171717; border-bottom: 0; }
.twist-feature { width: min(100%, 264px); justify-self: center; }
.twist-feature video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; }
.twist-film-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 6px; }
.twist-film-controls [role="group"] { display: flex; gap: 4px; margin-inline-end: auto; }
.twist-film-controls button { min-height: 44px; border: 1px solid #ccc; padding: 6px 12px; background: #fff; color: #171717; font: inherit; font-size: .82rem; }
.twist-film-controls button[aria-pressed="true"] { background: #171717; color: #fff; border-color: #171717; }
.twist-film-controls button:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.twist-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 23px 0 15px; }
.twist-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.twist-series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.twist-card { text-decoration: none; min-width: 0; }
.twist-photo { overflow: hidden; background: #eee; aspect-ratio: 3508 / 2481; }
.twist-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.twist-card-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ccc; }
.twist-card h3 { margin: 4px 0 0; font-size: clamp(.95rem, 1.55vw, 1.35rem); font-weight: 600; }
.twist-arrow { font-size: 1.3rem; }
.twist-more { margin-top: 36px; border-top: 1px solid #ccc; }
.twist-more details { border-bottom: 1px solid #ccc; }
.twist-more summary { cursor: pointer; display: grid; grid-template-columns: minmax(100px, 170px) 1fr auto; align-items: center; gap: 12px; padding: 15px 0; font-weight: 600; }
.twist-more summary::-webkit-details-marker { display: none; }
.twist-more summary::after { content: "+"; font-size: 1.25rem; }
.twist-more details[open] summary::after { content: "−"; }
.twist-detail { padding: 2px 0 18px; color: #505050; }
.twist-detail > p { max-width: 72ch; margin: 0 0 8px; }
.twist-detail .channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.twist-detail .channel-card { padding: 12px 0; border-top: 1px solid #eee; }
.twist-detail h4 { font-size: 1rem; font-weight: 600; color: #171717; }
.twist-detail p, .twist-detail li, .twist-detail a { font-size: .88rem; }
.twist-detail .channel-guide { display: none; }
.twist-footer { display: flex; flex-wrap: wrap; gap: 20px; padding-block: 24px; font-size: .85rem; }
.twist-shell [id] { scroll-margin-top: 94px; }
@media (max-width: 767px) {
    .twist-shell, .twist-footer { width: calc(100% - 32px); }
    .twist-shell { padding-top: 96px; }
    .twist-hero { grid-template-columns: 1fr; gap: 14px; padding-block: 16px; }
    .twist-feature { width: min(100%, 224px); }
    .twist-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .twist-actions a { padding: 6px; font-size: .75rem; }
    .twist-series { grid-template-columns: 1fr; gap: 0; }
    .twist-card { display: grid; grid-template-columns: clamp(80px, 22vw, 120px) 1fr; align-items: center; gap: 12px; border-bottom: 1px solid #ddd; padding: 8px 0; }
    .twist-card-info { border: 0; padding: 0; }
    .twist-card .twist-kicker { font-size: .58rem; }
    .twist-more { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .twist-photo img { transition: none; }
}
