
/* Общие стили */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: Arial, sans-serif;
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Навигация */
nav {
  width: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #4a5cd8 0%, #000000 100%);
}

.container {
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 { 
  font-size: 2em; 
  color: #222; 
  margin-bottom: 10px;
}

.subtitle { 
  font-size: 0.9em; 
  color: #777; 
  margin-bottom: 15px; 
  text-align: center;
}

.lang-switcher {
  margin-bottom: 20px;
  opacity: 0.7;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
  font-weight: 500;
  color: #666;
  text-align: center;
}

.lang-switcher:hover {
  opacity: 1;
}

.episodes-title {
  font-weight: 600;
  font-size: 32px;
  color: #000;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding: 0 20px;
  line-height: 1.2;
  text-transform: none;
}

.episodes-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.episodes-subtitle {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-top: 20px;
  opacity: 0.8;
  line-height: 1.3;
}

.episodes-list {
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  width: 100%;
}

.episode-item {
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #000;
}

.episode-item:hover {
  transform: translateY(-2px); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.episode-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.episode-header:hover {
  background: #f0f2f5;
}

.episode-number {
  display: flex; 
  align-items: center; 
  gap: 12px;
}

.episode-badge {
  background: #000; 
  color: #ffffff; 
  width: 32px; 
  height: 32px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 600; 
  font-size: 14px;
}

.episode-name {
  font-weight: 500; 
  font-size: 16px; 
  color: #000;
}

.episode-date {
  font-weight: 400; 
  color: #666; 
  font-size: 14px;
}

.episode-content {
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.4s ease; 
  background: #ffffff;
}

.episode-content.active {
  max-height: 800px;
}

.episode-details {
  padding: 20px;
}

.episode-info {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 10px;
  margin-bottom: 15px;
}

.episode-full-date {
  font-weight: 500; 
  font-size: 14px; 
  color: #000;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.episode-link {
  color: #ffffff; 
  text-decoration: none; 
  background: #000;
  padding: 10px 20px; 
  border-radius: 20px;
  font-weight: 400; 
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1 1 auto;
  text-align: center;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.episode-link:hover {
  background: #333; 
  transform: translateY(-1px); 
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.subtitle-note {
  font-size: 13px; 
  color: #666; 
  margin-top: 5px;
}

.video-container {
  width: 100%; 
  height: 350px; 
  margin-top: 15px; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

iframe {
  width: 100%; 
  height: 100%; 
  border: none;
}

.auth-message {
  background: #f8f9fb; 
  padding: 16px; 
  border-radius: 8px; 
  margin-top: 15px;
  border: 1px solid #e1e5e9;
}

.auth-title {
  font-weight: 500; 
  color: #000; 
  margin-bottom: 8px;
  font-size: 14px;
}

.auth-text {
  color: #666; 
  line-height: 1.4;
  font-size: 13px;
}

.watermark { 
  margin-top: 15px; 
  font-size: 0.9em; 
  opacity: 0.4; 
  color: #666;
}

/* Планшеты */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin: 15px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  .header-img {
    height: 150px;
  }
  
  .episodes-title {
    font-size: 24px;
    letter-spacing: 0.3px;
    padding: 0 15px;
    margin-bottom: 12px;
  }
  
  .episodes-title::after {
    width: 80px;
    bottom: -6px;
  }
  
  .episodes-subtitle {
    font-size: 12px;
    margin-top: 15px;
    letter-spacing: 0.2px;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .episode-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  
  .episode-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .video-container {
    height: 200px;
  }
  
  .links-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .episode-link {
    flex: 1 1 100%;
    min-width: 180px;
  }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
  nav {
    gap: 15px;
    padding: 10px 8px;
  }
  
  nav a {
    font-size: 0.9em;
    padding: 8px 12px;
  }
  
  .container {
    padding: 12px;
    margin: 10px;
  }
  
  h1 {
    font-size: 1.6em;
    margin: 10px 0;
  }
  
  .subtitle {
    font-size: 0.8em;
    text-align: center;
  }
  
  .header-img {
    height: 120px;
  }
  
  .episodes-title {
    font-size: 20px;
  }
  
  .episodes-subtitle {
    font-size: 11px;
  }
  
  .episode-header {
    padding: 10px 12px;
  }
  
  .episode-details {
    padding: 16px;
  }
  
  .episode-badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .episode-name {
    font-size: 14px;
  }
  
  body {
    padding: 15px;
  }
  
  .watermark {
    font-size: 0.8em;
    text-align: center;
  }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
  .episode-link {
    padding: 8px 16px;
    font-size: 13px;
  }
}
