:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #e9e9e6;
  --text: #151515;
  --muted: #6f7072;
  --line: rgba(18,18,18,.14);
  --accent: #c9141d;
  --accent-soft: #e03b43;
  --radius: 22px;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.noise { position: fixed; inset: 0; opacity: .03; pointer-events: none; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { color: var(--accent); font-family: var(--font-display); font-size: 2rem; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -.09em; }
.brand-copy { display: grid; padding-left: 12px; border-left: 1px solid rgba(0,0,0,.18); line-height: 1.05; }
.brand-copy strong { font-size: .93rem; letter-spacing: .1em; }
.brand-copy small { margin-top: 5px; color: #858587; font-family: var(--font-display); font-size: .5rem; font-weight: 700; letter-spacing: .11em; }
.header-actions { display: flex; gap: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .filter-button:focus-visible, .video-card:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #a90f17; }
.button-ghost { border-color: var(--line); background: rgba(0,0,0,.025); }
.button-ghost:hover { background: rgba(0,0,0,.07); }
.button-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.button-dark:hover { background: rgba(255,255,255,.14); }
.button-outline { border-color: rgba(0,0,0,.18); background: transparent; color: #171719; }

main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(48px, 7vw, 106px) clamp(20px, 5vw, 72px) 100px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); align-items: end; gap: 48px; padding-bottom: clamp(42px, 6vw, 80px); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .19em; }
h1 { max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(3.1rem, 7.5vw, 7.4rem); line-height: .95; letter-spacing: -.065em; }
h1 em { color: var(--accent); font-style: normal; }
.intro-copy { max-width: 390px; margin: 0 0 7px auto; color: #626366; font-size: clamp(1rem, 1.3vw, 1.12rem); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { white-space: nowrap; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.filter-button:hover { color: var(--text); }
.filter-button.active { color: #fff; background: var(--accent); }
.search-box { min-width: 210px; display: flex; align-items: center; gap: 8px; color: var(--muted); border-bottom: 1px solid rgba(0,0,0,.24); }
.search-box svg { flex: none; }
.search-box input { width: 100%; padding: 10px 2px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .95rem; }
.search-box input::placeholder { color: #77797e; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); padding-top: clamp(32px, 5vw, 64px); }
.video-card { position: relative; border: 0; padding: 0; text-align: left; background: transparent; cursor: pointer; border-radius: var(--radius); }
.card-art { position: relative; display: block; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: #21242a; isolation: isolate; }
.card-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 74% 30%, var(--glow), transparent 32%), linear-gradient(140deg, var(--tone-a), var(--tone-b)); z-index: -2; }
.card-art::after { content: ""; position: absolute; width: 65%; aspect-ratio: 1; left: 18%; top: 14%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); transition: transform .55s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.video-card:hover .card-art::after { transform: scale(1.08) rotate(12deg); }
.card-art.coral { --tone-a:#8e181e; --tone-b:#2a1717; --glow:rgba(238,75,81,.72); }
.card-art.amber { --tone-a:#72533a; --tone-b:#231b17; --glow:rgba(205,153,91,.7); }
.card-art.blue { --tone-a:#3b4448; --tone-b:#171b1d; --glow:rgba(133,150,156,.68); }
.card-art.violet { --tone-a:#4b3a39; --tone-b:#201919; --glow:rgba(176,119,107,.65); }
.card-number { position: absolute; top: 17px; left: 19px; color: rgba(255,255,255,.72); font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; }
.art-word { position: absolute; left: 22px; bottom: 15px; color: rgba(255,255,255,.1); font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .8; letter-spacing: -.08em; text-transform: uppercase; }
.play-button { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #101114; background: #fff; transition: transform .25s ease, background .25s ease; }
.play-button svg { width: 23px; height: 23px; fill: currentColor; stroke: none; margin-left: 3px; }
.video-card:hover .play-button { transform: scale(1.08); background: var(--accent); color: #fff; }
.card-info { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 17px 3px 0; }
.card-info h2 { margin: 0 0 3px; font-size: 1.14rem; letter-spacing: -.02em; }
.card-info p, .card-duration { margin: 0; color: var(--muted); font-size: .86rem; }
.empty-state { text-align: center; color: var(--muted); padding: 80px 20px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 5vw, 72px); color: #737477; border-top: 1px solid var(--line); background: #fff; font-size: .86rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(14px); animation: fade-in .25s ease both; }
.player-panel { position: relative; z-index: 1; width: min(1240px, 100%); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid var(--line); border-radius: 26px; background: #0d0f12; box-shadow: 0 30px 100px rgba(0,0,0,.65); animation: rise-in .35s cubic-bezier(.2,.8,.2,1) both; }
.player-topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; }
.player-heading p { margin: 0 0 2px; color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .1em; }
.player-heading h2 { margin: 0; font-size: 1.1rem; }
.player-actions { display: flex; gap: 8px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: rgba(255,255,255,.05); cursor: pointer; transition: background .2s ease; }
.icon-button:hover { background: rgba(255,255,255,.12); }
.video-stage { display: grid; place-items: center; min-height: 300px; background: #000; }
.video-stage video { display: block; width: 100%; max-height: calc(100vh - 245px); aspect-ratio: 16/9; background: #000; }
.player-footer { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 18px 22px 21px; }
.player-footer p { max-width: 690px; margin: 0; color: var(--muted); font-size: .92rem; }
.text-button { white-space: nowrap; border: 0; padding: 8px 0; color: var(--text); background: transparent; cursor: pointer; font-weight: 600; }
.text-button span { display: inline-block; margin-left: 7px; color: var(--accent); transition: transform .2s ease; }
.text-button:hover span { transform: translateX(4px); }

.qr-modal { color: #171719; }
.qr-modal .modal-backdrop { background: rgba(0,0,0,.75); }
.qr-panel { position: relative; z-index: 1; width: min(490px, 100%); padding: 38px clamp(24px, 6vw, 48px) 32px; text-align: center; border-radius: 28px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: rise-in .35s cubic-bezier(.2,.8,.2,1) both; }
.qr-panel .eyebrow { margin-bottom: 7px; }
.qr-panel h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -.04em; }
.qr-panel > p:not(.eyebrow):not(.qr-note) { margin: 0; color: #69676a; }
.qr-close { position: absolute; top: 16px; right: 16px; color: #222; border-color: rgba(0,0,0,.12); background: transparent; }
.qr-close:hover { background: rgba(0,0,0,.07); }
.qr-frame { width: min(300px, 100%); margin: 24px auto 16px; padding: 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 22px; background: #fff; }
.qr-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 13px; }
.qr-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 14px; border-radius: 10px; color: #767477; background: rgba(0,0,0,.055); font-family: var(--font-display); font-size: .75rem; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.qr-note { margin: 17px 0 0; color: #8b898b; font-size: .78rem; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: #24262b; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px) scale(.985); } }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .intro-copy { margin-left: 0; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-actions .button span { display: none; }
  .player-actions .button { width: 44px; padding: 0; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; padding: 12px 18px; }
  .brand { font-size: .95rem; }
  .brand-logo { font-size: 1.7rem; }
  .brand-copy small { display: none; }
  .header-actions .button { width: 42px; min-height: 42px; padding: 0; }
  .header-actions .button span { display: none; }
  main { padding: 44px 18px 72px; }
  h1 { font-size: clamp(3rem, 16vw, 5.1rem); }
  .toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .filter-row { margin-right: -18px; padding-right: 18px; }
  .search-box { width: 100%; }
  .video-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; }
  .card-art { aspect-ratio: 16/9; }
  .modal { padding: 0; align-items: end; }
  .player-panel { width: 100%; max-height: 100dvh; border-radius: 22px 22px 0 0; }
  .player-topbar { padding: 13px 14px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .player-heading { min-width: 0; }
  .player-heading h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
  .close-button { display: none; }
  .video-stage { min-height: 210px; }
  .video-stage video { max-height: 58dvh; }
  .player-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 15px 18px max(18px, env(safe-area-inset-bottom)); }
  .qr-panel { width: 100%; max-height: 96dvh; overflow: auto; border-radius: 26px 26px 0 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  footer { flex-direction: column; gap: 4px; padding: 22px 18px; }
}

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