/* === CSS Custom Properties === */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-card: #2e2e2e;
  --bg-input: #333;
  --border-color: #444;
  --border-highlight: #666;
  --accent-gold: #ffc266;
  --accent-gold-dim: #cc9a4f;
  --text-gold-muted: #d4b87a;
  --text-light: #ccc;
  --progress-bg: #555;
  --white: #f0f0f0;
  --font-family: 'Outfit', sans-serif;
  --font-logo: 'Space Grotesk', sans-serif;
  --transition-speed: 0.2s;
  --nav-height: 56px;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
}

/* === Screen Reader Only === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

/* === Navigation === */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 2000;
  border-bottom: 1px solid var(--border-color);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 34px;
  padding-right: 2px;
}

.logo-bar {
  display: block;
  width: 5px;
  border-radius: 3px;
}

.logo-bar-red {
  height: 30px;
  background-color: #e84a27;
  align-self: flex-start;
}

.logo-bar-cyan {
  height: 20px;
  background-color: #00d4ff;
  align-self: flex-end;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-hot {
  color: #e84a27;
}

.logo-n {
  color: #555;
  font-size: 12px;
  font-weight: 500;
  margin: 0 1px;
}

.logo-tasty {
  color: #00d4ff;
}

.logo-music {
  color: #666;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-left: 5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-speed) ease;
}

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

/* === Hero Section === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 48px) 32px 80px;
  background: radial-gradient(ellipse at 50% 30%, #2a2520 0%, var(--bg-primary) 70%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 900px;
  width: 100%;
}

.hero-album-art {
  width: 380px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 194, 102, 0.08);
}

.hero-text {
  flex: 1;
}

.hero-artist {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

.hero-album {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-gold-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 36px;
  opacity: 0.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: #ffce80;
  transform: translateY(-1px);
}

/* === Player Section === */
.player-section {
  padding: 48px 24px 60px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.player-ctn {
  max-width: 700px;
  margin: 0 auto;
  position: sticky;
  top: var(--nav-height);
  z-index: 1000;
  background-color: var(--bg-secondary);
  padding-bottom: 8px;
}

.infos-ctn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  gap: 16px;
}

.infos-ctn > div {
  color: var(--accent-gold);
}

.timer, .duration {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
  color: var(--text-gold-muted);
}

.title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  flex: 1;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-gold);
}

#myProgress {
  width: 92%;
  max-width: 640px;
  margin: 14px auto;
  background-color: var(--progress-bg);
  cursor: pointer;
  border-radius: 4px;
  height: 6px;
  transition: height 0.1s ease;
}

#myProgress:hover {
  height: 10px;
}

#myBar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: 4px;
  transition: width 0.15s linear;
}

/* === Player Buttons === */
.btn-ctn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 20px;
}

.btn-action,
.btn-play,
.btn-mute {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  color: var(--accent-gold);
  border-radius: 50%;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover,
.btn-action:focus,
.btn-play:hover,
.btn-play:focus,
.btn-mute:hover,
.btn-mute:focus {
  background-color: rgba(255, 194, 102, 0.1);
  transform: scale(1.1);
}

.btn-action:focus-visible,
.btn-play:focus-visible,
.btn-mute:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.fas {
  color: var(--accent-gold);
  font-size: 20px;
}

/* === Playlist === */
.playlist-ctn {
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  padding-top: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.playlist-track-ctn {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  margin-top: 4px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.playlist-track-ctn:hover {
  background-color: #383838;
  border-color: var(--border-color);
}

.playlist-track-ctn > div {
  margin: 10px 14px;
}

.playlist-info-track {
  flex: 1;
}

.playlist-info-track,
.playlist-duration {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 15px;
  pointer-events: none;
  transition: color var(--transition-speed) ease;
}

.playlist-btn-play {
  pointer-events: none;
  padding: 6px 0;
  min-width: 20px;
  text-align: center;
}

.active-track {
  background-color: #383838;
  border-color: var(--accent-gold) !important;
}

.active-track > .playlist-info-track,
.active-track > .playlist-duration,
.active-track > .playlist-btn-play {
  color: var(--accent-gold);
  font-weight: 700;
}

/* === Buy Section === */
.buy-section {
  padding: 80px 24px;
  background-color: var(--bg-primary);
}

.buy-subtitle,
.licensing-subtitle,
.signup-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-top: -20px;
  margin-bottom: 48px;
  opacity: 0.7;
}

.buy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.buy-card {
  background-color: var(--bg-card);
  padding: 36px 28px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.buy-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 24px rgba(255, 194, 102, 0.1);
}

.buy-card h3 {
  font-size: 18px;
  color: var(--accent-gold);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.buy-album-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  opacity: 0.6;
}

.track-picker {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-family);
  margin-bottom: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ccc' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.track-picker:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.buy-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
  line-height: 1;
}

.buy-format {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
  margin-top: auto;
  opacity: 0.5;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  letter-spacing: 0.5px;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.buy-btn:hover:not(:disabled),
.buy-btn:focus:not(:disabled) {
  background-color: #ffce80;
  transform: translateY(-1px);
}

.buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.redownload-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.6;
}

/* === Licensing Section === */
.licensing-section {
  padding: 80px 24px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.licensing-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gold-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-family);
  line-height: 1.5;
  transition: border-color var(--transition-speed) ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #777;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  letter-spacing: 0.5px;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.form-submit-btn:hover,
.form-submit-btn:focus {
  background-color: #ffce80;
  transform: translateY(-1px);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent-gold);
  min-height: 20px;
}

/* === Email Signup Section === */
.signup-section {
  padding: 64px 24px;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.email-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-family);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition-speed) ease;
}

.email-form input[type="email"]::placeholder {
  color: #777;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent-gold);
  outline: none;
}

/* === About Section === */
.about-section {
  padding: 80px 24px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
}

.about-card h3 {
  font-size: 20px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  opacity: 0.85;
}

/* === Listen / Distribution Links Section === */
.listen-section {
  padding: 80px 24px;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  color: var(--text-light);
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.platform-link:hover,
.platform-link:focus {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.platform-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.platform-link i {
  font-size: 20px;
}

/* === Footer === */
.site-footer {
  padding: 48px 24px;
  background-color: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-social a {
  color: var(--text-light);
  font-size: 24px;
  transition: color var(--transition-speed) ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: var(--accent-gold);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer-contact a {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
  opacity: 0.4;
}

/* === Focus Indicators (global) === */
*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* === Media Queries === */

/* Tablet and below */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero-album-art {
    width: 260px;
  }

  .hero-artist {
    font-size: 42px;
  }

  .hero-album {
    font-size: 18px;
  }

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

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

  .email-form {
    flex-direction: column;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(20, 20, 20, 0.98);
    padding: 16px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-links a {
    font-size: 15px;
    padding: 10px 0;
  }

  .title {
    font-size: 14px;
    max-width: 160px;
  }

  .section-title {
    font-size: 24px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero-section {
    padding-bottom: 48px;
  }

  .hero-album-art {
    width: 200px;
  }

  .hero-artist {
    font-size: 34px;
  }

  .hero-album {
    font-size: 16px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .btn-action,
  .btn-play,
  .btn-mute {
    padding: 14px 16px;
  }

  .fas {
    font-size: 22px;
  }

  .playlist-info-track {
    font-size: 14px;
  }

  .playlist-duration {
    font-size: 13px;
  }

  .platform-link {
    padding: 12px 20px;
    font-size: 14px;
  }

  .buy-card {
    padding: 28px 20px;
  }
}

/* Large mobile - increase touch targets */
@media (max-device-width: 700px) and (orientation: portrait) {
  .btn-action,
  .btn-play,
  .btn-mute {
    padding: 18px 20px;
  }

  .fas {
    font-size: 28px;
  }

  .playlist-track-ctn {
    padding: 10px;
    margin: 6px 0;
  }

  .playlist-info-track {
    font-size: 18px;
    line-height: 1.3;
  }

  .playlist-duration {
    font-size: 15px;
  }

  .playlist-ctn {
    max-height: calc(100vh - 280px);
    padding-top: 1rem;
  }

  .timer, .duration {
    font-size: 16px;
  }

  .title {
    font-size: 18px;
  }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  .playlist-track-ctn {
    min-height: 56px;
  }
}
