.watch-player {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 2rem 0;
  width: 100%;
}

.watch-video {
  min-width: 0;
}

.watch-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

.watch-chapters {
  min-width: 0;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}

.watch-chapters h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.watch-chapters ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.watch-chapters button {
  width: 100%;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  text-align: left;
  padding: 0.45rem 0.3rem;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  cursor: pointer;
}

.watch-chapters button:hover {
  background: #f0f0f0;
}

.chapter-time {
  flex: 0 0 auto;
  font-family: monospace;
  font-size: 0.75rem;
  color: #666;
}

.chapter-title {
  flex: 1 1 auto;
  color: #222;
  font-size: 0.9rem;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Watch index ===== */

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.watch-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.watch-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.watch-card-thumb {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.watch-card-body {
  padding: 0.6rem 0.7rem;
}

.watch-card-body h2 {
  font-size: 0.9rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.watch-card-date {
  font-size: 0.75rem;
  color: #777;
  margin: 0 0 0.4rem;
}

.watch-card-summary {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-tags {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.episode-tags a {
  text-decoration: none;
}

.episode-tags a:hover {
  text-decoration: underline;
}

.episode-categories {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.episode-categories a {
  text-decoration: none;
}

.episode-categories a:hover {
  text-decoration: underline;
}

.watch-notes {
  margin: 1.5rem 0;
}

.watch-notes-button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.watch-notes-button:hover {
  background: #155cc0;
}

.latest-watch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.latest-watch-item {
  min-width: 0;
}

.latest-watch-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.latest-watch-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.latest-watch-item h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0.5rem 0 0;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .watch-player {
    grid-template-columns: 1fr;
  }

  .watch-chapters {
    height: auto !important;
  }

  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .latest-watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .watch-grid,
  .latest-watch-grid {
    grid-template-columns: 1fr;
  }
}
