:root {
  --ink: #24133d;
  --muted: #716681;
  --paper: #f6f1ff;
  --surface: #fffaff;
  --line: #ded0f0;
  --coral: #7c2ee8;
  --yellow: #e8d7ff;
  --teal: #b98bea;
  --shadow: 0 18px 50px rgba(91, 42, 148, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.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; }
.topbar { height: 84px; display: flex; align-items: center; gap: 34px; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(246,241,255,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); }
.brand { color: var(--ink); display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand strong { font-weight: 700; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; background: var(--coral); color: white; border-radius: 50%; font-size: 12px; padding-left: 2px; }
.search-form { max-width: 610px; flex: 1; display: flex; height: 46px; border: 1px solid #c9c6be; background: var(--surface); border-radius: 4px; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; color: var(--ink); background: transparent; }
.search-form button { width: 56px; border: 0; color: white; background: var(--ink); font-size: 26px; line-height: 1; }
.avatar { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; font-size: 18px; }
main { max-width: 1440px; margin: auto; padding: 0 clamp(20px, 5vw, 72px) 80px; }
.hero { min-height: 405px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 65px 0 58px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 13px; color: var(--coral); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1, h2 { font-family: "Space Grotesk", sans-serif; margin: 0; line-height: .98; letter-spacing: -.04em; }
h1 { font-size: clamp(47px, 7vw, 92px); font-weight: 600; }
h1 em { color: var(--coral); font-style: normal; }
.hero-text { max-width: 360px; color: var(--muted); line-height: 1.55; margin: 25px 0 28px; }
.primary-button { border: 0; padding: 13px 17px; color: white; background: var(--ink); font-weight: 700; border-radius: 3px; transition: transform .2s, background .2s; }
.primary-button span { margin-left: 18px; font-size: 20px; }
.primary-button:hover { background: var(--coral); transform: translateY(-2px); }
.hero-art { width: min(43vw, 500px); height: 340px; position: relative; flex-shrink: 0; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid var(--ink); }
.ring-one { width: 390px; height: 390px; left: 54px; top: -25px; }
.ring-two { width: 295px; height: 295px; left: 102px; top: 22px; border-style: dashed; }
.art-disc { position: absolute; width: 210px; height: 210px; top: 65px; left: 145px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 12px 12px 0 var(--teal); }
.art-disc:after { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); }
.art-disc span { position: absolute; z-index: 1; color: white; font-size: 42px; transform: translateY(-3px); }
.note { position: absolute; font-family: Georgia, serif; font-size: 53px; color: var(--coral); }
.note-one { left: 23px; top: 45px; }.note-two { right: 17px; bottom: 35px; color: var(--teal); }
.chips { display: flex; gap: 9px; padding: 28px 0; overflow-x: auto; scrollbar-width: none; }.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 30px; background: transparent; padding: 9px 17px; color: var(--muted); }.chip.active, .chip:hover { background: var(--ink); border-color: var(--ink); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 22px 0 25px; }.section-heading h2 { font-size: clamp(28px, 4vw, 43px); }.result-count { color: var(--muted); font-size: 13px; }
.status { color: var(--muted); padding: 15px 0; }.status.error { color: #b43a2b; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px 18px; }
.video-card { min-width: 0; cursor: pointer; animation: rise .45s both; }.video-card:hover .thumb img { transform: scale(1.045); }.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; position: relative; }.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }.play { position: absolute; left: 12px; bottom: 11px; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; color: white; font-size: 14px; padding-left: 2px; }.video-card h3 { margin: 12px 0 5px; font-family: "Space Grotesk", sans-serif; font-size: 16px; line-height: 1.22; }.channel { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal { display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center; padding: 20px; }.modal.open { display: flex; }.modal-backdrop { position: absolute; inset: 0; background: rgba(18,18,18,.78); }.player-panel { width: min(900px, 100%); position: relative; z-index: 1; background: var(--surface); box-shadow: var(--shadow); }.close-button { position: absolute; right: 10px; top: 8px; z-index: 2; width: 35px; height: 35px; border: 0; color: white; background: rgba(0,0,0,.55); font-size: 25px; line-height: 1; }.player-frame { aspect-ratio: 16 / 9; background: #000; }.player-frame #player, .player-frame iframe { width: 100%; height: 100%; border: 0; }.player-info { padding: 20px 24px 8px; }.player-info h2 { font-size: 24px; }.player-info p:last-child { color: var(--muted); margin-bottom: 0; }
.player-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 24px 22px; border-top: 1px solid var(--line); }.player-controls button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 13px; border-radius: 3px; font-weight: 700; }.player-controls button:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }.player-controls button:disabled { opacity: .35; cursor: not-allowed; }.player-controls > span { color: var(--muted); font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-art { opacity: .82; transform: translateX(8%); } }
@media (max-width: 650px) { .topbar { height: auto; padding: 17px 20px; flex-wrap: wrap; gap: 15px; }.search-form { order: 3; flex-basis: 100%; }.avatar { position: absolute; right: 20px; top: 14px; }.hero { min-height: 570px; align-items: start; }.hero-copy { padding-top: 58px; }.hero-art { position: absolute; width: 420px; height: 330px; right: -116px; bottom: -88px; transform: scale(.76); transform-origin: bottom right; opacity: .9; }.section-heading { align-items: start; flex-direction: column; gap: 8px; }.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }.video-card h3 { font-size: 14px; }.player-info { padding: 16px 16px 8px; }.player-info h2 { font-size: 20px; }.player-controls { padding: 10px 16px 16px; }.player-controls button span { display: none; } }
@media (max-width: 390px) { .video-grid { grid-template-columns: 1fr; } }
body.dark { --ink: #f7efff; --muted: #c7b8d4; --paper: #1e132b; --surface: #2b1d3b; --line: #513b68; --coral: #b36cff; --yellow: #5f3a83; --teal: #9e70c9; }.dark .topbar { background: rgba(30,19,43,.92); }.dark .search-form { border-color: #654b7f; }
