@font-face {
  font-family: 'Soul Handwriting';
  src: url('soul-handwriting.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Hopeless Romantic';
  src: url('HopelessRomanticSociety.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Vogue';
  src: url('Vogue.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Ballet';
  src: url('Ballet.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: Didot;
  background: white;
  color: black;
  text-align: center;
  padding: 40px 20px;
}

/* Typography */
.header p1 {
  font-size: 70px;
  font-family: Ballet;
  margin: 0;
}

.subtitle {
  font-size: 45px;
  font-family: Vogue;
  font-style: italic;
}

.meta {
  font-size: 11px;
  letter-spacing: 4px;
  margin-top: 20px;
  color: #777;
}

/* Cassette label */
.label-top {
  font-size: 10px;
  letter-spacing: 4px;
  color: #666;
  text-transform: uppercase;
}

.label-title {
  font-family: Didot;
  font-size: 40px;
  margin: 10px 0;
  font-style: italic;
}

.label-line {
  height: 1px;
  background: #e0e0e0;
  margin: 15px 0;
}

.label-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: monospace;
  color: #666;
}

/* --- cassette visual with your image + reels --- */

.cassette-visual {
  position: relative;
  width: 600px;      /* your cassette width */
  margin: 40px auto; /* THIS centers it */
}

.cassette-img {
  display: block;
  width: 100%;
  height: auto;
}

/* reel images positioned over the holes */
.reel-img {
  position: absolute;
  width: 173px;
  height: 173px;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.left-reel {
  top: 46%;
  left: 30%;
  transform: translate(-50%, -50%);
  opacity: 0.70;
}

/* progress bar on top of the tape */
.tape-bar {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 60%;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
}

.tape-progress {
  height: 100%;
  background: white;
  width: 0%;
  border-radius: 6px;
  transition: width 0.2s linear;
}

/* Upload Tabs */
.upload-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab {
  font-family: Didot;
  font-size: 15px;
  padding: 12px 35px;
  border-radius: 50px;
  border: 2px solid #ccc;
  background: white;
  cursor: pointer;
  transition: 0.2s;
}

.tab.active {
  background: black;
  color: white;
  transform: scale(1.05);
}

/* Upload Boxes */
.upload-box {
  max-width: 450px;
  margin: 20px auto;
  background: white;
  padding: 30px;
  border-radius: 30px;
  border: 2px solid #eee;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.hidden {
  display: none;
}

.upload-btn {
  font-family: Didot;
  font-size: 15px;
  width: 100%;
  padding: 18px;
  background: black;
  color: white;
  border-radius: 50px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 15px;
}

.url-field {
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  border: 2px solid #ddd;
  margin-bottom: 12px;
}

/* Controls */
.controls {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.ctrl {
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: #4a4a4a;
  padding: 10px;
  transition: opacity 0.2s ease;
}

.ctrl:hover {
  opacity: 0.6;
}

.play {
  background: black;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* play/pause icon swap */
.icon-pause {
  display: none;
}

.playing .icon-play {
  display: none;
}

.playing .icon-pause {
  display: block;
}

.controls svg {
  display: block;
}

#trackDisplay {
  font-family: "Soul Handwriting";
  font-size: 20px;
}

p {
  font-family: Didot;
}

/* Quote */
.quote {
  margin-top: 60px;
  font-family: Didot, "Playfair Display", serif;
  color: #555;
}

.credit {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
}

/* REEL SPINNING – LEFT FASTER, RIGHT SLOWER */
.left-reel.spin {
  animation: reel-left 0.9s linear infinite;
}

.right-reel.spin {
  animation: reel-right 1.8s linear infinite;
}

@keyframes reel-left {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes reel-right {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

p2{
  font-style: italic;
}

.back-home {
  position: fixed;
  bottom: 40px;
  right: 40px;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-family: "Ballet";
  opacity: 0.5;
  transition: 0.3s ease;
}

.back-home:hover {
  opacity: 1;
}
