.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-content {
  max-width: 800px;
  background: rgba(15,15,15,0.95);
  border: 1px solid var(--zenith-embers);
  border-radius: 10px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: var(--zenith-bone);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--zenith-embers);
}

.language-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--zenith-embers);
  gap: 0.5rem;
}

.lang-tab {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--zenith-bone);
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-tab.active {
  background: rgba(255,100,0,0.1);
  color: var(--zenith-embers);
  font-weight: bold;
}

.lang-tab:hover:not(.active) {
  background: rgba(255,255,255,0.05);
}

.archive-section {
  margin: 3rem 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  direction: rtl;
}

.archive-card {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 100, 0, 0.1);
  transition: all 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--zenith-embers);
}

.archive-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.archive-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.archive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.archive-card:hover .archive-thumbnail img {
  transform: scale(1.05);
}

.archive-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
}

.archive-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.archive-date {
  color: var(--zenith-aqua);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.archive-title {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  color: var(--zenith-bone);
}

.archive-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.archive-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.archive-actions .cosmic-button {
  flex: 1;
}

.youtube-button {
  background: rgba(255, 0, 0, 0.1) !important;
  border-color: #ff0000 !important;
}

.youtube-button i {
  color: #ff0000 !important;
}

.youtube-button:hover {
  background: rgba(255, 0, 0, 0.2) !important;
}

.archive-card.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

.archive-card.animate:nth-child(1) {
  animation-delay: 0.1s;
}

.archive-card.animate:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-episode-container,
.episodes-archive {
  direction: rtl;
  margin: 3rem auto;
  max-width: 1200px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  background: linear-gradient(135deg, var(--zenith-blood), var(--zenith-embers));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 100, 0, 0.3);
  animation: pulse 2s infinite;
}

.section-title {
  font-size: 2.2rem;
  color: var(--zenith-bone);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--zenith-aqua);
  font-size: 1.1rem;
  opacity: 0.9;
}

.featured-episode-card {
  display: flex;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--zenith-embers);
  box-shadow: 0 10px 40px rgba(255, 100, 0, 0.15);
  transition: transform 0.3s ease;
}

.featured-episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(255, 100, 0, 0.25);
}

.featured-media {
  flex: 1;
  min-width: 50%;
  position: relative;
}

.thumbnail-wrapper {
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-episode-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.8);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.duration-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.featured-details {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.release-date {
  color: var(--zenith-aqua);
  font-size: 0.95rem;
}

.new-indicator {
  background: var(--zenith-blood);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.episode-title {
  font-size: 1.8rem;
  margin: 0.5rem 0 1rem;
  color: var(--zenith-bone);
  line-height: 1.4;
}

.episode-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.transcript-btn, .play-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.transcript-btn {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid var(--zenith-aqua);
  color: var(--zenith-aqua);
}

.play-btn {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  color: #ff0000;
}

.transcript-btn:hover {
  background: rgba(78, 205, 196, 0.2);
  transform: translateY(-3px);
}

.play-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  transform: translateY(-3px);
}

.faq-section .future-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq-section .future-card:hover {
  transform: translateY(-5px);
}

.faq-section .future-card-icon {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--zenith-aqua);
  color: var(--zenith-aqua);
}

#toggleFAQ {
  transition: all 0.3s ease;
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--zenith-aqua);
}

#toggleFAQ:hover {
  background: rgba(78, 205, 196, 0.2);
  transform: translateY(-3px);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@media (max-width: 768px) {
  .featured-episode-card {
    flex-direction: column;
  }
  
  .featured-media {
    height: 250px;
  }
  
  .featured-details {
    padding: 1.5rem;
  }
  
  .episode-title {
    font-size: 1.5rem;
  }
  
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
.updates-back {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 5rem;
}

 
.platforms-section {
  margin: 3rem 0;
  direction: rtl;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 100, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 120px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

.platform-card:nth-child(1) { animation-delay: 0.1s; }
.platform-card:nth-child(2) { animation-delay: 0.2s; }
.platform-card:nth-child(3) { animation-delay: 0.3s; }
.platform-card:nth-child(4) { animation-delay: 0.4s; }
.platform-card:nth-child(5) { animation-delay: 0.5s; }

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--zenith-embers);
  background: rgba(255, 100, 0, 0.05);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--zenith-bone);
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon {
  transform: scale(1.2);
}

.platform-name {
  color: var(--zenith-bone);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.platform-card:hover .platform-name {
  color: var(--zenith-embers);
}
 
.platform-card[aria-label="TikTok"] .platform-icon { color: #25F4EE; }
.platform-card[aria-label="Spotify"] .platform-icon { color: #1DB954; }
.platform-card[aria-label="Deezer"] .platform-icon { color: #FEAA2D; }
.platform-card[aria-label="Amazon Music"] .platform-icon { color: #00A8E1; }
.platform-card[aria-label="Apple Music"] .platform-icon { color: #FC3C44; }

@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .platform-card {
    height: 100px;
    padding: 1rem;
  }
  
  .platform-icon {
    font-size: 2rem;
  }
  
  .platform-name {
    font-size: 1rem;
  }
}
 
html[lang="en"] body,
html[lang="fr"] body {
  direction: ltr;
  text-align: left;
}
 
html[lang="en"] .featured-episode-card,
html[lang="fr"] .featured-episode-card {
  flex-direction: row-reverse;
}
 
html[lang="en"] .archive-grid,
html[lang="fr"] .archive-grid {
  direction: ltr;
}
 
html[lang="en"] .faq-section,
html[lang="fr"] .faq-section {
  direction: ltr;
} 
 
 
html[lang="en"] .platforms-grid,
html[lang="fr"] .platforms-grid {
  direction: ltr;
}
 
@media (max-width: 768px) {
  html[lang="en"] .featured-episode-card,
  html[lang="fr"] .featured-episode-card {
    flex-direction: column;
  }
  
  html[lang="en"] .action-buttons,
  html[lang="fr"] .action-buttons,
  html[lang="en"] .archive-actions,
  html[lang="fr"] .archive-actions {
    flex-direction: row;
  }
}