@font-face {
  font-family: 'GT America Extended';
  src: url('../GT-America-Extended-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: linear-gradient(to bottom right, #2d5752, #18221f);
  min-height: 100vh;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.video-title {
  font-family: 'GT America Extended', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.language-toggle .flag {
  font-size: 18px;
}

.language-toggle .current-lang {
  font-weight: bold;
  color: #4CAF50;
}

.bunny-player-container {
  width: 100%;
  margin-bottom: 30px;
}

#transcript {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.transcript-line {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.transcript-line:hover {
  background: rgba(255, 255, 255, 0.1);
}

.transcript-line.highlight {
  background: rgba(255, 255, 0, 0.3);
  border-left-color: #ffff00;
  font-weight: bold;
}

.speaker {
  font-weight: bold;
  color: #4CAF50;
  margin-right: 8px;
}

.timestamp {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 8px;
}

.text {
  line-height: 1.4;
}

.search-container {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-nav {
  display: flex;
  gap: 5px;
}

.search-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 80px;
  text-align: right;
}

.search-highlight {
  background: rgba(255, 255, 0, 0.6);
  color: #000;
  padding: 1px 2px;
  border-radius: 2px;
}

.search-highlight.current {
  background: rgba(255, 165, 0, 0.8);
}

.chapters-container {
  margin-bottom: 20px;
}

.chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.chapters-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.chapters-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4CAF50;
  border-radius: 30px;
  padding: 14px 24px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.chapters-toggle-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.chapters-toggle-btn:active {
  transform: translateY(0);
}

.chapters-toggle-btn.collapsed {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.chapters-toggle-btn.collapsed:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.toggle-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.toggle-text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chapters-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.chapters-list.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.chapter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.chapter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chapter-btn.active {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4CAF50;
  color: #ffffff;
}

.chapter-time {
  font-size: 12px;
  opacity: 0.8;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .video-title {
    font-size: 20px;
  }

  .language-toggle {
    align-self: center;
  }
}



