/* Genel Stiller */

/* Breadcrumb navigasyonunu gizle (SEO için var ama görünmeyecek) */
.breadcrumb, nav[aria-label="breadcrumb"] {
  display: none;
}

/* Öneri Rozetleri */
.recommendation-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
  z-index: 10;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
:root {
  --primary-color: #e50914;
  --secondary-color: #222;
  --background-color: #121212;
  --card-bg: #1a1a1a;
  --text-color: #fff;
  --text-muted: #aaa;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.btn-primary,
.btn-danger {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-danger:hover {
  background-color: #c30710;
  border-color: #c30710;
}

.btn-outline-danger {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-danger:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Header Stiller */
.navbar {
  padding: 15px 0;
  background-color: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(10, 10, 10, 0.98) !important;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Hero Slider */
.hero-slide {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 30px;
  width: 60%;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-type {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  margin: 30px 0 20px;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
  margin-left: 15px;
}

/* Movie Cards */
.movie-row {
  margin-left: -10px;
  margin-right: -10px;
}

.movie-row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.movie-card {
  transition: var(--transition);
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.movie-poster {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  flex: 1;
}

.movie-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Film/Dizi kart başlık standartlaştırma */
.movie-title {
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffc107;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}

.movie-views {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(229, 9, 20, 0.8);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Artık yukarıda tek bir .movie-title tanımı kullanılıyor */

/* Detail Page */
.movie-detail {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 50px 0;
}

.movie-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.movie-detail-content {
  position: relative;
  z-index: 1;
}

.movie-detail-poster {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.movie-detail-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.movie-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.movie-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.movie-genres {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.genre-badge:hover {
  background-color: var(--primary-color);
}

/* Cast Section - Yeni Slider Tasarımı */
.cast-section {
  margin: 30px 0;
  position: relative;
}

.cast-slider-container {
  position: relative;
  padding: 0 40px;
}

.cast-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  gap: 15px;
}

.cast-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.cast-card {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  margin-bottom: 10px;
  transition: var(--transition);
}

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

.cast-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: var(--box-shadow);
  border: 3px solid transparent;
  transition: var(--transition);
}

.cast-card:hover .cast-image {
  border-color: var(--primary-color);
}

.cast-name {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.cast-nav-btn:hover {
  background-color: var(--primary-color);
}

.cast-nav-btn.prev {
  left: 0;
}

.cast-nav-btn.next {
  right: 0;
}

/* Player - Gelişmiş Responsive Tasarım */
.player-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.player-container iframe,
.player-container video,
.player-container .video-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

/* Video.js özelleştirmeleri */
.video-js {
  width: 100% !important;
  height: 100% !important;
}

.video-js .vjs-big-play-button {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border-width: 3px;
  background-color: rgba(229, 9, 20, 0.7);
  width: 80px;
  height: 80px;
  line-height: 74px;
}

.video-js:hover .vjs-big-play-button {
  background-color: var(--primary-color);
}

.video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.7);
  height: 4em;
  padding: 0 1em;
}

.video-js .vjs-button {
  width: 3em;
}

.video-js .vjs-progress-control {
  min-width: 5em;
}

.video-js .vjs-progress-holder {
  height: 0.5em;
}

.video-js .vjs-play-progress {
  background-color: var(--primary-color);
}

.video-js .vjs-volume-panel {
  margin-right: 1em;
}

.video-js .vjs-volume-control {
  width: 6em;
}

.video-js .vjs-mute-control {
  width: 2.5em;
}

.video-js .vjs-remaining-time {
  display: block;
}

.video-js .vjs-fullscreen-control {
  width: 3em;
}

/* Mobil için video kontrolleri */
@media (max-width: 576px) {
  .video-js .vjs-control-bar {
    height: 3em;
  }

  .video-js .vjs-button {
    width: 2.5em;
  }

  .video-js .vjs-remaining-time {
    display: none;
  }

  .video-js .vjs-volume-panel {
    margin-right: 0.5em;
  }

  .video-js .vjs-big-play-button {
    width: 60px;
    height: 60px;
    line-height: 54px;
    border-width: 2px;
  }
}

.quality-selector {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sezon ve Bölüm Stilleri */
.accordion-item {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-weight: 600;
  padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.125);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.list-group-item {
  background-color: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transition: var(--transition);
  padding: 12px 15px;
}

.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.list-group-item.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.episode-navigation {
  margin: 20px 0;
}

/* Dropdown Stilleri */
.dropdown-menu {
  background-color: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 10px 0;
  margin-top: 10px;
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  color: var(--text-color);
  padding: 8px 15px;
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: var(--text-color);
}

/* Card Stilleri */
.card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.card-header {
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
}

/* Form Stilleri */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  border-radius: var(--border-radius);
  padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25);
}

.form-label {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Pagination */
.pagination {
  margin-top: 30px;
}

.page-link {
  background-color: var(--secondary-color);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 10px 15px;
  transition: var(--transition);
}

.page-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #0a0a0a;
  color: var(--text-color);
  padding: 40px 0 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

footer ul li {
  margin-bottom: 10px;
}

footer a {
  color: var(--text-muted);
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom-links .list-inline-item:not(:last-child) {
  margin-right: 15px;
}

.footer-bottom-links a {
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .hero-slide {
    height: 450px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .movie-detail-info h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .hero-slide {
    height: 400px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content {
    width: 70%;
  }

  .movie-detail-poster {
    max-width: 300px;
    margin: 0 auto 20px;
  }

  .movie-detail-info {
    text-align: center;
  }

  .movie-meta {
    justify-content: center;
  }

  .movie-genres {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    height: 350px;
  }

  .hero-content {
    width: 80%;
    padding: 20px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .movie-detail-info h1 {
    font-size: 1.8rem;
  }

  .movie-detail-poster {
    max-width: 220px;
    margin: 0 auto 20px;
  }

  .movie-detail {
    padding: 30px 0;
  }

  .quality-selector {
    justify-content: center;
  }

  .episode-navigation .btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .episode-navigation .btn i {
    margin: 0;
  }

  .episode-navigation .btn span {
    display: none;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .hero-slide {
    height: 250px;
  }

  .hero-content {
    width: 100%;
    padding: 15px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .movie-detail {
    padding: 20px 0;
  }

  .movie-detail-poster {
    max-width: 180px;
  }

  .movie-detail-info h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .movie-meta {
    gap: 8px;
  }

  .movie-meta span {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .cast-image {
    border-width: 2px;
  }

  .footer-bottom-links .list-inline-item {
    margin-bottom: 10px;
  }

  .movie-card {
    margin-bottom: 15px;
  }

  .movie-title {
    font-size: 0.85rem;
  }

  .page-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .movie-detail-poster {
    max-width: 150px;
  }

  .movie-detail-info h1 {
    font-size: 1.4rem;
  }

  .movie-meta span {
    font-size: 0.75rem;
    padding: 3px 6px;
  }

  .genre-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .cast-name {
    font-size: 0.8rem;
  }

  .character-name {
    font-size: 0.7rem;
  }
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #c30710;
  transform: translateY(-3px);
}

/* Breadcrumb Navigasyon Stili - SEO İyileştirmesi */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted);
  vertical-align: middle;
  margin: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 500;
}

/* Dinamik İçerik Stilleri - Ana Sayfa Gelişmiş Öneriler */
.section-title small {
  opacity: 0.7;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
  color: var(--text-muted);
}

/* Dinamik yükleme animasyonu */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.movie-row .movie-card {
  animation: rotateIn 0.6s ease-out;
  animation-fill-mode: both;
}

/* Sıralı animasyon gecikmeleri */
.movie-row .movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-row .movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-row .movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-row .movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-row .movie-card:nth-child(5) { animation-delay: 0.5s; }
.movie-row .movie-card:nth-child(6) { animation-delay: 0.6s; }

/* Özel badge stilleri */
.recommendation-badge i.fa-fire {
  color: #ff4757;
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
  animation: pulse 2s infinite;
}

.recommendation-badge i.fa-star {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  animation: twinkle 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Hover efektleri için gelişmiş stiller */
.movie-card:hover .recommendation-badge {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
