body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  overflow-x: hidden;
  margin: 0;
  padding: 2rem;
  color: #333;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 1.5rem 1rem;
  background-color: transparent;
  box-sizing: border-box;
}

.site-logo-text {
  margin: 0;
  color: #1e97e7;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-link {
  text-decoration: none;
}

.container {
  max-width: 900px;
  width: 100%;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.container2 {
  margin-top: 2rem;
}

/* Album Header */
.album-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.album-cover {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #e8f0fe;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.album-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.album-title {
  margin: 0;
  color: #1e97e7;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #155fc3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #e8f0fe;
  color: #1a73e8;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #d2e3fc;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.btn-icon:hover {
  background-color: rgba(0,0,0,0.05);
  color: #1a73e8;
}

/* Track List */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.track-card.is-expanded {
  border-color: #2791e7;
  box-shadow: 0 4px 12px rgba(39, 145, 231, 0.15);
}

.track-collapsed {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.05);
  background-color: #155fc3;
}

.play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.track-summary {
  flex: 1;
  min-width: 0;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.track-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2d3748;
}

.track-tags {
  display: flex;
  gap: 0.3rem;
}

.tag {
  font-size: 0.75rem;
  background-color: #e8f0fe;
  color: #1a73e8;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}

.track-snippet {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waveform-mini {
  width: 120px;
  height: 35px;
  flex-shrink: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* Track Expanded State */
.track-expanded {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.waveform-full {
  width: 100%;
  background: rgba(0,0,0,0.02);
  border-radius: 6px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background-color: #e8f0fe;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.volume-slider {
  width: 100px;
  cursor: pointer;
}

.speed-select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  font-size: 0.85rem;
}

.btn-toggle {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-toggle.active {
  background-color: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

/* Loop Settings */
.loop-settings {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #333;
  animation: fadeIn 0.2s ease-in-out;
}

.loop-input {
  width: 50px;
  padding: 0.25rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 0.85rem;
  background: white;
}

.loop-input:focus {
  outline: none;
  border-color: #1a73e8;
}

.countdown-text {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a73e8;
  font-variant-numeric: tabular-nums;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

.track-details h3 {
  margin: 0 0 0.5rem 0;
  color: #1a73e8;
}

.full-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.seo-tags {
  font-size: 0.85rem;
  color: #64748b;
}

.expanded-actions {
  display: flex;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .site-logo-text {
    color: #6cb8f7;
  }

  .container {
    background: #1e1e1e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  }

  .album-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .album-title {
    color: #6cb8f7;
  }

  .track-card {
    background: #2c2c2c;
    border-color: #3f3f3f;
  }

  .track-title {
    color: #f1f5f9;
  }

  .track-snippet {
    color: #94a3b8;
  }

  .tag {
    background-color: #1c54b2;
    color: #e0f2fe;
  }

  .play-btn {
    background-color: #2791e7;
  }

  .play-btn:hover {
    background-color: #1c54b2;
  }

  .controls-row {
    background-color: #222;
  }

  .control-group label {
    color: #ccc;
  }

  .speed-select {
    background-color: #333;
    color: white;
    border-color: #555;
  }

  .btn-toggle {
    border-color: #555;
    color: #aaa;
  }

  .btn-secondary {
    background-color: #333;
    color: #6cb8f7;
  }

  .btn-secondary:hover {
    background-color: #444;
  }

  .full-desc {
    color: #cbd5e1;
  }

  .btn-icon {
    color: #aaa;
  }

  .btn-icon:hover {
    background-color: rgba(255,255,255,0.1);
    color: #6cb8f7;
  }

  .track-expanded {
    border-top-color: #444;
  }

  .loop-settings {
    color: #ccc;
  }
  
  .loop-input {
    background-color: #333;
    color: white;
    border-color: #555;
  }
  
  .loop-input:focus {
    border-color: #6cb8f7;
  }

  .countdown-text {
    color: #6cb8f7;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
    border-radius: 8px;
  }

  .album-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .album-info {
    align-items: center;
  }

  .waveform-mini {
    display: none;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .expanded-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}