/* =============================================
   COURSE PLAYER PAGE — Dr. Yanai Academy
   Dark theme, Montserrat, gold accent (#c9a96e)
   ============================================= */

/* ─── Base ─── */
body {
  background: #0a0a0a;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* ─── VIDEO PLAYER ─── */
.player {
  background: #000;
  padding: 0;
}

.player__video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
}

.player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.player__play-btn:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Controls Bar */
.player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 10;
}

.player__ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.player__ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.player__ctrl-play svg {
  width: 14px;
  height: 14px;
}

.player__progress {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.player__progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
}

.player__progress-filled {
  height: 100%;
  background: #c9a96e;
  border-radius: 2px;
}

.player__progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #c9a96e;
  border-radius: 50%;
}

.player__time {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── EPISODES SECTION ─── */
.episodes {
  background: #0a0a0a;
  padding: 40px 0 60px;
}

.episodes__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Season Selector */
.episodes__season {
  margin-bottom: 24px;
}

.episodes__season-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.episodes__season-arrow {
  font-size: 10px;
  color: #c9a96e;
}

/* Current Episode Info */
.episodes__current {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.episodes__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.episodes__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
}

/* Episode List */
.episodes__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.episodes__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 16px;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s;
  border-left: 3px solid transparent;
  position: relative;
}

.episodes__item:hover {
  background: rgba(255,255,255,0.04);
  border-left-color: #c9a96e;
}

.episodes__item--active {
  background: rgba(201,169,110,0.08);
  border-left-color: #c9a96e;
}

.episodes__item-thumb {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.episodes__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episodes__item-info {
  flex: 1;
  min-width: 0;
}

.episodes__item-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.episodes__item-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
  margin: 0 0 8px;
}

.episodes__item-duration {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #c9a96e;
}

.episodes__item-hover {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #c9a96e;
  opacity: 0;
  transition: opacity 0.2s;
}

.episodes__item:hover .episodes__item-hover,
.episodes__item--active .episodes__item-hover {
  opacity: 1;
}

/* ─── MORE TO WATCH ─── */
.more-to-watch {
  background: #0a0a0a;
  padding: 60px 0 80px;
}

.more-to-watch__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.more-to-watch__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  color: #fff;
  margin: 0 0 40px;
  text-align: left;
}

.more-to-watch__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.more-to-watch__card {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.more-to-watch__card:hover {
  transform: translateY(-4px);
}

.more-to-watch__card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
}

.more-to-watch__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-to-watch__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.more-to-watch__card-img {
  position: relative;
}

.more-to-watch__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 2;
}

.more-to-watch__card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.more-to-watch__card-desc {
  padding: 12px 0;
}

.more-to-watch__card-desc p {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

/* ─── FOOTER ─── */
.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #666;
  margin: 4px 0 0;
}

.footer__copy p {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #555;
  margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .player__video-wrap {
    max-width: 100%;
  }

  .episodes__container {
    max-width: 100%;
  }

  .more-to-watch__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .episodes__item-thumb {
    width: 120px;
    height: 68px;
  }

  .episodes__title {
    font-size: 18px;
  }

  .more-to-watch__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .more-to-watch__card-name {
    font-size: 14px;
  }

  .player__controls {
    gap: 8px;
    padding: 8px 12px;
  }

  .player__time {
    font-size: 10px;
  }
}
