@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@700;800&display=swap");

:root {
  --gold: #d4af37;
  --gold-light: #e5c76b;
  --gold-dark: #a38728;
  --gold-gradient: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  --gold-transparent: rgba(212, 175, 55, 0.08);
  --accent: #e6a0bc;
  --dark: #0a0a0a;
  --dark-accent: #111111;
  --dark-card: #161616;
  --dark-lighter: #222222;
  --text: #f8f8f8;
  --text-muted: #999999;
  --card-radius: 8px;
  --container-radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --menu-width: 280px;
  --music-bar-height: 80px;
  --music-bar-expanded-height: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  color: var(--gold-light);
}

/* Header & Navigation */
.site-header {
  background: var(--dark-accent);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.header-container {
  background: var(--dark-card);
  border-radius: var(--container-radius);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--gold-transparent), transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

.site-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  font-weight: 800;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Side Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: var(--menu-width);
  height: 100%;
  background: var(--dark-card);
  z-index: 100;
  transition: right 0.3s ease-in-out, visibility 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding-bottom: 2rem;
  visibility: hidden;
}

.side-menu.active {
  right: 0;
  visibility: visible;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-menu-header h2 {
  color: var(--gold);
  margin: 0;
  font-size: 1.5rem;
}

.close-menu {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--gold);
}

.menu-nav {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--card-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}

.menu-item:hover::before {
  width: 100%;
  opacity: 0.1;
}

.menu-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.menu-item.active::before {
  width: 5px;
  opacity: 1;
}

/* Main Content */
.main-content {
  padding-bottom: calc(4rem + 70px);
}

.tab {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab.active {
  display: block;
}

.content-card {
  background: var(--dark-card);
  border-radius: var(--container-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

/* Slideshow */
.slideshow-card {
  background: var(--dark-accent);
  overflow: hidden;
  margin-bottom: 0;
}

.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark-accent);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-accent); /* Add background color */
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from 'cover' to 'contain' */
  display: none;
  transition: opacity 0.8s ease, transform 0.5s ease;
  cursor: pointer;
  background-color: var(--dark-accent); /* Add background color to ensure contrast with contained images */
}

.slideshow img.active {
  display: block;
}

.slideshow img.zoomed {
  transform: scale(1.05);
}

.slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  padding: 0 20px; /* Add padding to keep dots away from edges */
}

.slideshow-dot {
  width: 10px; /* Slightly larger for better visibility */
  height: 10px; /* Slightly larger for better visibility */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

.slideshow-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5); /* Darker background for better visibility */
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

.slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1); /* Slightly enlarge on hover */
}

.slideshow-arrow.prev {
  left: 20px;
}

.slideshow-arrow.next {
  right: 20px;
}

/* Ensure arrows stay within container on small screens */
@media (max-width: 480px) {
  .slideshow-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .slideshow-arrow.prev {
    left: 10px;
  }

  .slideshow-arrow.next {
    right: 10px;
  }

  .slideshow-controls {
    bottom: 10px;
  }

  .slideshow-dot {
    width: 8px;
    height: 8px;
  }
}

/* Content Sections */
.content-wrapper {
  padding: 2.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--gold);
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
}

.subsection-title {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

/* Event Cards */
.event-card {
  display: flex;
  flex-direction: column;
  background: rgba(22, 22, 22, 0.5);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.event-card h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .event-card {
    flex-direction: row;
    gap: 2rem;
  }
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.event-card h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.event-poster {
  flex: 0 0 auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .event-poster {
    max-width: 250px;
    margin-bottom: 0;
  }
}

.event-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-details {
  flex: 1;
}

.event-details.with-image {
  padding-left: 0;
}

@media (min-width: 768px) {
  .event-details.with-image {
    padding-left: 0.5rem;
  }
}

.event-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-date {
  display: inline-block;
  font-weight: 500;
}

.event-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text);
}

.event-actions {
  margin-top: 1.5rem;
}

.ticket-button {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.ticket-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.no-events {
  text-align: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.3);
  border-radius: var(--card-radius);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-style: italic;
  margin: 2rem 0;
}

/* Social Links */
.social-card {
  background: rgba(22, 22, 22, 0.5);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--card-shadow);
}

.social-card h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(10, 10, 10, 0.7);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  margin: 2rem 0;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: var(--dark-accent);
  color: var(--text);
  border: none;
  padding: 1rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.submit-button:hover {
  background: rgba(20, 20, 20, 0.9);
}

.submit-button:hover::before {
  width: 100%;
  opacity: 0.2;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-message {
  padding: 1rem;
  border-radius: var(--card-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.status-message.success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #2ecc71;
}

.status-message.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.contact-info {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.contact-info-card {
  background: rgba(22, 22, 22, 0.5);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--card-shadow);
}

.contact-info-card h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.contact-info-card p {
  margin-bottom: 0.75rem;
}

.contact-info-card a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-card a:hover {
  text-decoration: underline;
  color: var(--gold-light);
}

/* Footer */
.site-footer {
  background: var(--dark-accent);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  background: var(--dark-card);
  border-radius: var(--container-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Feature card with title on left */
.feature-card {
  display: flex;
  background: rgba(22, 22, 22, 0.5);
  border-radius: var(--card-radius);
  padding: 0;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.feature-card-title {
  padding: 1.75rem;
  width: 180px;
  background: rgba(10, 10, 10, 0.3);
}

.feature-card-title h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card-content {
  flex: 1;
  padding: 1.75rem;
}

@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
  }

  .feature-card-title {
    width: 100%;
    padding: 1rem 1.75rem;
  }
}

/* Floating hamburger menu */
.floating-menu-container {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 95;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: var(--dark-card);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.floating-hamburger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-accent);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 96;
  pointer-events: auto;
}

.floating-hamburger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.floating-hamburger:hover {
  transform: translateY(-2px);
}

.floating-hamburger:hover::before {
  width: 100%;
  opacity: 0.2;
}

.floating-hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--gold);
  border-radius: 3px;
  transition: var(--transition);
}

.floating-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.floating-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.floating-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Replace the collapsible cards styles with these improved versions */
@media (max-width: 768px) {
  .event-card,
  .content-card .content-wrapper > div:not(.slideshow-card):not(.section-title):not(.subsection-title) {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
    cursor: pointer;
  }

  .card-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
  }

  /* Update the show-more-button styles to be hidden on desktop */
  .show-more-button {
    display: none; /* Hidden by default */
  }

  /* Only show on mobile */
  @media (max-width: 768px) {
    .show-more-button {
      display: inline-block;
      background: var(--dark-accent);
      color: var(--text);
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      margin-top: 0.5rem;
      font-size: 0.85rem;
      position: relative;
      overflow: hidden;
      width: 100%;
      text-align: center;
    }

    .show-more-button::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 3px;
      height: 100%;
      background: var(--gold-gradient);
      transition: var(--transition);
    }

    .show-more-button:hover::before {
      width: 100%;
      opacity: 0.2;
    }

    /* Ensure card-content is only collapsed on mobile */
    .card-content.collapsed {
      max-height: 80px;
      opacity: 0.9;
      position: relative;
      mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    }
  }

  .show-more-button {
    display: inline-block;
    background: var(--dark-accent);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
  }

  .show-more-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-gradient);
    transition: var(--transition);
  }

  .show-more-button:hover::before {
    width: 100%;
    opacity: 0.2;
  }

  /* Ensure event card titles are visible when collapsed */
  .event-card h3 {
    padding-right: 10px;
    margin-bottom: 0.5rem;
  }

  /* Hide the old card toggle */
  .card-toggle {
    display: none;
  }
}

/* Ensure card-content is always fully visible on desktop */
@media (min-width: 769px) {
  .card-content {
    max-height: none !important;
    opacity: 1 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}

/* Music Consent Popup */
.music-consent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.music-consent-popup.active {
  opacity: 1;
  visibility: visible;
}

.music-consent-content {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius);
  padding: 2rem;
  max-width: 90%;
  width: 450px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.music-consent-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.music-consent-content h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.music-consent-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.music-consent-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.music-consent-button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: "Montserrat", sans-serif;
}

.accept-button {
  background: var(--gold);
  color: #000;
}

.accept-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.decline-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.decline-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .music-consent-content {
    padding: 1.5rem;
  }

  .music-consent-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Enhanced Music Bar */
.music-bar {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  background: var(--dark-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  z-index: 80;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: var(--music-bar-height);
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin: 0 auto;
  max-width: calc(100% - 20px);
}

.music-bar.expanded {
  height: var(--music-bar-expanded-height);
  overflow-y: auto;
}

.music-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  position: relative;
}

.music-bar-inner::after {
  content: "⌃";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.5;
  transition: var(--transition);
}

.music-bar.expanded .music-bar-inner::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.music-info {
  flex: 1;
  min-width: 0;
  margin-right: 1rem;
}

.track-title {
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.music-control {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.music-control:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.play-button {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.play-button:hover {
  background: rgba(212, 175, 55, 0.2);
}

.control-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.volume-slider-container {
  width: 80px;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

.progress-bar {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--gold-gradient);
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

/* Music Bar Expanded Content */
.music-expanded-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.music-expanded-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.album-art {
  width: 120px;
  height: 120px;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-details h3 {
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-details p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.streaming-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.streaming-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
}

.streaming-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.streaming-link.spotify {
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
}

.streaming-link.apple {
  background: rgba(255, 45, 85, 0.15);
  color: #ff2d55;
}

.streaming-link.youtube {
  background: rgba(255, 0, 0, 0.15);
  color: #ff0000;
}

.streaming-link-icon {
  font-size: 1.2rem;
}

.playlist-container {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.playlist-container h4 {
  color: var(--gold);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.playlist-tracks {
  display: grid;
  gap: 0.5rem;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.playlist-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.playlist-track:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-track.active {
  background: rgba(212, 175, 55, 0.15);
}

.playlist-track-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.playlist-track.active .playlist-track-number {
  color: var(--gold);
}

.playlist-track-info {
  flex: 1;
  min-width: 0;
}

.playlist-track-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-track.active .playlist-track-title {
  color: var(--gold);
}

.playlist-track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .music-bar-inner {
    padding: 0.5rem 1rem;
  }

  .volume-control {
    display: none;
  }

  .music-controls {
    gap: 0.5rem;
  }

  .music-control {
    width: 32px;
    height: 32px;
  }

  .control-icon {
    font-size: 1rem;
  }

  /* Add padding to main content to prevent music bar overlap */
  .main-content {
    padding-bottom: calc(4rem + 70px);
  }

  /* Adjust footer to account for music bar */
  .site-footer {
    margin-bottom: 70px;
  }

  /* Adjust expanded music bar for mobile */
  .music-expanded-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-art {
    width: 100px;
    height: 100px;
  }

  .streaming-links {
    justify-content: flex-start;
  }

  .music-bar.expanded {
    height: 80vh;
  }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
  .track-artist {
    display: none;
  }
}

/* Scrollbar styling for playlist */
.playlist-tracks::-webkit-scrollbar {
  width: 6px;
}

.playlist-tracks::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.playlist-tracks::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

.playlist-tracks::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

/* Add these styles to handle the music player's conditional artwork display */
.music-bar .music-expanded-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.music-bar .album-art {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.music-bar .album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-bar .track-details {
  flex-grow: 1;
  transition: all 0.3s ease;
}

/* Styles for when no artwork is available */
.music-bar .music-expanded-header.no-artwork {
  justify-content: center;
}

.music-bar .track-details.full-width {
  max-width: 100%;
  text-align: center;
}

/* Streaming links centered when no artwork */
.music-bar .track-details.full-width .streaming-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
