:root {
  color-scheme: light;
  --ink: #201c18;
  --muted: #70665c;
  --line: #ded7cc;
  --paper: #fffdf8;
  --soft: #f5efe5;
  --accent: #9a1f28;
  --accent-strong: #6d1420;
  --green: #2c6d58;
  --blue: #315f85;
  --gold: #a36b1d;
  --shadow: 0 10px 28px rgba(58, 43, 26, .08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px);
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand picture {
  display: block;
}

.brand-logo {
  width: min(360px, 42vw);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-form input,
.search-form button {
  height: 42px;
  border: 1px solid var(--line);
  font: inherit;
}

.search-form input {
  width: 100%;
  padding: 0 12px;
  background: #fff;
}

.search-form button,
.button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.search-form button:hover,
.button:hover {
  background: var(--accent-strong);
  color: #fff;
}

.nav-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-inner a {
  padding: 7px 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-inner a:hover,
.nav-inner a.is-active {
  border-color: var(--line);
  background: #fff;
  color: var(--accent);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page-title {
  margin: 0 0 18px;
  font: 700 clamp(1.8rem, 4vw, 3rem) Georgia, serif;
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  max-width: 760px;
  margin: -8px 0 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  align-items: start;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section {
  margin-top: 30px;
}

.ad-slot {
  margin: 24px 0;
  text-align: center;
  overflow: hidden;
}

.ad-slot .adsbygoogle {
  max-width: 100%;
}

.ad-slim {
  margin: 18px 0 24px;
}

.lyrics-sheet .ad-slot {
  margin: 10px 0 26px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.card-body {
  padding: 16px;
}

.media-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  align-items: center;
}

.cover {
  width: 82px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
}

.title-link {
  display: block;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: .92rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: #fff;
}

.list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: 0;
}

.chart-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.chart-panel {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.chart-panel-head {
  min-height: 58px;
  padding: 14px;
  background: var(--soft);
  border-top: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-panel-head h2 {
  margin: 0;
  font: 700 1.25rem Georgia, serif;
}

.chart-list {
  border: 0;
}

.chart-list li {
  align-items: start;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  text-decoration: none;
}

.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.album {
  border-top: 3px solid var(--accent);
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.album-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background: var(--soft);
}

.album h2 {
  margin: 0;
  font: 700 1.25rem Georgia, serif;
}

.song-list {
  margin: 0;
  padding: 8px 14px 14px;
  list-style-position: inside;
}

.song-list li {
  margin: 4px 0;
}

.lyrics-sheet {
  max-width: 1120px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 34px);
  border-radius: 8px;
}

.lyrics-layout-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 430px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.lyrics-text {
  font: 1.08rem/1.68 Georgia, serif;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lyrics-video {
  position: sticky;
  top: 24px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: var(--ink);
  border: 1px solid var(--line);
}

.lyrics-video iframe,
.youtube-lite,
.youtube-lite img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-lite {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.youtube-lite img {
  object-fit: cover;
  opacity: .82;
}

.youtube-play {
  position: absolute;
  inset: auto 20px 18px 20px;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(154, 31, 40, .94);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.youtube-lite:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.empty {
  border: 1px dashed var(--line);
  background: #fff;
  padding: 24px;
  color: var(--muted);
}

.pager {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 16px 40px;
  text-align: center;
}

@media (max-width: 820px) {
  .lyrics-layout-video {
    display: block;
  }

  .lyrics-video {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .wrap,
  .header-inner,
  .nav-inner {
    width: min(100% - 24px, 1180px);
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .chart-overview {
    grid-template-columns: 1fr;
  }

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

  .search-form button {
    width: 100%;
  }

  .brand-logo {
    width: 74px;
    max-height: 74px;
  }

  .media-card,
  .album-head {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cover {
    width: 70px;
  }

  .list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

}
.admin-tools {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 14px;
  margin: 0 0 24px;
}

.admin-tools h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.admin-message {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
}

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

.admin-youtube-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .9rem;
}

.admin-youtube-form input[type="text"] {
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font: inherit;
  background: #fff;
}

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

.button-secondary {
  background: var(--ink);
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
