/* === RESET (from base.css, simplified) === */
*,
*:before,
*:after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Roboto, Arial, "Helvetica Neue", sans-serif;
  background: #121212; /* Use your preferred body bg */
  color: #e0e0e0;      /* Text color: light on dark */
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 0;
}
ol, ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* Selection color for dark bg */
::selection {
  background: #222;
  color: #fff;
}

/* === TYPOGRAPHY (from base.css, harmonized) === */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 400;
  color: #fff;
  margin-top: 0;
  margin-bottom: .5em;
  line-height: 1.2;
}
h1 { font-size: 2.1em; }
h2 { font-size: 1.36em; }
h3 { font-size: 1.13em; }
h4 { font-size: .99em; }
h5 { font-size: .94em; }
h6 { font-size: .81em; }
p {
  margin-bottom: 1.5em;
  color: #ccc;
  line-height: 1.7;
  font-size: 1em;
}
span {
  font-size: 0.85em;
  display: inline-block;
}
strong { font-weight: 600; }
em { font-style: italic; }

/* === LAYOUT/UTILITY === */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* === ALBUM INFO === */
.album-info {
  text-align: center;
  margin-top: 60px;
}
.album-info h1 {
  font-size: 2rem;
  margin: 0;
}
.album-info p {
  font-size: 1.2rem;
  margin: 10px 0 20px;
}
.album-info img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border: 3px solid #333;
  border-radius: 4px;
}

/* === PLAYER CONTAINER === */
.player-container {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1em;
  width: 100%;
  max-width: 500px;
  margin: 2em auto;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  font-family: inherit;
}

/* === AUDIO CONTROLS === */
.audio-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}
audio {
  width: 100%;
  outline: none;
}
audio::-webkit-media-controls-panel {
  background-color: #333 !important;
  color: #fff !important;
}
audio::-webkit-media-controls-enclosure {
  background-color: #333 !important;
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-seek-back-button,
audio::-webkit-media-controls-seek-forward-button,
audio::-webkit-media-controls-fullscreen-button,
audio::-webkit-media-controls-volume-slider {
  filter: invert(100%);
}
audio::-webkit-media-controls-volume-control-container,
audio::-webkit-media-controls-volume-control-background {
  background-color: transparent !important;
}

/* === PLAYLIST === */
ul.playlist, .playlist {
  padding: 0;
  margin: 0 0 1.5em 0;
}
ul.playlist li, .playlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4em 0.6em;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background 0.2s;
}
ul.playlist li:hover, .playlist li:hover {
  background: #3a3a3a;
}
ul.playlist li.active, .playlist li.active {
  background: #4a4a4a;
  font-weight: bold;
}

/* Track info for playlist rows */
.track-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.track-title {
  flex: 1;
  font-weight: normal;
  color: #ababab;
}
.track-title em, .track-title i {
  font-style: italic !important;
}
.track-duration {
  color: #bbb;
  font-size: 0.9em;
  text-align: right;
  white-space: nowrap;
  padding-left: 0em;
}

.nomaster {
  margin-bottom: 0 !important;
  font-style: italic;
  color: #ababab !important;
}

/* === PLAYLIST GROUP/TOTAL === */
.playlist-group {
  margin-top: 2em;
}
.playlist-group h3 {
  margin-bottom: 0.5em;
}
.playlist-total,
#group1-time,
#group2-time,
#group3-time,
#group4-time,
#extra-time,
#grand-total {
  text-align: right;
  margin-top: 1em;
  font-size: 0.95rem;
  font-weight: bold;
  padding-top: 0.5em;
}

/* === DISCLAIMER === */
.disclaimer {
  margin: 30px auto;
  text-align: center;
  width: 90%;
  max-width: 600px;
  color: #ccc;
  font-size: 1rem;
}
.disclaimer p {
  margin: 0;
  line-height: 1.5;
}
.list-inline-item a:hover img {
  filter: brightness(1) !important;
}

/* === REDEEM FORM / DOWNLOAD SECTION === */
.redeem-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.redeem-container h2 {
  color: #fff;
  font-size: 2em;
  margin-bottom: 0.5em;
  text-align: center;
  margin-top: 0.2em;
}
.redeem-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  background: #1a1a1a;
  padding: 2em 2.5em;
  border-radius: 1em;
  box-shadow: 0 2px 16px #000a;
}
.redeem-form label {
  color: #e0e0e0;
  font-size: 1em;
  margin-bottom: -0.5em;
  margin-top: 1em;
  font-weight: 500;
}
.redeem-form input[type="text"],
.redeem-form input[type="email"],
.redeem-form select {
  padding: 0.8em 1em;
  border-radius: 0.5em;
  border: 1px solid #333;
  background: #18191d;
  color: #fafafa;
  font-size: 1em;
}
.redeem-form input[type="text"]:focus,
.redeem-form input[type="email"]:focus,
.redeem-form select:focus {
  outline: none;
  border-color: #3fffa8;
}
.msg, .err {
  width: 100%;
  margin: 2em auto 0 auto;
  text-align: center;
  padding: 1em;
  border-radius: 0.6em;
  box-sizing: border-box;
}
.msg {
  background: #1e4620;
  color: #c4f4cc;
  border: 1px solid #48ff91;
}
.err {
  background: #31151a;
  color: #ff9d9d;
  border: 1px solid #ff2a6d;
}

@media (max-width: 500px) {
  .redeem-form {
    padding: 1.2em 0.8em;
    max-width: 95vw;
  }
  .redeem-container h2 {
    font-size: 1.4em;
  }
}

/* === BUTTONS === */
.redeem-form button,
.download-btn {
  width: 100%;
  margin-top: 1.5em;
  padding: 0.9em 0;
  border-radius: 0.5em;
  border: none;
  background: linear-gradient(90deg, #22d37c 0%, #1cb5e0 100%);
  color: #fff;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px #13c07e55;
  transition: background 0.2s, transform 0.1s;
  display: block;
}
.redeem-form button:hover,
.download-btn:hover {
  background: linear-gradient(90deg, #1cb5e0 0%, #22d37c 100%);
  transform: translateY(-2px) scale(1.02);
}

/* === DOWNLOAD SECTION === */
.download-section {
  width: 350px;
  margin: 2em auto 0 auto;
  text-align: center;
}
.download-section label,
.download-section select {
  font-size: 1em;
  margin-bottom: 1em;
}
.download-section select {
  padding: 0.7em;
  border-radius: 0.3em;
  margin-right: 1em;
  border: 1px solid #ccc;
}
input[type="text"], input[type="email"] {
  background: #191919;
  color: #fff;
}
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
  box-shadow: 0 0 0 1000px #191919 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #191919 inset !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* === INPUT GROUP FOR FORMAT CHOICE === */
.input-group {
  background: #222;
  border-radius: 18px;
  padding: 1.1em 1.2em;
  margin-bottom: 1.2em;
  margin-top: 0.3em;
  box-shadow: 0 4px 24px #0005;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.3em;
}
.input-group label.choose-label {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  text-align: right;
  padding-top: 0.4em;
}
.input-group select {
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 0.55em 1.5em 0.55em 1em;
  font-size: 1.09em;
  border: none;
  box-shadow: 0 1px 3px #0002;
  outline: none;
  min-width: 120px;
  max-width: 180px;
  margin: 0;
  text-align: left;
}

/* === CHECKBOXES & CONSENT === */
input[type="checkbox"] {
  width: 1.3em;
  height: 1.3em;
  accent-color: #22d37c;
  vertical-align: middle;
  margin-right: 0.5em;
}
.email-agree-group {
  margin: 0.7em 0 1.1em 0;
}
.email-agree-label {
  display: inline;
  font-size: 1.1em;
}
.terms-link {
  color: #32fff6;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.terms-link:hover,
.terms-link:focus {
  color: #22d37c;
}

/* === MODAL (TERMS) === */
.terms-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #181A20;
  color: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.8);
  padding: 2.5em 2em;
  max-width: 500px;
  width: 90%;
  z-index: 9999;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -55%);}
  to   { opacity: 1; transform: translate(-50%, -50%);}
}
.terms-modal h3 {
  margin-top: 0;
  color: #3fffa8;
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 1px;
}
.terms-modal p,
.terms-modal ul {
  font-size: 1.05em;
  color: #d0d0d0;
  line-height: 1.6;
}
.terms-modal a {
  color: #3fffa8;
  text-decoration: underline;
  transition: color 0.2s;
}
.terms-modal a:hover,
.terms-modal a:focus {
  color: #22d37c;
}
.close-terms-btn {
  margin-top: 1.5em;
  padding: 0.6em 1.6em;
  background: linear-gradient(90deg, #22d37c 0%, #32fff6 100%);
  color: #101010;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px #2228;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}
.close-terms-btn:hover,
.close-terms-btn:focus {
  background: linear-gradient(90deg, #32fff6 0%, #22d37c 100%);
  color: #050505;
}
