@font-face {
  font-family: Manrope;
  src: url('/brand/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Sora;
  src: url('/brand/sora.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101013;
  --sidebar-bg: #151519;
  --panel: #1a1a1f;
  --panel-raised: #24242a;
  --glass: rgb(23 23 28 / 93%);
  --media-glass: rgb(12 12 16 / 72%);
  --text: #f6f5f7;
  --muted: #b6b4bc;
  --dim: #a09da8;
  --line: #303036;
  --control-line: #48484f;
  --accent: #ff5366;
  --accent-fill: #c92d42;
  --accent-hover: #ab2134;
  --accent-tint: #352126;
  --focus: #ff9aa8;
  --space-1: 0.375rem;
  --space-2: 0.625rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --radius-s: 0.55rem;
  --radius: 0.92rem;
  --radius-l: 1.2rem;
  --rail-width: clamp(12rem, 15.6vw, 15.8rem);
  --gutter: clamp(1.2rem, 2.65vw, 3rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --heading: Sora, system-ui, sans-serif;
  --body: Manrope, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.76, 0.23, 1);
  --overlay-time: 220ms;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
  scroll-padding: 5.5rem 0 1rem;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 1rem/1.5 var(--body);
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  text-align: inherit;
}
button:disabled,
[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
a,
summary,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
img,
video {
  display: block;
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}
button svg,
a svg,
label svg,
.icon {
  width: 1.22rem;
  height: 1.22rem;
  display: inline-block;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
::selection {
  background: #8b2031;
  color: white;
}
.sr-only,
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.app-shell {
  min-height: 100vh;
}
.workspace {
  margin-inline-start: var(--rail-width);
  min-width: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  padding: max(1.25rem, var(--safe-top)) 0.88rem 1.1rem;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  z-index: 15;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 44px;
  color: var(--text);
  font: 650 1.62rem/1 var(--heading);
  letter-spacing: -0.075em;
  white-space: nowrap;
}
.brand img,
.mobile-brand img {
  width: 1.92rem;
  height: 1.62rem;
  object-fit: contain;
}
.sidebar .brand {
  margin: 0 0.65rem 2.35rem;
}
.nav-list,
.sidebar-bottom {
  display: grid;
  gap: 0.26rem;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: var(--space-4);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 46px;
  min-width: 0;
  padding: 0.62rem 0.9rem;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.25;
  transition:
    color 0.18s,
    background 0.18s;
}
.nav-item svg {
  width: 1.22rem;
  height: 1.22rem;
}
.nav-item:hover {
  color: var(--text);
  background: var(--panel-raised);
}
.nav-item[aria-current='page'],
.nav-item.active {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 750;
}
.sidebar .nav-item[aria-current='page'] svg {
  stroke-width: 2.1;
}
.sidebar hr,
.drawer hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.15rem 0.75rem;
}
.nav-label {
  color: var(--dim);
  margin: 0.4rem 0.9rem 0.6rem;
  font: 750 0.68rem/1.4 var(--body);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.topbar {
  min-height: 4.55rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.55rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(27rem, 63%);
  min-height: 44px;
  padding: 0.2rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--muted);
  background: var(--panel);
}
.search-field:focus-within {
  border-color: var(--focus);
}
.search-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  outline: 0;
  padding: 0.35rem 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1rem;
}
.search-field input::placeholder,
textarea::placeholder,
input::placeholder {
  color: var(--dim);
  opacity: 1;
}
.search-field kbd {
  padding: 0.04rem 0.31rem;
  border-radius: 0.28rem;
  border: 1px solid var(--control-line);
  color: var(--dim);
  font: 600 0.7rem/1.45 var(--body);
}
.icon-button,
.queue-play,
.clip-actions > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel);
}
.icon-button:hover {
  background: var(--panel-raised);
  border-color: var(--control-line);
}
.page {
  max-width: 104rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 2.55vw, 2.8rem) var(--gutter) 4rem;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(1.35rem, 4vw, 4.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
}
.home-intro {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.home-intro h1 {
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.home-intro > p,
.home-about p {
  color: var(--muted);
  max-width: 52ch;
}
.home-search {
  width: 100%;
  max-width: 29rem;
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  background: var(--bg);
}
.home-search > button {
  min-height: 44px;
  padding-inline: 0.85rem;
  white-space: nowrap;
}
.home-editors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-editors > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}
.home-editors > a:hover {
  background: var(--panel-raised);
  color: var(--text);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.home-actions a {
  justify-content: center;
  min-height: 44px;
}
.home-intro .home-count {
  margin-top: 0.1rem;
  color: var(--dim);
  font-size: 0.92rem;
}
.home-count strong {
  margin-inline-end: 0.25rem;
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.home-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.44;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 25% 25%, var(--accent-tint), var(--bg) 70%);
}
.home-art > img {
  width: 26%;
  filter: drop-shadow(0 0.65rem 1.6rem rgb(0 0 0 / 32%));
}
.home-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: inherit;
  background: var(--sidebar-bg);
}
.home-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cover-caption {
  z-index: 1;
  width: 100%;
  padding: 2.25rem 1rem 0.95rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 94%));
  color: #fff;
  overflow-wrap: anywhere;
}
.home-cover-caption :is(strong, small) {
  display: block;
}
.home-cover-caption small {
  color: #eae8ed;
}
.home-about,
.home-selection {
  margin-top: clamp(1.6rem, 4vw, 3.35rem);
}
.home-selection .media-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.home-selection .media-thumb {
  aspect-ratio: 16 / 9;
}
.home-about p {
  margin-top: 0.55rem;
  max-width: 66ch;
}
.home-footer {
  margin-top: clamp(2rem, 5vw, 4.25rem);
  padding-top: clamp(1.35rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.home-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-footer-group h2 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  letter-spacing: normal;
}
.home-footer-group > a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-width: 44px;
  max-width: 100%;
  min-height: 44px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.home-footer-group > a:hover {
  color: var(--text);
  text-decoration: underline;
}
@media (max-width: 30rem) {
  .home-hero {
    gap: 1rem;
  }
  .home-intro {
    gap: 0.75rem;
  }
  .home-art {
    aspect-ratio: 2;
  }
  .home-selection .media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-footer-nav,
  .home-footer-group:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.8rem;
  }
  .home-footer-group:last-child,
  .home-footer-group:last-child h2 {
    grid-column: 1 / -1;
  }
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
  margin-bottom: 1rem;
}
.section-head h1,
.page > h1 {
  font-size: clamp(2.05rem, 3vw, 3.45rem);
  letter-spacing: -0.07em;
  font-weight: 650;
}
.section-head h2,
.page > h2 {
  font-size: clamp(1.32rem, 2vw, 1.9rem);
  font-weight: 620;
  letter-spacing: -0.055em;
}
.section-head .count {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.text-action {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.84rem;
}
.text-action:hover {
  color: var(--text);
}
.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(14rem, 1fr);
  align-items: stretch;
  gap: clamp(0.85rem, 1.45vw, 1.5rem);
  margin-bottom: clamp(1.7rem, 2.9vw, 3.1rem);
}
.feature-card {
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 18.6rem;
  aspect-ratio: 1.88;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: #1e2029;
  color: #fff;
}
.feature-poster {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 8 13 / 36%), transparent 72%),
    linear-gradient(
      0deg,
      rgb(5 5 10 / 96%) 0,
      rgb(6 6 12 / 76%) 24%,
      rgb(8 8 13 / 18%) 68%,
      rgb(8 8 13 / 9%) 100%
    );
  pointer-events: none;
}
.feature-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
  padding: clamp(1.1rem, 2.2vw, 2.45rem);
}
.feature-overlay h2,
.feature-title {
  max-width: 100%;
  font-size: clamp(1.62rem, 3.25vw, 3.85rem);
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 2px 15px #0008;
}
.feature-kicker,
.editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  color: #fff;
}
.feature-kicker {
  font: 750 0.69rem/1.3 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #eceaf0;
  font-size: 0.86rem;
  font-weight: 590;
  text-shadow: 0 1px 6px #000;
}
.play-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.62rem 1.12rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 780;
  text-align: center;
  line-height: 1.2;
}
.play-button,
.primary-button {
  background: var(--accent-fill);
  color: #fff;
}
.play-button {
  margin-top: 0.45rem;
}
.play-button:hover,
.primary-button:hover {
  background: var(--accent-hover);
}
.play-button svg {
  width: 1.04rem;
  height: 1.04rem;
}
.secondary-button {
  color: var(--text);
  border: 1px solid var(--control-line);
  background: var(--panel);
}
.secondary-button:hover {
  background: var(--panel-raised);
}
.up-next {
  min-width: 0;
  padding: clamp(0.8rem, 1.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
}
.up-next h2 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.queue-list {
  display: grid;
  align-content: center;
  min-width: 0;
  flex: 1;
}
.queue-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(3.5rem, 27%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.58rem 0;
  text-align: start;
  border-bottom: 1px solid var(--line);
}
.queue-item:last-child {
  border-bottom: 0;
}
.queue-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  min-height: 2.8rem;
  border-radius: 0.52rem;
  object-fit: cover;
  background: var(--panel-raised);
}
.queue-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}
.queue-copy strong {
  font-size: 0.87rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.queue-copy small {
  color: var(--dim);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}
.queue-play {
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  color: var(--dim);
  background: var(--panel-raised);
}
.queue-play svg {
  width: 0.78rem;
  height: 0.78rem;
}
.queue-item:hover .queue-copy strong {
  color: var(--accent);
}
.queue-item:hover .queue-play {
  color: #fff;
  background: var(--accent-fill);
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 30rem;
  align-items: stretch;
  gap: 0.42rem;
  margin: 0 0 1rem;
}
.filter {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.45rem 0.95rem;
  background: var(--panel);
  color: var(--muted);
  line-height: 1.2;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 720;
}
.filter[aria-pressed='true'],
.filter.active {
  color: #18181b;
  background: #f5f3f6;
  border-color: transparent;
}
.filter:hover:not([aria-pressed='true']) {
  background: var(--panel-raised);
  color: var(--text);
}
.media-grid {
  display: grid;
  gap: 1.55rem 1.06rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.4rem), 1fr));
}
.media-card {
  display: block;
  min-width: 0;
  text-align: start;
}
.media-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.media-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
@media (hover: hover) {
  .media-thumb img {
    transition: transform 0.3s var(--ease);
  }
  .media-card:hover .media-thumb img {
    transform: scale(1.035);
  }
  .media-card:hover .card-title {
    text-decoration: underline;
    text-underline-offset: 0.16em;
  }
}
.editor-tag {
  padding: 0.25rem 0.54rem;
  border: 1px solid #ffffff38;
  border-radius: 0.4rem;
  background: var(--media-glass);
  color: #fff;
  font: 720 0.67rem/1.25 var(--body);
  white-space: nowrap;
}
.media-thumb .editor-tag {
  position: absolute;
  bottom: 0.52rem;
  left: 0.52rem;
}
.media-body {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.06rem 0;
  min-width: 0;
}
.card-title {
  font: 730 0.99rem/1.3 var(--body);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--dim);
  font-size: 0.77rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.card-meta img,
.feature-meta img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Profiles, form controls and playback use the same visual vocabulary as Discover. */
.profile-head {
  display: flex;
  gap: clamp(1rem, 2.7vw, 2.4rem);
  align-items: center;
  flex-wrap: wrap;
  padding: 1.2rem 0 2rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.profile-head > img,
.profile-avatar {
  width: clamp(4rem, 9vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel-raised);
  object-fit: cover;
}
.profile-info {
  min-width: min(100%, 12rem);
  flex: 1;
  overflow-wrap: anywhere;
}
.profile-info h1 {
  font-size: clamp(1.5rem, 3vw, 2.7rem);
}
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1rem;
  margin-block: 0.4rem;
  color: var(--muted);
}
.profile-stats strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.profile-bio {
  margin-top: 0.65rem;
  max-width: 58ch;
  color: var(--muted);
}

.empty-state,
.error-state,
.status-box {
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}
.empty-state h2,
.error-state h2,
.status-box h2 {
  color: var(--text);
  font-size: 1.15rem;
}
.skeleton {
  min-height: 6rem;
  border-radius: var(--radius);
  background: var(--panel-raised);
  animation: skeleton-pulse 1.3s infinite alternate ease-in-out;
}
@keyframes skeleton-pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0.9;
  }
}
.status-message {
  color: var(--muted);
}
form label {
  font-weight: 650;
}
.field,
.form-field {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 1rem;
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']),
textarea,
select {
  min-width: 0;
  max-width: 100%;
  font-size: max(1rem, 16px);
}
.field input,
.field textarea,
.field select,
.form-field input,
.form-field textarea,
.form-field select,
.sheet :where(input:not([type='checkbox']):not([type='radio']):not([type='range']), textarea, select),
.drawer select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-s);
  padding: 0.65rem 0.78rem;
  background: var(--bg);
  color: var(--text);
}
textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline-offset: 1px;
}
form .form-error,
[role='alert'].error {
  color: #ffadba;
}

.workspace:has(.clip-feed) .page,
.page:has(> .clip-feed) {
  max-width: none;
  padding: 0;
}
.clip-feed {
  --clip-height: calc(100vh - 4.55rem);
  --clip-height: calc(100dvh - 4.55rem);
  position: relative;
  height: var(--clip-height);
  overflow: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--control-line) var(--bg);
  background: #0c0c0e;
}
.clip-slide {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: var(--clip-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #09090b;
}
.clip-slide > video,
.clip-slide > img,
.clip-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clip-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 82%), rgb(0 0 0 / 52%) 14%, transparent 44%);
}
.clip-caption {
  position: absolute;
  left: max(var(--gutter), var(--safe-left));
  right: max(5rem, calc(var(--safe-right) + 4.4rem));
  bottom: max(1.5rem, var(--safe-bottom));
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  color: white;
  text-shadow: 0 1px 5px #000;
}
.clip-caption h1,
.clip-caption h2 {
  font-size: clamp(1.3rem, 2.4vw, 2.3rem);
  overflow-wrap: anywhere;
  max-width: 40ch;
}
.clip-caption p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.clip-caption a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.clip-actions {
  position: absolute;
  right: max(1rem, var(--safe-right));
  bottom: max(1.4rem, var(--safe-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.clip-actions > :is(a, button) {
  background: var(--media-glass);
  color: #fff;
  border: 1px solid #ffffff50;
}
.clip-actions [aria-pressed='true'] {
  color: #ff8696;
  border-color: #ff8696;
}
.clip-actions [aria-pressed='true'] svg {
  fill: currentColor;
}
.detail-player {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #08080a;
}
.detail-player :is(video, img) {
  display: block;
  width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  object-fit: contain;
}
.detail-title {
  margin: 0.9rem 0 0.45rem;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-block: 1rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 57%);
}
dialog.drawer,
dialog.sheet {
  color: var(--text);
}
dialog::backdrop {
  background: rgb(0 0 0 / 57%);
}
.drawer,
.sheet {
  position: fixed;
  margin: 0;
  padding: 0;
  z-index: 35;
  border: 1px solid var(--control-line);
  background: var(--glass);
  color: var(--text);
  max-width: none;
  box-shadow: 0 1rem 4rem #0008;
}
.drawer {
  inset: 0 0 0 auto;
  width: min(23rem, calc(100% - 1.5rem));
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: max(1rem, var(--safe-top)) max(1rem, var(--safe-right)) max(1rem, var(--safe-bottom)) 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  border-width: 0 0 0 1px;
}
.drawer :is(h2, .brand) {
  margin: 0;
}
.drawer .nav-list {
  margin-block: 1.25rem;
}
.drawer-body {
  padding-inline: 0.45rem;
}
.drawer,
.sheet {
  transition: transform var(--overlay-time) var(--ease);
}
.sheet {
  inset: auto auto 0 50%;
  translate: -50% 0;
  width: min(100%, 38rem);
  max-height: min(90vh, 52rem);
  max-height: min(90dvh, 52rem);
  border-bottom: 0;
  border-radius: 1.4rem 1.4rem 0 0;
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
}
.sheet[open],
.sheet:not(dialog):not([hidden]) {
  display: flex;
  flex-flow: column nowrap;
}
.sheet-head,
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: none;
  padding: 0.68rem 1.15rem;
}
.drawer-head {
  padding-inline: 0.45rem;
}
.sheet-head {
  touch-action: none;
  border-bottom: 1px solid var(--line);
}
.sheet-head::before {
  content: '';
  position: absolute;
  top: 0.38rem;
  left: 50%;
  translate: -50% 0;
  width: 2rem;
  height: 3px;
  border-radius: 4px;
  background: var(--control-line);
  pointer-events: none;
}
.sheet-head h2,
.drawer-head h2 {
  font-size: 1.1rem;
  letter-spacing: -0.035em;
}
.sheet-head .icon-button,
.drawer-head .icon-button {
  background: transparent;
  border: 0;
}
.sheet-grip,
.sheet-handle {
  width: 2.35rem;
  height: 4px;
  border-radius: 10px;
  background: var(--control-line);
  margin: 0.5rem auto 0.1rem;
  flex: none;
}
.sheet-body {
  padding: 1rem 1.2rem 1.4rem;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.sheet-body > :last-child {
  margin-bottom: 0;
}
.comment {
  overflow-wrap: anywhere;
  display: grid;
  gap: 0.22rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child {
  border-bottom: 0;
}
.comment-meta {
  font-size: 0.8rem;
  color: var(--dim);
}
.status-toast,
.toast {
  position: fixed;
  z-index: 45;
  bottom: max(1rem, var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 35rem);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-s);
  background: var(--panel-raised);
  border: 1px solid var(--control-line);
  color: var(--text);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .sheet,
  .drawer,
  .bottom-nav {
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
  }
}
@media (min-width: 90rem) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.85rem 1.2rem;
  }
}
@media (max-width: 71rem) and (min-width: 48.01rem) {
  :root {
    --rail-width: 10.3rem;
    --gutter: 1.35rem;
  }
  .sidebar {
    padding-inline: 0.52rem;
  }
  .sidebar .brand {
    font-size: 1.39rem;
  }
  .nav-item {
    gap: 0.6rem;
    padding-inline: 0.68rem;
  }
  .featured-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(13rem, 1fr);
  }
  .up-next {
    padding: 0.8rem;
  }
  .queue-item {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.58rem;
  }
  .queue-play {
    display: none;
  }
}
@media (min-width: 48.01rem) and (max-width: 59rem) {
  :root {
    --rail-width: 5.1rem;
  }
  .sidebar .brand {
    margin-inline: auto;
  }
  .sidebar .brand > span,
  .sidebar .nav-item > span,
  .sidebar .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .sidebar .nav-item {
    justify-content: center;
  }
}
@media (max-width: 48rem) {
  :root {
    --gutter: clamp(0.85rem, 4vw, 1.5rem);
    --mobile-header: calc(3.65rem + var(--safe-top));
    --mobile-footer: calc(3.95rem + var(--safe-bottom));
    --radius: 0.74rem;
    --radius-l: 0.97rem;
  }
  html {
    scroll-padding: var(--mobile-header) 0 var(--mobile-footer);
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-inline-start: 0;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: var(--mobile-header);
    padding: calc(0.32rem + var(--safe-top)) max(var(--gutter), var(--safe-right)) 0.32rem
      max(var(--gutter), var(--safe-left));
    gap: 0.5rem;
    background: var(--glass);
  }
  .topbar .search-field {
    width: auto;
    max-width: 100%;
    flex: 1;
    min-width: 44px;
  }
  .search-field kbd {
    display: none;
  }
  .mobile-brand {
    display: inline-flex;
    font-size: 1.28rem;
    gap: 0.35rem;
  }
  .mobile-brand img {
    width: 1.55rem;
    height: 1.25rem;
  }
  .top-actions {
    gap: 0.1rem;
  }
  .top-actions .icon-button {
    border: 0;
    background: transparent;
  }
  .page {
    padding: 1.15rem max(var(--gutter), var(--safe-right)) calc(var(--mobile-footer) + 1.5rem)
      max(var(--gutter), var(--safe-left));
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-actions > a {
    flex: 1 0 auto;
  }
  .section-head {
    gap: 0.4rem;
    margin-bottom: 0.72rem;
  }
  .section-head h1,
  .page > h1 {
    font-size: clamp(1.85rem, 7.7vw, 2.5rem);
  }
  .featured-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.4rem;
  }
  .feature-card {
    aspect-ratio: 1.58;
    min-height: 14.5rem;
  }
  .feature-overlay {
    gap: 0.3rem;
    padding: 1rem;
  }
  .feature-overlay h2,
  .feature-title {
    font-size: clamp(1.52rem, 5.8vw, 2.55rem);
  }
  .feature-meta {
    font-size: 0.78rem;
  }
  .play-button {
    margin-top: 0.32rem;
  }
  .up-next {
    display: block;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
  .up-next h2 {
    margin-block: 0.12rem 0.5rem;
    font-size: 1.05rem;
  }
  .queue-list {
    display: flex;
    gap: 0.56rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--control-line) transparent;
    padding: 0.13rem 0.13rem 0.3rem;
  }
  .queue-item {
    flex: 0 0 clamp(10.7rem, 53vw, 15.5rem);
    scroll-snap-align: start;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.56rem;
    align-items: center;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 0.72rem;
    background: var(--panel);
  }
  .queue-item:last-child {
    border-bottom: 1px solid var(--line);
  }
  .queue-thumb {
    aspect-ratio: 1;
    min-height: 0;
  }
  .queue-copy {
    gap: 0.12rem;
  }
  .queue-copy strong {
    font-size: 0.77rem;
  }
  .queue-copy small {
    font-size: 0.68rem;
  }
  .queue-play {
    display: none;
  }
  .filters {
    max-width: none;
    gap: 0.18rem;
    padding: 0.18rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--panel);
  }
  .filter {
    width: 100%;
    min-width: 0;
    padding: 0.26rem 0.12rem;
    border: 0;
    border-radius: 0.6rem;
    line-height: 1.15;
    background: transparent;
    font-size: 0.76rem;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.12rem 0.62rem;
  }
  .media-body {
    padding-top: 0.47rem;
    gap: 0.17rem;
  }
  .card-title {
    font-size: 0.88rem;
  }
  .card-meta {
    font-size: 0.72rem;
  }
  .editor-tag {
    font-size: 0.62rem;
  }
  .media-thumb .editor-tag {
    left: 0.34rem;
    bottom: 0.34rem;
  }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 16;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: var(--mobile-footer);
    padding: 0.25rem max(0.5rem, var(--safe-right)) calc(0.25rem + var(--safe-bottom))
      max(0.5rem, var(--safe-left));
    border-top: 1px solid var(--line);
    background: var(--glass);
  }
  .bottom-nav .nav-item {
    min-width: 44px;
    max-width: 8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.12rem;
    text-align: center;
    white-space: normal;
    font-size: 0.69rem;
  }
  .bottom-nav .nav-item[aria-current='page'],
  .bottom-nav .nav-item.active {
    background: transparent;
    color: var(--accent);
  }
  .bottom-nav .nav-item svg {
    width: 1.19rem;
    height: 1.19rem;
  }
  .clip-feed {
    --clip-height: calc(100vh - var(--mobile-header) - var(--mobile-footer));
    --clip-height: calc(100dvh - var(--mobile-header) - var(--mobile-footer));
  }
  .clip-caption {
    bottom: 1rem;
    left: max(1rem, var(--safe-left));
  }
  .clip-actions {
    bottom: 1rem;
    right: max(0.7rem, var(--safe-right));
  }
  .drawer {
    padding-bottom: max(1rem, var(--safe-bottom));
  }
  .toast,
  .status-toast {
    bottom: calc(var(--mobile-footer) + 0.7rem);
  }
}
@media (max-height: 32rem) and (orientation: landscape) {
  .sidebar .brand {
    margin-bottom: 0.75rem;
  }
  .topbar {
    position: static;
    min-height: 3.2rem;
    padding-top: max(0.2rem, var(--safe-top));
    padding-bottom: 0.2rem;
  }
  .clip-feed {
    --clip-height: calc(100dvh - 3.2rem);
  }
  .clip-caption {
    bottom: 0.66rem;
  }
  .clip-actions {
    bottom: 0.55rem;
    flex-direction: row;
  }
  .sheet {
    max-height: 96dvh;
  }
  .drawer {
    width: min(25rem, 65%);
  }
}
@media (max-height: 32rem) and (orientation: landscape) and (max-width: 48rem) {
  .clip-feed {
    --clip-height: calc(100dvh - 3.2rem - var(--mobile-footer));
  }
}
@media (prefers-contrast: more) {
  :root {
    --glass: #121214;
    --media-glass: #111;
    --line: #777780;
    --control-line: #a9a9b2;
    --dim: #e4e4e9;
    --muted: #f0f0f2;
  }
  .feature-card::before {
    background: linear-gradient(0deg, #08080a 0%, #0a0a0cdd 42%, transparent 83%);
  }
}
[data-contrast='high'],
.high-contrast {
  --glass: #121214;
  --media-glass: #111;
  --line: #777780;
  --control-line: #a9a9b2;
  --dim: #e4e4e9;
  --muted: #f0f0f2;
}
:is([data-contrast='high'], .high-contrast) .feature-card::before {
  background: linear-gradient(0deg, #08080a 0%, #0a0a0cdd 42%, transparent 83%);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (forced-colors: active) {
  .nav-item[aria-current='page'],
  .filter[aria-pressed='true'],
  .clip-actions [aria-pressed='true'] {
    border: 2px solid Highlight;
    color: Highlight;
  }
  .editor-tag,
  .feature-overlay,
  .clip-caption {
    color: CanvasText;
    background: Canvas;
  }
}
