@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ecdf;
  --paper-deep: #eadbc6;
  --card: #fff9f1;
  --ink: #2b2018;
  --ink-soft: #4d3a2b;
  --muted: #6f5b48;
  --clay: #b24a2e;
  --clay-ink: #7a2e1a;
  --clay-soft: #e7c5b4;
  --espresso: #1b130e;
  --espresso-2: #2a1d14;
  --teal: #1f6f6f;
  --gold: #a97a1f;
  --line: #d9c6ae;
  --line-soft: #e8dac7;
  --error: #b3261e;
  --error-soft: #f5d8c9;
  --radius: 20px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 28px 70px -34px rgba(43, 32, 24, 0.55);
  --shadow-soft: 0 18px 44px -28px rgba(43, 32, 24, 0.4);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 8% -10%, #fffaf3 0%, rgba(255, 250, 243, 0) 58%),
    radial-gradient(900px 560px at 102% 2%, #efdcc7 0%, rgba(239, 220, 199, 0) 56%),
    var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--clay);
  color: #fff8f2;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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;
}

/* --- Top bar ------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 223, 0.86);
  border-bottom: 1px solid rgba(217, 198, 174, 0.75);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 28px;
  padding-top: calc(13px + env(safe-area-inset-top, 0px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 18px -10px rgba(178, 74, 46, 0.8);
}

.brand-word {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
}

.brand-word span {
  color: var(--clay);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.topnav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  transition: right 0.22s ease;
}

.topnav a:hover {
  color: var(--clay-ink);
}

.topnav a:hover::after {
  right: 0;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar .button {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 12.5px;
}

.topbar .button.primary {
  box-shadow: 0 10px 22px -14px rgba(178, 74, 46, 0.9);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.user-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay-ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

/* --- Buttons and form controls ------------------------------------------ */

button,
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 8px 12px;
}

button {
  cursor: pointer;
}

button.primary,
.button.primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff8f2;
  font-weight: 700;
}

button.primary:hover,
.button.primary:hover {
  background: var(--clay-ink);
  border-color: var(--clay-ink);
}

button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"] {
  min-height: 0;
  width: 20px;
  height: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  flex: 0 0 auto;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--clay);
  color: var(--clay-ink);
  background: rgba(255, 249, 241, 0.55);
}

.button.light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--espresso);
}

.button.light:hover {
  background: #fffaf3;
}

.button.quiet {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.button.quiet:hover {
  border-color: var(--clay);
  color: var(--clay-ink);
}

/* --- Layout -------------------------------------------------------------- */

.view {
  min-height: 40vh;
}

.boot-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.boot-loading span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--clay);
  animation: boot-spin 0.8s linear infinite;
}

.boot-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.boot-error a {
  color: var(--clay-ink);
  font-weight: 700;
}

@keyframes boot-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loading span { animation: none; }
}

body[data-view="watch"] .view {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 28px 64px;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 28px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--clay-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-count {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.65);
  color: var(--muted);
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
}

.section-note {
  max-width: 44ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-link {
  flex: 0 0 auto;
  color: var(--clay-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--clay-soft);
  padding-bottom: 2px;
}

.section-link:hover {
  border-color: var(--clay);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) 28px clamp(56px, 8vw, 98px);
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.7vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero-title em {
  position: relative;
  display: inline-block;
  color: var(--clay);
  font-style: normal;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: -2%;
  bottom: 0.04em;
  height: 0.12em;
  border-radius: 999px;
  background: var(--clay);
  opacity: 0.2;
  transform: rotate(-1.4deg);
}

.hero-lede {
  max-width: 44ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-stats li {
  flex: 1 1 0;
  min-width: 110px;
  padding: 16px 18px 0 0;
}

.hero-stats li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-stats span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  min-width: 0;
  padding: 18px 10px 24px 18px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 4% 10% 8%;
  border: 1px solid var(--line);
  border-radius: 42px;
  transform: rotate(3deg);
  opacity: 0.8;
}

.art-star {
  position: absolute;
  z-index: 0;
  color: var(--clay);
  opacity: 0.16;
}

.art-star-a {
  top: -26px;
  right: -16px;
  width: 132px;
  height: 132px;
  transform: rotate(12deg);
}

.art-star-b {
  bottom: 4px;
  left: -18px;
  width: 92px;
  height: 92px;
  color: var(--teal);
  transform: rotate(-8deg);
}

.hero-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 4 / 3.25;
  border-radius: 34px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}

.screen-chrome {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  background: #120c08;
  color: rgba(247, 236, 222, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 236, 222, 0.22);
}

.screen-dot:first-child {
  background: #c75639;
}

.screen-dot:nth-child(2) {
  background: #b98c3f;
}

.screen-dot:nth-child(3) {
  background: #4f8272;
}

.screen-chrome span {
  margin-left: 6px;
}

.hero-live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--espresso);
  color: var(--paper);
  text-align: left;
  text-decoration: none;
}

#hero-live {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero-loading {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1d14 0%, #3b2718 55%, #1b130e 100%);
}

.hero-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(247, 236, 222, 0.09) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonSweep 1.5s infinite;
}

.hero-live-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(138deg, #184f52 0%, #1f6f6f 48%, #0e3437 100%);
}

.hero-live-cover[data-category="muzik"] {
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.17), transparent 55%),
    linear-gradient(138deg, #7b2f1d 0%, #c96f4a 48%, #3a160f 100%);
}

.hero-live-cover[data-category="sohbet"] {
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.17), transparent 55%),
    linear-gradient(138deg, #8a5d19 0%, #c9973d 48%, #3c2a0b 100%);
}

.hero-live-cover[data-category="spor"] {
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.17), transparent 55%),
    linear-gradient(138deg, #1b4d73 0%, #3f83ad 48%, #102c42 100%);
}

.hero-live-glyph {
  position: absolute;
  right: -0.04em;
  bottom: -0.28em;
  font-family: var(--display);
  font-size: clamp(11rem, 24vw, 18rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(247, 236, 222, 0.1);
  user-select: none;
}

.hero-live-cover::before,
.hero-live-cover::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(247, 236, 222, 0.18);
  border-radius: 50%;
}

.hero-live-cover::before {
  width: 62%;
  aspect-ratio: 1;
}

.hero-live-cover::after {
  width: 88%;
  aspect-ratio: 1;
}

.hero-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(27, 19, 14, 0.48);
  border: 1px solid rgba(247, 236, 222, 0.36);
  color: #fff8f2;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-live:hover .hero-play {
  transform: scale(1.06);
  background: var(--clay);
}

.hero-badges {
  position: absolute;
  z-index: 2;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-live-info {
  position: relative;
  z-index: 2;
  padding: 54px 20px 20px;
  background: linear-gradient(to top, rgba(18, 12, 8, 0.94) 12%, rgba(18, 12, 8, 0.5) 60%, transparent 100%);
}

.hero-live-info .eyebrow {
  margin-bottom: 7px;
  color: #e8b59e;
}

.hero-live-info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero-live-info p {
  margin: 6px 0 0;
  color: rgba(247, 236, 222, 0.68);
  font-size: 12px;
  font-weight: 500;
}

.hero-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(178, 74, 46, 0.25), transparent 65%),
    var(--espresso);
  color: var(--paper);
}

.hero-empty img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  opacity: 0.9;
}

.hero-empty .eyebrow {
  color: #e8b59e;
  justify-content: center;
}

.hero-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hero-empty p {
  max-width: 26ch;
  margin: 0 0 8px;
  color: rgba(247, 236, 222, 0.72);
  font-size: 13px;
}

.art-note {
  position: absolute;
  z-index: 3;
  right: -6px;
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 245px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.2deg);
}

.note-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--clay);
  color: #fff8f2;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.art-note b {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.art-note span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

/* --- Shared live card bits ---------------------------------------------- */

.badge-live,
.badge-offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.66);
  color: #fff8f2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.badge-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6a4d;
  box-shadow: 0 0 0 0 rgba(255, 106, 77, 0.6);
  animation: livePulse 2s infinite;
}

.badge-offline {
  background: rgba(18, 12, 8, 0.5);
  color: rgba(255, 248, 242, 0.8);
}

.viewer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.62);
  color: #fff8f2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.viewer-chip svg {
  opacity: 0.8;
}

/* --- Live section -------------------------------------------------------- */

.live-section {
  padding-top: 10px;
}

.live-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(330px, 100%);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(178, 74, 46, 0.12);
}

.search-field svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.search-field input:focus {
  outline: none;
}

.search-field input::placeholder {
  color: #97826b;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.6);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--clay);
  color: var(--clay-ink);
}

.chip[aria-pressed="true"] {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--paper);
}

.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(43, 32, 24, 0.08);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.chip[aria-pressed="true"] .chip-count {
  background: rgba(247, 236, 222, 0.15);
  color: rgba(247, 236, 222, 0.82);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 12.6;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.62);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonSweep 1.5s infinite;
}

@keyframes skeletonSweep {
  to {
    transform: translateX(100%);
  }
}

.stream-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 2px 0 rgba(43, 32, 24, 0.02);
  text-align: left;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stream-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay-soft);
  box-shadow: var(--shadow-soft);
}

.stream-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.6;
  background:
    radial-gradient(100% 120% at 82% 4%, rgba(255, 255, 255, 0.2), transparent 52%),
    linear-gradient(138deg, var(--c1, #4a2a20) 0%, var(--c2, #8a4630) 55%, var(--c3, #2a1b14) 100%);
}

.stream-cover[data-category="oyun"] {
  --c1: #174f52;
  --c2: #2e8b8b;
  --c3: #0d3033;
}

.stream-cover[data-category="muzik"] {
  --c1: #7b2f1d;
  --c2: #c96f4a;
  --c3: #3a160f;
}

.stream-cover[data-category="sohbet"] {
  --c1: #8a5d19;
  --c2: #c9973d;
  --c3: #3c2a0b;
}

.stream-cover[data-category="spor"] {
  --c1: #1b4d73;
  --c2: #3f83ad;
  --c3: #102c42;
}

.cover-orbit,
.cover-orbit::before {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 236, 222, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cover-orbit::before {
  content: "";
  width: 62%;
  left: 50%;
  top: 50%;
}

.cover-lines {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 22px,
    rgba(247, 236, 222, 0.34) 22px 23px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000);
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000);
}

.cover-glyph {
  position: absolute;
  right: 6%;
  bottom: -0.3em;
  font-family: var(--display);
  font-size: clamp(6.4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(247, 236, 222, 0.12);
  user-select: none;
}

.stream-badges {
  position: absolute;
  z-index: 2;
  inset: 11px 11px auto 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stream-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 12, 8, 0.55);
  border: 1px solid rgba(247, 236, 222, 0.34);
  color: #fff8f2;
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.stream-card:hover .stream-play,
.stream-card:focus-visible .stream-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.stream-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 15px 16px;
}

.stream-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stream-host {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mini-seal {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--clay-ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.host-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tag {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--clay-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stream-card.is-offline .stream-cover {
  filter: saturate(0.45);
  opacity: 0.82;
}

.live-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.live-note svg {
  flex: 0 0 auto;
  opacity: 0.7;
}

/* --- Empty state --------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 249, 241, 0.52);
  text-align: center;
}

.grid > .empty-state {
  grid-column: 1 / -1;
}

.empty-seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--paper-deep);
}

.empty-seal img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  opacity: 0.65;
}

.empty-state h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.empty-state p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

/* --- Categories ---------------------------------------------------------- */

.categories-section {
  padding-top: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 168px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--tint, var(--card));
  color: var(--ink);
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card[data-category="oyun"] {
  --tint: #e2eeea;
  --accent: #1f6f6f;
}

.category-card[data-category="muzik"] {
  --tint: #f4e1d6;
  --accent: #a6432b;
}

.category-card[data-category="sohbet"] {
  --tint: #f2e8d0;
  --accent: #8a6216;
}

.category-card[data-category="spor"] {
  --tint: #e1ebf2;
  --accent: #1e5f8c;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
}

.category-name {
  margin-top: auto;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.category-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.category-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent);
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.category-card:hover .category-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* --- Features ------------------------------------------------------------ */

.features-section {
  padding-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 26px 22px 0 0;
}

.feature + .feature {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--clay-ink);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* --- Creator band -------------------------------------------------------- */

.creator {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 78px;
}

.creator-inner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(32px, 5vw, 58px);
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(178, 74, 46, 0.42), transparent 58%),
    radial-gradient(70% 100% at 0% 100%, rgba(31, 111, 111, 0.16), transparent 60%),
    var(--espresso);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.creator-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(247, 236, 222, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(247, 236, 222, 0.035), 0 0 0 92px rgba(247, 236, 222, 0.025);
  pointer-events: none;
}

.creator-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.creator-copy .eyebrow {
  color: #e8b59e;
}

.creator-copy .section-title {
  color: var(--paper);
}

.creator-lede {
  max-width: 40ch;
  margin: 16px 0 26px;
  color: rgba(247, 236, 222, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.creator-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.creator-note {
  margin: 16px 0 0;
  color: rgba(247, 236, 222, 0.5);
  font-size: 11.5px;
}

.ingest {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(247, 236, 222, 0.16);
  border-radius: 10px;
  background: rgba(247, 236, 222, 0.05);
}

.ingest span {
  color: #e8b59e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ingest code {
  color: rgba(247, 236, 222, 0.72);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.creator-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.creator-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(247, 236, 222, 0.13);
}

.creator-step:last-child {
  border-bottom: 1px solid rgba(247, 236, 222, 0.13);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 236, 222, 0.22);
  border-radius: 50%;
  color: #e8b59e;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
}

.creator-step span:last-child {
  font-size: 13.5px;
  font-weight: 600;
}

/* --- App section --------------------------------------------------------- */

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding-top: 0;
}

.app-copy .section-title {
  margin-bottom: 14px;
}

.app-copy p {
  max-width: 42ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.app-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--clay-soft);
  color: var(--clay-ink);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.app-all:hover {
  border-color: var(--clay);
}

.app-version {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.app-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.app-art {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(286px, 78vw);
  aspect-ratio: 9 / 17.6;
  padding: 9px;
  border: 1px solid #3a2a1f;
  border-radius: 42px;
  background: #1b130e;
  box-shadow: 0 32px 70px -30px rgba(43, 32, 24, 0.6);
  transform: rotate(2.2deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 3;
  width: 74px;
  height: 18px;
  border-radius: 999px;
  background: #120c08;
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: var(--paper);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
}

.phone-head img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.phone-head b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.phone-head span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clay-ink);
  font-size: 8px;
  font-weight: 800;
}

.phone-live {
  position: relative;
  margin: 0 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(140deg, #7b2f1d, #c96f4a 55%, #3a160f);
}

.phone-live::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 236, 222, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.phone-live .badge-live {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 7px;
  padding: 3px 6px;
}

.phone-live .viewer-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 7px;
  padding: 3px 6px;
}

.phone-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 12, 8, 0.5);
  color: #fff8f2;
  transform: translate(-50%, -50%);
}

.phone-title {
  padding: 9px 14px 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.phone-sub {
  padding: 2px 14px 0;
  color: var(--muted);
  font-size: 8px;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 12px 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--card);
}

.phone-chatline {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 7px;
  color: var(--muted);
}

.phone-chatline b {
  color: var(--clay-ink);
  font-size: 7px;
}

.phone-chatline i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}

.phone-chatline i.w70 {
  width: 70%;
}

.phone-chatline i.w45 {
  width: 45%;
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 12px 8px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.phone-nav span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
}

.phone-nav span:first-child {
  background: var(--clay);
  opacity: 1;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(255, 249, 241, 0.58);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 28px calc(28px + env(safe-area-inset-bottom, 0px));
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
}

.footer-col {
  min-width: 110px;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: var(--clay-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--clay);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: -0.28em;
  z-index: 0;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(178, 74, 46, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

/* --- Watch page ---------------------------------------------------------- */

.player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #16110d;
  border-radius: var(--radius);
}

.notice {
  background: var(--error-soft);
  color: var(--clay-dark, #4a1f12);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}

.watch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.watch-head h1 {
  flex: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

@media (max-width: 820px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.chat-list p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.chat-list b {
  color: var(--clay);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.recordings {
  margin-top: 8px;
}

.recordings .section-title {
  margin: 14px 0 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.recording-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recording-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
}

.recording-row span {
  flex: 1;
  overflow-wrap: anywhere;
}

.recording-row button {
  padding: 4px 10px;
  font-size: 12px;
}

body[data-view="watch"] .topnav {
  display: none;
}

body[data-view="watch"] .site-footer {
  display: none;
}

/* --- Modal --------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(22, 17, 13, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.dialog h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dialog p {
  margin-top: 0;
}

.dialog label {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  font-weight: 600;
}

.dialog input:not([type="checkbox"]),
.dialog textarea {
  width: 100%;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--line);
  color: var(--ink);
}

.error-text {
  min-height: 20px;
  color: var(--error);
}

/* --- Banner -------------------------------------------------------------- */

.banner {
  background: var(--error-soft);
  color: #4a1f12;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
}

.banner a {
  color: #4a1f12;
  font-weight: 700;
}

/* --- Motion -------------------------------------------------------------- */

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 77, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 106, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 77, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: riseIn 0.65s cubic-bezier(0.22, 0.8, 0.24, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }
  .hero-art {
    animation: riseIn 0.8s 0.1s cubic-bezier(0.22, 0.8, 0.24, 1) both;
  }
}

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

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 34px;
  }

  .hero-art {
    padding-left: 8px;
  }

  .category-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    padding: 24px 20px 26px 0;
  }

  .feature:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 118px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .topnav {
    order: 3;
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    padding: 4px 0;
    font-size: 12.5px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 12vw, 5rem);
  }

  .hero-art {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .creator-layout,
  .app-section {
    grid-template-columns: 1fr;
  }

  .creator-steps {
    margin-top: 8px;
  }

  .app-art {
    order: -1;
    padding: 10px 0 22px;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 14px;
    padding: 11px 18px;
    padding-top: calc(11px + env(safe-area-inset-top, 0px));
  }

  .user-name {
    display: none;
  }

  .topbar-user .button.quiet {
    padding: 8px 11px;
  }

  .brand-word {
    font-size: 22px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .hero,
  .section,
  .creator,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 60px;
    overflow: clip;
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats li {
    min-width: 90px;
    padding-right: 10px;
  }

  .hero-stats li + li {
    padding-left: 10px;
  }

  .hero-stats b {
    font-size: 1.25rem;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .hero-frame {
    aspect-ratio: 4 / 3.5;
    border-radius: 26px;
  }

  .art-note {
    right: 0;
    bottom: -10px;
    max-width: 210px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .live-tools,
  .search-field {
    width: 100%;
  }

  .search-field {
    min-width: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    gap: 10px;
  }

  .category-card {
    min-height: 142px;
    padding: 16px;
  }

  .category-name {
    font-size: 1.2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature + .feature,
  .feature:nth-child(3),
  .feature:nth-child(4) {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature:first-child {
    border-top: 0;
  }

  .feature-icon {
    margin-bottom: 10px;
  }

  .creator {
    padding-bottom: 56px;
  }

  .creator-inner {
    border-radius: 24px;
    padding: 28px 22px;
  }

  .creator-inner::after {
    right: -140px;
    top: -140px;
  }

  .creator-actions .button {
    width: 100%;
  }

  .app-art {
    order: 0;
  }

  .phone {
    width: min(260px, 74vw);
  }

  .footer-cols {
    gap: 30px;
  }

  .footer-col {
    min-width: 88px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-wordmark {
    display: none;
  }

  body[data-view="watch"] .view {
    padding: 18px 18px 48px;
  }

  .watch-head h1 {
    font-size: 20px;
  }

  .chat {
    height: 340px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}
