:root {
  /* Retro Future / Synthwave Jukebox Theme */
  --background: #1a1a2e;
  --surface: #16213e;
  --surface-card: #0f3460;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --primary: #e94560; /* Neon Red/Pink */
  --secondary: #00fff5; /* Cyan */
  --accent: #ffd700; /* Gold/Yellow */
  
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  --border-glow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  --text-glow: 0 0 5px var(--secondary);
  
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --glass-border: rgba(255, 255, 255, 0.10);
  --transition-fast: 150ms ease;
  
  --font-display: 'Righteous', cursive;
  --font-body: 'Roboto', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 255, 245, 0.1) 1px,
      rgba(0, 255, 245, 0.1) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(233, 69, 96, 0.1) 1px,
      rgba(233, 69, 96, 0.1) 2px
    );
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--secondary);
  text-shadow: var(--text-glow);
}

h1 span {
  color: var(--primary);
}

h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  padding-bottom: 5px;
}

/* Layout */
header {
  background: rgba(15, 52, 96, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.logo-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Player page: center the logo and remove unused nav space */
.page-player header nav {
  display: none;
}

.page-player .header-content {
  justify-content: center;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: calc(100vh - 160px);
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border-top: 1px solid var(--secondary);
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 0.5rem;
}

.btn-primary, .btn:not(.btn-secondary) {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

.btn-primary:hover, .btn:not(.btn-secondary):hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 25px rgba(233, 69, 96, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--surface);
  box-shadow: 0 0 15px rgba(0, 255, 245, 0.6);
}

/* Cards */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.title-area {
  margin-bottom: 1.25rem;
}

.title-area p {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.title-area.title-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.glass-card {
  background: var(--surface-card);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 245, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

/* Features */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.05);
}

.feature i {
  color: var(--accent);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--accent);
}

.feature h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Vinyl Record Animation */
.vinyl-record {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #111 10%, #333 15%, #111 16%, #111 40%, #222 41%, #111 42%, #111 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  animation: spin 4s linear infinite;
  margin: 0 auto 2rem;
  border: 2px solid #333;
}

.vinyl-record::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid #fff;
}

.vinyl-record::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  border: 1px solid var(--secondary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface-card);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 200px;
  display: none;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(0, 255, 245, 0.1);
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* =========================================
   FIXES & COMPONENT STYLES
   ========================================= */

/* --- Player Page Fixes --- */

.player-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 500px;
}

.player-controls {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.btn-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-icon:hover:not(:disabled) {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
}

.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
  box-shadow: none;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#progress-bar {
  height: 100%;
  background: var(--secondary);
  width: 0%;
  box-shadow: 0 0 10px var(--secondary);
  transition: width 0.1s linear;
}

/* Track Info & Year Display (The Fix) */
.track-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
}

.album-cover {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 3px solid var(--secondary);
  margin-bottom: 1.25rem;
  position: relative;
  background: #000;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay the year on top of the album art for a cool effect, 
   or position it clearly below. Let's go with a big overlay 
   that is centered and contained. */
.release-year {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.release-year h1 {
  font-size: 4.5rem;
  color: #fff;
  margin: 0;
  line-height: 0.92;
  text-shadow: 
    4px 4px 0px var(--primary),
    0 0 20px rgba(0,0,0,0.8);
  font-family: var(--font-display);
  letter-spacing: 4px;
}

.track-details {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
  flex: 0 0 auto;
}

.track-details p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.track-details strong {
  color: var(--secondary);
  font-family: var(--font-display);
  margin-right: 0.5rem;
}

/* --- Configure Page Fixes --- */

.configure-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.configure-card {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

input[type="text"] {
  width: 100%;
  padding: 1.2rem;
  background: rgba(15, 52, 96, 0.6);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(0, 255, 245, 0.4);
  background: rgba(15, 52, 96, 0.9);
}

.input-hint {
  display: block;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Suggestion Cards */
.starter-section {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.starter-header {
  margin-bottom: 1.5rem;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.starter-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.starter-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 245, 0.2);
}

.starter-cover {
  height: 160px;
  background: #000;
  position: relative;
  overflow: hidden;
}

.starter-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.starter-card:hover .starter-cover img {
  transform: scale(1.1);
}

.starter-meta {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.starter-name {
  color: var(--text);
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.starter-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* Info Box */
.info-box {
  margin-top: 3rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.info-box h3 {
  color: var(--accent);
}

.info-box ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.info-box li {
  margin-bottom: 0.5rem;
}

/* Tutorial Modal */
.tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tutorial-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.tutorial-dialog {
  position: relative;
  background: var(--surface-card);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 50px rgba(233, 69, 96, 0.4);
  padding: 2rem;
  z-index: 1001;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.tutorial-modal[aria-hidden="false"] .tutorial-dialog {
  transform: translateY(0);
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.tutorial-step {
  margin-bottom: 2rem;
}

.tutorial-step h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.tutorial-step p {
  color: var(--text-secondary);
}

/* Configure: tighter layout on small screens */
@media (max-width: 520px) {
  .title-area.title-with-action {
    flex-direction: column;
    align-items: stretch;
  }

  #tutorial-button {
    width: 100%;
    justify-content: center;
  }

  /* Make suggestion cards more compact on mobile */
  .starter-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .starter-card {
    flex-direction: row;
    align-items: center;
  }

  .starter-cover {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
  }

  .starter-meta {
    padding: 0.9rem;
    gap: 0.6rem;
  }

  .starter-name {
    margin-bottom: 0;
    font-size: 1rem;
    -webkit-line-clamp: 1;
  }

  .starter-btn {
    width: auto;
    padding: 0.45rem 0.9rem;
  }
}

/* =========================================
   FLIP CARD ANIMATION
   ========================================= */

.flip-container {
  perspective: 1000px;
  width: 100%;
  /* Ensure enough height for content on desktop while staying reasonable */
  min-height: clamp(520px, 70vh, 680px);
  position: relative;
  padding: 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(6, 10, 24, 0.65);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Flip the pane when the class 'flipped' is added */
.flip-container.flipped .flipper {
  transform: rotateY(180deg);
}

.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  min-height: 460px;
}

/* Hide back of pane during swap */
.front, .back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Make sure they fill the container */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  gap: 1.5rem;
}

/* Front pane, placed above back */
.front {
  z-index: 2;
  /* for firefox 31 */
  transform: rotateY(0deg);
}

/* Back pane */
.back {
  transform: rotateY(180deg);
}

/* Adjust content within front/back to fit */
.player-container, .track-info {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 520px) {
  header {
    padding: 0.45rem 0.6rem;
    border-bottom-width: 1px;
    box-shadow: 0 3px 14px rgba(233, 69, 96, 0.22);
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  /* Player page centering handled globally above */

  /* Make the language button less pronounced on mobile */
  header nav .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-width: 1px;
  }

  header nav .btn i {
    font-size: 0.95em;
  }

  main {
    margin: 0.35rem auto;
    padding: 0 0.35rem;
  }

  h1 {
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .glass-card {
    padding: 1.1rem;
    border-radius: var(--radius);
  }

  .btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
  }

  /* Flip container: let the card grow so the page scrolls (no inner scroll). */
  .flip-container {
    padding: 0.6rem;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .flipper {
    min-height: 0;
    display: grid;
  }

  .front, .back {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    grid-area: 1 / 1;
    justify-content: flex-start;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    gap: 1rem;
    overflow: visible;
  }

  /* Back side: keep action buttons reachable and nicely stacked */
  .back .track-info {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
  }

  .front .player-container {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
  }

  .back .reveal-button-container {
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.75rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .back .reveal-button-container .btn {
    width: 100%;
  }

  .player-controls {
    gap: 1.25rem;
    margin: 1.25rem 0;
  }

  .btn-primary-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }

  .btn-icon.btn-secondary {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .reveal-button-container {
    width: 100%;
  }

  .reveal-button-container .btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  /* Let the player card run almost edge-to-edge on mobile */
  .player-page {
    max-width: 100%;
    padding: 2rem 0.35rem 2rem 0.35rem;
    gap: 1.25rem;
  }

  .player-card {
    padding: 1.1rem;
  }

  .album-cover {
    width: min(220px, 88vw);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  .release-year h1 {
    font-size: clamp(2.4rem, 11.5vw, 3.6rem);
    letter-spacing: 2px;
  }

  .track-details {
    max-width: 100%;
    padding: 1.1rem;
    font-size: 0.98rem;
  }
}

/* Button Layout Fixes */
.player-controls {
  gap: 3rem; /* Increase gap */
}

/* Reveal-side action buttons (back of flip card) */
.back .reveal-button-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.back .reveal-button-container .btn {
  white-space: nowrap;
}

.back .reveal-button-container .btn-lookup {
  order: 1;
}

.back .reveal-button-container .btn-next-song {
  order: 2;
}

.back .reveal-button-container .btn-back-player {
  order: 3;
}

.back .reveal-button-container .btn-lookup,
.back .reveal-button-container .btn-back-player {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.back .reveal-button-container .btn-next-song {
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.btn-icon.btn-secondary {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  border-width: 1px;
  opacity: 0.8;
}

.btn-icon.btn-secondary:hover:not(:disabled) {
  transform: scale(1.1) rotate(-180deg); /* Add rotation effect for restart */
  opacity: 1;
}

.btn-primary-icon {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.btn-primary-icon:hover:not(:disabled) {
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.8);
  transform: scale(1.1);
}
