/* ===== FILM DETAIL PAGE ===== */
.film-backdrop {
  height: 320px;
  background-size: cover;
  background-position: center 20%;
  position: relative;
}

.backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,15,.3) 0%, var(--bg) 100%);
}

.film-detail-page {
  padding-top: 1.25rem;
}

/* ===== BREADCRUMB STYLING ===== */
.breadcrumb-nav { margin-bottom: 1.25rem; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.78rem;
  color: #777788;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  list-style: none !important;
}

.breadcrumb-list li+li::before {
  content: '/';
  margin-right: 0.4rem;
  color: #444455;
  font-weight: 400;
}

.breadcrumb-list a {
  color: #888899;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--accent, #e50914);
}

/* ===== FILM HERO ===== */
.film-hero {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.film-poster {
  width: 240px;
  aspect-ratio: 2/3;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.7);
  margin-top: 0;
  position: relative;
  z-index: 2;
  display: block;
}

.film-poster-placeholder {
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 12px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-top: 0;
}

.film-main-info { flex: 1; min-width: 0; padding-top: 0.25rem; }

/* THE MAIN ANIME TITLE (KEEP PROMINENT AS REQUESTED BY USER) */
.film-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.film-original-title {
  color: #777788;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.film-tagline {
  color: #a0a0b0;
  font-style: italic;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.film-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.film-chips .chip {
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  transition: all .2s;
}

.film-chips .chip:hover {
  background: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  color: #fff;
}

/* Stats */
.film-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg2, #181820);
  border: 1px solid var(--border, #2a2a35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.stat-item { display: flex; flex-direction: column; gap: .1rem; }
.stat-label { font-size: .65rem; color: #777788; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-value { font-size: 0.9rem; font-weight: 700; color: #e0e0ee; }
.stat-value.gold { color: #fbbf24; }
.stat-sub { font-size: .7rem; color: #777788; margin-left: 2px; }

.stars {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #fbbf24;
  margin-right: 3px;
}

.film-director {
  color: #9999aa;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.film-director strong { color: #e0e0ee; }

/* ===== SECTION TITLES (SMALLER & COMPACT AS REQUESTED BY USER) ===== */
.section-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: 0.2px !important;
}

.section-sub-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ddddee !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.2px !important;
}

/* ===== SINOPSIS ANIME ===== */
.film-synopsis-card {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(20, 20, 28, 0.9);
  border: 1px solid var(--border, #262633);
  border-left: 3px solid var(--accent, #e50914);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.full-width-synopsis {
  width: 100%;
}

.synopsis-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.synopsis-p {
  color: #b5b5c5;
  line-height: 1.65;
  font-size: 0.88rem;
  margin: 0;
}

/* ===== WATCH SECTION & TAGS ===== */
.watch-section {
  margin-top: 1.25rem;
  background: var(--bg2, #181820);
  border: 1px solid var(--border, #262633);
  border-radius: 10px;
  padding: 1rem;
}

.film-tags-title {
  font-size: 0.75rem;
  color: #777788;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.film-tag {
  display: inline-block;
  background: #101014;
  border: 1px solid #262636;
  color: #888899;
  padding: 0.25rem 0.6rem;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: default;
  user-select: none;
}

.film-tag:hover {
  background: #1e1e28;
  border-color: var(--accent, #e50914);
  color: #ffffff;
}

/* ===== STREAM PLAYER & EPISODE SELECTOR ===== */
.episode-section {
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
  background: var(--bg2, #16161e);
  border: 1px solid var(--border, #262633);
  border-radius: 12px;
  padding: 1.25rem;
}

.episode-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #242433);
}

.server-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.server-label {
  font-size: 0.78rem;
  color: #777788;
  font-weight: 600;
}

.server-btn {
  background: #101014;
  border: 1px solid #262636;
  color: #888899;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.server-btn:hover, .server-btn.active {
  background: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  color: #ffffff;
}

.player-wrapper {
  margin-bottom: 1rem;
}

.player-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #242433);
  box-shadow: 0 6px 25px rgba(0,0,0,0.8);
}

.player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-box .akan-tayang-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0d14;
  color: #ffffff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.video-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(229, 9, 20, 0.2);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: spinnerRotate 0.9s linear infinite;
  margin-bottom: 1.2rem;
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.player-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #101014;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-top: 0.6rem;
  border: 1px solid #20202d;
  font-size: 0.82rem;
  color: #d0d0dd;
  font-weight: 600;
}

.direct-watch-btn {
  color: #fbbf24;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s;
}

.direct-watch-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.episode-box {
  background: #101014;
  border: 1px solid #20202d;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.episode-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.ep-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: block;
}

.ep-controls-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.ep-nav-btn {
  background: #181824;
  border: 1px solid #2d2d42;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ep-nav-btn:hover:not(:disabled) {
  background: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  color: #ffffff;
}

.ep-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.episode-dropdown-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: #181824;
  border: 1px solid #2d2d42;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.episode-dropdown-select:hover, .episode-dropdown-select:focus {
  border-color: var(--accent, #e50914);
  box-shadow: 0 0 0 2px rgba(229,9,20,0.25);
}

.episode-dropdown-select option {
  background: #12121a;
  color: #ffffff;
  padding: 0.4rem;
}

.ep-jump-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.ep-jump-label {
  font-size: 0.8rem;
  color: #9090aa;
  font-weight: 600;
  white-space: nowrap;
}

.ep-jump-group input {
  flex: 1;
  min-width: 0;
  max-width: 120px;
  background: #181824;
  border: 1px solid #2d2d42;
  color: #ffffff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.ep-jump-group input:focus {
  border-color: var(--accent, #e50914);
}

.ep-jump-btn {
  background: #181824;
  border: 1px solid #2d2d42;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ep-jump-btn:hover {
  background: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
}

/* ===== IN-PAGE ANIME GIF BANNER (440x140) ===== */
.player-banner-wrapper {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.player-banner-wrapper a {
  display: block;
  width: 100%;
  max-width: 440px;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.player-anime-banner {
  width: 100%;
  max-width: 440px;
  height: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ===== ULASAN OTAKU & PENONTON ===== */
.review-section {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.review-card {
  background: var(--bg2, #16161e);
  border: 1px solid var(--border, #242433);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: #333346;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #8b0000);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(229,9,20,0.3);
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.review-date {
  font-size: 0.72rem;
  color: #777788;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #b5b5c5;
  margin: 0;
}

/* ===== SIMILAR GRID ===== */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.similar-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: transform .2s, border-color .2s;
}

.similar-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.similar-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}

.similar-title {
  padding: .4rem .5rem;
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .film-backdrop { height: 180px; }
  .film-hero { flex-direction: column; gap: 1rem; }
  .film-poster { width: 140px; margin-top: 0; border-radius: 10px; }
  .film-poster-placeholder { width: 140px; margin-top: 0; }
  .film-title { font-size: 1.4rem; }
  .film-stats { gap: .6rem; padding: .65rem .85rem; }
  .review-list { grid-template-columns: 1fr; }
  .similar-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .6rem; }
}

@media (max-width: 480px) {
  .film-backdrop { height: 140px; }
  .film-poster { width: 110px; margin-top: 0; }
  .film-poster-placeholder { width: 110px; margin-top: 0; }
  .film-title { font-size: 1.2rem; }
  .film-stats { flex-wrap: wrap; gap: .5rem; }
  .player-info-bar { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .ep-controls-group { gap: 0.35rem; }
  .ep-nav-btn { padding: 0.45rem 0.5rem; font-size: 0.78rem; }
  .episode-dropdown-select { font-size: 0.8rem; padding: 0.45rem 0.5rem; }
  .ep-jump-group input { max-width: none; }
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
}
