/* Discover ?X EFOTUNE studio theme */

html {
  scroll-snap-type: none;
}

.page-discover {
  --discover-bg: #0a0a0a;
  --discover-panel: rgba(255, 255, 255, 0.03);
  --discover-elevated: rgba(255, 255, 255, 0.06);
  --discover-muted: rgb(156, 156, 156);
  --discover-accent: #00d4aa;
  --discover-line: rgba(255, 255, 255, 0.12);
  --discover-topbar-h: 72px;
  --discover-sidebar-w: 300px;
  --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-art: "Syne", "Antonio", sans-serif;
  background: var(--discover-bg);
  overflow: visible;
  font-family: var(--font-sans);
  color: #fff;
}

html:has(.page-discover) {
  overflow-x: clip;
}

.page-discover .site-wrap {
  min-height: 100vh;
}

.page-discover .site-main.discover-main-wrap {
  padding-top: var(--discover-topbar-h);
  min-height: calc(100vh - var(--discover-topbar-h));
  height: auto;
  overflow: visible;
}

body.has-studio-chrome.page-discover .site-main.discover-main-wrap {
  padding-top: 0;
  min-height: calc(100vh - 80px - var(--discover-topbar-h));
}

/* Top bar */
.discover-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--discover-topbar-h);
  padding: 8px 24px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--discover-line);
}

/* Under shared Studio header: sticky search row, no logo/menu */
.discover-topbar--under-studio {
  position: sticky;
  top: 80px;
  z-index: 199;
  grid-template-columns: minmax(0, 1fr) auto;
}

.discover-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discover-topbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 4px;
  font-family: var(--font-art);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}

.discover-topbar__logo:hover {
  color: var(--discover-accent);
}

.discover-search {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  justify-self: center;
}

.discover-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--discover-muted);
  pointer-events: none;
}

.discover-search__icon svg {
  width: 16px;
  height: 16px;
}

.discover-search__input {
  width: 100%;
  height: 48px;
  padding: 0 48px;
  border: 1px solid var(--discover-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.discover-search__input::placeholder {
  color: var(--discover-muted);
}

.discover-search__input:hover {
  background: rgba(255, 255, 255, 0.07);
}

.discover-search__input:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: none;
}

.discover-search__input:focus::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.discover-topbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}

.discover-topbar__nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--discover-muted);
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.discover-topbar__nav a:hover {
  color: #ffffff;
  transform: scale(1.04);
}

.discover-topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--discover-accent) !important;
  color: #0a0a0a !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 212, 170, 0.22);
}

.discover-topbar__cta:hover {
  background: #5eead4 !important;
  color: #0a0a0a !important;
  transform: translateY(-1px);
}

.discover-topbar__cta.is-active {
  box-shadow: 0 8px 20px rgba(0, 212, 170, 0.28);
}

.discover-menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px;
}

/* ????App shell ????*/
.discover-app {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--discover-topbar-h) - 8px);
  height: auto;
  gap: 8px;
  padding: 0 8px 48px;
}

/* ????Sidebar ????*/
.discover-sidebar {
  flex: 0 0 var(--discover-sidebar-w);
  width: var(--discover-sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 212, 170, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--discover-line);
  border-radius: 20px;
  padding: 16px;
  position: sticky;
  top: calc(var(--discover-topbar-h) + 8px);
  align-self: flex-start;
  max-height: calc(100vh - var(--discover-topbar-h) - 16px);
  overflow-y: auto;
}

.discover-sidebar__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--discover-line);
}

.discover-sidebar__title {
  margin: 0;
  font-family: var(--font-art);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.discover-sidebar__kicker {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--discover-accent);
}

.discover-sidebar__create {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--discover-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.discover-sidebar__create:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.discover-sidebar__create svg {
  width: 16px;
  height: 16px;
}

.discover-sidebar__cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 0;
}

.discover-sidebar__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--discover-line);
  border-radius: 16px;
  padding: 16px;
}

.discover-sidebar__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-art);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.discover-sidebar__card p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--discover-muted);
}

.discover-sidebar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--discover-accent);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.discover-sidebar__pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #0a0a0a;
}

.discover-sidebar__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 8px 12px;
}

.discover-sidebar__legal a {
  font-size: 11px;
  color: var(--discover-muted);
  transition: color 0.2s ease;
}

.discover-sidebar__legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.discover-sidebar__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px 12px;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.discover-sidebar__lang:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.discover-sidebar__lang svg {
  width: 16px;
  height: 16px;
}

/* ?? Main content ?? */
.discover-content {
  flex: 1;
  min-width: 0;
  background:
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(0, 212, 170, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--discover-line);
  border-radius: 20px;
  overflow: visible;
  padding: 28px 32px 80px;
}

.discover-row + .discover-row {
  margin-top: 40px;
}

.discover-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.discover-row__title {
  margin: 0;
  font-family: var(--font-art);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.discover-row__sub {
  margin: 6px 0 0;
  color: var(--discover-muted, #9a9a9a);
  font-size: 0.9rem;
  font-family: "Instrument Serif", Georgia, serif;
}

/* ===== EFOTUNE Top 20 chart ===== */
.discover-chart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.discover-chart li {
  margin: 0;
  padding: 0;
  animation: chartRowIn 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

@keyframes chartRowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.discover-chart__row {
  display: grid;
  grid-template-columns: 44px 40px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.discover-chart__row:hover {
  background: rgba(0, 212, 170, 0.06);
  border-color: rgba(0, 212, 170, 0.22);
  text-decoration: none;
  color: inherit;
  transform: translateX(2px);
}

.discover-chart__row--one {
  background:
    linear-gradient(90deg, rgba(0, 212, 170, 0.12), rgba(255, 255, 255, 0.02) 55%);
  border-color: rgba(0, 212, 170, 0.28);
}

.discover-chart__row--top .discover-chart__rank {
  color: #00d4aa;
}

.discover-chart__rank {
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.discover-chart__medal {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.16);
  border: 1px solid rgba(0, 212, 170, 0.45);
  color: #00d4aa;
  font-size: 1rem;
}

.discover-chart__row--one .discover-chart__medal {
  background: #00d4aa;
  border-color: #00d4aa;
  color: #0a0a0a;
}

.discover-chart__delta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #6b6b6b;
}

.discover-chart__delta.is-up { color: #00d4aa; }
.discover-chart__delta.is-down { color: #ff6b6b; }

.discover-chart__cover {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.discover-chart__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-chart__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discover-chart__title {
  font-family: "Syne", "Antonio", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-chart__artist {
  color: var(--discover-muted, #9a9a9a);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-chart__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 7.5rem;
}

.discover-chart__reviews {
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}

.discover-chart__reviews em {
  font-style: normal;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--discover-muted);
  margin-left: 2px;
}

.discover-chart__plays {
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--discover-muted, #9a9a9a);
  white-space: nowrap;
}

.discover-chart--full,
.discover-chart--studio {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Charts page composition — centered column */
.page-discover-charts .discover-app--charts {
  justify-content: center;
}

.page-discover-charts .discover-app--charts .discover-sidebar {
  display: none;
}

.page-discover-charts .discover-content.discover-charts {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 32px 100px;
  background:
    radial-gradient(ellipse 55% 45% at 95% 0%, rgba(0, 212, 170, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 80%, rgba(124, 92, 255, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.02);
}

.page-discover-charts .discover-topbar--under-studio {
  grid-template-columns: 1fr;
  justify-items: center;
}

.page-discover-charts .discover-topbar--under-studio .discover-topbar__nav {
  display: none;
}

.page-discover-charts .discover-search {
  max-width: 520px;
  margin: 0 auto;
  justify-self: center;
}

.discover-charts__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.discover-charts__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: chartOrb 16s ease-in-out infinite;
}

.discover-charts__orb--1 {
  top: -8%;
  right: -4%;
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  background: rgba(0, 212, 170, 0.22);
}

.discover-charts__orb--2 {
  bottom: 10%;
  left: -8%;
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background: rgba(124, 92, 255, 0.16);
  animation-direction: reverse;
}

@keyframes chartOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 14px); }
}

.discover-charts__hero,
.discover-charts__board {
  position: relative;
  z-index: 1;
}

.discover-charts__hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discover-charts__hero .discover-browse-back {
  align-self: flex-start;
}

.discover-charts__brand {
  margin: 8px 0 0;
  font-family: "Syne", "Antonio", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.discover-charts__kicker {
  margin: 10px 0 0;
  color: #00d4aa;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.discover-charts__title {
  margin: 14px 0 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discover-charts__lead {
  margin: 10px auto 0;
  max-width: 34rem;
  color: var(--discover-muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: center;
}

.discover-charts__source {
  margin: 8px auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.discover-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.discover-save-btn {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.discover-save-btn:hover,
.discover-save-btn.is-saved {
  border-color: rgba(0, 212, 170, 0.45);
  color: #00d4aa;
}

.discover-charts__live {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin: 28px auto 0;
  width: 100%;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.discover-charts__live--compact {
  margin: 0 0 18px;
  max-width: 520px;
  border-radius: 12px;
}

.discover-charts__live--compact .discover-charts__live-item {
  padding: 12px 14px 12px;
}

.discover-charts__live--compact .discover-charts__live-value {
  font-size: 1.25rem;
}

.discover-row--chart .discover-charts__live--compact {
  position: relative;
  z-index: 1;
}

.discover-charts__live-item {
  position: relative;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discover-charts__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discover-charts__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.6);
  animation: chartLivePulse 1.6s ease-out infinite;
}

@keyframes chartLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.discover-charts__live-value {
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.discover-charts__live-value.is-bump {
  animation: chartValueBump 0.42s ease;
}

@keyframes chartValueBump {
  0% { transform: scale(1); color: #fff; }
  40% { transform: scale(1.04); color: #00d4aa; }
  100% { transform: scale(1); color: #fff; }
}

.discover-charts__live-label {
  color: var(--discover-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discover-charts__live-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.discover-charts__live-float {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 0;
  height: 0;
  pointer-events: none;
}

.discover-charts__plus {
  position: absolute;
  right: 0;
  top: 0;
  font-family: "Antonio", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00d4aa;
  white-space: nowrap;
  animation: chartPlusFloat 1.05s ease forwards;
  transform: translateX(var(--sx, 0));
}

.discover-charts__plus.is-earn { color: #7c5cff; }

@keyframes chartPlusFloat {
  0% { opacity: 0; transform: translate(var(--sx, 0), 8px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx, 0), -28px); }
}

.discover-charts__board {
  margin: 36px auto 0;
  max-width: 880px;
}

.discover-charts__board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 14px;
  max-width: 880px;
}

.discover-charts__board-head h2 {
  margin: 0;
  font-family: "Antonio", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-charts__board-head span {
  color: var(--discover-muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .page-discover-charts .discover-content.discover-charts {
    padding: 22px 18px 96px;
  }
  .discover-charts__live {
    grid-template-columns: 1fr;
  }
  .discover-charts__live-divider {
    width: 100%;
    height: 1px;
  }
  .discover-chart__row {
    grid-template-columns: 32px 28px 52px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .discover-chart__stats {
    grid-column: 4 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    margin-top: -2px;
  }
  .discover-chart__cover {
    width: 52px;
    height: 52px;
  }
  .discover-chart__plays {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-chart li,
  .discover-charts__orb,
  .discover-charts__live-dot,
  .discover-charts__plus,
  .discover-charts__live-value.is-bump {
    animation: none !important;
  }
}

.discover-row__more {
  font-size: 12px;
  font-weight: 700;
  color: var(--discover-accent);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.discover-row__more:hover {
  color: #5eead4;
  text-decoration: none;
}

.discover-row__scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 180px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #535353 transparent;
}

.discover-row__scroll::-webkit-scrollbar {
  height: 8px;
}

.discover-row__scroll::-webkit-scrollbar-thumb {
  background: #535353;
  border-radius: 4px;
}

/* ????Cards ????*/
.discover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: transform 0.2s ease;
}

button.discover-card {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

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

.discover-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #282828;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.discover-card__media--round {
  border-radius: 50%;
}

.discover-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card__play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00d4aa;
  color: #000000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.discover-card:hover .discover-card__play,
.discover-card--playable:hover .discover-card__play,
.discover-card.is-playing .discover-card__play {
  opacity: 1;
  transform: translateY(0);
}

.discover-card--album.discover-card--playable .discover-card__play {
  opacity: 0;
}

.discover-card--album.discover-card--playable:hover .discover-card__play,
.discover-card--album.discover-card--playable.is-playing .discover-card__play {
  opacity: 1;
  transform: translateY(0);
}

.discover-card.is-playing .discover-card__play {
  background: #5eead4;
}

.discover-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.discover-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.discover-card__meta {
  display: block;
  font-size: 13px;
  color: var(--discover-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-card__explicit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 9px;
  font-weight: 700;
  vertical-align: middle;
}

.discover-card--artist .discover-card__title {
  font-size: 15px;
  font-weight: 700;
}

/* ????Wheel modal ????*/
.discover-wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.discover-wheel-modal[hidden] {
  display: none;
}

.discover-wheel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.discover-wheel-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: linear-gradient(165deg, #2a2a2a 0%, #101010 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.discover-wheel-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00d4aa;
}

.discover-wheel-modal__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.discover-wheel-modal__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--discover-muted);
}

.discover-wheel {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
}

.discover-wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ffffff;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.discover-wheel__disk {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #ffffff;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.45);
  background: conic-gradient(
    #00d4aa 0deg 45deg,
    #333333 45deg 90deg,
    #00d4aa 90deg 135deg,
    #333333 135deg 180deg,
    #ffd700 180deg 225deg,
    #333333 225deg 270deg,
    #00d4aa 270deg 315deg,
    #333333 315deg 360deg
  );
  transition: transform 4.2s cubic-bezier(0.12, 0.85, 0.18, 1);
  will-change: transform;
}

.discover-wheel__labels {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discover-wheel__labels li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  margin-left: -28px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transform: rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(-108px);
}

.discover-wheel__labels li.is-jackpot {
  color: #111111;
  font-size: 15px;
}

.discover-wheel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #d9d9d9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111111;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.discover-wheel__hub:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.discover-wheel__hub:disabled {
  cursor: default;
}

.discover-wheel-modal__status {
  min-height: 24px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.discover-wheel-modal__status.is-win {
  color: #ffd700;
  animation: discover-wheel-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes discover-wheel-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.discover-wheel-modal__spin {
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: #00d4aa;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.discover-wheel-modal__spin:hover {
  background: #5eead4;
}

.discover-wheel-modal__spin[hidden] {
  display: none;
}

/* ????Bonus modal ????*/
.discover-bonus-modal {
  position: fixed;
  inset: 0;
  z-index: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.discover-bonus-modal[hidden] {
  display: none;
}

.discover-bonus-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.discover-bonus-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 32px 28px 28px;
  border-radius: 12px;
  background: linear-gradient(160deg, #282828 0%, #121212 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.discover-bonus-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--discover-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.discover-bonus-modal__x:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.discover-bonus-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00d4aa;
}

.discover-bonus-modal__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.discover-bonus-modal__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--discover-muted);
}

.discover-bonus-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discover-bonus-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #00d4aa;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease;
}

.discover-bonus-modal__cta:hover {
  background: #5eead4;
  transform: scale(1.02);
  text-decoration: none;
}

.discover-bonus-modal__ghost {
  min-height: 40px;
  border: none;
  background: transparent;
  color: var(--discover-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.discover-bonus-modal__ghost:hover {
  color: #ffffff;
}

body.discover-modal-open {
  overflow: hidden;
}

/* ????Bottom preview player ????*/
.discover-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--discover-line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.discover-player[hidden] {
  display: none;
}

.discover-player__cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #282828 center / cover no-repeat;
  flex-shrink: 0;
}

.discover-player__meta {
  min-width: 0;
  flex: 1;
}

.discover-player__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-player__claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 34px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #00d4aa;
  color: #0a0a0a;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.discover-player__claim:hover {
  filter: brightness(1.05);
}

.discover-player__artist {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--discover-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-player__progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.discover-player__time {
  flex-shrink: 0;
  min-width: 32px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--discover-muted);
}

.discover-player__seek {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.discover-player__seek-track {
  display: block;
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.discover-player__seek-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #00d4aa;
  transition: width 0.1s linear;
}

.discover-player__seek:hover .discover-player__seek-track {
  background: rgba(255, 255, 255, 0.24);
}

.discover-player__seek:hover .discover-player__seek-fill {
  background: #5eead4;
}

.discover-player__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--discover-accent);
  color: #0a0a0a;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 212, 170, 0.28);
}

.discover-player__toggle svg {
  width: 20px;
  height: 20px;
}

.page-discover .discover-content {
  padding-bottom: 112px;
}

.discover-browse-head {
  margin-bottom: 28px;
}

.discover-browse-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--discover-muted);
  transition: color 0.2s ease;
}

.discover-browse-back:hover {
  color: #ffffff;
  text-decoration: none;
}

.discover-browse-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.discover-browse-count {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--discover-muted);
}

.discover-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.page-discover-browse .discover-content {
  padding-bottom: 132px;
}

/* ????Responsive ????*/
@media (max-width: 1100px) {
  .discover-topbar {
    grid-template-columns: auto 1fr auto;
  }

  .discover-topbar__nav a:not(.discover-topbar__cta) {
    display: none;
  }
}

@media (max-width: 809px) {
  :root {
    --discover-sidebar-w: 100%;
  }

  .discover-topbar {
    grid-template-columns: auto 1fr auto;
    padding: 8px 16px;
    gap: 12px;
  }

  .discover-search {
    max-width: none;
  }

  .discover-topbar__nav {
    display: none;
  }

  .discover-menu-btn {
    display: block;
  }

  .discover-app {
    flex-direction: column;
    padding: 0 0 8px;
  }

  .discover-sidebar {
    display: none;
    flex: none;
    width: auto;
    position: static;
    max-height: 280px;
    margin: 0 8px;
  }

  .discover-sidebar.is-open {
    display: flex;
  }

  .discover-content {
    border-radius: 8px 8px 0 0;
    padding: 20px 16px 40px;
  }

  .discover-row__scroll {
    grid-auto-columns: minmax(132px, 160px);
    gap: 16px;
  }
}
