:root {
  color-scheme: dark;
  --bg: #03050a;
  --glass: rgb(185 220 255 / 0.055);
  --glass-line: rgb(225 244 255 / 0.34);
  --text: #f7f3ea;
  --muted: rgb(230 238 248 / 0.68);
  --soft: rgb(230 238 248 / 0.42);
  --accent: #b9ffe2;
  --accent-2: #c5cbff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='360' height='360' viewBox='0 0 360 360' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='360' height='360' fill='%2303050a'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='30' cy='56' r='1.3' opacity='.78'/%3E%3Ccircle cx='110' cy='132' r='1' opacity='.5'/%3E%3Ccircle cx='186' cy='36' r='.8' opacity='.72'/%3E%3Ccircle cx='282' cy='78' r='1.1' opacity='.55'/%3E%3Ccircle cx='330' cy='212' r='.9' opacity='.62'/%3E%3Ccircle cx='54' cy='292' r='1' opacity='.45'/%3E%3Ccircle cx='152' cy='322' r='.8' opacity='.68'/%3E%3Ccircle cx='238' cy='252' r='1.2' opacity='.48'/%3E%3C/g%3E%3Cg fill='none' stroke='%2324364f' stroke-width='1' opacity='.22'%3E%3Cpath d='M0 276 C82 240 140 294 220 256 S314 244 360 260'/%3E%3Cpath d='M0 96 C90 108 142 42 230 72 S314 94 360 70'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - clamp(24px, 4vw, 64px)));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2.5vh, 26px) 0 clamp(22px, 4vh, 44px);
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  animation: rise 560ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand img {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.26), 0 12px 30px rgb(0 0 0 / 0.36);
  object-fit: cover;
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.05;
}

.brand small,
.subtle {
  color: var(--muted);
}

.live-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, min(42vw, 460px)));
  justify-content: center;
  gap: clamp(20px, 6vw, 84px);
  min-height: calc(100vh - 84px);
  align-items: center;
  padding: clamp(18px, 4vh, 54px) 0 12px;
}

.live-card {
  position: relative;
  z-index: 1;
  min-height: clamp(500px, calc(100vh - 132px), 660px);
  overflow: hidden;
  border: 1px solid rgb(225 244 255 / 0.2);
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.42);
  animation: cardIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.live-card:nth-child(2) {
  animation-delay: 90ms;
}

.live-card::before {
  position: absolute;
  inset: 1px;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: 27px;
  content: "";
  pointer-events: none;
}

.live-card::after {
  position: absolute;
  top: -45%;
  left: -25%;
  width: 60%;
  height: 120%;
  background: rgb(255 255 255 / 0.055);
  content: "";
  filter: blur(28px);
  opacity: 0.58;
  pointer-events: none;
  transform: rotate(18deg);
}

.liquid-pane {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgb(255 255 255 / 0.18), transparent 36%),
    radial-gradient(circle at 92% 100%, rgb(150 210 255 / 0.1), transparent 34%),
    rgb(180 220 255 / 0.034);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.44),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    inset 0 0 46px rgb(255 255 255 / 0.035);
  backdrop-filter: blur(24px) saturate(190%) contrast(110%);
}

.liquid-pane::before,
.liquid-pane::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.liquid-pane::before {
  inset: 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 22px;
}

.liquid-pane::after {
  left: 14%;
  right: 14%;
  bottom: 14px;
  height: 24%;
  border-radius: 999px 999px 24px 24px;
  background: rgb(255 255 255 / 0.12);
  filter: blur(24px);
  opacity: 0.34;
  animation: liquidGlow 6s ease-in-out infinite alternate;
}

.card-type {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 6;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(5 7 11 / 0.42);
  color: rgb(247 243 234 / 0.9);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 10px 28px rgb(0 0 0 / 0.28);
}

.liquid-content {
  position: relative;
  z-index: 5;
}

canvas[data-liquid-ignore] {
  z-index: 1 !important;
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: rgb(225 244 255 / 0.48);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.48),
    inset 0 0 56px rgb(255 255 255 / 0.045),
    0 34px 100px rgb(0 0 0 / 0.52);
}

.live-art {
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  height: clamp(180px, 30vh, 270px);
  margin: 14px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 22px;
  object-fit: cover;
  background: rgb(255 255 255 / 0.035);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.32);
}

.music-live .live-art {
  object-position: center;
}

.watch-live .live-art {
  object-position: center top;
}

.now-float {
  position: fixed;
  bottom: clamp(16px, 3vh, 30px);
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  width: min(calc(100% - 32px), 520px);
  padding: 12px;
  border: 1px solid rgb(225 244 255 / 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgb(255 255 255 / 0.14), transparent 40%),
    rgb(22 29 34 / 0.58);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    0 18px 50px rgb(0 0 0 / 0.42);
  backdrop-filter: blur(24px) saturate(170%) contrast(108%);
  transform: translateX(-50%);
  animation: floatIn 520ms ease both, floatDrift 5s ease-in-out 700ms infinite alternate;
}

.now-float[hidden] {
  display: none;
}

.now-float img {
  width: 108px;
  height: 76px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 14px;
  object-fit: cover;
  background: rgb(255 255 255 / 0.04);
}

.now-info {
  display: grid;
  align-content: center;
  min-width: 0;
}

.now-info p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
}

.now-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: rgb(247 243 234 / 0.86);
  font-size: 0.78rem;
}

.now-progress {
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
}

.now-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: rgb(218 250 255 / 0.9);
  transition: width 700ms ease;
}

.live-copy {
  position: relative;
  z-index: 2;
  padding: 4px 22px 22px;
}

.kicker,
.slot-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 7px 0 7px;
  font-size: clamp(1.55rem, 4vw, 2.65rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtle {
  margin: 0;
  line-height: 1.38;
}

.progress {
  width: 100%;
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgb(220 240 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 600ms ease;
}

.recent-slot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(220 240 255 / 0.14);
}

.slot-label {
  color: var(--accent-2);
}

.mini-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgb(220 240 255 / 0.08);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.026);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 8px 18px rgb(0 0 0 / 0.08);
  backdrop-filter: blur(12px) saturate(145%);
  animation: rowIn 420ms ease both;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.mini-list li::after {
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: radial-gradient(circle at 18% 0%, rgb(255 255 255 / 0.12), transparent 38%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mini-list li:nth-child(2) {
  animation-delay: 35ms;
}

.mini-list li:nth-child(3) {
  animation-delay: 70ms;
}

.mini-list li:nth-child(4) {
  animation-delay: 105ms;
}

.mini-list li:nth-child(5) {
  animation-delay: 140ms;
}

.mini-list li:hover {
  z-index: 3;
  transform: translateY(-3px) scale(1.015);
  border-color: rgb(220 240 255 / 0.24);
  background: rgb(255 255 255 / 0.07);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 16px 34px rgb(0 0 0 / 0.2);
}

.mini-list li:hover::after {
  opacity: 1;
}

.mini-list li.is-live {
  border-color: rgb(185 255 226 / 0.28);
  background: rgb(185 255 226 / 0.055);
}

.mini-list li.is-live .mini-meta {
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
}

.mini-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meta {
  max-width: 150px;
  overflow: hidden;
  margin: 0;
  color: var(--soft);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liquidGlow {
  from {
    transform: translateX(-5%) scaleX(0.92);
    opacity: 0.22;
  }
  to {
    transform: translateX(5%) scaleX(1.08);
    opacity: 0.38;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes floatDrift {
  from {
    transform: translate(-50%, 0);
  }
  to {
    transform: translate(-50%, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .live-grid {
    grid-template-columns: minmax(0, min(100%, 460px));
    gap: 18px;
    min-height: auto;
    padding-top: 24px;
  }

  .live-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-art {
    height: 225px;
  }

  .now-float {
    grid-template-columns: 82px minmax(0, 1fr);
    bottom: 12px;
    width: min(calc(100% - 28px), 380px);
    padding: 10px;
  }

  .now-float img {
    width: 82px;
    height: 62px;
  }

  .card-type {
    top: 18px;
    left: 18px;
  }

  .mini-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
