/* kasihomi — dark streamer landing */

/* Self-hosted fonts (latin + cyrillic). Manrope is variable 400–800. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #05070C;
  --panel: #0B0F18;
  --panel-2: #0E1420;
  --ink: #F5F7FA;
  --muted: #94A3B8;
  --muted-2: #64748B;
  --line: rgba(148, 163, 184, 0.13);
  --accent: #FF5B4D;
  --accent-2: #FF6A55;
  --accent-soft: #FFD9D2;
  --accent-mid: #FF8B79;
  --purple: #A78BFA;
  --twitch: #9146FF;
  --purple-wash: rgba(139, 92, 246, 0.14);
  --max: 1460px;
  --radius: 14px;
  --font: Manrope, system-ui, sans-serif;
  --display: Caveat, cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  color: var(--accent-mid);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(255, 91, 77, 0.35);
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(75% 45% at 82% 4%, rgba(255, 91, 77, 0.14), transparent 62%),
    radial-gradient(60% 40% at 6% 10%, rgba(139, 92, 246, 0.1), transparent 64%),
    radial-gradient(55% 35% at 50% 100%, rgba(255, 91, 77, 0.06), transparent 72%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.6vw, 34px);
  overflow: visible;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(
    90deg,
    rgba(5, 7, 12, 0.72) 0%,
    rgba(5, 7, 12, 0.45) 38%,
    rgba(5, 7, 12, 0.18) 62%,
    rgba(5, 7, 12, 0.06) 82%,
    rgba(5, 7, 12, 0.02) 100%
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.header-inner {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-shadow: 0 1px 10px rgba(5, 7, 12, 0.85);
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  line-height: 0;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  transform: skewX(-6deg);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.nav-desktop a {
  position: relative;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-shadow: 0 1px 8px rgba(5, 7, 12, 0.9);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--ink);
}

.nav-desktop a.is-active {
  font-weight: 700;
  color: var(--accent-2);
}

.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.socials-header {
  display: none;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  filter: drop-shadow(0 1px 6px rgba(5, 7, 12, 0.85));
}

.socials-header a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #cbd5e1;
}

.socials-header a:hover {
  color: var(--accent-2);
}

.menu-btn {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.06);
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  line-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  padding: 0;
  border-radius: 1px;
  background: var(--ink);
  flex: 0 0 auto;
}

.menu-btn span:nth-child(2) {
  background: var(--accent-2);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(9, 12, 19, 0.98);
  padding: 12px clamp(16px, 4vw, 24px) 20px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
}

.mobile-menu nav a.is-active {
  font-weight: 800;
  color: var(--accent-2);
}

.mobile-socials {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-socials a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
}

.mobile-socials a svg {
  flex: 0 0 auto;
  opacity: 0.9;
}

.mobile-socials a.primary {
  border: none;
  color: var(--accent-2);
  font-weight: 800;
}

.mobile-socials a:hover {
  color: var(--ink);
}

.mobile-socials a.primary:hover {
  color: var(--accent-mid);
}

@media (min-width: 900px) {
  .nav-desktop,
  .socials-header {
    display: flex;
  }
  .menu-btn,
  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }
}

/* Main */
main {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: visible;
}

.divider {
  margin: clamp(26px, 3.2vw, 42px) 0 clamp(18px, 2.2vw, 26px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 91, 77, 0.55), rgba(255, 91, 77, 0.12) 55%, transparent);
}

/* Hero — art absolute on the right, bleeds into header */
.hero {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  min-height: clamp(360px, 42vw, 520px);
  padding: clamp(10px, 1.4vw, 18px) 0 0;
}

.hero-info {
  position: relative;
  z-index: 3;
  max-width: min(560px, 52%);
  padding: clamp(12px, 1.6vw, 22px) clamp(12px, 1.8vw, 24px) clamp(28px, 3vw, 40px) 0;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
}

.hero-art {
  position: absolute;
  top: -52px;
  right: calc(-1 * clamp(16px, 2.6vw, 34px));
  bottom: 0;
  width: min(72%, 920px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 12%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.75) 24%,
    #000 40%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.75) 24%,
    #000 40%,
    #000 100%
  );
}

.hero-art-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      rgba(5, 7, 12, 0.97) 10%,
      rgba(5, 7, 12, 0.82) 22%,
      rgba(5, 7, 12, 0.55) 36%,
      rgba(5, 7, 12, 0.28) 48%,
      rgba(5, 7, 12, 0.1) 60%,
      transparent 74%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.22) 0%,
      transparent 16%,
      transparent 86%,
      rgba(5, 7, 12, 0.55) 100%
    );
  pointer-events: none;
}

/* Light-leak strip flush to hero bottom */
.hero-shimmer {
  position: absolute;
  left: calc(-1 * clamp(16px, 2.6vw, 34px));
  right: calc(-1 * clamp(16px, 2.6vw, 34px));
  bottom: 0;
  z-index: 4;
  height: 3px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(145, 70, 255, 0.18) 4%,
      #9146ff 8%,
      #a78bfa 16%,
      rgba(167, 139, 250, 0.8) 28%,
      rgba(145, 70, 255, 0.4) 48%,
      rgba(139, 92, 246, 0.14) 68%,
      transparent 86%,
      rgba(145, 70, 255, 0.5) 94%,
      #a78bfa 98%,
      transparent 100%
    );
  box-shadow:
    0 0 12px 1px rgba(145, 70, 255, 0.45),
    0 0 28px 2px rgba(139, 92, 246, 0.28);
}

.hero-shimmer::before {
  content: "";
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 220, 255, 0.9), transparent);
  pointer-events: none;
}

.hero-shimmer::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.75), transparent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 8px;
  }

  .hero-info {
    order: 1;
    max-width: none;
    padding: 8px 0 16px;
  }

  .hero-art {
    order: 2;
    position: relative;
    top: 0;
    right: 0;
    height: clamp(200px, 48vw, 300px);
    margin: 0 calc(-1 * clamp(16px, 2.6vw, 34px));
    width: calc(100% + 2 * clamp(16px, 2.6vw, 34px));
  }

  .hero-art img {
    object-position: 62% 18%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-art-fade {
    background:
      linear-gradient(
        180deg,
        var(--bg) 0%,
        rgba(5, 7, 12, 0.35) 18%,
        transparent 42%,
        transparent 72%,
        rgba(5, 7, 12, 0.7) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 7, 12, 0.55) 0%,
        transparent 35%,
        transparent 100%
      );
  }

  .hero-shimmer {
    order: 3;
    position: relative;
    left: 0;
    right: 0;
    margin: 0 calc(-1 * clamp(16px, 2.6vw, 34px));
    width: calc(100% + 2 * clamp(16px, 2.6vw, 34px));
  }
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(148px, 18vw, 220px);
  margin-top: 18px;
}

.avatar-crown {
  position: absolute;
  top: -28px;
  left: 42%;
  transform: translateX(-58%) rotate(-12deg);
  z-index: 3;
  width: clamp(42px, 5vw, 58px);
  filter: drop-shadow(0 0 8px rgba(255, 91, 77, 0.65));
  pointer-events: none;
}

.avatar-crown img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}

.avatar-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(150deg, #ff5b4d, rgba(255, 91, 77, 0.15) 60%, rgba(139, 92, 246, 0.5));
  box-shadow: 0 0 34px -6px rgba(255, 91, 77, 0.45);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0e1420;
}

.hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

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

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

.hero-title-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.86;
  letter-spacing: 0.5px;
  color: var(--ink);
  transform: skewX(-5deg);
  text-shadow: 0 0 46px rgba(255, 91, 77, 0.28);
}

.hero-title-crown {
  flex: 0 0 auto;
  width: clamp(26px, 2.8vw, 36px);
  padding-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(255, 91, 77, 0.7));
}

.hero-title-crown img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(8deg);
  mix-blend-mode: screen;
}

.twitch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
}

.twitch-pill-icon {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--twitch);
  border-radius: 0;
}

.twitch-pill-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.twitch-pill > span:last-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.1px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.tags .sep {
  color: #475569;
}

.bio {
  margin: 12px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.07);
  color: #e2e8f0;
  transition: color 0.18s, background 0.18s;
}

.icon-btn:hover {
  color: var(--accent-2);
  background: rgba(255, 91, 77, 0.12);
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 91, 77, 0.6);
  color: var(--accent-soft);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 91, 77, 0.14);
  box-shadow: 0 12px 28px -14px rgba(255, 91, 77, 0.9);
  color: #fff0ed;
}

.btn-twitch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.15px;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.btn-twitch svg {
  flex: 0 0 auto;
  color: var(--twitch);
  opacity: 0.9;
}

.btn-twitch:hover {
  color: #f8fafc;
  background: rgba(145, 70, 255, 0.1);
  border-color: rgba(145, 70, 255, 0.4);
}

.btn-twitch:active {
  background: rgba(145, 70, 255, 0.14);
}

.btn-twitch:focus-visible {
  outline: 2px solid rgba(145, 70, 255, 0.4);
  outline-offset: 3px;
}

/* HUD frame system — thin glow + corner brackets (design) */
.hud-frame {
  position: relative;
  border: 1px solid rgba(255, 91, 77, 0.22);
  border-radius: 16px;
  background: rgba(11, 15, 24, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 91, 77, 0.06) inset,
    0 0 32px -14px rgba(255, 91, 77, 0.55);
  overflow: hidden;
}

.hud-frame--soft {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(11, 15, 24, 0.28);
  box-shadow: none;
}

.hud-frame--soft .hud-corners {
  opacity: 0.35;
  filter: grayscale(0.4) brightness(0.85);
}

.hud-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hud-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  background: url("../assets/frame-corner.svg") no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(255, 91, 77, 0.85));
  opacity: 0.95;
}

.hud-corner.tl { top: 6px; left: 6px; }
.hud-corner.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.hud-corner.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.hud-corner.br { bottom: 6px; right: 6px; transform: scale(-1); }

.hud-corner--lg {
  width: 48px;
  height: 48px;
}

/* Status / Next stream — cyberpunk frame (design screenshot) */
.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.next-stream {
  position: relative;
  min-height: 168px;
  isolation: isolate;
}

.next-stream__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 4px 16px 16px 4px;
  clip-path: polygon(
    0 18px,
    18px 0,
    26% 0,
    calc(26% + 10px) 8px,
    calc(100% - 16px) 8px,
    100% 24px,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  background:
    linear-gradient(90deg, rgba(255, 91, 77, 0.95), rgba(255, 91, 77, 0.35) 42%, rgba(255, 91, 77, 0.18) 100%);
  box-shadow:
    0 0 28px rgba(255, 91, 77, 0.45),
    0 0 60px -10px rgba(255, 91, 77, 0.55);
}

.next-stream__frame::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 3px 14px 14px 3px;
  clip-path: polygon(
    0 16px,
    16px 0,
    26% 0,
    calc(26% + 9px) 7px,
    calc(100% - 14px) 7px,
    100% 22px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  background: #070b12;
  box-shadow: inset 0 0 40px rgba(255, 91, 77, 0.08);
}

.next-stream__glow {
  position: absolute;
  left: -2px;
  top: 10%;
  bottom: 10%;
  width: 4px;
  z-index: 2;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, #ff8b79 18%, #ff5b4d 50%, #ff8b79 82%, transparent);
  box-shadow: 0 0 16px 2px rgba(255, 91, 77, 0.9), 0 0 32px rgba(255, 91, 77, 0.5);
  pointer-events: none;
}

.next-stream__glow::before,
.next-stream__glow::after {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 22px;
  border-radius: 3px;
  background: #ffd9d2;
  box-shadow: 0 0 10px #ff5b4d;
}

.next-stream__glow::before { top: 12%; }
.next-stream__glow::after { bottom: 12%; }

.next-stream__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px) clamp(22px, 2.4vw, 30px) clamp(28px, 3vw, 40px);
  height: 100%;
  min-height: 168px;
}

.next-stream__main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 220px;
  min-width: 0;
}

.next-stream__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 91, 77, 0.55);
  background: rgba(255, 91, 77, 0.1);
  color: #ff6a55;
  box-shadow: 0 0 18px -6px rgba(255, 91, 77, 0.7);
}

.next-stream__title {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1.4px;
  color: #f5f7fa;
}

.next-stream__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #94a3b8;
}

.next-stream__date {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.05;
  color: #f5f7fa;
}

.next-stream__weekday {
  margin-top: 4px;
  font-size: 13px;
  color: #94a3b8;
}

.next-stream__countdown {
  flex: 1 1 260px;
  min-width: 0;
}

.next-stream.is-live .next-stream__frame {
  background:
    linear-gradient(90deg, rgba(255, 91, 77, 1), rgba(255, 91, 77, 0.45) 42%, rgba(255, 91, 77, 0.28) 100%);
  box-shadow:
    0 0 34px rgba(255, 91, 77, 0.55),
    0 0 70px -8px rgba(255, 91, 77, 0.65);
}

.next-stream.is-live .next-stream__title {
  color: #ffe3de;
}

.next-stream__live {
  flex: 1 1 260px;
  min-width: 0;
}

.next-stream__live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #ffe3de;
  margin-bottom: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b4d;
  box-shadow: 0 0 12px rgba(255, 91, 77, 0.95);
  animation: live-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes live-dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.next-stream__live-hint {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 28ch;
}

.next-stream__live-btn {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

.next-stream__cd-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #94a3b8;
  margin-bottom: 10px;
}

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

.cd-box {
  text-align: center;
  padding: 12px 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 20, 0.85);
}

.cd-num {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f5f7fa;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #64748b;
}

.upcoming-card {
  --upcoming-blue: #5ec8ff;
  min-width: 0;
  position: relative;
  border-radius: 16px;
  border: none;
  background: #050a12;
  overflow: hidden;
  min-height: 168px;
  box-shadow:
    0 0 0 1px rgba(94, 200, 255, 0.35),
    0 0 18px rgba(94, 200, 255, 0.18),
    inset 0 0 0 1px rgba(94, 200, 255, 0.12);
}

.upcoming-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1.5px rgba(94, 200, 255, 0.55),
    inset 0 0 24px rgba(94, 200, 255, 0.06);
}

.upcoming-frame::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: 28px;
  height: 14px;
  border-left: 1.5px solid rgba(94, 200, 255, 0.65);
  border-bottom: 1.5px solid rgba(94, 200, 255, 0.65);
  border-radius: 0 0 0 8px;
  box-shadow: -2px 2px 10px rgba(94, 200, 255, 0.25);
}

.upcoming-frame::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 8px;
  width: 22px;
  height: 12px;
  border-right: 1.5px solid rgba(94, 200, 255, 0.45);
  border-top: 1.5px solid rgba(94, 200, 255, 0.45);
  border-radius: 0 8px 0 0;
}

.upcoming-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  opacity: 1;
}

.upcoming-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 28%,
    rgba(5, 10, 18, 0.55) 48%,
    rgba(5, 10, 18, 0.88) 62%,
    #050a12 78%
  );
  z-index: 1;
}

.upcoming-content {
  position: relative;
  z-index: 2;
  min-height: 168px;
  height: 100%;
  padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.upcoming-text {
  text-align: right;
  max-width: min(58%, 320px);
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.upcoming-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5f7fa;
  text-transform: uppercase;
}

.upcoming-rule {
  width: 36px;
  height: 3px;
  margin: 10px 0 0 auto;
  border-radius: 2px;
  background: #ff5b4d;
  box-shadow: 0 0 10px rgba(255, 91, 77, 0.55);
}

.upcoming-dates {
  margin-top: 12px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: #ff6a55;
  text-shadow: 0 0 18px rgba(255, 91, 77, 0.45);
}

.upcoming-note {
  margin-top: 10px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.55;
}

.upcoming-icon {
  position: static;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #ff6a55;
  filter: drop-shadow(0 0 8px rgba(255, 91, 77, 0.55));
  align-self: flex-end;
}

@media (max-width: 700px) {
  .upcoming-card {
    min-height: 0;
  }

  .upcoming-bg {
    object-position: 72% 28%;
    opacity: 0.7;
  }

  .upcoming-fade {
    background:
      linear-gradient(
        180deg,
        rgba(5, 10, 18, 0.2) 0%,
        rgba(5, 10, 18, 0.55) 38%,
        rgba(5, 10, 18, 0.92) 72%,
        #050a12 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 10, 18, 0.55) 0%,
        transparent 55%,
        transparent 100%
      );
  }

  .upcoming-content {
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 196px;
    padding: 52px 18px 18px;
    gap: 0;
  }

  .upcoming-text {
    text-align: left;
    max-width: none;
    width: 100%;
  }

  .upcoming-label {
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .upcoming-rule {
    margin: 10px 0 0;
  }

  .upcoming-dates {
    margin-top: 10px;
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.25;
    max-width: 16ch;
  }

  .upcoming-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    align-self: auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 106, 85, 0.35);
    background: rgba(5, 10, 18, 0.45);
  }
}

/* Schedule */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.section-head .crown {
  flex: 0 0 auto;
  width: 28px;
  line-height: 0;
}

.section-head .crown img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(255, 91, 77, 0.55));
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--ink);
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.section-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.section-sub::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(148, 163, 184, 0.5);
}

.view-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(11, 15, 24, 0.9);
  border-radius: 12px;
  margin-left: auto;
}

.view-toggle button {
  min-height: 44px;
  padding: 0 30px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.view-toggle button.is-active {
  background: rgba(255, 91, 77, 0.12);
  color: var(--accent-soft);
  border-color: rgba(255, 91, 77, 0.7);
  box-shadow: 0 0 20px -6px rgba(255, 91, 77, 0.6);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  transition: border-color 0.18s, color 0.18s;
}

.nav-btn:hover {
  border-color: rgba(255, 91, 77, 0.5);
  color: #ffb3a7;
}

.nav-center {
  flex: 1 1 180px;
  text-align: center;
  min-width: 0;
}

.nav-range {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.nav-tag {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--muted-2);
}

.nav-tag.is-current {
  color: var(--accent-2);
}

.nav-today-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
  margin: -6px 0 10px;
}

.nav-today-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(148, 163, 184, 0.55);
  transition: color 0.18s;
}

.nav-today-link:hover {
  color: rgba(255, 179, 167, 0.9);
}

.week-carousel {
  overflow: hidden;
  width: 100%;
}

#schedule,
#download,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.week-scroll {
  display: flex;
  gap: clamp(10px, 1.1vw, 15px);
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  will-change: transform, opacity;
}

.week-scroll.is-leave-next {
  animation: week-leave-next 0.32s ease forwards;
}

.week-scroll.is-leave-prev {
  animation: week-leave-prev 0.32s ease forwards;
}

.week-scroll.is-enter-next {
  animation: week-enter-next 0.38s ease forwards;
}

.week-scroll.is-enter-prev {
  animation: week-enter-prev 0.38s ease forwards;
}

@keyframes week-leave-next {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-12%);
    opacity: 0;
  }
}

@keyframes week-leave-prev {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(12%);
    opacity: 0;
  }
}

@keyframes week-enter-next {
  from {
    transform: translateX(12%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes week-enter-prev {
  from {
    transform: translateX(-12%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .week-scroll.is-leave-next,
  .week-scroll.is-leave-prev,
  .week-scroll.is-enter-next,
  .week-scroll.is-enter-prev {
    animation: none;
  }
}

.week-scroll::-webkit-scrollbar {
  height: 6px;
}

.week-scroll::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 99px;
}

.week-scroll::-webkit-scrollbar-thumb {
  background: rgba(145, 70, 255, 0.45);
  border-radius: 99px;
}

.day-card {
  flex: 1 1 152px;
  min-width: 148px;
  max-width: 190px;
  min-height: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: #0a0e16;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.day-card.is-stream {
  background: #0a0e16;
  border-color: rgba(255, 91, 77, 0.72);
  box-shadow: 0 0 28px -10px rgba(255, 91, 77, 0.75);
}

.day-card.is-stream::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(#ff5b4d, #ff5b4d) top left / 22px 2px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) top left / 2px 22px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) bottom right / 22px 2px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) bottom right / 2px 22px no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 91, 77, 0.95));
  opacity: 0.95;
}

.day-card.is-today {
  border-color: rgba(255, 179, 167, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 91, 77, 0.25), 0 0 28px -10px rgba(255, 91, 77, 0.7);
  animation: today-card-glow 2.2s ease-in-out infinite;
}

.day-card.is-today.is-stream {
  border-color: rgba(255, 91, 77, 0.9);
}

.day-card.is-past {
  opacity: 0.55;
}

.day-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #0a0e16;
}

.day-card.is-stream .day-art {
  border-color: transparent;
}

.day-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0a0e16;
}

.day-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.78) 0%,
      rgba(5, 7, 12, 0.45) 28%,
      rgba(5, 7, 12, 0.2) 52%,
      rgba(5, 7, 12, 0.55) 100%
    );
}

.day-card.is-stream .day-shade {
  background:
    linear-gradient(
      180deg,
      rgba(28, 8, 8, 0.72) 0%,
      rgba(14, 8, 10, 0.35) 30%,
      rgba(8, 6, 10, 0.18) 55%,
      rgba(20, 8, 8, 0.55) 100%
    );
}

.day-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
  padding: 14px 12px 14px;
}

.day-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.day-dow {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.day-card.is-stream .day-dow {
  color: #ffb3a7;
}

.day-ddmm {
  margin-top: 2px;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.badge-today {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: #070a12;
  background: var(--ink);
  animation: today-badge-flicker 1.8s ease-in-out infinite;
}

.day-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.kind-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #120607;
}

.kind-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--accent-soft);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.day-kind.rest .kind-icon {
  background: #4a3a6e;
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.day-kind.rest .kind-label {
  color: #cbd5e1;
}

.next-label {
  margin-top: auto;
  margin-bottom: 0;
  min-height: 26px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  border-radius: 7px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.15;
  color: transparent;
  border: 1px dashed transparent;
  box-sizing: border-box;
  max-width: 100%;
}

.next-label-full {
  display: inline;
}

.next-label-short {
  display: none;
}

.next-label.is-on {
  color: #ffe3de;
  border-color: rgba(255, 91, 77, 0.7);
  background: rgba(255, 91, 77, 0.12);
}

@keyframes today-badge-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  45% {
    opacity: 0.55;
    box-shadow: 0 0 10px 0 rgba(255, 179, 167, 0.35);
  }
  55% {
    opacity: 1;
    box-shadow: 0 0 14px 1px rgba(255, 91, 77, 0.45);
  }
  70% {
    opacity: 0.75;
  }
}

@keyframes today-card-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 91, 77, 0.25), 0 0 28px -10px rgba(255, 91, 77, 0.7);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 91, 77, 0.45), 0 0 34px -6px rgba(255, 91, 77, 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-today,
  .day-card.is-today {
    animation: none;
  }
}

.schedule-note {
  font-size: 11.5px;
  color: var(--muted-2);
}

.schedule-note a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.schedule-note a:hover {
  color: #e9ddff;
}

.month-panel {
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 16px;
  background: rgba(11, 15, 24, 0.35);
  border: 1px solid rgba(255, 91, 77, 0.18);
  box-shadow: 0 0 28px -16px rgba(255, 91, 77, 0.4);
  position: relative;
}

.month-dows,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(5px, 0.7vw, 9px);
}

.month-dows {
  margin-bottom: 9px;
}

.month-dows span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--muted-2);
  padding: 4px 0;
}

.month-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: #121927;
  border: 1px solid var(--line);
}

.month-cell.is-stream {
  background: rgba(255, 91, 77, 0.12);
  border-color: rgba(255, 91, 77, 0.55);
  box-shadow: 0 0 18px -8px rgba(255, 91, 77, 0.8);
}

.month-cell.is-today {
  background: rgba(245, 247, 250, 0.92);
  border-color: var(--ink);
  box-shadow: none;
}

.month-cell.is-today .month-day {
  color: #0b0f18;
}

.month-cell.is-out {
  opacity: 0.28;
}

.month-cell.is-past:not(.is-today) {
  opacity: 0.6;
}

.month-day {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.3px;
}

.month-cell.is-stream .month-day {
  color: var(--accent-soft);
}

.month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.month-cell.is-stream .month-dot,
.month-cell.is-today .month-dot {
  background: var(--accent);
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.month-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.leg {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.leg-stream {
  background: rgba(255, 91, 77, 0.15);
  border: 1px solid rgba(255, 91, 77, 0.6);
}

.leg-rest {
  background: #121927;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.leg-today {
  background: rgba(245, 247, 250, 0.92);
}

.hidden {
  display: none !important;
}

/* Download */
.download-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading aside"
    "sub aside";
  align-items: start;
  column-gap: 18px;
  row-gap: 8px;
}

.download-heading {
  grid-area: heading;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.download-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 91, 77, 0.4);
  background: rgba(255, 91, 77, 0.09);
  color: var(--accent-2);
}

.download-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  transform: skewX(-6deg);
  min-width: 0;
}

.download-sub {
  grid-area: sub;
  margin: 0;
  padding-left: 52px;
  color: var(--muted);
  font-size: 13.5px;
}

.download-aside {
  grid-area: aside;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted-2);
}

.download-aside em {
  font-family: var(--display);
  font-style: normal;
  font-size: 22px;
  line-height: 1.1;
  transform: rotate(-8deg);
  display: inline-block;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr));
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(28px, 3.4vw, 48px);
}

.dl-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(11, 15, 24, 0.35);
  border: 1px solid rgba(255, 91, 77, 0.2);
  box-shadow: 0 0 26px -16px rgba(255, 91, 77, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.dl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 91, 77, 0.45);
  box-shadow: 0 0 34px -14px rgba(255, 91, 77, 0.75);
}

.dl-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(#ff5b4d, #ff5b4d) top left / 20px 2px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) top left / 2px 20px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) bottom right / 20px 2px no-repeat,
    linear-gradient(#ff5b4d, #ff5b4d) bottom right / 2px 20px no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 91, 77, 0.85));
  opacity: 0.85;
}

.dl-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid rgba(255, 91, 77, 0.3);
  background: rgba(255, 91, 77, 0.09);
  color: var(--accent-2);
}

.dl-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.dl-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.dl-card .btn-outline {
  margin: 15px 0 0;
  width: 100%;
  min-height: 46px;
  font-size: 13px;
}

.dl-preview {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070c;
}

.dl-preview canvas {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 91, 77, 0.2);
  background: linear-gradient(180deg, rgba(11, 15, 24, 0.5), #05070c);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding: clamp(20px, 2.4vw, 30px) 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 220px;
  min-width: 0;
}

.footer-left .crown {
  width: 24px;
  line-height: 0;
}

.footer-left .crown img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(255, 91, 77, 0.55));
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.footer-tags .sep {
  color: #475569;
}

.footer-vibes {
  flex: 0 1 auto;
  text-align: center;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
  color: #cbd5e1;
  transform: rotate(-4deg);
}

.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  flex: 1 1 220px;
  justify-content: flex-end;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #cbd5e1;
}

.footer-socials a:hover {
  color: var(--accent-2);
}

.footer-brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  transform: skewX(-6deg);
  color: var(--ink);
  margin-left: 4px;
}

/* —— Phone & tablet refinements —— */
@media (max-width: 900px) {
  .section-title {
    font-size: clamp(28px, 7vw, 44px);
  }

  .download-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "sub";
    row-gap: 8px;
  }

  .download-heading {
    gap: 10px;
  }

  .download-icon {
    width: 36px;
    height: 36px;
  }

  .download-title {
    font-size: clamp(22px, 6.8vw, 36px);
  }

  .download-sub {
    padding-left: 46px;
  }

  .download-aside {
    display: none;
  }

  .week-scroll {
    padding-right: 28px;
    scroll-padding-inline: 4px;
  }

  .day-card {
    flex: 0 0 auto;
    width: min(168px, 46vw);
    min-width: 152px;
    max-width: 180px;
  }

  .badge-today {
    font-size: 11px;
  }

  .next-label {
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 6px 5px;
    white-space: nowrap;
  }

  .next-label-full {
    display: none;
  }

  .next-label-short {
    display: inline;
  }

  .schedule-note {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-left,
  .footer-socials {
    flex: 1 1 auto;
    width: 100%;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-tags {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
    gap: 6px;
  }

  .footer-vibes {
    align-self: center;
  }
}

@media (max-width: 700px) {
  .avatar-crown {
    top: -22px;
    width: clamp(34px, 9vw, 44px);
  }

  .next-stream__inner {
    padding: 20px 16px 20px 18px;
    min-height: 0;
    align-items: stretch;
  }

  .next-stream__main {
    flex: 1 1 100%;
  }

  .next-stream__countdown {
    flex: 1 1 100%;
  }

  .next-stream__cd-label {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .next-stream__cd-grid {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cd-box {
    padding: 10px 4px 8px;
  }

  .cd-num {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .cd-unit {
    font-size: 10px;
  }

  .nav-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .nav-center {
    flex: unset;
    min-width: 0;
  }

  .nav-btn {
    padding: 0 12px;
    min-width: 44px;
    justify-content: center;
  }

  .nav-btn-text {
    display: none;
  }

  .nav-range {
    font-size: 14px;
  }

  .nav-tag {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .icon-row {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .btn-twitch {
    width: min(100%, 320px);
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
    align-items: center;
  }

  .hero-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 14px;
  }

  .avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    width: clamp(104px, 28vw, 128px);
    margin-top: 12px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-intro {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .hero-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-title-crown {
    width: clamp(22px, 6vw, 30px);
    padding-bottom: 8px;
  }

  .twitch-pill {
    margin-top: 6px;
  }

  .twitch-pill > span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .tags {
    font-size: 12.5px;
    justify-content: center;
    text-align: center;
  }

  .bio {
    font-size: 13px;
    text-align: center;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .next-stream__date {
    font-size: clamp(22px, 7vw, 30px);
  }

  .next-stream__cd-grid {
    gap: 5px;
  }

  .cd-box {
    padding: 8px 2px 7px;
  }

  .cd-num {
    font-size: clamp(15px, 4.5vw, 20px);
  }

  .cd-unit {
    font-size: 9px;
    letter-spacing: 0;
  }

  .section-head {
    gap: 10px 12px;
  }

  .section-sub {
    width: 100%;
    margin-left: 0;
  }

  .download-sub {
    font-size: 13px;
    padding-left: 46px;
  }

  .dl-card:hover {
    transform: none;
  }

  .footer-tags {
    font-size: 11px;
    letter-spacing: 1px;
    gap: 4px 8px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .day-card {
    flex: 1 1 0;
    min-width: 120px;
    max-width: none;
  }

  .day-kind .kind-label {
    font-size: 11px;
  }
}

