@import url("https://fonts.googleapis.com/css?family=Playfair+Display:900");
@import url("https://fonts.googleapis.com/css?family=Montserrat:500,700|Playfair+Display:900");
*,
*:before,
*:after {
  box-sizing: inherit;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

svg:not(:root) {
  overflow: hidden;
}

body {
  background: #ECEFFF url(./texture.png) repeat;
  color: #071A2D;
  font-family: "Montserrat", sans-serif;
}

a {
  color: #C1A367;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
a:hover {
  color: #ae8c47;
}
a:focus {
  outline: none;
}
a:active, a:focus {
  color: #ae8c47;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  transition: fill 0.3s ease-in-out;
}
a .icon {
  fill: #C1A367;
}
a:hover .icon {
  fill: #ae8c47;
}

.container {
  margin: 0 auto;
  padding: 1em;
  max-width: 1100px;
}

/* ── Playlist ── */
.playlist {
  margin-bottom: 2em;
}

.playlist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75em;
}

.playlist__title {
  font-family: "Playfair Display", serif;
  font-size: 1.2em;
  letter-spacing: 0.05em;
}

.playlist__count {
  font-size: 0.75em;
  color: #C1A367;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.playlist__tracks {
  display: flex;
  gap: 1.1em;
  overflow-x: auto;
  padding-bottom: 0.5em;
  scrollbar-width: thin;
  scrollbar-color: #C1A367 transparent;
}

.playlist__tracks::-webkit-scrollbar {
  height: 4px;
}
.playlist__tracks::-webkit-scrollbar-thumb {
  background: #C1A367;
  border-radius: 2px;
}

.track-card {
  flex: 0 0 140px;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.75em;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  user-select: none;
}

.track-card:hover {
  background: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.track-card.is-selected {
  border-color: #C1A367;
  background: rgba(193,163,103,0.12);
}

.track-card.is-playing {
  border-color: #C1A367;
  background: rgba(193,163,103,0.2);
}

.track-card__thumb {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  margin-bottom: 0.6em;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.08);
}

.track-card__thumb--empty {
  background-image: none;
}

.track-card__num {
  font-size: 0.65em;
  color: #C1A367;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.4em;
}

.track-card__title {
  font-family: "Playfair Display", serif;
  font-size: 0.85em;
  line-height: 1.3;
  margin: 0 0 0.25em;
  color: #071A2D;
}

.track-card__label {
  font-size: 0.65em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.track-card__playing-indicator {
  display: none;
  margin-top: 0.5em;
}

.track-card.is-playing .track-card__playing-indicator {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}

.track-card__playing-indicator span {
  display: block;
  width: 3px;
  background: #C1A367;
  border-radius: 2px;
  animation: equalizer 0.8s ease-in-out infinite alternate;
}
.track-card__playing-indicator span:nth-child(1) { height: 6px; animation-delay: 0s; }
.track-card__playing-indicator span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.track-card__playing-indicator span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.track-card__playing-indicator span:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes equalizer {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* ── Navigation buttons ── */
.media__nav {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.75em;
}

.nav-btn {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(193,163,103,0.4);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C1A367;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.nav-btn:hover {
  background: rgba(193,163,103,0.15);
  border-color: #C1A367;
  transform: scale(1.05);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* ── Media layout ── */
@media (min-width: 40em) {
  .media {
    display: flex;
    align-items: center;
    flex-direction: row;
  }
}

@media (min-width: 40em) {
  .media__item {
    flex: 4 0 0%;
  }
}
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .media__item {
    position: relative;
    height: 0;
    width: 100%;
    padding: 0 0 50%;
  }
}
.media__item svg {
  padding: 1em 0;
}
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .media__item svg {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
  }
}

.media__body {
  text-align: center;
}
@media (min-width: 40em) {
  .media__body {
    flex: 2 0 0%;
    padding: 0 0 0 2em;
    text-align: left;
  }
}

.media__lead {
  font-size: ms(-2);
  color: #C1A367;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75em;
  transition: opacity 0.3s;
}

.media__title {
  margin: 0 0 0.5em;
  font-size: 2em;
  line-height: 1.2;
  transition: opacity 0.3s;
}
@media (min-width: 40em) {
  .media__title {
    font-size: 2em;
  }
}
@media (min-width: 60em) {
  .media__title {
    font-size: 3em;
  }
}

.media__desc {
  margin: 0;
  font-size: ms(-1);
}
@media (min-width: 60em) {
  .media__desc {
    font-size: ms(0);
  }
}

.media__link {
  display: block;
  margin-top: 1em;
}
.media__link svg {
  margin-left: 0.3333333333em;
  transition: transform 0.3s ease-in-out;
}
.media__link:hover svg {
  transform: translateX(10%);
}

.media__cta {
  margin: 0;
  font-size: 1.2em;
  line-height: 1;
  font-weight: 500;
}

#dockOfBay .base,
#dockOfBay .arm {
  opacity: 1;
}
@media (min-width: 40em) {
  #dockOfBay .base,
  #dockOfBay .arm {
    opacity: 0;
  }
}
#dockOfBay .cover {
  opacity: 0;
}
@media (min-width: 40em) {
  #dockOfBay .cover {
    opacity: 1;
  }
}

.title {
  margin: 0 0 0.5em;
  font-size: 4em;
  line-height: 1.2;
  text-align:center;
}