:root {
  --bg: #070812;
  --card: rgba(255,255,255,.075);
  --card2: rgba(255,255,255,.105);
  --text: #ffffff;
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --accent: #8b5cf6;
  --accent2: #22c55e;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0,0,0,.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(139,92,246,.42), transparent 34%),
    radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 26%),
    linear-gradient(180deg, #080914, #05060c 70%);
}

button, input { font-family: inherit; }

.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.hero {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  color: var(--accent2);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  line-height: 1.55;
  font-size: 24px;
  max-width: 520px;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  font-size: 28px;
  flex: 0 0 auto;
}

.search-card {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}

.search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 12px 8px;
  font-size: 15px;
}

.search-card input::placeholder { color: rgba(255,255,255,.45); }

.search-card button,
.sheet-actions button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.quick-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 14px;
}

.quick-tags button {
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.07);
  padding: 9px 12px;
  border-radius: 999px;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trend-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  padding: 14px;
  min-height: 112px;
}

.trend-tag {
  display: inline-block;
  color: #d8b4fe;
  background: rgba(139,92,246,.18);
  border: 1px solid rgba(139,92,246,.28);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 10px;
}

.trend-title {
  font-weight: 800;
  line-height: 1.5;
}

.trend-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}

.results {
  display: grid;
  gap: 10px;
}

.result-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  padding: 10px;
}

.cover {
  width: 86px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  background: rgba(255,255,255,.1);
}

.result-title {
  font-weight: 800;
  line-height: 1.55;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.result-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.result-actions button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.result-actions button:first-child {
  border-color: rgba(34,197,94,.36);
  background: rgba(34,197,94,.14);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.empty-state div { font-size: 34px; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.hidden { display: none; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.sheet-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0 auto;
  width: min(720px, calc(100% - 20px));
  background: #111220;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 24px;
}

.player-title {
  padding: 10px 42px 14px 6px;
  font-weight: 900;
  line-height: 1.5;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.sheet-actions button:first-child {
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 20px;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 0 auto;
  color: #fff;
  background: rgba(0,0,0,.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  z-index: 70;
}

.loading {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 520px) {
  h1 { font-size: 21px; }
  .trend-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 78px 1fr; }
  .cover { width: 78px; height: 58px; }
}

.hero-subtitle {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.8;
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
}

.tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 15px;
  padding: 11px 8px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ec4899);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: rgba(255,255,255,.58);
  font-weight: 900;
  font-size: 12px;
}

.result-card {
  position: relative;
}

.result-card .result-actions button:first-child {
  min-width: 132px;
}


.hero-subtitle {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.8;
  font-size: 13px;
}

.tabs {
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
}

.four-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 15px;
  padding: 11px 6px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ec4899);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: rgba(255,255,255,.58);
  font-weight: 900;
  font-size: 12px;
}

.result-card {
  position: relative;
}

.result-card .result-actions button:first-child {
  min-width: 132px;
}

@media (max-width: 420px) {
  .four-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.two-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.two-tabs .tab {
  font-size: 13px;
  padding: 13px 8px;
}


.single-action button {
  width: 100%;
}

.single-action button:disabled {
  opacity: .75;
}


.load-more {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 14px;
  font-weight: 900;
  cursor: pointer;
}

.load-more:disabled {
  opacity: .65;
}

.hidden {
  display: none !important;
}


.hero-subtitle {
  font-size: 11px !important;
  white-space: nowrap;
  opacity: .82;
}


.hero-subtitle {
  font-size: 10.5px !important;
  white-space: nowrap !important;
  opacity: .78 !important;
  letter-spacing: -.2px;
}

.hero h1 {
  line-height: 1.55;
}


.brand-title {
  margin: 0 !important;
  max-width: 100% !important;
  line-height: 1.65 !important;
}

.brand-title span {
  display: block;
  font-size: 21px !important;
  font-weight: 900;
  letter-spacing: -.3px;
}

.hero-subtitle {
  font-size: 10.5px !important;
  white-space: nowrap !important;
  opacity: .78 !important;
  margin-top: 10px !important;
}

@media (max-width: 420px) {
  .brand-title span {
    font-size: 20px !important;
  }

  .hero-subtitle {
    font-size: 10px !important;
  }
}


.brand-title {
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
  white-space: normal !important;
  max-width: 100% !important;
  letter-spacing: -.4px;
}

.brand-title span {
  display: inline !important;
  font-size: inherit !important;
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 21px !important;
  }
}

