/* 
   Luckie J. McDonald - Official Author Website Stylesheet
   Design Language: Professional, Modern, Elegant, Literary
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-navy: #14213D;
  --color-cream: #F8F4EC;
  --color-gold: #C9A44C;
  --color-gold-hover: #b08d3b;
  --color-charcoal: #222222;
  --color-light-gray: #F2F2F2;
  --color-white: #FFFFFF;
  
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  font-weight: 400;
  color: #555555;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-gold-hover);
}

.text-navy {
  color: var(--color-navy) !important;
}

.text-gold {
  color: var(--color-gold) !important;
}

.bg-cream {
  background-color: var(--color-cream) !important;
}

.bg-navy {
  background-color: var(--color-navy) !important;
}

.font-serif {
  font-family: var(--font-heading);
}

/* Custom Buttons */
.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-gold:hover, .btn-gold:focus {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 164, 76, 0.2);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-outline-gold:hover, .btn-outline-gold:focus {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 164, 76, 0.2);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-outline-white:hover, .btn-outline-white:focus {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Header & Navbar */
.navbar {
  transition: all 0.4s ease;
  padding: 1.25rem 0;
  z-index: 1030;
}

.navbar.scrolled {
  background-color: rgba(20, 33, 61, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  color: var(--color-cream) !important;
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  position: relative;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-gold) !important;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page Header Title Section */
.page-banner {
  padding: 9rem 0 5rem 0;
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, rgba(20, 33, 61, 0.95) 0%, rgba(34, 34, 34, 0.85) 100%);
  text-align: center;
  position: relative;
}

.page-banner h1 {
  font-size: 3rem;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-banner p {
  color: var(--color-gold);
  font-size: 1.1rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0;
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.88) 0%, rgba(34, 34, 34, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--color-cream);
  margin-bottom: 1.5rem;
  font-weight: 700;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .cta-buttons {
  animation: fadeInUp 1s ease 0.4s both;
}

/* Section Spacing */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 1rem auto 0;
}

.section-title.text-start::after {
  margin: 1rem 0 0 0;
}

/* Meet the Author Home Section */
.author-intro-img {
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(201, 164, 76, 0.1);
  transition: transform 0.3s ease;
}

.author-intro-img:hover {
  transform: scale(1.02);
}

/* Featured Books & Cards */
.book-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(201, 164, 76, 0.2);
}

.book-cover-wrapper {
  overflow: hidden;
  position: relative;
  background-color: var(--color-cream);
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.book-cover-img {
  width: 180px;
  height: 270px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover-img {
  transform: scale(1.04) rotate(1deg);
}

.book-card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--color-cream);
  color: var(--color-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.book-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.book-card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #666;
  flex-grow: 1;
}

.book-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.book-card-actions .btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

/* Feature highlight cards (Why readers connect) */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-color: rgba(201,164,76,0.15);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--color-gold);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(201, 164, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
  box-shadow: none;
  color: var(--color-white);
}

/* Gallery Styling */
.gallery-filter-btn {
  background-color: transparent;
  border: 1px solid #ddd;
  color: var(--color-charcoal);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  cursor: pointer;
  height: 300px;
  background-color: var(--color-light-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 33, 61, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h4 {
  color: var(--color-cream);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-item-overlay p {
  color: var(--color-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-item-overlay i {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* Lightbox Dynamic Modal styling */
.lightbox-modal .modal-content {
  background-color: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-modal .btn-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0.8;
  filter: invert(1);
}

.lightbox-modal .btn-close:hover {
  opacity: 1;
}

/* Blog & Updates styling */
.blog-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: rgba(201,164,76,0.15);
}

.blog-img-wrapper {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-cream);
}

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

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.05);
}

.blog-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-link:hover {
  color: var(--color-gold);
}

/* Contact Info Column styling */
.contact-info-list {
  padding-left: 0;
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-info-text p, .contact-info-text a {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Custom Contact Form Input styling */
.contact-form .form-control {
  border: 1px solid #e0e0e0;
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
}

.contact-form .form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(201, 164, 76, 0.15);
}

/* Footer Section */
.footer-top {
  background-color: var(--color-navy);
  padding: 5rem 0 3rem 0;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top h3, .footer-top h4 {
  color: var(--color-cream);
  font-family: var(--font-heading);
}

.footer-top h3 {
  font-weight: 700;
  font-size: 1.8rem;
}

.footer-top h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icon-btn:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #0b1325;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Scroll Fade Indicator (Animation utility) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar {
    background-color: var(--color-navy);
    padding: 1rem 0;
  }
  .navbar .nav-link::after {
    display: none;
  }
  .navbar .nav-link {
    padding: 0.75rem 1rem !important;
  }
  .page-banner {
    padding: 8rem 0 4rem 0;
  }
  .page-banner h1 {
    font-size: 2.5rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .page-banner h1 {
    font-size: 2rem;
  }
  .book-cover-img {
    width: 150px;
    height: 225px;
  }
  .btn-gold, .btn-outline-gold, .btn-outline-white {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Custom Music Player & Audio Styles
   ========================================================================== */
.music-player-card {
  background: var(--color-navy);
  background: linear-gradient(135deg, #14213D 0%, #0a1120 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  color: var(--color-white);
  box-shadow: 0 15px 35px rgba(20, 33, 61, 0.25);
  border: 1px solid rgba(201, 164, 76, 0.25);
  position: relative;
  text-align: center;
}

.vinyl-container {
  width: 210px;
  height: 210px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2c2c2c 10%, #111 40%, #000 70%, #111 90%);
  border: 8px solid #080d16;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4), 
    inset 0 0 12px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.vinyl-record::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.8) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.vinyl-record.playing {
  animation: spinVinyl 15s linear infinite;
}

.vinyl-cover {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #14213D;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.vinyl-center {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-cream);
  border: 3px solid var(--color-gold);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

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

.player-status-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #14213D;
  border: 1.5px solid var(--color-gold);
  padding: 0.25rem 1.25rem;
  border-radius: 50px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  z-index: 4;
}

.equalizer-wrapper {
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.equalizer .bar {
  width: 3px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 3px 3px 0 0;
  transition: height 0.25s ease;
}

.equalizer.playing .bar {
  animation: bounceEqualizer 1s ease-in-out infinite alternate;
}

.equalizer.playing .bar:nth-child(1) { animation-delay: 0.2s; animation-duration: 0.8s; }
.equalizer.playing .bar:nth-child(2) { animation-delay: 0.4s; animation-duration: 1.1s; }
.equalizer.playing .bar:nth-child(3) { animation-delay: 0.1s; animation-duration: 0.9s; }
.equalizer.playing .bar:nth-child(4) { animation-delay: 0.6s; animation-duration: 1.2s; }
.equalizer.playing .bar:nth-child(5) { animation-delay: 0.3s; animation-duration: 0.75s; }
.equalizer.playing .bar:nth-child(6) { animation-delay: 0.5s; animation-duration: 1.0s; }
.equalizer.playing .bar:nth-child(7) { animation-delay: 0.2s; animation-duration: 1.15s; }
.equalizer.playing .bar:nth-child(8) { animation-delay: 0.7s; animation-duration: 0.85s; }
.equalizer.playing .bar:nth-child(9) { animation-delay: 0.4s; animation-duration: 0.95s; }

@keyframes bounceEqualizer {
  0% { height: 3px; }
  100% { height: 20px; }
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.time-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  width: 38px;
  text-align: center;
}

.progress-bar-slider {
  flex-grow: 1;
  height: 5px;
  border-radius: 5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--color-gold) 0%, var(--color-gold) 0%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 100%);
  cursor: pointer;
}

.progress-bar-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}

.progress-bar-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.progress-bar-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}

.progress-bar-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}

.control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  color: var(--color-gold);
  transform: scale(1.1);
}

.control-btn.active {
  color: var(--color-gold) !important;
}

.play-pause-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-white);
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(201, 164, 76, 0.4);
}

.play-pause-btn:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-white);
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 164, 76, 0.55);
}

.volume-slider {
  height: 4px;
  border-radius: 4px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--color-gold) 0%, var(--color-gold) 80%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.15) 100%);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-gold);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-gold);
  cursor: pointer;
}

.playlist-card {
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 12px 35px rgba(20, 33, 61, 0.06) !important;
}

.playlist-header {
  border-bottom: 1px solid rgba(20, 33, 61, 0.08) !important;
}

.playlist-item {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: var(--color-white);
  border: 1px solid rgba(20, 33, 61, 0.04) !important;
  margin-bottom: 0.5rem;
}

.playlist-item:hover {
  background-color: var(--color-cream) !important;
  border-color: rgba(201, 164, 76, 0.25) !important;
  transform: translateX(4px);
}

.playlist-item.active {
  background-color: rgba(20, 33, 61, 0.03) !important;
  border-color: var(--color-gold) !important;
  border-width: 1.5px !important;
}

.playlist-item.active h5 {
  color: var(--color-gold) !important;
}

.playlist-item .track-index-visual {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.playlist-item .hover-play-icon {
  display: none;
  color: var(--color-gold);
  font-size: 1.25rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.playlist-item:hover .index-num {
  display: none;
}

.playlist-item:hover .hover-play-icon {
  display: block;
}

.playlist-item.active .index-num {
  display: none;
}

.playlist-item.active:hover .hover-play-icon {
  display: none; /* Keep equalizer showing */
}

.playlist-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.playlist-equalizer .eq-dot {
  width: 2px;
  height: 100%;
  background-color: var(--color-gold);
  border-radius: 1px;
  animation: eqBlink 0.6s ease-in-out infinite alternate;
}

.playlist-equalizer .eq-dot:nth-child(1) { animation-duration: 0.5s; }
.playlist-equalizer .eq-dot:nth-child(2) { animation-delay: 0.15s; animation-duration: 0.7s; }
.playlist-equalizer .eq-dot:nth-child(3) { animation-delay: 0.3s; animation-duration: 0.6s; }

@keyframes eqBlink {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1.0); }
}

.btn-download-item {
  color: #adb5bd;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.btn-download-item:hover {
  color: var(--color-gold) !important;
  transform: scale(1.15);
}

.hover-gold:hover {
  color: var(--color-gold) !important;
}

.cursor-pointer {
  cursor: pointer;
}

.search-box input {
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-color: rgba(20, 33, 61, 0.15) !important;
  color: var(--color-charcoal);
}

.search-box input:focus {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 8px rgba(201, 164, 76, 0.18) !important;
}

.divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Custom scrollbar for playlist items container */
.playlist-items-container::-webkit-scrollbar {
  width: 6px;
}

.playlist-items-container::-webkit-scrollbar-track {
  background: transparent;
}

.playlist-items-container::-webkit-scrollbar-thumb {
  background-color: rgba(20, 33, 61, 0.1);
  border-radius: 10px;
}

.playlist-items-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(20, 33, 61, 0.2);
}

@media (max-width: 991.98px) {
  .music-player-card {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
  }
}

