:root {
  color-scheme: dark;
  --bg: #080806;
  --panel: #12110d;
  --panel-soft: #19160f;
  --gold: #ffd84d;
  --gold-deep: #b78a16;
  --text: #fff8d7;
  --muted: #c5b990;
  --line: rgba(255, 216, 77, 0.24);
  --white: #ffffff;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--gold);
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(180deg, #ffe47a, #d49a16);
  border-color: transparent;
  color: #171100;
}

.button.ghost {
  background: transparent;
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.98), rgba(8, 8, 6, 0.78) 48%, rgba(8, 8, 6, 0.30)),
    url("images/splash.png") center right / min(56vw, 720px) auto no-repeat;
  opacity: 0.96;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 104px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 620px;
  border: 1px solid var(--line);
  background: rgba(18, 17, 13, 0.72);
}

.stat {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-size: 24px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.app-status-notice {
  border-bottom: 1px solid rgba(255, 216, 77, 0.22);
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.13), rgba(18, 17, 13, 0.88));
}

.app-status-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.app-status-inner strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 15px;
}

.app-status-inner span {
  color: rgba(255, 248, 215, 0.88);
  font-size: 14px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
  font-size: 24px;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.service-page {
  background: #090806;
}

.service-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.98), rgba(8, 8, 6, 0.78) 58%, rgba(8, 8, 6, 0.52)),
    url("images/splash.png") center right / min(54vw, 700px) auto no-repeat;
}

.service-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
  padding: 76px 0;
}

.service-copy h1 {
  max-width: 760px;
}

.service-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 248, 215, 0.84);
  font-size: 19px;
}

.service-qr-card,
.pricing-card,
.service-tile,
.digital-card-demo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.88);
}

.service-qr-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.service-qr-mark {
  width: 156px;
  height: 156px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 216, 77, 0.34);
  border-radius: 8px;
  background: #050504;
}

.service-qr-mark span {
  border: 8px solid var(--gold);
  border-radius: 4px;
}

.service-qr-card strong {
  color: var(--gold);
  font-size: 24px;
}

.service-qr-card p {
  margin: 0;
  color: var(--muted);
}

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

.service-tile {
  min-height: 230px;
  padding: 22px;
}

.service-tile .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.service-tile h3 {
  margin: 18px 0 8px;
}

.service-tile p,
.pricing-card p,
.pricing-card li,
.digital-card-demo p {
  color: var(--muted);
}

.service-pricing-section {
  background: #0d0b07;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  padding: 26px;
}

.pricing-card-featured {
  border-color: rgba(255, 216, 77, 0.76);
  background: linear-gradient(180deg, rgba(255, 216, 77, 0.14), rgba(18, 17, 13, 0.92));
}

.pricing-card span {
  color: var(--gold);
  font-weight: 900;
}

.pricing-card h3 {
  margin: 8px 0 4px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

.service-card-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
}

.digital-card-demo {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.digital-card-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 216, 77, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe47a, #9d7414);
  color: #100c03;
  font-size: 44px;
  font-weight: 900;
}

.digital-card-demo span {
  color: var(--gold);
  font-weight: 900;
}

.digital-card-demo h3 {
  margin: 4px 0;
  font-size: 30px;
}

.digital-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.song-tools-page {
  background: #090806;
}

.song-tools-heading h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.song-sync-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 6px 0 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 14px;
}

.song-sync-status[data-tone="success"] {
  border-color: rgba(96, 210, 140, 0.45);
  color: #aaf0c4;
}

.song-sync-status[data-tone="warning"] {
  border-color: rgba(255, 216, 77, 0.45);
  color: #ffe98f;
}

.song-sync-status a {
  margin: 0 4px;
  color: var(--gold);
  font-weight: 700;
}

.song-tools-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.song-panel,
.song-editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.88);
}

.song-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.song-panel-header,
.setlist-header,
.song-editor-actions,
.chord-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.song-panel-header h2,
.setlist-header h2 {
  margin: 0;
}

.song-search,
.song-editor input,
.song-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0906;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.song-list {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow-y: auto;
}

.song-list-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.song-list-item.is-active {
  border-color: rgba(255, 216, 77, 0.75);
  background: rgba(255, 216, 77, 0.12);
}

.song-list-item span {
  color: var(--muted);
  font-size: 13px;
}

.song-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.song-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.song-tab.is-active {
  border-color: rgba(255, 216, 77, 0.62);
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
}

.song-editor,
.chord-viewer,
.setlist-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
}

[data-song-pane][hidden] {
  display: none !important;
}

#requestSongForm[hidden],
#eventShareBox[hidden] {
  display: none !important;
}

.song-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.song-editor label,
.chord-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.chord-toolbar {
  position: sticky;
  top: 72px;
  z-index: 2;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 6, 0.94);
}

.chord-toolbar input {
  accent-color: var(--gold);
}

.chord-lyrics-view {
  height: min(72vh, 760px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: #050504;
  line-height: 1.55;
}

.chord-song-title {
  margin-bottom: 22px;
}

.chord-song-title h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.55em;
}

.chord-song-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78em;
}

.chord-line {
  min-height: 2.7em;
}

.chord-line-empty {
  min-height: 1.35em;
}

.chord-word {
  display: inline-grid;
  min-width: 0.65em;
  margin-right: 0.12em;
  vertical-align: top;
}

.chord-name {
  min-height: 1.1em;
  color: var(--gold);
  font-size: 0.72em;
  font-weight: 900;
  line-height: 1;
}

.lyric-text {
  color: var(--text);
}

.setlist-items {
  display: grid;
  gap: 8px;
}

.setlist-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.setlist-library {
  padding: 12px;
  border-right: 1px solid rgba(255, 216, 77, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.setlist-library h3 {
  margin: 0 0 10px;
}

.setlist-list {
  display: grid;
  gap: 7px;
}

.setlist-list-item {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.setlist-list-item.is-active {
  border-color: rgba(255, 216, 77, 0.72);
  background: rgba(255, 216, 77, 0.1);
}

.setlist-list-item small {
  color: var(--muted);
}

.setlist-detail {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.setlist-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setlist-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.setlist-form-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0906;
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
}

.setlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setlist-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px 38px 52px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.setlist-item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.setlist-item strong,
.setlist-item small {
  display: block;
}

.setlist-item small {
  color: var(--muted);
}

.setlist-item button {
  min-height: 34px;
  border: 1px solid rgba(255, 216, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

body.performance-open {
  overflow: hidden;
}

.performance-mode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #050504;
  color: var(--text);
}

.performance-mode[hidden] {
  display: none !important;
}

.performance-topbar,
.performance-controls {
  background: rgba(12, 11, 8, 0.98);
  border-color: var(--line);
}

.performance-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}

.performance-song-info {
  min-width: 0;
  flex: 1;
  display: grid;
}

.performance-song-info strong,
.performance-song-info span,
.performance-next-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-song-info strong {
  font-size: 18px;
}

.performance-song-info span,
.performance-count,
.performance-next-title,
.performance-speed-control {
  color: var(--muted);
  font-size: 13px;
}

.performance-count {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.performance-icon-button,
.performance-round-button,
.performance-play-button,
.performance-transpose button,
.performance-save-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 216, 77, 0.3);
  background: rgba(255, 216, 77, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.performance-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.performance-lyrics {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px max(22px, calc((100vw - 860px) / 2)) 50vh;
  font-size: var(--performance-font-size, 28px);
  line-height: 1.6;
  touch-action: pan-y;
}

.performance-lyrics .chord-song-title h2 {
  font-size: 1.35em;
}

.performance-lyrics .chord-name {
  color: var(--gold);
}

.performance-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.performance-primary-controls,
.performance-tool-controls,
.performance-speed-control,
.performance-transpose {
  display: flex;
  align-items: center;
  gap: 8px;
}

.performance-round-button,
.performance-play-button {
  border-radius: 50%;
}

.performance-round-button {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.performance-play-button {
  width: 58px;
  height: 58px;
  background: var(--gold);
  color: #171205;
  font-size: 22px;
}

.performance-round-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.performance-center-controls {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.performance-speed-control input {
  min-width: 80px;
  flex: 1;
  accent-color: var(--gold);
}

.performance-speed-control output {
  min-width: 24px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.performance-transpose {
  padding: 4px;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 8px;
}

.performance-transpose button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  font-size: 22px;
}

.performance-transpose output {
  min-width: 48px;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}

.performance-save-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--gold);
}

@media (max-width: 760px) {
  .performance-topbar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .performance-lyrics {
    padding: 24px 16px 46vh;
    font-size: var(--performance-font-size, 24px);
  }

  .performance-controls {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .performance-primary-controls,
  .performance-tool-controls {
    justify-content: center;
  }

  .performance-center-controls {
    order: -1;
  }

  .performance-next-title {
    display: none;
  }

  .performance-round-button {
    width: 44px;
    height: 44px;
  }

  .performance-play-button {
    width: 52px;
    height: 52px;
  }

  .performance-tool-controls {
    flex-wrap: wrap;
  }

  .performance-save-button {
    min-height: 40px;
  }
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.queue-create-panel,
.queue-board,
.request-song-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.9);
}

.queue-create-panel,
.queue-board {
  padding: 18px;
}

.queue-event-library {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 216, 77, 0.18);
}

.queue-event-library h3 {
  margin: 0;
}

.queue-event-list {
  display: grid;
  gap: 7px;
  max-height: 280px;
  overflow-y: auto;
}

.queue-event-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.queue-event-item.is-active {
  border-color: rgba(255, 216, 77, 0.7);
  background: rgba(255, 216, 77, 0.1);
}

.queue-event-item span {
  color: var(--muted);
  font-size: 13px;
}

.queue-create-panel h2 {
  margin-top: 0;
}

.event-share-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.event-qr {
  width: 204px;
  min-height: 204px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.event-share-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090806;
  color: var(--text);
  padding: 10px;
}

.request-queue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.request-queue-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.request-queue-item > span {
  color: var(--gold);
  font-weight: 900;
}

.request-queue-item strong,
.request-queue-item small {
  display: block;
}

.request-queue-item small {
  color: var(--muted);
}

.request-queue-item button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
}

.request-queue-item.status-playing {
  border-color: rgba(91, 255, 149, 0.55);
}

.request-queue-item.status-done,
.request-queue-item.status-skipped {
  opacity: 0.62;
}

.request-song-page {
  min-height: 100vh;
  background: #080806;
}

.request-song-shell {
  width: min(620px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.request-song-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
}

.request-song-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.request-song-brand strong,
.request-song-brand span {
  display: block;
}

.request-song-brand strong {
  font-size: 22px;
}

.request-song-brand span {
  color: var(--muted);
}

.request-song-card {
  padding: 22px;
}

.request-song-card h1 {
  font-size: clamp(32px, 9vw, 52px);
}

.request-song-card > p {
  color: var(--muted);
}

.public-queue-summary {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.public-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 216, 77, 0.12);
}

.public-queue-item span {
  color: var(--gold);
}

.affiliate-page {
  background: #070806;
}

.affiliate-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.affiliate-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 6, 0.98), rgba(7, 8, 6, 0.72) 54%, rgba(7, 8, 6, 0.32));
  z-index: 1;
}

.affiliate-hero-media {
  position: absolute;
  inset: 0;
}

.affiliate-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.affiliate-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding: 92px 0 76px;
}

.affiliate-copy h1 {
  max-width: 680px;
}

.affiliate-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 248, 215, 0.84);
  font-size: 19px;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.affiliate-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.18);
}

.affiliate-summary div,
.affiliate-metrics div {
  padding: 18px;
  background: rgba(18, 17, 13, 0.88);
}

.affiliate-summary span,
.affiliate-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-summary strong,
.affiliate-metrics strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
  line-height: 1.15;
}

.affiliate-panel-section,
.affiliate-feed-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.affiliate-partner-tools {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: end;
}

.partner-heading h2,
.feed-side h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.partner-heading p,
.feed-side p {
  margin: 12px 0 0;
  color: var(--muted);
}

.partner-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.partner-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.partner-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0e0a;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.partner-status {
  grid-column: 2;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 13px;
}

.affiliate-feed-section {
  background: #0b0a07;
}

.affiliate-feed-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 480px);
  gap: 36px;
  align-items: start;
}

.feed-side {
  position: sticky;
  top: 96px;
}

.feed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.feed-filter button,
.affiliate-product-bar button,
.affiliate-nav button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feed-filter button {
  padding: 0 14px;
}

.feed-filter button.is-active {
  background: var(--gold);
  color: #171100;
}

.affiliate-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.18);
}

.affiliate-phone {
  position: relative;
}

.affiliate-feed {
  height: min(760px, calc(100vh - 112px));
  min-height: 620px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050504;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 216, 77, 0.55) rgba(255, 255, 255, 0.08);
}

.affiliate-card {
  position: relative;
  height: min(760px, calc(100vh - 112px));
  min-height: 620px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #090806;
}

.affiliate-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transform: scale(1.03);
}

.affiliate-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 58%);
}

.affiliate-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 6, 0.72);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.affiliate-card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 104px;
}

.affiliate-card-copy span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.affiliate-card-copy h3 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.affiliate-card-copy p {
  max-width: 92%;
  margin: 0;
  color: rgba(255, 248, 215, 0.84);
}

.affiliate-product-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 6, 0.88);
  backdrop-filter: blur(12px);
}

.affiliate-product-bar strong,
.affiliate-product-bar span {
  display: block;
}

.affiliate-product-bar strong {
  color: var(--gold);
  font-size: 18px;
}

.affiliate-product-bar span {
  color: var(--muted);
  font-size: 12px;
}

.affiliate-product-bar .button {
  min-height: 40px;
  padding: 0 14px;
}

.affiliate-product-bar button,
.affiliate-nav button {
  width: 42px;
  height: 42px;
  padding: 0;
}

.affiliate-nav {
  position: absolute;
  right: -58px;
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.affiliate-dashboard-page .section {
  padding-top: 56px;
}

.affiliate-dashboard-code {
  max-width: 860px;
  margin-bottom: 10px;
}

.affiliate-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.affiliate-report-card,
.affiliate-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.88);
}

.affiliate-report-card {
  padding: 18px;
}

.affiliate-report-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.affiliate-report-card strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.1;
}

.affiliate-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.affiliate-panel {
  padding: 20px;
}

.affiliate-panel h2 {
  margin: 0 0 8px;
  color: var(--gold);
}

.affiliate-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.affiliate-stack-form {
  display: grid;
  gap: 12px;
}

.affiliate-stack-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.affiliate-stack-form input,
.affiliate-stack-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 216, 77, 0.25);
  border-radius: 8px;
  background: #070706;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

.affiliate-report-table-panel {
  margin-top: 18px;
}

.affiliate-table-wrap {
  overflow-x: auto;
}

.affiliate-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text);
}

.affiliate-table th,
.affiliate-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 216, 77, 0.18);
  text-align: left;
  vertical-align: top;
}

.affiliate-table th {
  color: var(--gold);
  font-size: 13px;
}

.affiliate-table td {
  color: rgba(255, 248, 215, 0.86);
}

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

.admin-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.product-profile-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #ffffff;
  color: #161616;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.product-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 16px;
  border-right: 1px solid #ececec;
  background: #ffffff;
}

.product-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #111111;
  font-size: 26px;
  font-weight: 900;
}

.product-sidebar-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.product-search {
  display: block;
  margin-bottom: 14px;
}

.product-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.product-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f2;
  color: #111111;
  font: inherit;
  padding: 0 16px;
}

.product-side-nav {
  display: grid;
  gap: 4px;
}

.product-side-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: #161616;
  font-weight: 750;
}

.product-side-nav span {
  width: 32px;
  display: grid;
  place-items: center;
  color: #111111;
  font-size: 22px;
}

.product-side-nav a:hover,
.product-side-nav a.is-active {
  background: #f7f7f8;
}

.product-follow-box {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eeeeee;
  color: #606060;
  font-size: 14px;
}

.product-follow-box strong {
  color: #8a8a8a;
  font-size: 13px;
}

.product-follow-box a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  color: #222222;
  font-weight: 700;
}

.product-follow-box img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.product-profile-main {
  min-width: 0;
  padding: 24px 56px 56px;
}

.product-topbar {
  min-height: 46px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: #666666;
  font-size: 14px;
}

.product-avatar-link img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.product-profile-header {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 16px auto 28px;
}

.product-profile-photo {
  width: 168px;
  height: 168px;
  padding: 4px;
  border: 3px solid #22d3ee;
  border-radius: 999px;
  object-fit: cover;
}

.product-name-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.product-name-row h1 {
  margin: 0;
  color: #111111;
  font-size: 34px;
  line-height: 1.1;
}

.product-name-row span {
  color: #6f6f6f;
  font-size: 18px;
}

.product-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  color: #111111;
}

.product-profile-stats strong {
  font-size: 18px;
}

.product-profile-stats span {
  margin-left: 4px;
  font-weight: 500;
}

.product-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.product-pill,
.product-icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f2;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
}

.product-pill.primary {
  background: #111111;
  color: #ffffff;
}

.product-icon-button {
  width: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.product-profile-copy p {
  margin: 0;
  max-width: 680px;
  color: #333333;
}

.product-tabs {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid #e7e7e7;
}

.product-tabs > button {
  min-height: 50px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #737373;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.product-tabs > a {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 800;
}

.product-tabs > button.is-active {
  border-bottom-color: #111111;
  color: #111111;
}

.product-sort {
  justify-self: end;
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
}

.product-sort button {
  min-height: 34px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #ffffff;
  color: #777777;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.product-sort button.is-active {
  background: #f7f7f8;
  color: #111111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 22px 16px;
}

.product-tile {
  min-width: 0;
  color: #111111;
}

.product-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1f2;
  aspect-ratio: 3 / 4;
}

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

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.product-play,
.product-tag {
  position: absolute;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.product-play {
  left: 10px;
  bottom: 8px;
  font-weight: 800;
}

.product-tag {
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 12px;
}

.product-tile-copy {
  display: grid;
  gap: 2px;
  padding: 8px 2px 0;
}

.product-tile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.product-tile-copy span {
  color: #777777;
  font-size: 13px;
}

.product-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #dddddd;
  border-radius: 8px;
  color: #777777;
}

.product-profile-page {
  background: #080806;
  color: var(--text);
}

.product-sidebar {
  border-right-color: var(--line);
  background: #090806;
}

.product-sidebar-logo,
.product-name-row h1,
.product-profile-stats,
.product-tile,
.product-follow-box a {
  color: var(--text);
}

.product-search input {
  border: 1px solid var(--line);
  background: rgba(18, 17, 13, 0.94);
  color: var(--text);
}

.product-search input::placeholder,
.product-name-row span,
.product-profile-copy p,
.product-tile-copy span,
.product-follow-box,
.product-follow-box strong,
.product-topbar {
  color: var(--muted);
}

.product-side-nav a {
  color: rgba(255, 248, 215, 0.9);
}

.product-side-nav span,
.product-topbar a:hover,
.product-tabs > button.is-active,
.product-tile-copy strong {
  color: var(--gold);
}

.product-side-nav a:hover,
.product-side-nav a.is-active {
  background: rgba(255, 216, 77, 0.1);
}

.product-follow-box,
.product-tabs {
  border-color: var(--line);
}

.product-profile-photo {
  border-color: var(--gold);
  background: #050504;
}

.product-pill,
.product-icon-button,
.product-sort button {
  border: 1px solid var(--line);
  background: rgba(18, 17, 13, 0.86);
  color: var(--gold);
}

.product-pill.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ffe47a, #d49a16);
  color: #171100;
}

.product-tabs > button {
  color: var(--muted);
}

.product-tabs > button.is-active {
  border-bottom-color: var(--gold);
}

.product-tabs > a.is-active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.product-sort button.is-active {
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
  box-shadow: none;
}

.product-media {
  background: #111008;
  border: 1px solid rgba(255, 216, 77, 0.14);
}

.product-empty {
  border-color: var(--line);
  color: var(--muted);
}

.profile-photo-link {
  display: inline-grid;
  place-items: center;
}

.profile-page .product-icon-button {
  text-decoration: none;
}

.profile-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.profile-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.profile-status[data-tone="success"] {
  border-color: rgba(56, 245, 210, 0.26);
  color: #38f5d2;
}

.profile-status[data-tone="error"] {
  border-color: rgba(255, 79, 139, 0.36);
  color: #ff8cab;
}

.profile-photo-button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-photo-button:disabled {
  cursor: default;
}

.profile-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-edit-panel {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.profile-edit-panel[hidden] {
  display: none;
}

.profile-edit-panel label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-panel input,
.profile-edit-panel textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  padding: 10px 11px;
  outline: none;
}

.profile-edit-panel textarea {
  resize: vertical;
}

.profile-edit-panel input:focus,
.profile-edit-panel textarea:focus {
  border-color: var(--gold);
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-profile-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 8, 6, 0.72), #080806 420px),
    url("images/splash.png") center top / cover no-repeat fixed;
  color: var(--text);
}

.mobile-profile-shell {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 6, 0.84);
  border-left: 1px solid rgba(255, 216, 77, 0.16);
  border-right: 1px solid rgba(255, 216, 77, 0.16);
  backdrop-filter: blur(12px);
}

.mobile-profile-topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.mobile-profile-topbar strong {
  text-align: center;
  font-size: 18px;
}

.mobile-profile-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 17, 13, 0.78);
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
}

.mobile-profile-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 0 20px;
  text-align: center;
}

.mobile-profile-photo-link {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 999px;
  background: #050504;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mobile-profile-photo-link img {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
}

.mobile-profile-name h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1;
}

.mobile-profile-name span,
.mobile-profile-hero p {
  color: var(--muted);
}

.mobile-profile-hero p {
  max-width: 360px;
  margin: 0;
  font-size: 15px;
}

.mobile-profile-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.18);
}

.mobile-profile-stats strong {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  background: rgba(18, 17, 13, 0.9);
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
}

.mobile-profile-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mobile-profile-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.76fr 0.76fr;
  gap: 8px;
  margin-top: 6px;
}

.mobile-profile-actions .button {
  min-height: 42px;
  padding: 0 10px;
}

.mobile-profile-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.92);
  backdrop-filter: blur(12px);
}

.mobile-profile-tabs a {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.mobile-profile-tabs a.is-active {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.mobile-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-profile-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 8px;
  background: #050504;
}

.mobile-profile-tile.tall {
  grid-row: span 2;
}

.mobile-profile-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.9;
}

.mobile-profile-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.88));
}

.mobile-profile-tile span,
.mobile-profile-tile strong {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
}

.mobile-profile-tile span {
  bottom: 38px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-profile-tile strong {
  bottom: 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
}

.live-feed-section {
  background: #0b0a07;
  min-height: calc(100vh - 72px);
  padding: 18px 0 28px;
  scroll-margin-top: 82px;
}

.live-feed-section .container {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 118px);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.feed-toolbar strong,
.feed-toolbar span {
  display: block;
}

.feed-toolbar span {
  color: var(--muted);
  font-size: 14px;
}

.feed-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.highlight-block {
  margin-bottom: 28px;
}

.feed-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.feed-subheading h3 {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
}

.feed-subheading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.video-highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.highlight-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.highlight-card:hover,
.highlight-card:focus-visible {
  border-color: rgba(255, 216, 77, 0.8);
  outline: none;
}

.highlight-media {
  position: relative;
  aspect-ratio: 9 / 13;
  background: #000;
}

.highlight-media img,
.highlight-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.highlight-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold);
  font-weight: 900;
}

.highlight-info {
  padding: 10px;
}

.highlight-info strong,
.highlight-info span {
  display: block;
}

.highlight-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.video-feed {
  display: grid;
  gap: 18px;
}

.tiktok-layout {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
}

.tiktok-layout.has-comments-panel {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(260px, 340px);
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.tiktok-feed {
  display: block;
  max-width: 520px;
  height: min(700px, calc(100vh - 118px));
  height: min(700px, calc(100svh - 118px));
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.tiktok-layout.has-comments-panel .tiktok-feed {
  grid-column: 1;
  width: 100%;
  max-width: none;
}

.feed-nav {
  position: absolute;
  right: -64px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 17, 13, 0.92);
  color: var(--gold);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.feed-nav:hover,
.feed-nav:focus-visible {
  border-color: rgba(255, 216, 77, 0.8);
  outline: none;
}

.feed-nav-prev {
  top: calc(50% - 58px);
}

.feed-nav-next {
  top: calc(50% + 10px);
}

.tiktok-feed::-webkit-scrollbar {
  width: 8px;
}

.tiktok-feed::-webkit-scrollbar-track {
  background: #0b0a07;
}

.tiktok-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 216, 77, 0.45);
  border-radius: 99px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  contain: layout paint style;
}

.tiktok-feed .video-card {
  min-height: min(700px, calc(100vh - 118px));
  min-height: min(700px, calc(100svh - 118px));
  border: 0;
  border-bottom: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: 0;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.tiktok-feed .video-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 170px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.36) 45%,
    rgba(0, 0, 0, 0.72)
  );
  pointer-events: none;
}

.video-shell {
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;
}

.tiktok-feed .video-shell {
  height: min(700px, calc(100vh - 118px));
  height: min(700px, calc(100svh - 118px));
  aspect-ratio: auto;
}

.video-shell video,
.video-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tiktok-feed .video-shell video {
  position: relative;
  z-index: 0;
  background: #000;
  object-fit: contain;
  object-position: center top;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.video-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.24);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.video-start-overlay span {
  min-width: 104px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 216, 77, 0.58);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
}

.video-card.is-waiting-video .video-start-overlay {
  display: flex;
}

.video-shell video:fullscreen,
.video-shell video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  object-fit: contain;
}

.video-card:fullscreen,
.video-card:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #000;
}

.video-card:fullscreen .video-shell,
.video-card:-webkit-full-screen .video-shell {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}

.video-card:fullscreen video,
.video-card:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-card:fullscreen .video-control-bar,
.video-card:-webkit-full-screen .video-control-bar {
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 20;
}

.video-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.video-sound-toggle {
  display: none;
}

.video-control-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  min-height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(84px, 1fr) 38px 38px 38px 38px 38px 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 216, 77, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.45);
}

.video-control-button {
  width: 34px;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 216, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
  color: var(--gold);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.video-control-button-wide {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 16px;
}

.video-action-rail {
  position: absolute;
  right: 10px;
  bottom: 82px;
  z-index: 5;
  display: none !important;
  gap: 9px;
}

.video-action-button {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 216, 77, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  line-height: 1.1;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.video-profile-action {
  overflow: visible;
  text-decoration: none;
}

.video-profile-action img {
  width: 38px;
  height: 38px;
  display: block;
  border: 2px solid var(--gold);
  border-radius: 999px;
  object-fit: cover;
  background: #050504;
}

.video-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.video-action-icon {
  color: #fff4af;
  font-size: 20px;
  line-height: 1;
}

.video-action-button.is-liked {
  border-color: rgba(255, 216, 77, 0.9);
  background: rgba(255, 216, 77, 0.2);
}

.video-action-delete {
  border-color: rgba(255, 107, 107, 0.58);
  background: rgba(255, 107, 107, 0.14);
  color: #ffb8b8;
}

.video-action-delete .video-action-icon {
  color: #ffb8b8;
  font-size: 14px;
  font-weight: 900;
}

.video-action-delete[hidden] {
  display: none;
}

.video-action-rail [data-rail-like],
.video-action-rail [data-rail-comments],
.video-action-rail [data-rail-share],
.video-action-rail [aria-label="Like this clip"],
.video-action-rail [aria-label="Open comments"],
.video-action-rail [aria-label="Share this clip"] {
  display: none !important;
}

.video-control-button:hover,
.video-control-button:focus-visible,
.video-action-button:hover,
.video-action-button:focus-visible {
  border-color: rgba(255, 216, 77, 0.78);
  outline: none;
}

.video-control-button-delete {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.12);
  color: #ffb8b8;
  font-weight: 800;
  font-size: 12px;
}

.video-control-button[hidden] {
  display: none;
}

.video-control-button-delete:hover,
.video-control-button-delete:focus-visible {
  border-color: rgba(255, 107, 107, 0.88);
  color: #ffffff;
}

.video-control-button.is-liked,
.video-stat-action.is-liked {
  border-color: rgba(255, 216, 77, 0.88);
  background: rgba(255, 216, 77, 0.22);
  color: #fff4af;
}

.video-time {
  color: rgba(255, 248, 215, 0.9);
  font-size: 12px;
  white-space: nowrap;
}

.video-progress {
  width: 100%;
  min-width: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.video-meta {
  padding: 14px;
}

.tiktok-feed .video-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 2;
  max-width: calc(100% - 24px);
  margin: 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82), 0 1px 2px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.tiktok-feed .video-stats {
  pointer-events: auto;
}

.video-meta h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.tiktok-feed .video-meta h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tiktok-feed .video-meta p {
  overflow: hidden;
  max-width: 86%;
  color: rgba(255, 248, 215, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--gold);
  font-size: 13px;
}

.video-stat-profile {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #050504;
}

.video-stat-profile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-stat-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 216, 77, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
}

.comments-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.comments-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.comments-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 100%);
  max-height: min(76vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #0b0a07;
  color: var(--text);
  transform: translateX(-50%);
}

.comments-panel-docked {
  position: relative;
  inset: auto;
  z-index: 4;
  grid-column: 2;
  height: min(700px, calc(100vh - 118px));
  height: min(700px, calc(100svh - 118px));
}

.comments-panel-docked .comments-panel-backdrop {
  display: none;
}

.comments-panel-docked .comments-sheet {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transform: none;
}

.comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.comments-header strong,
.comments-header span {
  display: block;
}

.comments-header span {
  color: var(--muted);
  font-size: 13px;
}

.comments-header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
  color: var(--gold);
  font-size: 22px;
}

.comments-list {
  overflow-y: auto;
  padding: 12px 14px;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 216, 77, 0.16);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-item strong {
  color: var(--gold);
  font-size: 13px;
}

.comment-item time {
  flex: 0 0 auto;
  color: rgba(197, 185, 144, 0.86);
  font-size: 11px;
}

.comment-item p,
.comments-empty {
  margin: 4px 0 0;
  color: rgba(255, 248, 215, 0.86);
}

.comments-form {
  display: grid;
  gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.96);
}

.comments-form input,
.comments-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111008;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.comments-form button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
}

.comments-form input:disabled,
.comments-form textarea:disabled,
.comments-form input[readonly] {
  opacity: 0.74;
}

.comments-form textarea {
  resize: vertical;
}

@media (max-width: 900px) {
  .tiktok-layout.has-comments-panel {
    display: block;
    width: min(640px, 100%);
  }

  .tiktok-layout.has-comments-panel .tiktok-feed {
    width: auto;
    max-width: 520px;
  }

  .comments-panel-docked {
    position: fixed;
    inset: 0;
    z-index: 100;
    height: auto;
  }

  .comments-panel-docked .comments-panel-backdrop {
    display: block;
  }

  .comments-panel-docked .comments-sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(560px, 100%);
    height: auto;
    max-height: min(76vh, 720px);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
  }
}

.video-hint {
  display: block;
  width: 100%;
  color: rgba(255, 248, 215, 0.78);
  font-size: 12px;
}

.tiktok-feed .video-hint {
  display: none;
}

.feed-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
  padding: 24px;
}

.phone-shot {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #141006;
}

.step h3 {
  margin: 0 0 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta {
  background: linear-gradient(180deg, #17130b, #080806);
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cta-box h2 {
  margin: 0 0 8px;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 92px;
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--gold);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.contact-list {
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  color: var(--gold);
  font-weight: 700;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  aspect-ratio: 16 / 9;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.admin-page {
  min-height: calc(100vh - 72px);
  padding: 64px 0 96px;
  background:
    linear-gradient(180deg, rgba(255, 216, 77, 0.08), rgba(8, 8, 6, 0) 260px),
    var(--bg);
}

.admin-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.admin-heading h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.admin-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.admin-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.86);
  color: var(--muted);
}

.admin-status[data-tone="success"] {
  border-color: rgba(91, 255, 149, 0.35);
  color: #b8ffd1;
}

.admin-status[data-tone="error"] {
  border-color: rgba(255, 107, 107, 0.5);
  color: #ffb8b8;
}

.admin-panel,
.admin-metric,
.admin-message-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-panel {
  padding: 22px;
}

.admin-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 8px;
  background: rgba(7, 7, 6, 0.78);
}

.admin-auth-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-auth-tab.is-active {
  border-color: rgba(255, 216, 77, 0.65);
  background: rgba(255, 216, 77, 0.12);
  color: var(--gold);
}

.admin-upload-panel {
  grid-column: 1 / -1;
}

.admin-help {
  margin: -4px 0 16px;
  color: var(--muted);
}

.admin-panel h2,
.admin-topbar h2 {
  margin: 0 0 14px;
  color: var(--gold);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid rgba(255, 216, 77, 0.25);
  border-radius: 8px;
  background: #070706;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

.admin-form textarea {
  resize: vertical;
}

.upload-progress {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.upload-progress progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 77, 0.25);
  border-radius: 999px;
  background: #070706;
  accent-color: var(--gold);
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 13, 0.78);
}

.admin-topbar p {
  margin: 0;
  color: var(--muted);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-metric {
  padding: 18px;
}

.admin-metric span {
  display: block;
  color: var(--muted);
}

.admin-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.admin-two {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-message-card {
  padding: 14px;
}

.admin-message-card strong,
.admin-message-card span {
  display: block;
}

.admin-message-card p {
  margin: 6px 0 8px;
  color: var(--muted);
}

.admin-message-card span {
  color: var(--gold);
  font-size: 12px;
}

@media (max-width: 820px) {
  .product-profile-page {
    display: block;
    background: #080806;
  }

  .product-sidebar {
    position: static;
    height: auto;
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-sidebar-logo {
    margin-bottom: 0;
    font-size: 22px;
  }

  .product-search {
    margin-bottom: 0;
  }

  .product-side-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
  }

  .product-side-nav a {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .product-side-nav span {
    width: auto;
  }

  .product-follow-box {
    display: none;
  }

  .product-profile-main {
    padding: 12px 14px 32px;
  }

  .product-topbar {
    display: none;
  }

  .product-profile-header {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    margin: 10px auto 20px;
  }

  .product-profile-photo {
    width: 84px;
    height: 84px;
    border-width: 2px;
  }

  .product-name-row {
    gap: 8px;
  }

  .product-name-row h1 {
    font-size: 24px;
  }

  .product-name-row span {
    font-size: 14px;
  }

  .product-profile-stats {
    gap: 12px;
    font-size: 13px;
  }

  .product-profile-stats strong {
    font-size: 14px;
  }

  .product-profile-actions {
    gap: 8px;
  }

  .product-pill {
    min-height: 38px;
    padding: 0 14px;
  }

  .product-icon-button {
    width: 38px;
    min-height: 38px;
  }

  .product-profile-copy p {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .product-tabs {
    grid-template-columns: repeat(3, auto);
    overflow-x: auto;
    gap: 18px;
    margin-bottom: 16px;
  }

  .product-sort {
    grid-column: 1 / -1;
    justify-self: start;
    padding-bottom: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .product-tile-copy strong {
    font-size: 12px;
  }

  .product-tile-copy span {
    font-size: 11px;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .app-status-notice {
    order: 0;
    display: none;
  }

  #live-feed {
    order: 1;
    min-height: auto;
  }

  #live-feed .container {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  #live-feed .section-heading {
    order: 0;
    margin-bottom: 12px;
    display: none;
  }

  #live-feed .feed-toolbar {
    order: 1;
    display: none;
  }

  #live-feed .tiktok-layout {
    order: 0;
  }

  #live-feed .highlight-block {
    order: 3;
    margin-top: 24px;
    display: none;
  }

  .hero {
    order: 2;
  }

  #features {
    order: 3;
  }

  #creator {
    order: 4;
  }

  .cta {
    order: 5;
  }

  .nav {
    position: relative;
    min-height: 62px;
    padding: 8px 0;
    align-items: center;
    flex-direction: row;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    width: min(260px, calc(100vw - 32px));
    max-height: calc(100svh - 90px);
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 8, 6, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 216, 77, 0.08);
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 8, 6, 0.78), rgba(8, 8, 6, 0.98)),
      url("images/splash.png") top center / 430px auto no-repeat;
  }

  .hero-inner {
    padding-top: 280px;
  }

  .service-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(8, 8, 6, 0.78), rgba(8, 8, 6, 0.98)),
      url("images/splash.png") top center / 430px auto no-repeat;
  }

  .service-hero-inner {
    padding: 260px 0 42px;
  }

  .service-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .service-qr-card,
  .pricing-card,
  .service-tile,
  .digital-card-demo {
    padding: 18px;
  }

  .service-tile {
    min-height: auto;
  }

  .service-qr-mark {
    width: 136px;
    height: 136px;
  }

  .digital-card-demo {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .digital-card-logo {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }

  .digital-card-demo h3 {
    font-size: 24px;
  }

  .song-panel {
    position: static;
  }

  .song-list {
    max-height: 300px;
  }

  .song-tabs {
    overflow-x: auto;
  }

  .song-tab {
    flex: 0 0 auto;
  }

  .chord-toolbar {
    top: 62px;
  }

  .chord-lyrics-view {
    height: 68vh;
    padding: 16px;
  }

  .setlist-item {
    grid-template-columns: 30px minmax(0, 1fr) 34px 34px 48px;
    gap: 6px;
  }

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

  .setlist-library {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 216, 77, 0.18);
  }

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

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

  .request-queue-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .request-queue-item button {
    min-height: 38px;
  }

  .request-song-card {
    padding: 18px;
  }

  .hero-stats,
  .feature-grid,
  .service-hero-inner,
  .service-grid,
  .pricing-grid,
  .service-card-preview,
  .song-tools-layout,
  .song-form-grid,
  .showcase,
  .affiliate-hero-inner,
  .affiliate-partner-tools,
  .affiliate-feed-shell,
  .admin-metrics,
  .admin-grid,
  .admin-two {
    grid-template-columns: 1fr;
  }

  .affiliate-hero {
    min-height: auto;
  }

  .affiliate-hero::before {
    background: linear-gradient(180deg, rgba(7, 8, 6, 0.64), rgba(7, 8, 6, 0.98));
  }

  .affiliate-hero-inner {
    padding: 280px 0 42px;
  }

  .affiliate-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .affiliate-summary div {
    padding: 12px;
  }

  .affiliate-summary strong {
    font-size: 20px;
  }

  .affiliate-panel-section,
  .affiliate-feed-section {
    padding: 40px 0;
  }

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

  .partner-status {
    grid-column: auto;
  }

  .feed-side {
    position: static;
  }

  .affiliate-feed {
    height: 72vh;
    min-height: 560px;
  }

  .affiliate-card {
    height: 72vh;
    min-height: 560px;
  }

  .affiliate-nav {
    top: auto;
    right: calc(50% - 50px);
    bottom: -54px;
    grid-template-columns: repeat(2, 42px);
    transform: none;
  }

  .affiliate-feed-shell {
    gap: 22px;
    padding-bottom: 54px;
  }

  .affiliate-dashboard-grid,
  .affiliate-dashboard-panels {
    grid-template-columns: 1fr;
  }

  .affiliate-dashboard-page .section {
    padding-top: 32px;
  }

  .affiliate-report-card {
    padding: 14px;
  }

  .affiliate-report-card strong {
    font-size: 26px;
  }

  .affiliate-panel {
    padding: 16px;
  }

  .affiliate-card-copy {
    bottom: 112px;
  }

  .affiliate-product-bar {
    grid-template-columns: minmax(0, 1fr) auto 38px;
  }

  .affiliate-product-bar .button {
    padding: 0 12px;
  }

  .app-status-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tiktok-feed,
  .tiktok-feed .video-card,
  .tiktok-feed .video-shell {
    height: min(calc((100vw - 36px) * 1.78), calc(100vh - 88px));
    height: min(calc((100vw - 36px) * 1.78), calc(100dvh - 88px));
    height: var(--live-feed-mobile-height, min(calc((100vw - 36px) * 1.78), calc(100svh - 88px)));
    min-height: 560px;
    max-height: 760px;
  }

  .video-control-bar {
    grid-template-columns: 38px minmax(72px, 1fr) 38px 38px 42px;
    gap: 8px;
    left: 10px;
    right: 10px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-height: 50px;
    padding: 8px;
    overflow: hidden;
  }

  .video-control-button {
    width: 34px;
    min-width: 34px;
    height: 36px;
    padding: 0 6px;
    white-space: nowrap;
    font-size: 16px;
  }

  .video-control-button-wide {
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 16px;
  }

  .video-control-bar [data-video-like],
  .video-control-bar [data-video-comments],
  .video-control-bar [data-video-share] {
    display: none;
  }

  .video-action-rail {
    position: absolute;
    right: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 5;
    display: grid;
    gap: 9px;
  }

  .video-action-button {
    width: 46px;
    min-height: 48px;
    font-size: 9px;
  }

  .video-action-icon {
    font-size: 19px;
  }

  .video-time {
    display: none;
    font-size: 11px;
  }

  .video-control-bar [data-video-time],
  .video-control-bar [data-video-comments],
  .video-control-bar [aria-label="Save this video"],
  .video-control-bar [aria-label="ขยายเต็มจอ"],
  .video-control-bar [data-video-share] {
    display: none;
  }

  .tiktok-feed .video-meta {
    bottom: calc(88px + env(safe-area-inset-bottom));
    margin: 0 10px;
    right: 0;
    max-width: calc(100% - 20px);
    padding: 0;
  }

  .video-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-subheading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tiktok-layout {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .feed-nav {
    display: none;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #live-feed {
    padding-top: 6px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #live-feed .section-heading h2 {
    font-size: 28px;
  }

  #live-feed .section-heading p {
    display: none;
  }

  #live-feed .feed-toolbar {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  #live-feed .feed-toolbar .button {
    display: none;
  }

  #live-feed .feed-toolbar-actions .button.primary {
    display: inline-flex;
  }

  .tiktok-feed {
    background:
      linear-gradient(180deg, rgba(255, 216, 77, 0.08), rgba(0, 0, 0, 0.94)),
      #0f0d08;
  }

  .tiktok-feed .video-card,
  .tiktok-feed .video-shell {
    background:
      radial-gradient(circle at center, rgba(255, 216, 77, 0.08), rgba(0, 0, 0, 0.92) 58%),
      #0f0d08;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  main {
    display: flex;
    flex-direction: column;
    padding-top: 56px;
  }

  .app-status-notice {
    order: 0;
    display: none;
  }

  #live-feed {
    order: 1;
  }

  .hero {
    order: 2;
  }

  #features {
    order: 3;
  }

  #creator {
    order: 4;
  }

  .cta {
    order: 5;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
  }

  .nav {
    min-height: 56px;
    padding: 6px 0;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 18px;
  }

  #live-feed {
    min-height: calc(100dvh - 56px);
    padding: 4px 0;
  }

  #live-feed .container {
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #live-feed .section-heading,
  #live-feed .feed-toolbar,
  #live-feed .highlight-block {
    display: none;
  }

  #live-feed .tiktok-layout,
  #live-feed .tiktok-layout.has-comments-panel {
    width: min(100%, calc((100dvh - 82px) * 0.5625 + 360px));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(180px, calc((100dvh - 82px) * 0.5625)) minmax(220px, 340px);
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .tiktok-layout:not(.has-comments-panel) {
    grid-template-columns: minmax(180px, calc((100dvh - 82px) * 0.5625));
  }

  .tiktok-feed,
  .tiktok-feed .video-card,
  .tiktok-feed .video-shell,
  .comments-panel-docked {
    height: calc(100dvh - 82px);
    min-height: 0;
    max-height: none;
  }

  .tiktok-feed {
    width: auto;
    max-width: none;
  }

  .tiktok-feed .video-meta {
    bottom: 58px;
  }

  .video-control-bar {
    bottom: 8px;
    min-height: 42px;
    grid-template-columns: 34px minmax(72px, 1fr) 34px 34px 40px;
    padding: 6px;
  }

  .video-action-rail {
    right: 8px;
    bottom: 60px;
    gap: 7px;
  }

  .video-action-button {
    width: 40px;
    min-height: 40px;
  }

  .comments-panel-docked {
    position: relative;
    inset: auto;
    grid-column: auto;
    z-index: 4;
  }

  .comments-panel-docked .comments-panel-backdrop {
    display: none;
  }

  .comments-panel-docked .comments-sheet {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    max-height: none;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
    transform: none;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .video-control-bar {
    grid-template-columns: 38px minmax(72px, 1fr) 38px 38px 42px !important;
  }

  .video-control-bar [data-video-fullscreen] {
    display: grid !important;
  }

  .video-control-bar [data-video-comments],
  .video-action-rail [data-rail-fullscreen] {
    display: none !important;
  }
}
