:root {
  --bg: #060716;
  --bg-alt: #0c0f24;
  --accent: #ff4f9a;
  --accent-soft: rgba(255, 79, 154, 0.12);
  --accent-strong: #ffb347;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --danger: #f97373;
  --card-bg: rgba(9, 11, 32, 0.92);
  --border-soft: rgba(148, 163, 184, 0.22);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #151a38 0, #060716 55%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* HEADER / NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to right,
    rgba(6, 7, 22, 0.95),
    rgba(6, 7, 22, 0.7)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

/* logo obrázek */
.logo-image img {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-title span:first-child {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-title span:last-child {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #f97373 0, #b91c1c 40%, #020617 100%);
  color: #fee2e2 !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.6);
}

.nav-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fecaca;
  box-shadow: 0 0 12px rgba(254, 202, 202, 0.9);
}

/* LAYOUT */
main {
  flex: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

section {
  margin-bottom: 40px;
}

/* HERO / PLAYER */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.player-card {
  background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.7)
    ),
    radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 55%);
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 640px) {
  .player-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cover-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0, #1f2937, #020617);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.cover-main {
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease-out, filter 0.35s ease-out;
}

.cover-wrap:hover .cover-main {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cover-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

.player-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.player-text-top span.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.player-text-top h1 {
  margin: 8px 0 4px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.1;
}

.player-text-top h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.player-text-extra {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.player-controls {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* HLAVNÍ TLAČÍTKA – povolíme zalomení, aby nic nelezlo ven */
/* TLAČÍTKA – správné chování na desktopu i mobilu */
.player-main-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;               /* DŘÍVE bylo nowrap – teď se mohou zalomit */
}

/* Centrování textů v tlačítkách – hlavně Apple Music */
.player-main-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px !important;
  padding-right: 16px !important;
  white-space: nowrap;
  max-width: 100%;
}

/* Mobil – tlačítka 2 v řádku (původní chování) */
@media (max-width: 640px) {
  .player-main-controls .btn {
    flex: 1 1 calc(50% - 12px);
    text-align: center;
  }
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap; /* text zůstane na jednom řádku */
}

.btn-primary {
  background: linear-gradient(135deg, #ff4f9a, #ffb347);
  color: #111827;
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(248, 113, 113, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  transform: translateY(-1px);
}

.vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #020617;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.45);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #020617;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.45);
  cursor: pointer;
}

.player-status {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.stay s- ?? {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.86);
}

/* SIDE PANEL / INFO */
.side-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 16px 18px 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.side-header h3 {
  margin: 0;
  font-size: 15px;
}

.side-tagline {
  font-size: 13px;
  color: var(--muted);
}

.side-info-title {
  margin-top: 2px;        /* bylo 4px › o 50 % méně */
  margin-bottom: 1px;     /* bylo 2px › o 50 % méně */
  font-size: 16px;
}

.track-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;      /* jemně zmenšená výška řádku */
  margin-top: 1px;        /* bylo 2px */
  margin-bottom: 4px;     /* bylo 8px › o 50 % méně */
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.about-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* HISTORY SECTION */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* místo baseline – ať jsou ikony hezky ve výšce nadpisu */
  margin-bottom: 14px;
  gap: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 17px;
}

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

#historyCount {
  display: none;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.history-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 8px 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  gap: 8px;
  align-items: center;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65);
  border-color: rgba(248, 113, 113, 0.6);
  background: radial-gradient(
      circle at 0 0,
      rgba(248, 113, 113, 0.2),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
}

.history-cover {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.history-info {
  min-width: 0;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}

.history-artist {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}

.history-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.history-card--link {
  cursor: pointer;
}

.history-card--link .history-title {
  text-decoration: underline;
  text-decoration-color: rgba(248, 113, 113, 0.8);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.history-card--link:hover .history-title {
  text-decoration-thickness: 2px;
}

/* TWO-COL CONTENT */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 18px 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

.card li {
  margin-bottom: 4px;
}

/* kontaktní tlačítka pod textem – menší odsazení nahoru */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1px;         /* dřív 8px */
}

.badge-link {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-link:hover {
  color: var(--text);
  border-color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(6, 7, 22, 0.98);
  padding: 12px 16px 16px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-inner span {
  white-space: nowrap;
}

/* RESPONSIVE ÚPRAVY */
@media (max-width: 900px) {
  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .player-card {
    padding: 16px 14px 16px;
  }
  .side-card {
    padding: 14px 14px 16px;
  }
  .container {
    padding-inline: 14px;
  }

  .player-main-controls {
    justify-content: center;
  }

  .player-main-controls .btn {
    flex: 1 1 120px;
    text-align: center;
  }
}
/* Sociální sítě – zmenšit mezery */
.side-social-heading {
  margin: 4px 0 0;         /* dřív 8px 0 2px nebo default */
  font-size: 14px;
  font-weight: 600;
}

.side-social-text {
  margin: 2px 0 4px;       /* malé vertikální mezery */
}
.side-share-btn {
  margin-top: 10px;
  align-self: flex-start;
}

@media (max-width: 880px) {
  .side-share-btn {
    width: 100%;
    justify-content: center;
  }
}
.pill-share {
  cursor: pointer;
  border-color: rgba(248, 113, 113, 0.7);
  background: radial-gradient(circle at 0 0, rgba(248,113,113,0.16), rgba(15,23,42,0.95));
  color: var(--text);
}

.pill-share:hover {
  background: radial-gradient(circle at 0 0, rgba(248,113,113,0.28), rgba(15,23,42,0.98));
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.55);
}
/* Player – zarovnání textů u aktuální a další skladby */
.player-text-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Malý label "Teď na Retro DJ Rádiu" + "Další skladbou bude" */
.player-text-top .label,
.next-track-main .label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #9ca3af);
  opacity: 0.9;
}

/* Aktuální skladba – title + artist */
#trackTitle {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

#trackArtist {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--muted, #9ca3af);
}

/* Blok s další skladbou – těsně pod aktuální */
.next-track-main {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

/* Další skladba – stejné velikosti jako aktuální */
#nextTrackTitleMain {
  margin: 4px 0 0;
  font-size: 24px;      /* stejná jako #trackTitle */
  line-height: 1.2;
  font-weight: 600;
}

#nextTrackArtistMain {
  margin: 0;
  font-size: 15px;      /* stejná jako #trackArtist */
  color: var(--muted, #9ca3af);
}

/* ikony u „Nedávno hrálo“ */
.history-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
}

/* odkazy – sociální sítě */
.history-icons a {
  color: white;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

/* share button – chovej se jako ikonový odkaz */
.history-icons .pill-share-icon {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: white;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.history-icons a:hover,
.history-icons .pill-share-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.history-icons .pill-share-icon i {
  font-size: 18px;
}

