/* Shared base for the four design versions. Each page sets its own colours with these variables. */
:root { --bg: #0a0a0a; --fg: #f3f3f1; --mute: #8b8b88; --line: rgba(255,255,255,.12); --card: #151515; --radius: 14px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img, video { display: block; }

/* version switcher (preview only) */
.vswitch { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 4px;
  background: #111d; backdrop-filter: blur(8px); border: 1px solid #333; border-radius: 99px; padding: 5px 6px 5px 12px;
  font: 600 12px/1 "Inter Tight", Arial, sans-serif; color: #aaa; }
.vswitch span { margin-right: 4px; }
.vswitch a { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 99px; color: #ddd; padding: 0 8px; }
.vswitch a.on, .vswitch a:hover { background: #f3f3f1; color: #111; }

/* reel card */
.rc { display: block; width: 100%; cursor: pointer; }
.rc-media { position: relative; display: block; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.rc-media img, .rc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.rc-media video { opacity: 0; }
.rc.is-playing video { opacity: 1; }
.rc:hover .rc-media img, .rc:hover .rc-media video { transform: scale(1.04); }
.rc-views { position: absolute; left: 10px; bottom: 10px; font: 700 12px/1 "Inter Tight", Arial, sans-serif; color: #fff; text-shadow: 0 1px 6px #000c; }
.rc-info { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; font-size: 13px; font-weight: 600; }
.rc-info span:last-child { color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }

/* archive */
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ar-chips button { border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--mute); transition: .2s; }
.ar-chips button sup { font-size: 10px; opacity: .7; margin-left: 2px; }
.ar-chips button.on, .ar-chips button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 14px; }
.ar-grid .rc[hidden] { display: none; }

/* reel wall */
.rw { position: relative; height: 92vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.rw-cols { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px; height: 100%; }
.rw-cols > div { overflow: hidden; }
.rw-track { display: flex; flex-direction: column; gap: 12px; animation: rwroll 60s linear infinite; }
.rw-track img { width: 100%; border-radius: 8px; filter: brightness(.88); }
.rw:hover .rw-track { animation-play-state: paused; }
@keyframes rwroll { to { transform: translateY(-50%); } }
.rw-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; pointer-events: none;
  font-size: clamp(20px, 2.2vw, 34px); font-weight: 600; color: #fff; text-shadow: 0 4px 40px #000, 0 0 14px #000; }
.rw-label b { display: block; font-size: clamp(80px, 11vw, 190px); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.rw-label small { display: block; font-size: 15px; font-weight: 500; margin-top: 10px; color: #ddd; }

/* player */
.vplayer { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.vplayer[hidden] { display: none; }
.vplayer figure { display: grid; justify-items: center; gap: 12px; }
.vplayer video { max-height: 84vh; max-width: 100%; background: #000; border-radius: 10px; }
.vplayer figcaption { font: 600 15px/1.3 "Inter Tight", Arial, sans-serif; color: #fff; }
.vplayer figcaption span { color: #888; font-weight: 400; margin-left: 10px; }
.vp-x { position: absolute; top: 18px; right: 24px; font: 600 14px "Inter Tight", Arial, sans-serif; color: #fff; }
.vp-nav { font-size: 28px; height: 100%; color: #777; text-align: center; } .vp-nav:hover { color: #fff; }
@media (max-width: 700px) { .vplayer { grid-template-columns: 1fr; } .vp-nav { display: none; } .ar-grid { grid-template-columns: repeat(2, 1fr); } .rw-cols { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
