:root {
  color-scheme: dark;
  --bg: #121314;
  --panel: #1c1d1f;
  --line: #2d2e31;
  --text: #faf7f1;
  --muted: #b3b0ad;
  --accent: #ffc398;
  --side: 220px;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { width: 21px; height: 21px; display: block; flex: none; }
i[data-icon] { display: inline-flex; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -50px; left: 10px; z-index: 10; background: var(--accent); color: #1a1511; padding: 8px; }
.skip:focus { top: 10px; }

.shell { margin-left: var(--side); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 3;
  display: flex; flex-direction: column; gap: 44px;
  background: #171718; border-right: 1px solid var(--line); padding: 26px 18px 24px;
}
.brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; font-size: 25px; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; padding-left: 5px; }
.brand-dot { color: var(--accent); margin-left: -5px; }
.mark { width: 33px; height: 33px; background: var(--accent); color: #211811; border-radius: 10px; display: inline-flex; gap: 2px; align-items: center; justify-content: center; }
.mark i { display: block; width: 2.5px; height: 9px; border-radius: 5px; background: currentColor; transform: rotate(14deg); }
.mark i:nth-child(2) { height: 16px; }
.mark i:nth-child(3) { height: 12px; }
.mark i:nth-child(4) { height: 6px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a, .side-login { display: flex; align-items: center; gap: 13px; border-radius: 10px; min-height: 48px; padding: 0 13px; color: var(--muted); font-weight: 600; }
.sidebar a[aria-current], .sidebar nav a:hover, .side-login:hover { background: #302822; color: var(--accent); }
.side-login { margin-top: auto; }
.topbar {
  position: sticky; top: 0; z-index: 2; background: #121314f4;
  min-height: 75px; padding: 12px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
#search { width: min(100%, 465px); border: 1px solid #333437; border-radius: 12px; display: flex; align-items: center; background: #1d1e20; padding: 0 14px; gap: 10px; color: var(--muted); }
#query { width: 100%; min-width: 0; background: none; color: var(--text); border: 0; padding: 11px 0; }
#query::placeholder { color: var(--muted); }
#search:focus-within { border-color: var(--accent); }
#query:focus { outline: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; min-height: 44px; font-weight: 700; white-space: nowrap; color: inherit; }
.button:hover { filter: brightness(1.105); }
.primary { background: var(--accent); color: #231810; }
.outline { background: transparent; border-color: #3b3b40; }
.translucent { background: #0f1417a8; border-color: #ffffff53; }

main { max-width: 1630px; margin: auto; padding: 29px clamp(18px, 4vw, 56px) 0; }
.hero {
  display: flex; align-items: end; min-height: clamp(425px, 37vw, 575px); border: 1px solid #ffffff20; border-radius: 23px;
  background: linear-gradient(90deg, #101919f5 0%, #111c1cbd 29%, #111c1c15 70%), linear-gradient(0deg, #1016179c, transparent 47%), url("./assets/coast.webp") center 54% / cover, #223c39;
}
.hero-copy { padding: clamp(26px, 5vw, 66px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-weight: 750; font-size: .81rem; letter-spacing: .16em; margin: 0 0 18px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 100%; background: currentColor; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 6.5rem); line-height: 1.04; letter-spacing: -.068em; font-weight: 730; }
.hero h1 em { font-family: inherit; color: var(--accent); font-weight: 500; letter-spacing: -.055em; }
.hero-description { max-width: 420px; color: #e4e3da; line-height: 1.62; margin-top: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }

.community-layout { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(255px, 1fr); gap: clamp(18px, 2.7vw, 36px); margin-top: 35px; }
.feed-heading { margin-bottom: 16px; }
.feed-heading p { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.community-layout aside h2 { font-size: clamp(1.22rem, 1.8vw, 1.65rem); }
.feed-stack { display: grid; gap: 14px; }
.feed-post, .space-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; min-width: 0; }
.feed-post { padding: clamp(13px, 2.15vw, 26px); scroll-margin-top: 92px; }
.feed-post:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.post-author { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.post-avatar { display: grid; place-items: center; width: clamp(43px, 6vw, 59px); aspect-ratio: 1; flex-shrink: 0; border-radius: 50%; background: #483026; color: var(--accent); font-size: 1.02rem; font-weight: 750; }
.post-identity { display: grid; gap: 3px; min-width: 0; }
.post-identity strong { font-size: 1.12rem; overflow-wrap: anywhere; }
.post-name-row, .post-follow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.post-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #2667d8; }
.post-badge svg { width: 14px; height: 14px; stroke-width: 2.5; }
.post-date { color: var(--muted); font-size: .82rem; }
.post-gmail { color: var(--accent); font-size: .93rem; overflow-wrap: anywhere; }
.post-followers { color: var(--muted); font-size: .85rem; }
.post-follow-row .post-follow { min-height: 29px; padding: 3px 8px; border: 1px solid #aa795c; color: var(--accent); line-height: 1; }
.post-follow-row .post-follow[aria-pressed="true"] { background: #342a25; }
.feed-post h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); overflow-wrap: anywhere; }
.post-body { color: var(--muted); line-height: 1.55; margin-top: 7px; }
.post-media { width: 100%; display: flex; align-items: center; text-align: left; gap: 12px; margin-top: 15px; padding: 7px 11px 7px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #151617; }
.post-media:hover { border-color: var(--accent); }
.post-media img { width: 67px; height: 45px; object-fit: cover; border-radius: 6px; flex: none; }
.post-media small { display: block; margin-top: 2px; color: var(--muted); }
.media-play { margin-left: auto; color: #231810; background: var(--accent); border-radius: 50%; padding: 6px; flex: none; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; margin-top: 12px; }
.feed-action { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px; min-height: 40px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .88rem; font-weight: 650; }
.feed-action svg { width: 18px; height: 18px; }
.feed-action:hover, .feed-action[aria-expanded="true"], .feed-action[aria-pressed="true"] { color: var(--accent); }
.post-views { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .88rem; margin-left: auto; }
.post-views svg { width: 17px; height: 17px; }
.post-popover-wrap { position: relative; }
.post-reaction-trigger { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #50618a; border-radius: 50%; padding: 0; color: var(--text); background: #243654; font-size: 1rem; }
.post-reaction-trigger:hover, .post-reaction-trigger[aria-expanded="true"] { border-color: #92baff; background: #314b74; }
.post-popover { position: absolute; inset-inline-start: 0; z-index: 1; padding: 8px; background: #242526; border: 1px solid #454648; border-radius: 9px; box-shadow: 0 8px 18px #0007; }
.reaction-picker { display: flex; gap: 1px; bottom: 100%; }
.reaction-option { width: 32px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 1.13rem; }
.reaction-option:hover, .reaction-option[aria-pressed="true"] { background: #352c27; border-color: #82604c; }
.post-like-panel { top: 100%; min-width: 146px; width: max-content; max-width: min(220px, 62vw); padding: 10px; }
.post-like-panel strong { display: block; margin-bottom: 5px; font-size: .8rem; color: var(--muted); }
.post-like-empty, .post-like-names { font-size: .91rem; }
.post-like-names { list-style: none; max-height: 224px; overflow: auto; margin: 0; padding: 0; overflow-wrap: anywhere; }
.post-like-names li { display: flex; align-items: center; gap: 7px; }
.post-like-names li + li { margin-top: 5px; }
.like-avatar { display: block; flex: none; width: 27px; height: 27px; border-radius: 50%; overflow: hidden; position: relative; background: #313337; }
.like-avatar img { width: 100%; height: 100%; object-fit: cover; transition: opacity 120ms ease, filter 120ms ease; }
.like-avatar:is([data-avatar-effect="blur"], [data-avatar-effect="swap"]) img { filter: blur(3.5px); opacity: .72; }
.like-avatar[data-avatar-effect="missing"] img { opacity: 0; }
.like-avatar[data-avatar-effect="missing"]::after { content: ""; position: absolute; inset: 3px; border: 1px dashed #71757d; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .like-avatar img { transition: none; }
}
.post-status:not(:empty) { margin-top: 8px; color: var(--accent); font-size: .86rem; }
.post-comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 7px 0 13px; overflow-wrap: anywhere; }
.comment-list p { color: var(--muted); margin-top: 3px; }
.comment-form .comment-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.comment-form > div { display: flex; gap: 8px; }
.comment-form input, .post-link { width: 100%; min-width: 0; background: #151617; color: var(--text); border: 1px solid #48484b; border-radius: 9px; padding: 9px 10px; }
.post-link { margin-top: 6px; }
.space-card { overflow: hidden; }
.space-card img { width: 100%; aspect-ratio: 2.35; object-fit: cover; }
.space-copy { padding: 14px 16px 16px; }
.space-copy p { color: var(--muted); margin-top: 6px; line-height: 1.4; }
.space-copy .space-kind { color: var(--accent); font-size: .88rem; margin-top: 3px; }
.space-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.space-actions .button { padding: 6px 11px; min-height: 40px; font-size: .9rem; }
.space-actions .button[aria-pressed="true"] { color: var(--accent); border-color: #a87755; }

@media (max-width: 770px) {
  .community-layout { grid-template-columns: minmax(0, 1fr); }
}

.collection { margin: 35px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 17px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.04em; }
.section-heading a { color: var(--accent); font-weight: 650; }
.section-heading a:hover, footer a:hover { text-decoration: underline; }
.signal-label { position: relative; display: inline-block; }
.signal-variant { position: absolute; inset: 0; display: none; pointer-events: none; white-space: nowrap; }
.signal-label[data-signal-active] > [data-signal-original] { opacity: 0; }
.signal-label[data-signal-active] > .signal-variant { display: block; }
:is(button, a):is(:hover, :focus-within) .signal-label[data-signal-active] > [data-signal-original] { opacity: 1; }
:is(button, a):is(:hover, :focus-within) .signal-label[data-signal-active] > .signal-variant { display: none; }
.signal-title { display: inline-block; }
.text-button:not(:hover, :focus-within) .signal-title[data-title-active] { animation: signal-flicker 850ms ease-out; }
@keyframes signal-flicker {
  0%, 32%, 67%, 100% { opacity: 1; filter: none; }
  16%, 53% { opacity: .58; filter: blur(3px); }
  80% { opacity: .8; filter: blur(1.5px); }
}
.signal-loading { display: grid; padding: 19px 0 28px; place-items: center; }
.signal-spinner {
  width: 29px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#e4e0db25, #e4e0db);
  mask-image: radial-gradient(transparent 41%, #000 42%), repeating-conic-gradient(#000 0deg 8deg, transparent 9deg 30deg);
  mask-composite: intersect;
  animation: signal-spin 950ms steps(12) infinite;
}
@keyframes signal-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .signal-spinner, .text-button .signal-title[data-title-active] { animation: none; }
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; min-width: 0; }
.cover { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #2d3634; color: #fff; text-align: left; }
.cover:focus-visible { outline-offset: -4px; }
.cover img { width: 100%; aspect-ratio: 1.82; object-fit: cover; }
.cover:hover img { filter: brightness(1.14); }
.category { position: absolute; top: 11px; left: 11px; border-radius: 6px; background: #101012df; padding: 4px 8px; font-size: .8rem; font-weight: 650; }
.cover-play { position: absolute; bottom: 10px; right: 10px; border-radius: 100%; padding: 9px; color: #211811; background: var(--accent); }
.card-body { padding: 14px 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
h3 { font-size: 1.14rem; letter-spacing: -.02em; }
.card-body p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.text-button { padding: 0; border: 0; background: none; color: inherit; font-weight: inherit; text-align: left; }
.text-button:hover { color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); width: 38px; height: 38px; flex: none; border-radius: 8px; }
.icon-button:hover, .save[aria-pressed="true"] { color: var(--accent); background: #352921; }
.save[aria-pressed="true"] svg { fill: currentColor; }
.site-footer {
  margin-top: 48px;
  padding: clamp(28px, 5vw, 62px) clamp(18px, 5vw, 62px) 0;
  color: #f0f4fa;
  background: linear-gradient(115deg, #101e2d, #192335);
  border-top: 1px solid #344358;
}
.site-footer > * { max-width: 1310px; margin-inline: auto; }
.footer-top { display: flex; align-items: center; gap: clamp(20px, 6vw, 120px); }
.footer-brand { flex: none; white-space: nowrap; font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.06em; }
.footer-brand .brand-dot { margin: 0; }
.footer-top nav { flex: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.footer-top nav a { font-size: .94rem; }
.footer-flags { display: flex; justify-content: end; gap: 12px; margin-block: clamp(22px, 4vw, 45px); }
.flag { position: relative; display: inline-block; width: 36px; height: 36px; border: 1px solid #c1cad46b; border-radius: 50%; overflow: hidden; box-shadow: 0 3px 12px #0006; }
.flag-uk {
  background: linear-gradient(90deg, transparent 43%, #c71d3e 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #c71d3e 43% 57%, transparent 57%),
    linear-gradient(90deg, transparent 36%, white 36% 64%, transparent 64%),
    linear-gradient(0deg, transparent 36%, white 36% 64%, transparent 64%),
    linear-gradient(45deg, transparent 47%, #c71d3e 47% 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #c71d3e 47% 53%, transparent 53%),
    linear-gradient(45deg, transparent 42%, white 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, white 42% 58%, transparent 58%), #1d3264;
}
.flag-us { background: repeating-linear-gradient(#b82240 0% 7.69%, white 7.69% 15.38%); }
.flag-us::before { content: ""; position: absolute; inset: 0 44% 45% 0; background: radial-gradient(circle, white .75px, transparent 1px) 0 0 / 4px 4px, #253b72; }
.flag-de { background: linear-gradient(#111 0% 33.33%, #e32437 33.33% 66.66%, #ffcc32 66.66%); }
.footer-copyright { border-top: 1px solid #ffffff24; padding: 21px 0 24px; color: #b9c6d6; font-size: .9rem; text-align: center; }
.footer-detail { min-height: 45vh; }
.footer-detail h1 { font-size: clamp(2.2rem, 5.1vw, 4.4rem); }
.footer-detail p { max-width: 60ch; margin: 18px 0; color: var(--muted); line-height: 1.65; }
.footer-detail a { color: var(--accent); text-decoration: underline; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 15px; align-items: center; border-radius: 22px; border: 1px solid #ffffff23; overflow: hidden; background: #2d211c; }
.feature.podcast { background: #1b2625; }
.feature > div { padding: clamp(21px, 4vw, 51px); }
.feature h1, .account h1, .saved-list h1 { font-size: clamp(2.2rem, 5.1vw, 4.8rem); }
.feature p:not(.eyebrow), .account-content > p { color: #ded4cd; line-height: 1.6; margin: 15px 0 22px; }
.feature img { width: 100%; height: 100%; min-height: 275px; object-fit: cover; }
.saved-list { min-height: 45vh; }
.empty { padding: 25px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); line-height: 1.65; }
.account { min-height: min(620px, 78vh); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; background: #202022; }
.account-image { display: flex; align-items: end; padding: clamp(21px, 4vw, 49px); background: linear-gradient(0deg, #171017f0, #211a2608 68%), url("./assets/studio.webp") center / cover, #33253b; }
.account-image p { font: italic clamp(2.1rem, 4vw, 4.4rem)/1.04 "Segoe UI", system-ui, sans-serif; color: var(--accent); letter-spacing: -.045em; }
.account-content { align-self: center; padding: clamp(25px, 5vw, 62px); }
#login-form { display: grid; gap: 10px; }
#login-form input { background: #151517; color: var(--text); border: 1px solid #464448; border-radius: 9px; padding: 12px; width: 100%; }
#login-form button { margin-top: 10px; justify-self: start; }

.shared-media-page { max-width: 920px; padding: clamp(20px, 6vw, 64px); }
.shared-media-page h1 { font-size: clamp(2.1rem, 6vw, 4.6rem); margin: 36px 0 20px; overflow-wrap: anywhere; }
.shared-media-page video, .shared-media-page audio { width: 100%; }
.shared-media-page video { max-height: 72vh; background: #000; border-radius: 12px; }

.player { position: fixed; z-index: 4; inset: auto 0 0 var(--side); background: #202021; border-top: 1px solid #474549; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 10px clamp(12px, 3vw, 42px); box-shadow: 0 -12px 30px #0006; }
.player-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-track img { width: 43px; height: 43px; object-fit: cover; border-radius: 7px; }
.player small { display: block; color: var(--muted); }
.player audio { width: min(46%, 510px); height: 42px; }
dialog { width: min(920px, calc(100% - 24px)); max-height: 92vh; border-radius: 15px; background: #19191a; border: 1px solid #49464b; padding: 15px; color: var(--text); }
dialog::backdrop { background: #000c; }
dialog video { width: 100%; max-height: 74vh; background: black; border-radius: 9px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

@media (max-width: 950px) {
  :root { --side: 74px; }
  .sidebar { padding-inline: 10px; align-items: center; }
  .sidebar .brand { font-size: 0; gap: 0; padding: 0; align-self: center; }
  .sidebar a span:not(.mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sidebar nav a, .side-login { width: 49px; justify-content: center; padding: 0; }
}
@media (max-width: 620px) {
  :root { --side: 0px; }
  .sidebar { inset: auto 0 0; width: 100%; display: flex; flex-direction: row; gap: 0; justify-content: space-evenly; padding: 6px 8px; border: 0; border-top: 1px solid var(--line); }
  .sidebar .brand { display: none; }
  .sidebar nav { display: flex; flex: 3; justify-content: space-around; }
  .sidebar a span:not(.mark) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .sidebar nav a, .side-login { flex-direction: column; gap: 3px; width: auto; min-width: 67px; font-size: .75rem; padding-inline: 7px; }
  .side-login { margin: 0; flex: 1; }
  .topbar { min-height: 62px; gap: 9px; padding-inline: 12px; }
  .top-login { padding-inline: 9px; font-size: .86rem; }
  .top-login svg { display: none; }
  main { padding-top: 15px; }
  .hero { min-height: 415px; background-position: center, center, 58% center; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { padding-inline: 9px; font-size: .87rem; }
  .hero-actions svg { width: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-body { padding: 9px; gap: 2px; }
  .card-body h3 { font-size: 1rem; }
  .card-body .icon-button { width: 30px; }
  .section-heading a { font-size: .86rem; }
  .feature, .account { grid-template-columns: 1fr; }
  .feature img { min-height: auto; aspect-ratio: 2; }
  .account-image { min-height: 195px; }
  .player { bottom: 61px; flex-wrap: wrap; gap: 6px; }
  .player-track { flex: 1; }
  .player audio { width: 100%; height: 38px; order: 3; }
  .footer-top { align-items: start; flex-direction: column; }
  .footer-top nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .signal-loading { padding-bottom: 81px; }
}
@media (max-width: 350px) {
  .grid { grid-template-columns: 1fr; }
  .hero-actions .button { min-height: 42px; }
  .post-actions { column-gap: 4px; }
}
