/* ==========================================================================
   Father Film — Watch Page Stylesheet
   ========================================================================== */

/* Page Background */
.watch-page-body {
  background-color: #0b0e14 !important;
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navbar on Watch Page */
.watch-page-body .flat-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-page-body .flat-nav-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(18, 22, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  width: 280px;
  transition: width 0.3s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.watch-page-body .flat-nav-search:hover,
.watch-page-body .flat-nav-search:focus-within {
  width: 330px;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(22, 29, 42, 0.95);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.18);
}

.watch-page-body .flat-search-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.watch-page-body .flat-search-btn:hover {
  color: #fbbf24;
}

.watch-page-body .flat-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  padding: 0;
  width: 100%;
}

/* Ambient glow in background */
.watch-ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 480px;
  background: radial-gradient(circle at 50% 5%, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.watch-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 95px 1.25rem 4rem;
}

.watch-details-grid {
  width: 100%;
  margin: 0 auto;
}

/* Player Box */
.watch-player-box {
  position: relative;
  background: #000000;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

/* Top Bar: Sadece Filmin Adı */
.player-top-bar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #141721;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-movie-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Viewport Area */
.player-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 580px;
  background: #000000;
  overflow: hidden;
}

.player-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

.player-screen-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.25s ease;
}

.player-screen-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.9) 100%);
}

.player-screen-overlay.hidden {
  display: none !important;
}

.center-play-button {
  position: relative;
  z-index: 10;
  width: 74px;
  height: 74px;
  min-width: 74px;
  min-height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.22), 0 8px 30px rgba(245, 158, 11, 0.55);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.player-screen-overlay:hover .center-play-button {
  transform: scale(1.1);
  box-shadow: 0 0 0 15px rgba(245, 158, 11, 0.3), 0 12px 35px rgba(245, 158, 11, 0.75);
}

.watermark-top-left {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  z-index: 10;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.watermark-bottom-right {
  position: absolute;
  bottom: 0.9rem;
  right: 1.25rem;
  z-index: 10;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* Bottom Bar: Ortada Sadece "film father" */
.player-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: #0f131a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-bottom-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.75px;
  text-transform: lowercase;
}

/* Lower Details Section */
.watch-details-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.watch-sidebar-col {
  display: flex;
  flex-direction: column;
}

.watch-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0f131a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.watch-poster-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75);
}

.watch-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Koyu Tonlarda Film Özeti & Detay Kartı */
.watch-content-card {
  background: #111622 !important;
  color: #f1f5f9 !important;
  border-radius: 14px;
  padding: 1.85rem 2.2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.section-title-wrap svg {
  stroke: #f59e0b;
  flex-shrink: 0;
}

.section-main-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.2px;
}

.synopsis-paragraph {
  font-size: 0.94rem;
  line-height: 1.72;
  color: #cbd5e1 !important;
  margin: 0 0 1.35rem 0;
}

.meta-four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 0;
  margin: 1.25rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-column-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.meta-col-content {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc !important;
  line-height: 1.35;
}

.meta-imdb-star {
  color: #f59e0b;
}

.cast-block-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 0.95rem 0;
  letter-spacing: -0.2px;
}

.cast-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cast-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 7px;
  user-select: none;
  transition: all 0.2s ease;
}

.cast-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.cast-pill.director-pill {
  background: rgba(244, 63, 94, 0.14) !important;
  border: 1.5px solid #f43f5e !important;
  color: #fb7185 !important;
  font-weight: 700;
}

.cast-pill.director-pill:hover {
  background: rgba(244, 63, 94, 0.22) !important;
  border-color: #fb7185 !important;
}

.cast-pill.director-pill .pill-badge {
  color: #fda4af;
}

.cast-pill.writer-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.cast-pill .pill-badge {
  font-weight: 500;
  color: #94a3b8;
}

/* Benzer Filmler - Screenshot 3 Match */
.similar-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.similar-shelf-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.2px;
}

.similar-genre-hint {
  font-size: 0.82rem;
  color: #94a3b8 !important;
  font-weight: 500;
}

.similar-movies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.similar-movie-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

.similar-movie-card:hover {
  transform: translateY(-5px);
}

.similar-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0f131a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.similar-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.similar-movie-card:hover .similar-poster-img {
  transform: scale(1.04);
}

.similar-badges-left {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.similar-badge-tr {
  background: #e11d48;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  align-self: flex-start;
}

.similar-badge-altyazi {
  background: #f59e0b;
  color: #000000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  align-self: flex-start;
}

.similar-badge-hd {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.similar-movie-info {
  padding-top: 0.5rem;
}

.similar-movie-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9 !important;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #94a3b8 !important;
  font-weight: 600;
}

.similar-movie-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  font-weight: 700;
}

/* ==========================================================================
   Pre-roll Video Ad & Banner Slots
   ========================================================================== */

/* Pre-roll Ad Overlay inside Player Viewport */
.preroll-ad-container {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.preroll-ad-container.hidden {
  display: none !important;
}

.preroll-ad-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Clickable Transparent Layer to visit ad link */
.preroll-click-layer {
  position: absolute;
  inset: 50px 0 60px 0;
  z-index: 52;
  cursor: pointer;
}

/* Top Ad Bar */
.preroll-ad-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 55;
}

.preroll-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preroll-badge-pill {
  background: #f59e0b;
  color: #0b0e14;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.preroll-ad-title-link {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.preroll-ad-title-link:hover {
  color: #fbbf24;
}

.preroll-sound-btn {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.preroll-sound-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Bottom Skip Bar */
.preroll-skip-bar {
  position: absolute;
  bottom: 16px;
  right: 18px;
  z-index: 55;
}

.preroll-skip-btn {
  background: rgba(18, 22, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.22s ease;
  user-select: none;
}

.preroll-skip-btn.disabled {
  opacity: 0.85;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.15);
}

.preroll-skip-btn:not(.disabled) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0e14;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  animation: pulseSkip 1.5s infinite;
}

@keyframes pulseSkip {
  0% { transform: scale(1); box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.7); }
  100% { transform: scale(1); box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4); }
}

/* Ad Banner Slots */
.ad-banner-slot {
  position: relative;
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ad-banner-slot.hidden {
  display: none !important;
}

/* ==========================================================================
   Outer Gutter Skyscraper Layout: Sol ve Sağ Boşluklarda Dikey Reklamlar
   (Film alanından kesinlikle kısılmaz, oynatıcı tam boyutunda kalır)
   ========================================================================== */
.watch-player-flank-layout {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.watch-player-flank-layout .watch-player-box {
  width: 100%;
  margin-bottom: 0;
}

/* Sol Dikey Reklam (25-30% Daha Geniş, Kompakt Saf Görsel & Cover) */
.vertical-ad-left {
  position: absolute;
  top: 0;
  right: calc(100% + 22px);
  width: 210px;
  height: 100%;
  min-height: 480px;
  display: block;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

/* Sağ Dikey Reklam (25-30% Daha Geniş, Kompakt Saf Görsel & Cover) */
.vertical-ad-right {
  position: absolute;
  top: 0;
  left: calc(100% + 22px);
  width: 210px;
  height: 100%;
  min-height: 480px;
  display: block;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.vertical-ad-slot.hidden {
  display: none !important;
}

.vertical-ad-slot:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.18);
  transform: translateY(-2px);
}

.vertical-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 11px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.vertical-ad-slot:hover .vertical-ad-img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

/* Responsiveness: Ekran daraldığında kenar boşlukları yetmezse orantılı küçülür / gizlenir */
@media (max-width: 1680px) {
  .vertical-ad-left {
    right: calc(100% + 15px);
    width: 180px;
  }
  .vertical-ad-right {
    left: calc(100% + 15px);
    width: 180px;
  }
}

@media (max-width: 1540px) {
  .vertical-ad-left {
    right: calc(100% + 10px);
    width: 150px;
  }
  .vertical-ad-right {
    left: calc(100% + 10px);
    width: 150px;
  }
}

/* Responsive / Tablet & Mobil: 1460px ve altında dikey reklamlar kaybolmaz!
   Film oynatıcısının hemen altına, film detaylarından önce şık, kompakt ve yan yana (2 sütun) yerleşir. */
@media (max-width: 1460px) {
  .watch-player-flank-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 2rem;
  }

  .watch-player-flank-layout .watch-player-box {
    order: 1;
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .vertical-ad-left,
  .vertical-ad-right {
    position: static !important;
    display: block !important;
    flex: 1 1 0%;
    max-width: 100%;
    height: 240px;
    min-height: 180px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .vertical-ad-left {
    order: 2;
  }

  .vertical-ad-right {
    order: 3;
  }

  .vertical-ad-slot.hidden {
    display: none !important;
  }
}

/* Küçük Mobil Cihazlar (Telefonlar: 640px ve altı) */
@media (max-width: 640px) {
  .watch-player-flank-layout {
    gap: 10px;
    margin-bottom: 1.5rem;
  }

  .vertical-ad-left,
  .vertical-ad-right {
    height: 190px;
    min-height: 150px;
    border-radius: 10px;
  }
}

/* Çok Dar Telefonlar (400px ve altı) */
@media (max-width: 400px) {
  .watch-player-flank-layout {
    gap: 8px;
  }

  .vertical-ad-left,
  .vertical-ad-right {
    height: 165px;
    min-height: 130px;
    border-radius: 8px;
  }
}

