/**
 * DramaKey component stylesheet.
 */

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 183, 64, 0.35);
  border-radius: var(--border-radius);
  background: rgba(244, 183, 64, 0.1);
  color: var(--accent-warm);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.logo-text span {
  color: var(--accent-warm);
}

.site-logo:hover .logo-icon {
  background: rgba(240, 82, 111, 0.13);
  color: var(--accent-color);
  transform: translateY(-1px);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background: rgba(13, 16, 20, 0.9);
  backdrop-filter: blur(14px);
}

.navbar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

.logo-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--accent-warm);
}

.nav-search-desktop {
  flex: 0 1 280px;
}

.nav-search-desktop form,
.mobile-search form,
.search-box form {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-desktop input,
.mobile-search input {
  height: 40px;
  padding: 8px 42px 8px 13px;
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
}

.nav-search-desktop button,
.mobile-search button,
.search-box button,
.search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--accent-warm);
  cursor: pointer;
}

.nav-search-desktop button,
.mobile-search button {
  position: absolute;
  right: 9px;
}

.mobile-search {
  display: none;
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--text-main);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.site-ad-banner {
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin-bottom: 24px;
}

.speedbits-leaderboard {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(728px, 100%);
  min-height: 88px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 183, 64, 0.24);
  border-radius: var(--border-radius);
  background:
    linear-gradient(135deg, rgba(240, 82, 111, 0.22), transparent 42%),
    linear-gradient(90deg, #101820, #172432);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.speedbits-leaderboard:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(244, 183, 64, 0.42);
}

.sl-left,
.sl-center {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sl-logo {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.sl-logo span {
  color: var(--accent-warm);
}

.sl-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sl-networks span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-xs);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.sl-center {
  text-align: center;
}

.sl-center strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.sl-center span {
  color: #d8e1e6;
  font-size: 0.9rem;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--border-radius-sm);
  background: var(--accent-warm);
  color: #121316;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 34px;
  min-height: 430px;
  margin-bottom: 44px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background:
    linear-gradient(135deg, rgba(244, 183, 64, 0.14), transparent 36%),
    linear-gradient(215deg, rgba(31, 183, 159, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--box-shadow);
  max-width: 100%;
}

.hero-content {
  max-width: 680px;
  min-width: 0;
}

.hero-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 4rem;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.13rem;
  overflow-wrap: anywhere;
}

.search-container {
  width: 100%;
  max-width: 650px;
  min-width: 0;
}

.search-container form {
  position: relative;
}

.search-input {
  height: 58px;
  padding: 15px 58px 15px 18px;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  background: rgba(10, 12, 15, 0.58);
}

.search-submit-btn {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-poster-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 12px;
  align-self: stretch;
  max-height: 360px;
  overflow: hidden;
}

.hero-poster-rail img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--card-shadow);
}

.hero-poster-rail img:nth-child(2),
.hero-poster-rail img:nth-child(5) {
  transform: translateY(26px);
}

.latest-section,
.series-section {
  margin-top: 40px;
}

.view-more-container {
  display: flex;
  justify-content: center;
}

.series-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.series-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.series-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 183, 64, 0.45);
  background: var(--surface-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.series-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(240, 82, 111, 0.16), rgba(31, 183, 159, 0.1));
}

.series-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.series-card:hover .series-poster img {
  transform: scale(1.035);
}

.country-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: var(--border-radius-xs);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.series-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.58);
  transition: opacity var(--transition);
}

.series-card:hover .series-overlay {
  opacity: 1;
}

.play-icon {
  color: var(--accent-warm);
}

.view-details {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.series-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px;
}

.series-title {
  height: 2.65rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.series-year {
  padding: 2px 8px;
  border: 1px solid rgba(244, 183, 64, 0.28);
  border-radius: var(--border-radius-xs);
  background: rgba(244, 183, 64, 0.1);
  color: var(--accent-warm);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 46px 0 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 39px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.page-link:hover {
  border-color: rgba(244, 183, 64, 0.45);
  color: var(--text-main);
  background: rgba(244, 183, 64, 0.08);
  transform: translateY(-1px);
}

.page-link.active {
  border-color: transparent;
  background: var(--accent-warm);
  color: #121316;
}

.page-ellipsis {
  pointer-events: none;
}

.page-link.prev-next {
  gap: 6px;
}

.series-detail-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 42px;
  padding: 52px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #11161d;
}

.header-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.2;
  transform: scale(1.1);
}

.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.96), rgba(13, 16, 20, 0.78)),
    linear-gradient(135deg, rgba(240, 82, 111, 0.12), rgba(31, 183, 159, 0.14));
}

.header-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.series-poster-section {
  position: sticky;
  top: 96px;
}

.series-poster-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(244, 183, 64, 0.38);
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.series-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-info-section .series-title {
  display: block;
  height: auto;
  overflow: visible;
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.08;
  -webkit-line-clamp: unset;
}

.series-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  min-width: 92px;
}

.meta-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  margin-top: 2px;
  color: var(--accent-warm);
  font-size: 1.05rem;
  font-weight: 800;
}

.series-genres,
.cast-list,
.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-badge,
.cast-member,
.country-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xs);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.genre-badge {
  border-color: rgba(31, 183, 159, 0.34);
  background: rgba(31, 183, 159, 0.1);
  color: #9cebdc;
}

.genre-badge:hover {
  color: #fff;
  border-color: rgba(244, 183, 64, 0.45);
}

.country-badge {
  color: var(--accent-warm);
}

.series-overview {
  max-width: 850px;
  color: #e8e2dc;
  font-size: 1.04rem;
  line-height: 1.75;
}

.cast-title,
.production-title {
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.share-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
}

.share-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--border-radius-sm);
  color: #fff;
}

.share-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.facebook { background-color: #1877f2; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }

.trailer-section,
.seasons-section,
.related-section {
  margin: 52px 0;
}

.trailer-container {
  position: relative;
  width: min(820px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #000;
  box-shadow: var(--card-shadow);
}

.trailer-placeholder,
.trailer-placeholder img,
.trailer-iframe {
  width: 100%;
  height: 100%;
}

.trailer-placeholder {
  position: relative;
  cursor: pointer;
}

.trailer-placeholder img {
  object-fit: cover;
  opacity: 0.86;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 50px;
  border: 0;
  border-radius: var(--border-radius);
  background: rgba(13, 16, 20, 0.86);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.play-btn:hover {
  background: var(--accent-color);
}

.play-btn svg {
  width: 32px;
  height: 32px;
}

.trailer-iframe {
  position: absolute;
  inset: 0;
}

.seasons-subtitle {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.seasons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.season-accordion {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
}

.season-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  text-align: left;
}

.season-header:hover {
  background: rgba(255, 255, 255, 0.045);
}

.season-header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.season-number {
  color: var(--accent-warm);
}

.episode-count {
  padding: 3px 9px;
  border-radius: var(--border-radius-xs);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.accordion-icon {
  flex: 0 0 auto;
  color: var(--accent-warm);
  transition: transform var(--transition);
}

.accordion-icon.open {
  transform: rotate(180deg);
}

.season-content {
  padding: 0 18px 18px;
}

.episodes-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.episode-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.episode-item:hover {
  border-color: rgba(31, 183, 159, 0.38);
  background: rgba(31, 183, 159, 0.08);
}

.episode-header,
.episode-number,
.episode-item .download-btn,
.episode-item .coming-soon-badge {
  width: 100%;
}

.episode-number {
  display: inline-flex;
  justify-content: center;
  padding: 6px 8px;
  border-radius: var(--border-radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-warm);
  font-size: 0.84rem;
  font-weight: 800;
}

.download-btn,
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: var(--border-radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
}

.download-btn {
  background: var(--accent-secondary);
  color: #07110f;
}

.download-btn:hover {
  color: #07110f;
  filter: brightness(1.06);
}

.coming-soon-badge {
  border: 1px solid rgba(244, 183, 64, 0.3);
  background: rgba(244, 183, 64, 0.12);
  color: var(--accent-warm);
}

.related-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.related-card:hover img {
  transform: scale(1.035);
}

.related-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 13px 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.related-title {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.28;
}

.not-found-panel {
  margin: 80px auto;
  max-width: 620px;
}

.not-found-panel h2 {
  margin-bottom: 14px;
  font-size: 2.2rem;
}

.not-found-panel .btn-primary {
  margin-top: 24px;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.genre-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--text-main);
}

.genre-card:hover {
  border-color: rgba(31, 183, 159, 0.46);
  background: rgba(31, 183, 159, 0.08);
  color: var(--text-main);
  transform: translateY(-2px);
}

.genre-name {
  color: var(--text-main);
  font-size: 1.12rem;
  font-weight: 800;
}

.genre-count {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--border-radius-xs);
  background: rgba(244, 183, 64, 0.1);
  color: var(--accent-warm);
  font-size: 0.86rem;
  font-weight: 800;
}

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
}

.az-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 800;
}

.az-nav-link:hover {
  border-color: transparent;
  background: var(--accent-warm);
  color: #121316;
  transform: translateY(-1px);
}

.az-group {
  margin-bottom: 42px;
  scroll-margin-top: 96px;
}

.az-char-title {
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-warm);
  font-size: 1.8rem;
}

.az-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.az-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-main);
}

.az-item-link:hover {
  border-color: rgba(244, 183, 64, 0.42);
  background: rgba(244, 183, 64, 0.08);
  color: var(--text-main);
  transform: translateX(2px);
}

.item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.item-year {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-page {
  max-width: 1040px;
  margin-inline: auto;
}

.search-title {
  font-size: 2.8rem;
}

.search-box {
  max-width: 640px;
  margin-top: 20px;
}

.search-box input {
  height: 52px;
  padding-right: 54px;
  font-size: 1.02rem;
}

.search-box button {
  position: absolute;
  right: 16px;
  width: 30px;
  height: 30px;
}

.results-section {
  margin-top: 32px;
}

.results-category-title {
  margin-bottom: 22px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-warm);
  font-size: 1.45rem;
}

.contact-container {
  max-width: 640px;
  margin-inline: auto;
}

.contact-header {
  margin-bottom: 28px;
  text-align: center;
}

.contact-header h1 {
  margin-bottom: 10px;
  font-size: 2.35rem;
}

.contact-header p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-submit {
  width: 100%;
  border: 0;
}

.legal-content {
  color: #e7dfd8;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content h2 {
  margin: 30px 0 12px;
  color: var(--accent-warm);
  font-size: 1.45rem;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 20px 20px;
  color: var(--text-muted);
  list-style: disc;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 13px;
  }

  .nav-search-desktop {
    flex-basis: 210px;
  }

  .hero {
    grid-template-columns: 1fr 300px;
    padding: 34px;
  }

  .hero-title {
    font-size: 3.35rem;
  }

  .header-content {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .episodes-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .navbar-container {
    min-height: 68px;
  }

  .nav-search-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 20px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 16, 20, 0.98);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    justify-content: center;
  }

  .mobile-search {
    display: block;
    margin-bottom: 6px;
  }

  .speedbits-leaderboard {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .sl-left,
  .sl-center {
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-poster-rail {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
    max-height: 154px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero-poster-rail img {
    height: 140px;
  }

  .hero-poster-rail img:nth-child(2),
  .hero-poster-rail img:nth-child(5) {
    transform: none;
  }

  .header-content {
    grid-template-columns: 1fr;
  }

  .series-poster-section {
    position: static;
  }

  .series-poster-image {
    max-width: 260px;
    margin-inline: auto;
  }

  .series-info-section .series-title {
    font-size: 2.05rem;
  }

  .series-metadata {
    gap: 12px;
  }

  .episodes-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .sl-center strong {
    font-size: 1.1rem;
  }

  .hero {
    padding: 22px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-input {
    height: 52px;
    font-size: 0.98rem;
  }

  .series-detail-header {
    padding: 32px 0;
  }

  .share-container {
    width: 100%;
    justify-content: space-between;
  }

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

  .genres-grid {
    grid-template-columns: 1fr;
  }

  .az-items {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.comments-header {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: transform var(--transition);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-color));
  color: #111316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.comment-content-wrapper {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 700;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-text {
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form-container {
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
}

.comment-form-title {
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
}

.comment-form .form-group {
  margin-bottom: 16px;
}

.comment-submit-btn {
  margin-top: 10px;
  width: 100%;
}

.comment-toast {
  margin-bottom: 20px;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.comment-toast.success {
  display: block;
  background: rgba(47, 210, 127, 0.1);
  border: 1px solid rgba(47, 210, 127, 0.3);
  color: var(--success-color);
}

.comment-toast.error {
  display: block;
  background: rgba(255, 93, 117, 0.1);
  border: 1px solid rgba(255, 93, 117, 0.3);
  color: var(--error-color);
}

.empty-comments {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .comment-card {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .comment-form-container {
    padding: 20px;
  }
}

.comment-replies {
  margin-top: 12px;
  margin-left: 48px;
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 560px) {
  .comment-replies {
    margin-left: 20px;
    padding-left: 12px;
  }
}

.comment-reply {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.admin-badge {
  background: var(--accent-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--border-radius-xs);
  text-transform: uppercase;
}

.comment-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.reply-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.reply-btn:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.reply-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 183, 64, 0.1);
  border: 1px solid rgba(244, 183, 64, 0.3);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  color: var(--accent-warm);
  font-size: 0.9rem;
  font-weight: 600;
}

.cancel-reply-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.cancel-reply-btn:hover {
  color: var(--text-main);
}
