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

/* ===== Site Nav (article pages) ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1F1F1F;
  border-bottom: 2px solid #8B1A1A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  padding: 10px 20px;
}

.site-nav-link {
  color: #FDF5E6;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav-link:hover {
  color: #ffffff;
  border-bottom-color: #8B1A1A;
}

/* ===== Body ===== */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1F1F1F;
  background: #FDF5E6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== Background Pattern ===== */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(28, 28, 28, 0.02) 2px,
    rgba(28, 28, 28, 0.02) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== Container (shared) ===== */
.container {
  margin: 0 auto;
  background: #FDF5E6;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(31, 31, 31, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: containerFadeIn 0.8s ease-out;
  border: 2px solid #3C3C3C;
}

.container-article {
  max-width: 900px;
}

.container-browse {
  max-width: 1200px;
}

/* ===== Animations ===== */
@keyframes containerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes badgePop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

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

@keyframes slideOutRight {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Shared Components ===== */
.btn-icon {
  margin-right: 6px;
}

.header-decoration {
  width: 80px;
  height: 3px;
  background: #8B1A1A;
  margin: 15px auto;
}

main {
  padding: 40px 30px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 50px;
  padding: 25px;
  background: #3C3C3C;
  border-radius: 4px;
  text-align: center;
  color: #FDF5E6;
  font-size: 0.9em;
  border-top: 3px solid #8B1A1A;
}

.footer-decoration {
  width: 100px;
  height: 2px;
  background: #8B1A1A;
  margin: 15px auto;
}

.disclaimer {
  font-style: italic;
  margin-top: 12px;
  font-size: 0.85em;
  opacity: 0.8;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   ARTICLE-SPECIFIC RULES (scoped with .container-article)
   ================================================================ */

.container-article header {
  background: #3C3C3C;
  color: #FDF5E6;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #8B1A1A;
}

.container-article header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8em;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  color: #FDF5E6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: titleSlideIn 0.6s ease-out 0.2s both;
}

.container-article .category-badge {
  background: #8B1A1A;
  color: #FDF5E6;
  padding: 8px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  margin: 15px auto;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.3);
  animation: badgePop 0.5s ease-out 0.3s both;
}

.container-article .day-badge {
  background: #3C3C3C;
  color: #FDF5E6;
  padding: 12px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #8B1A1A;
}

.container-article .day-emoji {
  font-size: 1.5em;
}

.container-article .subtitle {
  font-size: 1.1em;
  color: #FDF5E6;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Article: Image section */
.container-article .image-of-day-section {
  margin: 35px 0;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.container-article .image-of-day {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(31, 31, 31, 0.2);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #3C3C3C;
}

.container-article .image-of-day:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.25);
  border-color: #8B1A1A;
}

.container-article .satire-caption {
  margin-top: 25px;
  color: #1F1F1F;
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.8;
  padding: 0 20px;
  font-weight: 400;
}

/* Article: Topical headings */
.container-article .topical-headings {
  margin: 30px 0;
  padding: 20px 25px;
  border-left: 4px solid #8B1A1A;
  background: rgba(139, 26, 26, 0.04);
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.container-article .topical-headings .topic-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  color: #1F1F1F;
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.3;
}

.container-article .topical-headings .topic-sub {
  font-size: 1.05em;
  color: #3C3C3C;
  margin: 0 0 8px 0;
  font-weight: 500;
  line-height: 1.4;
}

.container-article .topical-headings .topic-genre {
  font-size: 0.9em;
  color: #8B1A1A;
  margin: 10px 0 0 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Article: Song section */
.container-article .song-section {
  margin-top: 50px;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.container-article .song-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3em;
  color: #8B1A1A;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 900;
}

.container-article .icon {
  display: inline-block;
  margin: 0 8px;
  animation: bounce 2s infinite;
}

.container-article .icon:nth-child(2) {
  animation-delay: 0.5s;
}

/* Article: Audio player */
.container-article .audio-player {
  margin: 30px 0;
  padding: 30px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 16px;
  text-align: center;
  border: 3px solid #8B1A1A;
  box-shadow:
    0 8px 32px rgba(139, 26, 26, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.container-article .audio-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.container-article .audio-version {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.container-article .audio-version:last-child {
  margin-bottom: 0;
}

.container-article .audio-version h4 {
  color: #ffffff;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container-article .audio-player audio {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.container-article .download-link {
  display: inline-block;
  color: #FDF5E6;
  background: linear-gradient(135deg, #8B1A1A 0%, #a02020 100%);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.container-article .download-link:hover {
  background: linear-gradient(135deg, #a02020 0%, #8B1A1A 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.6);
}

.container-article .loading-text {
  color: #FDF5E6;
  font-style: italic;
  font-size: 1.1em;
}

.container-article .no-music-message {
  padding: 30px;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.container-article .no-music-icon {
  font-size: 4em;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.container-article .no-music-text {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
}

.container-article .no-music-subtext {
  color: #FDF5E6;
  font-size: 1em;
  opacity: 0.8;
}

/* Article: Lyrics */
.container-article .lyrics-container {
  margin-top: 35px;
}

.container-article .lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.container-article .lyrics-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  color: #1F1F1F;
  margin: 0;
  font-weight: 700;
}

.container-article .copy-btn {
  background: #8B1A1A;
  color: #FDF5E6;
  border: 2px solid #3C3C3C;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.container-article .copy-btn:hover {
  background: #A02020;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.3);
}

.container-article .lyrics {
  background: #FDF5E6;
  padding: 30px;
  border-radius: 4px;
  max-height: 450px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 1.08em;
  line-height: 2;
  border: 2px solid #3C3C3C;
  color: #1F1F1F;
}

.container-article .lyrics::-webkit-scrollbar {
  width: 8px;
}

.container-article .lyrics::-webkit-scrollbar-track {
  background: #3C3C3C;
  border-radius: 4px;
}

.container-article .lyrics::-webkit-scrollbar-thumb {
  background: #8B1A1A;
  border-radius: 4px;
}

.container-article .lyrics::-webkit-scrollbar-thumb:hover {
  background: #A02020;
}

.container-article .lyrics p {
  margin-bottom: 18px;
  color: #1F1F1F;
}

.container-article .section-marker {
  color: #8B1A1A;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid #8B1A1A;
  padding-bottom: 8px;
  display: inline-block;
}

.container-article .copy-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3C3C3C;
  color: #FDF5E6;
  padding: 18px 28px;
  border-radius: 4px;
  border: 2px solid #8B1A1A;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  z-index: 1000;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.container-article .copy-notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

/* ================================================================
   BROWSE-SPECIFIC RULES (scoped with .container-browse)
   ================================================================ */

.container-browse header {
  background: #3C3C3C;
  color: #FDF5E6;
  padding: 10px 25px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #8B1A1A;
  display: flex;
  align-items: center;
  gap: 20px;
}

.container-browse header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  color: #FDF5E6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.container-browse .header-decoration {
  height: 2px;
  margin: 8px auto;
}

.container-browse .category-badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #8B1A1A;
  color: #FDF5E6;
}

/* Browse: Header banner */
.container-browse .header-banner {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-browse .header-banner-img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.container-browse .header-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-browse .header-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.container-browse .strapline {
  font-style: italic;
  font-size: 1.2em;
  color: #FDF5E6;
  opacity: 0.85;
  font-weight: 400;
  margin: 0 0 6px 0;
  position: relative;
  z-index: 1;
}

.container-browse .subtitle {
  font-size: 0.8em;
  color: #FDF5E6;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Browse: Buttons */
.container-browse .playlist-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FDF5E6;
  border: 2px solid #FDF5E6;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.container-browse .playlist-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  border-color: #FDF5E6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.container-browse .about-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
  color: #FDF5E6;
  border: 2px solid #FDF5E6;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.container-browse .about-btn:hover {
  background: linear-gradient(135deg, #71b280 0%, #134e5e 100%);
  border-color: #FDF5E6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 78, 94, 0.4);
}

.container-browse .btn-icon {
  font-size: 1em;
}

/* Browse: Notifications (appended to body, not inside container) */
.temp-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.temp-notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.temp-notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.temp-notification.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.temp-notification.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

/* Browse: Article overlay */
.container-browse .article-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.container-browse .article-overlay-content {
  background: #FDF5E6;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #3C3C3C;
  animation: slideUp 0.3s ease;
}

.container-browse .article-overlay-header {
  background: #3C3C3C;
  color: #FDF5E6;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #8B1A1A;
  flex-shrink: 0;
}

.container-browse .article-overlay-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  margin: 0;
  color: #FDF5E6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.container-browse .close-overlay-btn {
  background: transparent;
  border: none;
  color: #FDF5E6;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.container-browse .close-overlay-btn:hover {
  background: rgba(253, 245, 230, 0.1);
  transform: scale(1.05);
}

.container-browse .article-overlay-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.container-browse .article-overlay-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #FDF5E6;
}

.container-browse .track-thumbnail-img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-browse .track-thumbnail-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

/* Browse: Search section */
.container-browse .search-section-wrapper {
  margin-bottom: 30px;
}

.container-browse .filter-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #3C3C3C;
  color: #FDF5E6;
  border: 2px solid #8B1A1A;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.container-browse .filter-toggle-btn:hover {
  background: #8B1A1A;
}

.container-browse .filter-toggle-icon {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.container-browse .filter-toggle-btn.collapsed .filter-toggle-icon {
  transform: rotate(-90deg);
}

.container-browse .search-section {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.container-browse .search-input {
  flex: 1;
  min-width: 250px;
  padding: 8px 12px;
  border: 2px solid #3C3C3C;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background: #FDF5E6;
  color: #1F1F1F;
}

.container-browse .search-input:focus {
  outline: none;
  border-color: #8B1A1A;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.15);
}

.container-browse .sort-select, .container-browse .category-select {
  padding: 8px 12px;
  border: 2px solid #3C3C3C;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Poppins', sans-serif;
  background: #FDF5E6;
  color: #1F1F1F;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container-browse .sort-select:focus, .container-browse .category-select:focus {
  outline: none;
  border-color: #8B1A1A;
}

.container-browse .date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #1F1F1F;
  border: 2px solid #3C3C3C;
  border-radius: 4px;
  flex-wrap: wrap;
}

.container-browse .date-input {
  padding: 6px 10px;
  border: 2px solid #3C3C3C;
  border-radius: 4px;
  background: #2A2A2A;
  color: #FDF5E6;
  font-size: 0.8em;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container-browse .date-input:hover {
  border-color: #8B1A1A;
}

.container-browse .date-input:focus {
  outline: none;
  border-color: #8B1A1A;
  background: #3C3C3C;
}

.container-browse .date-separator {
  color: #FDF5E6;
  font-size: 0.9em;
  padding: 0 4px;
}

.container-browse .clear-date-btn {
  background: #3C3C3C;
  color: #FDF5E6;
  border: 2px solid #3C3C3C;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.container-browse .clear-date-btn:hover {
  background: #8B1A1A;
  border-color: #8B1A1A;
  transform: scale(1.1);
}

.container-browse .clear-date-btn:active {
  transform: scale(0.95);
}

.container-browse .date-filter-indicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  animation: fadeIn 0.3s ease;
}

/* Browse: Hitstream player */
.container-browse .hitstream-player {
  background: #1F1F1F;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 20px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 26, 26, 0.2);
  border: 3px solid #8B1A1A;
  overflow: hidden;
  position: relative;
}

.container-browse .hitstream-appbar {
  background: #3C3C3C;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #8B1A1A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.container-browse .appbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.container-browse .hitstream-status {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75em;
  color: #FDF5E6;
  font-weight: 500;
  background: #8B1A1A;
  padding: 4px 12px;
  border-radius: 4px;
}

.container-browse #audio-player {
  width: 100%;
  display: none;
}

.container-browse .player-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  gap: 12px;
}

.container-browse .player-logo {
  display: none;
}

.container-browse .player-main {
  flex: 0 0 75%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.container-browse .player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.container-browse .track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.container-browse .track-title {
  font-size: 1.0em;
  font-weight: 700;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container-browse .track-genre {
  font-size: 0.8em;
  color: #f093fb;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.container-browse .time-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8em;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.container-browse .progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.container-browse .progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #f093fb 50%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.container-browse .progress-bar:hover .progress-fill {
  background: linear-gradient(90deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.7);
}

.container-browse .player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.container-browse .player-thumbnail {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 140px;
}

.container-browse .track-thumbnail-img {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.container-browse .control-btn {
  background: linear-gradient(145deg, #3C3C3C 0%, #1F1F1F 100%);
  color: #8B1A1A;
  border: 2px solid #8B1A1A;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.container-browse .control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(139, 26, 26, 0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.container-browse .control-btn:hover::before {
  transform: translateX(100%);
}

.container-browse .control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #8B1A1A;
  box-shadow:
    0 10px 25px rgba(139, 26, 26, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.container-browse .control-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container-browse .control-btn svg {
  fill: #FDF5E6;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 1;
}

.container-browse .play-btn {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, #8B1A1A 0%, #6B1212 100%);
  border-color: #FDF5E6;
}

.container-browse .play-btn svg {
  fill: #FDF5E6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.container-browse .play-btn:hover {
  background: linear-gradient(145deg, #A02020 0%, #8B1A1A 100%);
  box-shadow:
    0 12px 35px rgba(139, 26, 26, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.container-browse .shuffle-btn.active {
  background: linear-gradient(145deg, #10b981 0%, #059669 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.container-browse .shuffle-btn.active:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}

.container-browse .cast-btn {
  display: flex;
}

.container-browse .cast-btn.active {
  display: flex;
  background: linear-gradient(145deg, #4285f4 0%, #3367d6 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.container-browse .cast-btn.active svg {
  fill: #ffffff;
}

/* Google Cast Launcher styling */
.container-browse #cast-launcher {
  display: none;
}

.container-browse .cast-active #cast-launcher {
  display: none !important;
}

/* Browse: Productions list */
.container-browse .productions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.container-browse .production-card {
  background: #FDF5E6;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 31, 31, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
  border: 2px solid #3C3C3C;
}

.container-browse .production-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.25);
  border-color: #8B1A1A;
}

.container-browse .production-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container-browse .production-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.container-browse .production-card:hover .production-image img {
  transform: scale(1.05);
}

.container-browse .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container-browse .production-card:hover .play-overlay {
  opacity: 1;
}

.container-browse .play-icon {
  font-size: 3em;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.container-browse .production-info {
  padding: 20px;
  position: relative;
}

.container-browse .production-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  color: #1F1F1F;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.container-browse .production-genre {
  font-size: 0.85em;
  color: #8B1A1A;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.container-browse .production-date {
  font-size: 0.85em;
  color: #3C3C3C;
  margin-bottom: 10px;
}

.container-browse .production-summary {
  font-size: 0.9em;
  color: #3C3C3C;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.container-browse .no-results {
  text-align: center;
  padding: 60px 20px;
  color: #3C3C3C;
  font-size: 1.1em;
}

/* Browse: Pagination */
.container-browse .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
  background: #3C3C3C;
  border-radius: 8px;
  border: 2px solid #8B1A1A;
  flex-wrap: wrap;
}

.container-browse .pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #8B1A1A;
  color: #FDF5E6;
  border: 2px solid #FDF5E6;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.container-browse .pagination-btn:hover:not(:disabled) {
  background: #A02020;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.container-browse .pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.container-browse .pagination-btn svg {
  flex-shrink: 0;
}

.container-browse .page-info {
  color: #FDF5E6;
  font-size: 0.95em;
  font-weight: 500;
  text-align: center;
}

.container-browse .page-info span {
  font-weight: 700;
  color: #f093fb;
}

/* Browse: Modal overlay (outside container in DOM) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100vh;
  background: white;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 15px;
}

.modal-close,
.modal-popout {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover,
.modal-popout:hover {
  background: rgba(139, 26, 26, 0.9);
  transform: scale(1.1);
}

.modal-popout svg {
  width: 20px;
  height: 20px;
}

.production-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Responsive: Article ===== */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container-article header {
    padding: 35px 20px;
  }

  .container-article header h1 {
    font-size: 2em;
  }

  .container-article .lyrics {
    padding: 20px;
    font-size: 1em;
    max-height: 350px;
  }

  .container-article .satire-caption {
    font-size: 1.05em;
    padding: 0 10px;
  }

  .container-article .song-section h2 {
    font-size: 1.8em;
  }

  .container-article .lyrics-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .container-article .copy-notification {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  /* ===== Responsive: Browse ===== */
  .container-browse .appbar-logo {
    height: 24px;
  }

  .container-browse header {
    flex-direction: column;
    padding: 12px 20px;
    text-align: center;
  }

  .container-browse .header-banner {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 10px;
  }

  .container-browse .header-banner-img {
    max-height: 120px;
  }

  .container-browse .header-content {
    width: 100%;
  }

  .container-browse header h1 {
    font-size: 1.4em;
  }

  main {
    padding: 25px 20px;
  }

  .container-browse .productions-list {
    grid-template-columns: 1fr;
  }

  .container-browse .filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container-browse .search-section {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .container-browse .search-section.visible {
    display: flex;
  }

  .container-browse .search-input, .container-browse .sort-select, .container-browse .category-select {
    width: 100%;
  }

  .container-browse .date-filter {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .container-browse .date-input {
    width: 100%;
  }

  .container-browse .clear-date-btn {
    width: 100%;
  }

  .container-browse .pagination {
    gap: 12px;
    padding: 15px;
  }

  .container-browse .pagination-btn {
    padding: 8px 16px;
    font-size: 0.85em;
  }

  .container-browse .page-info {
    font-size: 0.85em;
    width: 100%;
    order: -1;
  }

  .container-browse .player-content {
    padding: 10px 12px;
    gap: 8px;
  }

  .container-browse .player-logo {
    display: none;
  }

  .container-browse .player-main {
    flex: 0 0 70%;
  }

  .container-browse .player-thumbnail {
    flex: 0 0 30%;
    max-width: 98px;
  }

  .container-browse .track-thumbnail-img {
    max-height: 98px;
  }

  .container-browse .control-btn {
    width: 32px;
    height: 32px;
  }

  .container-browse .play-btn {
    width: 38px;
    height: 38px;
  }

  .modal-content {
    height: 100vh;
    height: 100dvh;
  }

  .modal-header {
    padding: 10px;
  }

  .modal-close,
  .modal-popout {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .modal-popout svg {
    width: 18px;
    height: 18px;
  }

  .floating-icons {
    font-size: 25px;
  }
}
