/* static/style.css - v5.6 FİNAL RESPONSIVE TASARIM (HATASIZ) */

* {
  -webkit-tap-highlight-color: transparent !important;
}

*:focus, *:focus-visible, *:active {
  outline: none !important;
  box-shadow: none !important;
}

a:focus, a:focus-visible, button:focus, button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

[role="button"]:focus, [role="button"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ======================================== */
/*         1. Genel ve Navigasyon           */
/* ======================================== */
.logo-text {
  font-size: 1.6rem !important;
  font-weight: bold;
  color: var(--pico-color);
}

nav ul li a {
  padding: 0.5rem 0;
}

nav ul li a strong {
  vertical-align: middle;
}

/* Mobile responsive navigation styling */

/* favori butonu için özel border rengi */
/* favori butonu hover için özel border rengi */
/* Sil butonu hover için özel border rengi */
.media-actions .delete-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 0, 0, 0.4) !important;
}

.media-actions .icon-button:not(.is-favori) {
  border: 1px solid rgba(255, 255, 255, 1);
  height: 40px;
  width: 40px;
}

.media-detay-header h1 {
  padding-top: 5px;
}

.detay-icerik {
  margin-top: -92px;
}

/* Hide header on detail pages */
body:has(.modern-detay-container) .header-wrapper {
  display: none !important;
}

/* Arşiv sayfasında sadece menü butonunu gizle */
body:has(.archive-page) #menu-toggle {
  display: none !important;
}

/* Arama sayfasında masaüstünde menü butonunu gizle */
@media (min-width: 769px) {
  .logo-image {
    margin-top: 30px !important; /* Masaüstünde 30px aşağı taşı */
  }
  body:has(.arama-container) #menu-toggle {
    display: none !important;
  }
}

/* Poster with buttons container */
.poster-with-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin-top: calc(8vh - 80px);
  height: 50vh;
}

.poster-with-buttons img,
.poster-with-buttons .poster-placeholder {
  height: 45vh;
  aspect-ratio: 2/3;
  width: auto;
  object-fit: cover;
}

.modern-detay-container .poster-with-buttons {
  margin-top: calc(8vh - 89px);
}

/* Dizi ve Film Detay Sayfaları Buton Konumu (Öneri Olmayan) */
.modern-detay-container:is(.dizi-detay, .film-detay):not(.oneri-page) .action-buttons:not(.is-external) {
  transform: translateY(-5px) !important;
}

/* Arama sonuçlarındaki yapımların detay sayfaları için buton fix */
.modern-detay-container .poster-with-buttons.is-external .action-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  transform: translateY(-5px) !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  position: relative !important;
  z-index: 1000 !important;
  top: 0 !important;
  left: 0 !important;
}

/* Arama sonuçları butonlarının içindeki formlar ve direkt butonlar */
.modern-detay-container .poster-with-buttons.is-external .action-buttons > *:not(.action-btn) {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  position: static !important;
  transform: none !important;
}

.modern-detay-container .poster-with-buttons.is-external .action-buttons > .action-btn {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.modern-detay-container .poster-with-buttons.is-external .action-buttons .action-btn {
  margin: 0 !important;
  position: static !important;
  transform: none !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  border: none !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
}

/* Konteyner yüksekliğini ve taşmayı kontrol et */
.modern-detay-container .poster-with-buttons.is-external {
  height: 50vh !important;
  gap: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: visible !important;
  margin-bottom: 20px !important;
}

@media (min-width: 769px) {
  .modern-detay-container .title-section {
    transform: translateY(-100px) !important;
  }
  .modern-detay-container .poster-with-buttons {
    margin-top: calc(8vh - 89px) !important;
  }
}

/* Mobilde butonların yan yana kalmasını garanti et */
@media (max-width: 768px) {
  .logo-image {
    height: 1.5rem !important; /* Biraz küçült */
    margin-top: 10px !important; /* 10px aşağı taşı */
  }
  .modern-detay-container .poster-with-buttons.is-external .action-buttons {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    margin-top: 0 !important;
  }
  
  .modern-detay-container .poster-with-buttons.is-external {
    gap: 15px !important;
    min-height: auto !important;
  }
}

/* Arama sonuçları detay sayfası backdrop ayarları */
.hero-backdrop.is-external {
  min-height: 50vh !important;
  max-height: 60vh !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.backdrop-image.external-backdrop {
  opacity: 0.9 !important;
  filter: brightness(0.8) saturate(1.2) !important;
}

.hero-backdrop.is-external .backdrop-overlay {
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.3) 0%, 
    rgba(0, 0, 0, 0.6) 50%, 
    var(--pico-background-color) 100%) !important;
}

@media (max-width: 768px) {
  .hero-backdrop.is-external {
    min-height: 40vh !important;
    border-bottom: none !important;
  }
}

.poster-with-buttons .action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0;
  transform: translateY(-15px);
}

.media-detay-header {
  margin-top: -117px !important;
}

article.pico-color-red-550 {
  background-color: #45272a;
  border-color: #d32f2f;
  color: #fce4ec;
}

.sonuc-karti {
  background: var(--card-background-color);
  border-radius: 65px; /* 60px -> 65px */
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #252540;
}

.sonuc-karti:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Poster Container */
.poster-container {
  position: relative;
  aspect-ratio: 2/3; /* Dikey poster formatına geçildi */
  height: auto;
  background: #1F2D38;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}

.media-card:hover .media-poster img {
  transform: scale(1.02);
}

.poster-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Medya Tipi Rozeti */
.media-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 30px; /* 30px -> 35px */
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tv-badge {
  background: rgba(52, 152, 219, 0.9);
  color: white;
}

.movie-badge {
  background: rgba(102, 126, 234, 0.9);
  color: white;
}

.game-badge {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

/* İçerik */
.sonuc-icerik {
  padding: 8px 0 22px 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 0 !important;
  gap: 16px !important;
}

.baslik-container,
.ozet {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

.sonuc-icerik form {
  margin: 0 !important;
  padding: 0 !important;
}

.baslik-container {
  margin-bottom: 0 !important;
}

.baslik {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 !important;
  line-height: 1.05;
  color: var(--pico-color);
}

.tarih-puan {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.tarih {
  background: var(--muted-border-color);
  color: var(--muted-color);
  padding: 1px 0.4rem;
  border-radius: 18px;
  font-size: 0.7rem;
  font-weight: 500;
}

.puan {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f39c12;
}

.ozet {
  color: var(--muted-color);
  line-height: 1.05;
  margin: 0 !important;
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ekleme Butonu */
.ekle-container {
  margin: 0 !important;
  padding: 0 0 24px 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.ekle-form {
  margin: 10px auto 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.ekle-btn {
  width: 83% !important;
  min-width: 83% !important;
  max-width: 83% !important;
  margin: 0 auto !important;
  padding: 0 1rem;
  border: none;
  border-radius: 9999px !important;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 70px !important;
  min-height: 70px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.dizi-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.dizi-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.film-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.film-btn:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a4190);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.game-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.game-btn:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Boş Sonuç */
.bos-sonuc {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-background-color);
  border-radius: 38px;
  border: 2px dashed var(--muted-border-color);
}

.bos-sonuc-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.bos-sonuc h3 {
  margin: 0 0 1rem 0;
  color: var(--pico-color);
}

.bos-sonuc p {
  color: var(--muted-color);
  margin: 0.5rem 0;
}

/* Popüler İçerik */
.populer-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.populer-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.populer-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: var(--pico-color);
}

.populer-header p {
  color: var(--muted-color);
  margin: 0;
  font-size: 0.9rem;
}

.populer-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1.5rem;
  align-items: start;
}

.populer-kart {
  width: 250px !important;
  flex: 0 1 auto !important;
  background: var(--card-background-color);
  border-radius: 42px; /* 37px -> 42px */
  overflow: hidden;
  border: 1px solid var(--muted-border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: fit-content !important;
  margin-bottom: 0 !important;
}

.populer-kart:hover {
  transform: translateY(-3px);
}

.populer-poster {
  aspect-ratio: 2/3; /* Dikey poster formatına geçildi */
  overflow: hidden;
  background: #1F2D38;
}

.populer-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 37px;
  border-top-right-radius: 37px;
}

.populer-info {
  padding: 8px 8px 24px 8px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
  gap: 16px !important;
}

.populer-info h4 {
  margin: 0 0 6px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  color: var(--pico-color);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto !important;
}

.populer-info form {
  margin: 10px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
}

.populer-btn {
  width: 90% !important;
  margin: 0 auto !important;
  height: 58px !important;
  min-height: 58px !important;
  line-height: 58px !important;
  font-size: 0.95rem !important;
  padding: 0 1rem !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* FINAL OVERRIDE FOR MOBILE POSTER DIMENSIONS moved to end of file */

/* Popüler butonlar için güçlü override */
.populer-grid .populer-btn,
.populer-kart .populer-btn,
button.populer-btn {
  border-radius: 9999px !important;
}

.populer-placeholder {
  text-align: center;
  padding: 2rem;
  background: var(--card-background-color);
  border-radius: 25px; /* 30px -> 25px */
  border: 1px solid var(--muted-border-color);
  grid-column: 1 / -1;
}

.loading-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.rating-trailer-container {
  display: flex;
  align-items: center;
  gap: 6px !important;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rating-badges {
  display: flex;
  gap: 6px;
}

.rating-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  padding: 0 0.8rem !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rating-badge:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.rating-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.rating-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.trailer-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  gap: 0.2rem;
  background: linear-gradient(135deg, #a3005f 0%, #ff003c 100%) !important;
  color: #fff !important;
  padding: 0 0.4rem 0 0.5rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.trailer-btn:hover {
  background: #ff0a16;
  transform: translateY(-2px);
  color: #fff;
}

.trailer-btn i {
  width: 18px;
  height: 18px;
}

.trailer-btn span {
  position: relative;
  top: -3px;
  left: -6px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  nav ul {
    margin: -11px 0 auto;
  }

  nav ul li a {
    font-weight: 500;
    font-size: 32px;
    color: rgba(255, 255, 255, 1);
    background-color: #e53b51;
    border-radius: 10px;
    overflow: hidden;
    border-color: rgba(229, 59, 81, 1);
    line-height: 22px;
    text-align: center;
    margin: 10px auto 0 10px;
  }

  nav ul li {
    line-height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    margin: 20px 10px 0 auto;
  }

  nav ul li a[role="button"] {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(74, 144, 226, 1);
    color: rgba(255, 255, 255, 1);
  }

  .media-detay-grid {
    margin-top: 175px;
  }

  .arama-header h1 {
    font-size: 2rem;
  }

  .search-input-group {
    flex-direction: column;
    border-radius: 20px;
  }

  .search-input-group input {
    border-radius: 15px;
  }

  .search-btn {
    border-radius: 15px;
    justify-content: center;
  }

  .sonuclar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sonuc-icerik {
    padding-top: 18px !important;
  }

  .ekle-container {
    padding-bottom: 14px !important;
  }

  .poster-container {
    height: auto;
    aspect-ratio: 2/3;
  }

  .poster-img {
    object-fit: cover;
  }

  .sonuc-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .populer-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .media-backdrop {
    display: none !important;
  }

  .media-card {
    border-radius: 25px !important;
  }

  .media-poster {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
}

.media-poster img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: inherit !important;
    display: block !important;
    object-fit: cover !important;
  }

  .poster-placeholder {
    border-radius: inherit !important;
  }

  /* Hero poster styles moved to line 742 to avoid conflicts */

  .title-section {
    transform: translateY(0) !important;
    margin-top: 50px !important;
  }

  .hero-title {
    transform: translateY(0) !important;
  }

  .media-detay-header p {
    transform: translateY(-70px) !important;
  }
  
  .rating-trailer-container {
    transform: none !important;
    margin-top: 0 !important;
  }

  .hero-tagline {
    transform: translateY(0) !important;
  }

  .content-wrapper {
    margin-top: 50px !important;
  }

  .rating-trailer-container {
    justify-content: center !important;
    gap: 0.75rem !important; /* 0.25rem'den 0.75rem'e çıkarıldı */
    margin-bottom: 0 !important;
  }

  .media-bilgileri {
    margin-top: 53px;
  }

  .media-card .media-poster {
  border-radius: 20px 20px 0 0 !important;
}

  .media-card .poster-placeholder {
    border-radius: inherit !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-backdrop {
    min-height: auto !important;
  }

  .backdrop-image,
  .backdrop-overlay {
    display: none !important;
  }

  .hero-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-poster {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box !important;
  }

  .poster-with-buttons {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 450px !important;
  }

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

  .action-buttons {
    justify-content: center;
  }

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

  .season-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    height: auto !important;
    overflow: visible !important;
    align-items: center !important;
  }

  .season-controls {
    margin-top: 0 !important;
    display: flex;
    align-items: center;
  }

  .episodes-section .season-action {
    transform: translate(75px, -70px) !important;
    align-self: center !important;
    margin-left: 0 !important;
  }

  input[type="checkbox"].episode-checkbox {
    transform: translate(-5px, -7px) !important;
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    margin-top: -7px !important;
  }

  .media-detay-grid {
    grid-template-columns: 1fr !important;
  }

  .detay-icerik {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .detay-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body {
    padding: 0 !important;
  }

  .container {
    width: 92vw !important;
    max-width: 92vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .media-poster {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .media-poster img {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: inherit !important;
  }

  .modern-detay-container .hero-poster img,
  .modern-detay-container .hero-poster .poster-placeholder {
    width: 200px !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 25px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
  }

  .action-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }

  .modern-detay-container:is(.dizi-detay, .film-detay):not(.oneri-page) .action-buttons {
    margin-top: 25px !important;
  }

  .action-btn {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }

  .stats-grid {
    display: none !important;
  }

  .stats-grid .stat-card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0.5rem !important;
    gap: 0.3rem !important;
  }

  .stats-grid .stat-icon {
    font-size: 1.2rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    order: 1 !important;
  }

  .stats-grid .stat-content {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    flex: none !important;
    order: 2 !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .stat-card .stat-label {
    font-size: 1rem !important;
    margin: 0 !important;
    margin-left: auto !important;
    color: var(--muted-color) !important;
  }

  .footer-actions {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--card-background-color) !important;
    padding: 0.5rem 1rem 0.3rem 1rem !important;
    margin: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    border-top: 1px solid #252540 !important;
  }

  .action-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.1rem !important;
    text-decoration: none !important;
    color: var(--pico-color) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transform: translateY(-0.3rem) !important;
  }

  .action-button .button-label {
    display: block !important;
    font-size: 0.8rem !important;
    color: var(--pico-color) !important;
    margin: 0 !important;
    text-align: center !important;
    margin-top: 0.2rem !important;
  }

  .settings-container,
  .archive-container,
  .archive-page,
  .homepage-container,
  .takvim-container {
    padding-bottom: 4rem !important;
    padding-top: 0 !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: hidden !important;
  }

  html {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .archive-header {
    display: none;
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.3rem;
  }

  .archive-section {
    padding: 1.5rem 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .archive-container {
    padding-bottom: 8rem;
  }

  .settings-header h1 {
    font-size: 2rem;
  }

  .settings-container {
    column-count: 1;
  }

  .genre-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* Media queries moved to end for consistency */

/* Eski grid-container stillerini kaldır */
.grid-container {
  display: none;
}

/* ======================================== */
/*      3. Ana Sayfa - Basit Viewport       */
/* ======================================== */

@media (min-width: 769px) {
  .container {
    width: 85vw !important;
    max-width: 85vw !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* Homepage Container */
.homepage-container {
  width: 85vw;
  max-width: 85vw;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Content Grid - %85 viewport */
.content-grid {
  width: 100%;
  max-width: 85vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Content Section - %85 viewport */
.content-section {
  width: 100%;
  max-width: none;
  margin: 0 auto 2.5rem auto;
  background: linear-gradient(145deg, var(--card-background-color) 0%, rgba(31, 45, 56, 0.4) 100%);
  border-radius: 45px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  opacity: 0.5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 1rem;
  border-bottom: none;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pico-color);
  position: relative;
  top: 10px;
}

.section-header h2 i,
.section-header h2 svg {
  color: #3498db;
  width: 24px;
  height: 24px;
}

.item-count {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  padding: 0.4rem 1rem;
  border-radius: 33px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(52, 152, 219, 0.2);
  position: relative;
  top: 20px;
}

/* Media Grid */
.media-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-content: flex-start;
  justify-items: center;
  padding: 0;
}

.media-card {
  width: 100%;
  flex: none;
}

/* Remove special grid for mobile oyunlar page to ensure consistency across all pages */
.mobile-oyunlar .media-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-content: flex-start;
}

/* Unified poster scaling for all media types */
.media-card .media-poster {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  aspect-ratio: 16/9 !important;
  flex: 0 0 auto !important;
  border-radius: 20px 20px 0 0 !important;
}

.media-card .media-poster img,
.media-card .poster-placeholder {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  transform: none !important;
}

/* Media Card */
.media-card {
  width: 100%;
  height: auto !important; /* Sabit oran yerine içeriğe göre yükseklik */
  min-height: 0;
  background: #1F2D38 !important;
  border-radius: 25px; /* 30px -> 25px */
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--muted-border-color) !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .media-card {
    height: auto !important;
  }
  
  .media-poster {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    aspect-ratio: 16/9 !important;
    flex: 0 0 auto !important;
  }
  
  .main-homepage .media-poster {
    aspect-ratio: 16/9 !important;
  }
  
  .media-poster img {
    object-fit: cover !important;
    object-position: center !important;
  }
  
  .media-info {
    flex: 0 0 auto !important;
    min-height: unset !important;
    height: auto !important;
    padding: 10px 12px !important; /* Dengeli dolgu */
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important; /* Dengeli mesafe */
  }

  .media-title {
    margin: 0 !important;
    padding-bottom: 0.1rem !important;
  }

  .media-platform, .media-date {
    margin: 0 !important;
  }

  .progress-container {
    margin-top: 0.2rem !important;
  }

  .media-card .media-poster {
    border-radius: 20px 20px 0 0 !important;
  }

  .media-card .poster-placeholder {
    border-radius: inherit !important;
  }

  .oneri-badge {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
  }
  
  .priority-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
  }
  
  .priority-badge.favori {
    display: block !important;
  }
  
  .priority-badge.oneri {
    display: block !important;
  }

  .action-button {
    flex-direction: column;
  }
  
  .button-label {
    margin-top: 0.3rem;
  }
  
  .action-button.archive-btn {
    display: none !important;
  }

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

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

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 1rem;
  }

  .content-section {
    padding: 1.5rem 0 !important;
    margin-top: 5px !important; /* Mobil için content-section'ı 5px aşağı taşı */
  }

  .section-header {
    margin-bottom: 10px !important; /* Mobil için media-grid'i 10px aşağı taşı */
  }  margin-bottom: 1.25rem !important; /* Mobil için boşluğu 20px azalt */
  }

  .content-section:nth-child(2) {
    margin-top: 3rem !important;
  }

  .footer-actions {
    flex-direction: row !important;
    align-items: center !important;
  }

  .media-backdrop {
    display: none !important;
  }

  .media-card {
    border-radius: 25px !important;
  }

  .media-poster {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .media-poster img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: inherit !important;
    display: block !important;
    object-fit: cover !important;
  }

  .poster-placeholder {
    border-radius: inherit !important;
  }

  /* 🔥 Bu Ay Popüler posterleri için border-radius düzeltmesi (Mobile) */
  .populer-poster img {
    border-radius: 45px 45px 0 0 !important;
  }

  /* Hero poster styles moved to avoid conflicts */

  .title-section {
    transform: translateY(0) !important;
    margin-top: 50px !important;
  }

  .hero-title {
    transform: translateY(0) !important;
  }

  .media-detay-header p {
    transform: translateY(-120px) !important;
  }
  .hero-tagline {
    transform: translateY(0) !important;
  }

  .media-bilgileri {
    margin-top: 53px;
  }

  .takvim-container {
    padding: 0.5rem 0;
    padding-bottom: 150px;
  }

  .takvim-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.8rem 0.5rem 0.8rem calc(0.5rem + 2px);
    gap: 0.6rem;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .takvim-poster {
    width: 80px;
    height: 120px;
  }

  .takvim-bilgi {
    padding-right: 30px;
  }

  .takvim-baslik {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem;
    line-height: 1.2;
  }

  .takvim-bolum {
    font-size: 1rem;
  }

  .takvim-tarih-gun {
    font-size: 0.85rem;
  }

  .takvim-sag {
    right: calc(0.5rem + 3px);
    top: calc(50% + 3px);
  }

  .episode-checkbox {
    width: 18px;
    height: 18px;
  }

  .hero-grid {
    margin-left: 0;
  }

  .media-detay-header p {
    transform: translateY(-80px) !important;
  }
  .hero-tagline {
    transform: translateY(0) !important;
  }

  .season-header {
    border-radius: 30px !important;
  }

  .season-btn {
    padding: 0.7rem 1.4rem !important;
    font-size: 0.95rem !important;
  }

  .homepage-container .media-poster img {
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted-color);
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 2.5rem);
  margin-bottom: clamp(1rem, 2vw, 2.5rem);
  margin-top: 20px;
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
}

/* 1500px altında stats kartları 3'e düşsün */
@media (max-width: 1500px) {
  .stat-card:nth-child(4) {
    display: none !important;
  }
}

/* 1100px altında stats kartı yazılarını küçült */
@media (max-width: 1100px) {
  .stat-label-full {
    display: none;
  }
  
  .stat-label-short {
    display: block;
  }
}

/* 850-1100px arası emoji ve sayı 2.2rem */
@media (min-width: 851px) and (max-width: 1100px) {
  .stats-grid .stat-icon {
    font-size: 2.2rem !important;
  }
  
  .stats-grid .stat-number {
    font-size: 2.2rem !important;
  }
}

/* 850px altında sayı fontunu küçült */
@media (max-width: 850px) {
  .stats-grid .stat-icon {
    font-size: 2rem !important;
  }
  
  .stats-grid .stat-number {
    font-size: 2rem !important;
  }
}

@media (min-width: 1101px) {
  .stat-label-full {
    display: block;
  }
  
  .stat-label-short {
    display: none;
  }
}

.stat-card {
  background: var(--card-background-color);
  border-radius: 30px;
  padding: clamp(1rem, 2vw, 3rem);
  text-align: center;
  border: 1px solid var(--muted-border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 clamp(200px, 30vw, 400px);
  min-width: 200px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pico-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-color);
  font-weight: 500;
}



/* Removed redundant section-header and item-count */



.media-card:focus, .media-card:focus-visible {
  outline: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.media-card .media-poster {
    border-radius: 20px 20px 0 0 !important;
  }

.media-card .poster-placeholder {
  border-radius: inherit !important;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Badges */
.favorite-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 215, 0, 0.9);
  color: #333;
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.priority-badge {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 15px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  backdrop-filter: blur(10px) !important;
  z-index: 100 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Favori rozetlerini gizle */
.status-badge.badge-favori,
.badge-favori,
span[style*="rgba(255, 215, 0"],
span[style*="background: rgba(255, 215, 0"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Favori dizilerde checkbox göster */
.media-card.favorite .dizi-checkbox-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.priority-badge.oneri {
  background: rgba(46, 204, 113, 0.9) !important;
  color: white !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0.5px) !important;
}

.priority-badge.tercih {
  background: rgba(52, 152, 219, 0.9) !important;
  color: white !important;
  display: none !important;
}

.source-badge {
  position: absolute;
  top: 2.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.source-badge.manual {
  background: rgba(52, 152, 219, 0.9);
  color: white;
}

.source-badge.auto {
  background: rgba(46, 204, 113, 0.9);
  color: white;
}

/* Media Info */
.media-info {
  padding: 20px 0.85rem 15px 0.85rem !important;
  margin-top: 10px !important;
  position: relative !important;
  overflow: visible !important;
  clip-path: inset(0 0 -10px 0);
}

.media-title {
  margin: 0 0 3px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 0.4rem;
  overflow: visible !important;
}

.media-title a {
  color: var(--pico-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.media-title a:hover {
  color: var(--pico-primary);
}

.media-platform {
  color: var(--muted-color);
  font-size: 0.75rem !important;
  margin: -4px 0 0 0;
  font-weight: 500;
  display: block !important;
  width: 100%;
  position: relative;
  line-height: 1.2; /* Daha iyi dikey hizalama */
}

.media-date {
  color: var(--muted-color) !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Dizi kartlarındaki konum bilgisini aşağı taşı */
.media-card.dizi-card .media-platform {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Dizi, Film ve Oyun kartlarının başlıklarını 2 satırda tut */
.media-card.dizi-card .media-title,
.media-card.film-card .media-title,
.media-card.oyun-card .media-title {
  display: block !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: 100% !important;
  max-height: none !important;
  min-height: none !important;
  padding-bottom: 5px !important;
}

/* Başlık içindeki span: ellipsis burada çalışır, h3 overflow:visible kalır */
.media-card.dizi-card .media-title .title-text,
.media-card.film-card .media-title .title-text,
.media-card.oyun-card .media-title .title-text {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.media-card.film-card .media-title .title-text,
.media-card.oyun-card .media-title .title-text {
  text-overflow: clip !important;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%) !important;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%) !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;
}

[data-theme="light"] .media-card.oyun-card .media-title .title-text {
  -webkit-mask-image: linear-gradient(to right, #fff 0, #fff calc(100% - 16px), transparent 100%) !important;
  mask-image: linear-gradient(to right, #fff 0, #fff calc(100% - 16px), transparent 100%) !important;
}
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

.media-card.film-card .media-title,
.media-card.oyun-card .media-title {
  position: relative !important;
  overflow: hidden !important;
}

.media-card.film-card .media-title::after,
.media-card.oyun-card .media-title::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 22px !important;
  height: 100% !important;
  background: linear-gradient(to right, rgba(31, 45, 56, 0), #1F2D38 82%) !important;
  pointer-events: none !important;
}

[data-theme="light"] .media-card.oyun-card .media-title::after {
  background: linear-gradient(to right, rgba(233, 236, 239, 0), #e9ecef 82%) !important;
}

/* Progress Container */
.progress-container {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 1.5rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  min-width: 50px !important;
  margin-top: 3px;
  margin-right: 0px;
}

.progress-text.loading ~ .progress-bar,
.progress-container:has(.progress-text.loading) .progress-bar {
  margin-right: -30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  display: block !important;
  visibility: visible !important;
}

.progress-text {
  font-size: 0.7rem;
  color: var(--muted-color);
  font-weight: 600;
  text-align: right !important;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
  min-width: auto;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--pico-color);
}

.empty-state p {
  color: var(--muted-color);
  margin: 0 0 1.5rem 0;
}

.empty-state .cta-button {
  border-radius: 9999px !important;
  padding: 0.9rem 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Öneri Badge Stilleri */
.oneri-badge {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  z-index: 1000 !important;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
  color: white !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 23px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.oneri-buttons {
}

a.logo-link:active,
a.logo-link:focus {
  background-color: transparent !important;
}
  display: flex !important;
  gap: 0.3rem !important;
}

.oneri-btn {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.oneri-btn.accept {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #27ae60 !important;
}

.oneri-btn.reject {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #e74c3c !important;
}

.oneri-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.oneri-btn.accept:hover {
  background: #27ae60 !important;
  color: white !important;
}

.oneri-btn.reject:hover {
  background: #e74c3c !important;
  color: white !important;
}

/* Footer Actions */
.footer-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 26px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--muted-border-color);
  background: var(--card-background-color);
  color: var(--pico-color);
  flex-direction: row;
  flex: 0.4;
  justify-content: center;
  max-width: 130px;
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--pico-primary);
  color: var(--pico-primary);
}

.button-label {
  font-size: 0.85rem;
  display: block;
  margin-top: 0;
}



/* ======================================== */
/*   4. Detay Sayfaları (Dizi & Film)   */
/* ======================================== */

/* GÜNCELLENDİ: Sağlam Konumlandırma Yapısı */
.detay-container {
  position: relative;
  /* Sayfanın en üstündeki varsayılan boşluğu kaldırır */
  margin: calc(var(--pico-spacing) * -1.5 + 10px) calc(var(--pico-spacing) * -2) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.media-backdrop {
  position: absolute;
  top: -30px !important;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: 474px;
  max-height: 450px;
  background-size: cover;
  background-position: center 25%;
  z-index: 1;
}

.media-backdrop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--pico-background-color) 5%, rgba(0, 0, 0, 0.5) 100%);
}

.detay-icerik {
  position: relative;
  z-index: 2;
  padding: 25vh var(--pico-spacing) var(--pico-spacing);
  width: 85vw;
  max-width: 85vw;
  margin-left: auto;
  margin-right: auto;
  margin-top: 55px !important;
}

.media-detay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0;
}

.media-poster {
  position: relative !important;
  margin-top: -132px;
  display: flex;
  flex-direction: column;
}

.media-poster img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--pico-border-radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  margin: 250px 0 0 3px;
}

.media-bilgileri {
  margin-top: 170px;
}

.detay-container .media-detay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: -70px !important;
}

.media-detay-header hgroup {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.media-detay-header h1 {
  margin: 0 auto 5px 0;
  color: rgba(255, 255, 255, 1);
}

.media-detay-header p {
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 1);
}

.detay-container .media-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  color: rgba(23, 23, 29, 1);
  margin-top: -70px !important;
}

.media-ozet {
  font-size: 1.1em;
  line-height: 1.6;
  margin-top: 2.9rem !important;
}

.media-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  background-color: rgba(128, 128, 128, 0.1);
  padding: 1.5rem;
  border-radius: var(--pico-border-radius);
  justify-content: flex-end;
  align-items: center;
}

.media-meta-grid div {
  line-height: 1.4;
}

.media-meta-grid strong {
  color: var(--muted-color);
}

.media-turler {
  margin-bottom: 2rem;
}

.media-turler span {
  display: inline-block;
  background-color: var(--muted-border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.9em;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.oyuncu-kadrosu h4,
.bolum-listesi-container h4 {
  border-bottom: 1px solid var(--muted-border-color);
  padding-bottom: 0.5rem;
}

.oyuncu-listesi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.oyuncu-karti {
  line-height: 1.3;
}

.oyuncu-karti small {
  color: var(--muted-color);
}

.bolum-listesi-container {
  margin-top: 3rem;
}

.bolum-listesi-container h4 {
  margin-bottom: 1rem;
}

.tabs {
  border-bottom: 1px solid var(--muted-border-color);
  margin-bottom: 1.5rem;
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs li {
  list-style-type: none;
}

.tabs a {
  display: inline-block;
  background-color: var(--card-background-color);
  border: 1px solid var(--muted-border-color);
  color: var(--muted-color);
  border-radius: var(--pico-border-radius);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.tabs a:hover {
  border-color: var(--pico-primary);
  color: var(--pico-primary);
}

.tab-panel figure {
  margin: 0;
}

.bolumler-tablosu {
  table-layout: fixed;
  width: 100%;
}

.bolumler-tablosu thead th {
  padding-bottom: 1rem;
}

.bolumler-tablosu td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  vertical-align: middle;
}

.bolumler-tablosu button {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  margin: 0;
  line-height: 1.2;
  min-width: 140px;
  white-space: nowrap;
}

.bolumler-tablosu button.secondary.outline {
  --pico-color: var(--pico-secondary-hover);
  --pico-border-color: var(--pico-secondary-hover);
}

.bolumler-tablosu tr.izlendi td:not(:last-child) {
  color: var(--muted-color);
  text-decoration: line-through;
  opacity: 0.7;
}

.bolumler-tablosu tr.izlendi td {
  font-weight: normal;
}

.bolum-header-eylem {
  text-align: right;
  width: 25%;
}

.bolum-header-eylem button {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  margin: 0;
  line-height: 1.2;
  min-width: 140px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .media-detay-grid {
    grid-template-columns: 300px 1fr;
    align-items: flex-start;
  }
}

/* Modern buton stilleri */



.media-poster img {
  border: none !important;
}

/* Modern ikonlar ve gölgelendirme */




.media-detay-header h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6) !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  color: white !important;
  font-weight: 700 !important;
}

.media-detay-header p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Heroicons SVG ikonları */
.media-actions .icon-button::before {
  content: "" !important;
  display: block !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  font-size: 0 !important;
}

.media-actions .icon-button.is-favori::before {
  background-size: 22px 22px !important;
  width: 22px !important;
  height: 22px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd700'%3e%3cpath fill-rule='evenodd' d='M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z' clip-rule='evenodd'/%3e%3c/svg%3e") !important;
}

.media-actions .icon-button:not(.is-favori):not(.delete-button)::before {
  background-size: 20px 20px !important;
  width: 20px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23555555'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z'/%3e%3c/svg%3e") !important;
}

.media-actions .icon-button.delete-button::before {
  background-size: 20px 20px !important;
  width: 20px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ff6b6b'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0'/%3e%3c/svg%3e") !important;
}

/* Sezon tabları konumu düzeltme */
.bolum-listesi-container {
  margin-top: 3rem !important;
  position: relative !important;
  z-index: 1 !important;
}

.tabs {
  margin-bottom: 2rem !important;
  position: relative !important;
}

.tabs ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bolum-listesi-container .tabs {
  position: static !important;
  width: 100% !important;
  clear: both !important;
  margin-top: -2.5rem !important;
  margin-bottom: 2rem !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-bottom: none !important;
}

.bolum-listesi-container .tabs ul {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  background: none !important;
  backdrop-filter: none !important;
  border: none !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 0 0 15px !important;
  padding: 0 !important;
  text-align: left !important;
  border-bottom: none !important;
}

.bolum-listesi-container .tabs ul li {
  position: static !important;
  margin: 0 1rem 0 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.bolum-listesi-container .tabs ul li a {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #6c757d !important;
  color: white !important;
}

.bolum-listesi-container .tabs ul li.active a {
  background-color: #343a40 !important;
  color: white !important;
}

.bolum-listesi-container nav {
  position: static !important;
  z-index: auto !important;
}

.bolum-listesi-container nav ul {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  background: none !important;
  backdrop-filter: none !important;
  border: none !important;
  justify-content: flex-start !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bolum-listesi-container nav ul li {
  position: static !important;
  margin: 0 1rem 0 0 !important;
  padding: 0 !important;
}

.detay-container .bolum-listesi-container {
  margin-top: 3rem !important;
}

.detay-container .bolum-listesi-container nav {
  position: static !important;
  z-index: 1 !important;
  margin-top: -3rem !important;
}

.detay-container .bolum-listesi-container nav ul {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: 0 !important;
  z-index: 1 !important;
  background: none !important;
  backdrop-filter: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container nav ul li {
  position: static !important;
  margin: 0 1rem 0 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container h4 {
  margin-top: -1.2rem !important;
  margin-bottom: 4.2rem !important;
  border: none !important;
  padding-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.detay-container .bolum-listesi-container h4:after,
.detay-container .bolum-listesi-container h4:before {
  content: none !important;
  display: none !important;
}

.detay-container .bolum-listesi-container .tabs {
  margin-top: -2.5rem !important;
  margin-bottom: 2rem !important;
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container .tabs ul {
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container .tabs ul li {
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container .tabs ul li a {
  border-bottom: none !important;
}

.detay-container .bolum-listesi-container .tab-panel {
  margin-top: 1.5rem !important;
}

.detay-container hr {
  display: none !important;
}

/* Sezon numarası butonlarının rengi gri */
.detay-container .bolum-listesi-container .tabs ul li a {
  background-color: #6c757d !important;
  color: white !important;
}

.detay-container .bolum-listesi-container .tabs ul li.active a {
  background-color: #495057 !important;
  color: white !important;
}

/* Aktif buton rengini daha koyu yap */
.detay-container .bolum-listesi-container .tabs ul li.active a {
  background-color: #343a40 !important;
}

/* Bölüm Adı sütununu 50px sola yaklaştır */
.bolumler-tablosu td:nth-child(2) {
  padding-left: 0 !important;
  margin-left: -50px !important;
}

.bolumler-tablosu th:nth-child(2) {
  padding-left: 0 !important;
  margin-left: -50px !important;
}

/* Bölüm Adı sütununu daha da sola yaklaştır */
.bolumler-tablosu td:nth-child(2) {
  margin-left: -70px !important;
}

.bolumler-tablosu th:nth-child(2) {
  margin-left: -70px !important;
}

/* Bölüm Adı sütununu 50px daha sola taşı */
.bolumler-tablosu td:nth-child(2) {
  margin-left: -120px !important;
}

.bolumler-tablosu th:nth-child(2) {
  margin-left: -120px !important;
}

/* Bölüm adı sütununu sola kaydır */
.bolumler-tablosu {
  table-layout: fixed !important;
}

.bolumler-tablosu th:nth-child(1),
.bolumler-tablosu td:nth-child(1) {
  width: 60px !important;
}

.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  width: auto !important;
  text-align: left !important;
  padding-left: 10px !important;
}

/* Bölüm adı sütununu biraz sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 30px !important;
}

/* Bölüm adı sütununu 20px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 50px !important;
}

/* Bölüm adı sütununu 30px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 80px !important;
}

/* Bölüm adı sütununu 50px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 130px !important;
}

/* Bölüm adı sütununu 50px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 180px !important;
}

/* Bölüm adı sütununu 100px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 280px !important;
}

/* Bölüm adı sütununu 200px daha sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 480px !important;
}

/* Bölüm sütununun başlığının margin değerlerini 0 yap */
.bolumler-tablosu th:nth-child(1) {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Bölüm adı sütununu 500px sola taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 0 !important;
  margin-left: -20px !important;
}

/* Bölüm adı sütununu 100px sağa taşı */
.bolumler-tablosu th:nth-child(2),
.bolumler-tablosu td:nth-child(2) {
  padding-left: 80px !important;
  margin-left: 0 !important;
}

/* Oyuncu adı ile karakter adını alt alta yap */
.oyuncu-karti {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

.oyuncu-karti strong {
  margin-bottom: 0.25rem !important;
}

.oyuncu-karti small {
  display: block !important;
}

/* Oyuncu adı ile karakter adını sola yasla */
.oyuncu-karti {
  text-align: left !important;
}

/* İzlendi, Hepsi İzlendi ve Yeni Ekle butonlarının border radiusunu 15px yap
   (tamamlanma ve sezon butonlarını hariç tut) */
.bolumler-tablosu button,
.bolum-header-eylem button,
button[type="submit"]:not(.ekle-btn):not(.populer-btn):not(.archive-complete-btn):not(.season-btn) {
  border-radius: 15px !important;
}

/* Yeni Ekle butonunu özel olarak hedefle */
.yeni-ekle-container button,
.yeni-ekle-container a,
a[href*="yeni"],
button.primary,
.primary {
  border-radius: 15px !important;
}

/* Navigasyondaki Yeni Ekle butonunu hedefle */
nav ul li a[role="button"],
nav a.contrast {
  border-radius: 15px !important;
}

/* Navigasyonun altındaki her şeyi 10px aşağı taşı */
nav+hr {
  margin-bottom: 2rem !important;
}

main .container>*:not(nav):not(hr) {
  margin-top: 10px !important;
}

/* Navigasyonun altındaki içeriği 5px yukarı taşı */
main .container>*:not(nav):not(hr) {
  margin-top: 5px !important;
}

/* Navigasyonun altındaki içeriği 5px daha yukarı taşı */
main .container>*:not(nav):not(hr) {
  margin-top: 0px !important;
}

/* HR çizgisini ve içeriği yukarı taşı */
nav+hr {
  margin-top: -10px !important;
  margin-bottom: 1rem !important;
}

.detay-container,
.arama-container {
  margin-top: -10px !important;
}

/* İçeriği 7px aşağı taşı */
nav+hr {
  margin-top: -3px !important;
}

.detay-container,
.arama-container {
  margin-top: -3px !important;
}

/* İçeriği 3px daha aşağı taşı */
nav+hr {
  margin-top: 0px !important;
}

.detay-container,
.arama-container {
  margin-top: 0px !important;
}

/* İçeriği 2px daha aşağı taşı */
nav+hr {
  margin-top: 2px !important;
}

.detay-container,
.arama-container {
  margin-top: 2px !important;
}

/* İçeriği 5px daha aşağı taşı - son */
nav+hr {
  margin-top: 7px !important;
}

.detay-container,
.arama-container {
  margin-top: 7px !important;
}

/* İçeriği 5px daha aşağı taşı */
nav+hr {
  margin-top: 12px !important;
}

.detay-container,
.arama-container {
  margin-top: 12px !important;
}

/* İçeriği 5px daha aşağı taşı */
nav+hr {
  margin-top: 17px !important;
}

.detay-container,
.arama-container {
  margin-top: 17px !important;
}

/* İçeriği 10px daha aşağı taşı */
nav+hr {
  margin-top: 27px !important;
}

.detay-container,
.arama-container {
  margin-top: 27px !important;
}

/* Butonların tıklanabilirliğini sağla */
.bolumler-tablosu button {
  pointer-events: auto !important;
  z-index: 10 !important;
  position: relative !important;
}

.bolum-header-eylem button {
  pointer-events: auto !important;
  z-index: 10 !important;
  position: relative !important;
}

/* Test için Hepsi İzlendi butonunu vurgula */
.bolum-header-eylem button {
  background-color: red !important;
  color: white !important;
}

/* Kırmızı test rengini kaldır */
.bolum-header-eylem button {
  background-color: initial !important;
  color: initial !important;
}

/* Test CSS'ini temizle */
.bolum-header-eylem button {
  background-color: unset !important;
  color: unset !important;
}

/* Film rozetleri */
.rozet {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.favori-rozet {
  background-color: #ffd700;
  color: #333;
}

.manuel-rozet {
  background-color: #4a90e2;
  color: white;
}

.oneri-rozet {
  background-color: #28a745;
  color: white;
}

/* Rozetleri yukarı taşı ve küçült */
.rozet {
  font-size: 0.6rem !important;
  padding: 0.15rem 0.4rem !important;
  vertical-align: super !important;
  margin-left: 0.3rem !important;
}

/* Sil butonu - kırmızı border */
.media-actions .icon-button.delete-button {
  border-color: #ff6b6b !important;
}

/* Fragman Modal Stilleri */
.trailer-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.trailer-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

.trailer-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  line-height: 1;
  transition: transform 0.2s;
  width: auto !important;
  height: auto !important;
}

.trailer-modal-close:hover {
  transform: scale(1.1);
  color: #ff003c;
}

.trailer-iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  background-color: var(--pico-background-color) !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Dizi sayfalarında oyuncu kadrosu yukarı taşı */
.detay-container .oyuncu-kadrosu {
  margin-top: -20px;
}

/* Dizi sayfalarında oyuncu kadrosu 70px yukarı taşı */
.detay-container .oyuncu-kadrosu {
  margin-top: -70px !important;
}

/* Sezonlar bölümünü 30px aşağı taşı */
.bolum-listesi-container {
  margin-top: 30px;
}

/* Sezonlar bölümünü toplam 80px aşağı taşı */
.bolum-listesi-container {
  margin-top: 80px !important;
}

/* Sezonlar bölümünü güçlü seçici ile taşı */
.detay-container .bolum-listesi-container {
  margin-top: 80px !important;
  padding-top: 0 !important;
}

.detay-container .bolum-listesi-container h4 {
  margin-top: 0 !important;
}

/* Arşiv butonu için özel stil */
.archive-button::before {
  content: none !important;
}

.archive-button svg {
  display: inline-block !important;
  width: 1rem !important;
  height: 1rem !important;
}

/* Arşiv butonu tam stil */

/* Arşiv butonu belirgin çerçeve */
/* Tüm icon butonları aynı tasarım */
.icon-button {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  transition: all 0.3s ease !important;
}

/* Tüm medya butonları için şeffaf tasarım (hover efekti olmadan) */
.media-actions .icon-button,
.media-actions .archive-btn {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 15px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  transition: none !important;
  width: 2.8rem !important;
  height: 2.8rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.3rem !important;
}

/* Favori butonu pasif - #ffb830 açıktan koyuya gradient ve beyaz ikon */
.media-actions .icon-button:not(.is-favori):not(.delete-button):not(.archive-btn) {
  background: linear-gradient(135deg, #ffb830 0%, #cc9326 100%) !important;
  border: none !important;
}

.media-actions .icon-button:not(.is-favori):not(.delete-button):not(.archive-btn) svg {
  color: white !important;
  fill: none !important;
}

.media-actions .icon-button:not(.is-favori):not(.delete-button):not(.archive-btn) svg path {
  stroke: white !important;
  color: white !important;
  fill: none !important;
}

/* Favori butonu aktif - #ff6b3d - #ffb830 gradient ve beyaz ikon */
.media-actions .icon-button.is-favori {
  background: linear-gradient(135deg, #ff6b3d 0%, #ffb830 100%) !important;
  border: none !important;
}

.media-actions .icon-button.is-favori svg path {
  stroke: white !important;
  color: white !important;
  fill: white !important;
}

/* Arşiv butonu - kalın çerçeve */
.media-actions .archive-btn {
  border: 2.5px solid rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
}

/* Sil butonu - kırmızı gradient */
.media-actions .icon-button.delete-button {
  background: linear-gradient(135deg, #a3005f 0%, #ff003c 100%) !important;
  border: none !important;
}

/* Footer Arşiv butonu için özel stil */
footer a[href*="arsiv"] svg {
  flex-shrink: 0 !important;
  order: -1 !important;
  position: static !important;
  z-index: 1 !important;
}

/* Footer butonları için genel stil */
footer a[role="button"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Media poster background kaldır */
.media-poster {
  background: none !important;
}

/* Posteri en üste taşı */
.media-poster img {
  margin-top: -20px !important;
}

@media (min-width: 1024px) {
  .media-platform,
  .main-homepage .media-platform,
  .dizi-card .media-platform,
  .media-info .media-platform {
    position: relative !important;
    top: 7px !important;
    margin-top: 0 !important;
    transform: none !important;
    display: block !important;
  }

  /* Film ve oyun kartlarında platform satırını 2px aşağı taşı (-23px + 2px = -21px) */
  .film-card .media-platform,
  .oyun-card .media-platform {
    top: -21px !important;
  }
}

/* Media Info - Optimized for Compact View */
.media-info {
  padding: 0.2rem 0.75rem !important;
  min-height: unset !important;
  height: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0px !important;
}

.media-title {
  margin: 0 0 3px 0 !important;
  padding: 0 0 8px 0 !important; /* Alt kısma 8px dolgu ekle (g, y harfleri için) */
  line-height: 1.5 !important; /* Harflerin (g, y) alt kısmının kesilmemesi için */
  font-size: 1rem;
  font-weight: 600;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.media-platform {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  font-size: 0.75rem !important;
  color: var(--muted-color);
  display: block !important;
}

/* Dizi kartları ve anasayfadaki diğer kartlar için özel daraltma */
.main-homepage .media-info {
  padding: 4px 0.65rem 4px 0.65rem !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 0 !important;
  gap: 0px !important;
}

.main-homepage .media-info form {
  margin: 0 !important;
  padding: 0 !important;
}

.dizi-card .media-info {
  padding: 0.5rem 0.65rem 0.8rem 0.65rem !important;
}

.dizi-card .media-info .media-title {
  line-height: 1.4 !important;
  padding-bottom: 4px !important;
}

.dizi-card .media-info .media-platform {
  margin-top: 0px !important;
  margin-bottom: 2px !important;
  line-height: 1.4 !important;
}

.mobile-filmler .media-title,
.mobile-oyunlar .media-title {
  font-size: 0.85rem !important;
  margin-bottom: 0.1rem !important;
  line-height: 1.4 !important;
  padding-bottom: 0.1rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.mobile-diziler .media-platform,
.mobile-filmler .media-platform,
/* Media Info Overrides - CLEANED UP - Using index.css for mobile layout */
.mobile-diziler .media-platform,
.mobile-filmler .media-platform,
.mobile-oyunlar .media-platform,
.media-platform {
  margin-top: 0 !important;
  font-size: 0.75rem !important;
  display: block !important;
  width: 100% !important;
}

.progress-container {
  margin-top: 0.25rem !important;
  transform: translateY(-20px) !important;
}

/* Öneri kartlarında progressbar placeholder - görünmez ama alan kaplar */
.progress-container.progress-placeholder {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Yapım kartlarının arkaplanını önceki renk yap */
.media-card {
  background: #1F2D38 !important;
}

/* Media kartını link olarak stil ver */
.media-card {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.media-card > a {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

.media-card:active {
  background-color: transparent !important;
}

.media-card a:active {
  background-color: transparent !important;
}

/* Modern Detay Sayfası Stilleri */
.modern-detay-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero-backdrop {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.backdrop-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

.backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  margin-left: 75px;
}

.hero-poster img {
  width: 100%;
  border-radius: 23px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: block;
  margin-left: -2px;
}
 
.poster-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin-left: 0px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.rating-trailer-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rating-badges {
  display: flex;
  gap: 0.75rem;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.rating-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.rating-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f39c12;
}

.rating-badge.tmdb .rating-label { color: #90cea1; }
.rating-badge.imdb .rating-label { color: #f5c518; }
.rating-badge.igdb .rating-label { color: #9146ff; }
.rating-badge.rawg .rating-label { color: #ffffff; }

.trailer-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(229, 59, 81, 0.9);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 59, 81, 0.5);
}

.trailer-btn:hover {
  background: rgba(229, 59, 81, 1);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(229, 59, 81, 0.4);
  color: white;
}

.trailer-btn svg {
  width: 20px;
  height: 20px;
}

.badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 23px;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge.favorite {
  background: rgba(255, 215, 0, 0.9);
  color: #333;
}

.badge.archive {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border: none !important;
  border-radius: 50% !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.action-btn svg {
  width: 20px !important;
  height: 20px !important;
}

.action-btn.favorite {
  background: linear-gradient(135deg, #ffb830 0%, #cc9326 100%);
  color: white;
}

.action-btn.favorite svg {
  color: white !important;
  fill: none !important;
  stroke: white !important;
}

.action-btn.favorite.active {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.action-btn.archive {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

.action-btn.restore {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.action-btn.delete {
  background: linear-gradient(135deg, #a3005f 0%, #ff003c 100%);
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Content Wrapper */
.content-wrapper {
  width: 85vw;
  max-width: 85vw;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Overview Section */
.overview-section {
  margin-bottom: 3rem;
  margin-top: -30px;
}

.overview-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--pico-color);
}

.overview-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted-color);
}

/* Meta Section */
.meta-section {
  margin-bottom: 3rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.meta-card {
  background: var(--card-background-color);
  border-radius: 55px;
  padding: 1rem;
  border: 1px solid var(--muted-border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 107px;
}

.meta-icon {
  font-size: 2rem;
}

.meta-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--muted-color);
  font-weight: 600;
}

.meta-content p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--pico-color);
  font-weight: 600;
}

/* Cast Section */
.cast-section {
  margin-bottom: 3rem;
}

.cast-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--pico-color);
}

.cast-grid,
.oyuncu-listesi {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem;
}

.cast-card {
  background: var(--card-background-color);
  border-radius: 9999px;
  padding: 1rem;
  border: 1px solid var(--muted-border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cast-avatar {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: #1F2D38;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cast-avatar img {
  width: auto;
  height: 150%;
  object-fit: cover;
  transform: translateY(10px);
}

.cast-avatar.placeholder i {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.5);
}

.cast-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--pico-color);
}

.cast-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-color);
}

/* Episodes Section */
.episodes-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--pico-color);
}

.season-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.season-tab {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--muted-border-color);
  background: var(--card-background-color);
  color: var(--muted-color);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.season-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-background-color);
  border-radius: 15px;
  border: 1px solid var(--muted-border-color);
}

.season-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--pico-color);
}

.season-info p {
  margin: 0;
  color: var(--muted-color);
}

.season-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.season-btn.watched {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

.season-btn.unwatched {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.episode-card {
  background: var(--card-background-color);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid var(--muted-border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.episode-card.watched {
  opacity: 0.7;
  background: var(--muted-border-color);
}

.episode-number {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.episode-info {
  flex: 1;
}

.episode-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--pico-color);
}

.episode-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.episode-btn.watched {
  background: #6c757d;
  color: white;
}

.episode-btn.unwatched {
  background: #28a745;
  color: white;
}

/* Responsive */

/* Eski detay container stillerini devre dışı bırak */
.detay-container {
  display: none !important;
}

/* Full-width hero section */
.hero-backdrop.full-width {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* Active favorite button styling - #ff6b3d - #ffb830 gradient ve beyaz ikon */
.action-btn.favorite.active {
  background: linear-gradient(135deg, #ff6b3d 0%, #ffb830 100%) !important;
  color: white !important;
}

.action-btn.favorite.active svg {
  color: white !important;
  fill: white !important;
  stroke: white !important;
}

/* Poster positioning */
/* Bölüm sayfası posteri de 2px sola taşı */
.modern-detay-container .hero-poster img {
  margin-left: -2px;
}

/* Bölüm sayfası poster placeholder'ı da 2px sola taşı */
.modern-detay-container .poster-placeholder {
  margin-left: -2px;
}

/* Hero poster container - relative positioning for buttons */
.hero-poster {
  margin-left: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 300px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 23px;
  position: relative !important;
}

/* Bölüm detay sayfasında masaüstünde poster boyutu */
.bolum-detay-page .hero-poster {
  width: 240px !important;
}

.bolum-detay-page .hero-poster img,
.bolum-detay-page .hero-poster .poster-placeholder {
  width: 240px !important;
  height: 360px !important;
}

.hero-poster img,
.hero-poster .poster-placeholder {
  margin-bottom: 15px !important;
}

/* Action buttons positioning - posterin tam altına sabit */
.action-buttons {
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin: 0 !important;
  z-index: 10 !important;
}

.action-btn {
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 45px !important;
  max-width: 45px !important;
}

/* Title section positioning */
.title-section {
  position: absolute;
  top: 50%;
  left: 500px;
  transform: translateY(-50%);
  z-index: 10;
}

/* Lucide icons are handled via script tags in layout.html */

/* Lucide icon styling */
.meta-icon i {
  width: 60px;
  height: 60px;
}

h2 i {
  width: 6rem;
  height: 6rem;
  margin-right: 8px;
}

h3 i {
  width: 2rem;
  height: 2rem;
  margin-right: 6px;
}

/* Season tabs styling */
.season-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.season-tab {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--pico-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0;
}

.season-tab.active {
  background: var(--muted-border-color);
  color: var(--pico-color);
}

/* Episodes vertical list */
.episodes-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.episode-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.8rem !important;
  min-height: 50px !important;
  border-radius: 15px !important;
}

.episode-info {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

/* Episode action buttons to the right and centered */
.episode-action {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-3.5px, 15px) !important;
}

/* Force episode card styling */
.episode-card {
  min-height: 50px !important;
  height: 50px !important;
  border-radius: 15px !important;
}

/* Override episode card height */
.episodes-grid .episode-card {
  height: 70px !important;
  max-height: 70px !important;
}

/* Move episode title down */
.episode-info h4 {
  transform: translateY(3px);
}

/* Episode buttons same width */
.episode-btn {
  min-width: 120px;
  width: 120px;
}

/* Episode button purple gradient colors */
.episode-btn.watched {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
  color: white !important;
}

.episode-btn.unwatched {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
}

/* Episode checkbox styling */
.episode-checkbox {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transform: scale(1.2) !important;
  appearance: none !important;
   -webkit-appearance: none !important;
   border: 2px solid #667eea !important;
   background: transparent !important;
   position: relative !important;
   margin: 0 auto !important;
   display: block !important;
}

.episode-checkbox:checked {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-color: #667eea !important;
}

.episode-checkbox:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* Status checkbox styling - small version for yapım kartları */
.status-checkbox {
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transform: scale(1) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid #667eea !important;
  background: rgba(102, 126, 234, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  position: relative !important;
  margin: 0 !important;
  display: block !important;
}

.status-checkbox-large {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transform: scale(1.2) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid #667eea !important;
  background: rgba(102, 126, 234, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  position: relative !important;
  margin: 0 !important;
  display: block !important;
}

.status-checkbox::before {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #667eea !important;
  font-size: 14px !important;
  font-weight: bold !important;
  filter: blur(0.5px) !important;
}

.status-checkbox:checked {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-color: #667eea !important;
}

.status-checkbox:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

.status-checkbox-form {
  position: absolute !important;
  right: 3px !important;
  top: 3px !important;
  transform: translateY(-1px) !important;
  z-index: 10 !important;
}

/* Season button purple gradient colors */
.season-btn.watched {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
  color: white !important;
}

.season-btn.unwatched {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
}

/* Reduce season header height */
.season-header {
  padding: 0.3rem 1.5rem 0.8rem 1.5rem !important;
  height: 100px !important;
  overflow: hidden !important;
  align-items: center !important;
}

/* Align and resize season button */
.season-action {
  transform: translate(-2px, -41px);
  align-self: flex-start;
}

.season-btn {
  padding: 0.8rem 1.6rem !important;
  font-size: 1rem !important;
  height: auto !important;
  margin-top: 0 !important;
}

/* Increase border radius for all cards */
.meta-card {
  border-radius: 9999px !important;
}

.season-header,
.episode-card {
  border-radius: calc(15px + 10px) !important;
}

.cast-card {
  border-radius: 9999px !important;
}

@media (min-width: 1500px) {
  .cast-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .meta-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Force larger icons for section headings */
.overview-section h2 i,
.cast-section h2 i,
.episodes-section h2 i {
  width: 6rem !important;
  height: 6rem !important;
}

/* Force larger SVG icons for section headings */
.overview-section h2 svg,
.cast-section h2 svg,
.episodes-section h2 svg {
  width: 1.45rem !important;
  height: 1.45rem !important;
  transform: translateY(-4.3px) !important;
}

/* Reduce spacing between season title and episode count */
.season-info h3 {
  margin-bottom: 0.2rem !important;
}

.season-info p {
  font-size: 0.85rem !important;
}

/* Remove separator line after navigation */
nav+hr {
  display: none !important;
}

/* Move backdrop image view down 50px */
.backdrop-image {
  background-position: center 0px !important;
}

/* Modern logo styling */
.logo-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  margin-right: 8px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.logo-text:hover .logo-icon {
  transform: rotate(90deg);
}

.desktop-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-background-color);
  padding: 15px 0;
  border-radius: 33px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--muted-border-color);
  width: 60px;
  align-items: center;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

@media (max-height: 750px) {
  .profile-bar-active .desktop-nav,
  .profile-bar-active .header-wrapper {
    opacity: 1;
    filter: none;
    pointer-events: auto;
  }
}

.desktop-nav *[title] {
  title: none !important;
}

.desktop-nav *::before,
.desktop-nav *::after:not(.nav-item::after) {
  display: none !important;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  color: var(--muted-color);
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-item:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.nav-tooltip {
  position: absolute;
  left: 65px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1c23; /* Koyu tema için opak renk */
  color: #ffffff;
  padding: 6px 16px; /* Pill-shape için padding düzenlendi */
  border-radius: 50px; /* Tam pill-shape (oval) yapıldı */
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  pointer-events: none;
}

.nav-item:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
}

.fallout-logo {
  position: fixed;
  left: 20px;
  top: 15px;
  z-index: 10000;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  opacity: 0; /* Sadece görünmez, ama DOM'da yer kaplar ve render edilir */
  transform: scale(0.1);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
  display: block !important;
  visibility: visible !important; /* Her zaman visible, sadece opacity 0 */
  pointer-events: none; /* Görünmezken tıklanamaz */
  /* Katmanlı ve çok daha güçlü gölge */
  filter: drop-shadow(0 0 2px rgba(0,0,0,1)) 
          drop-shadow(0 4px 10px rgba(0,0,0,1)) 
          drop-shadow(0 0 25px rgba(0,0,0,0.8));
}

.fallout-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.fallout-logo.show {
  opacity: 1 !important;
  transform: scale(1) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.profile-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: var(--card-background-color);
  border: 1px solid var(--muted-border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: visible;
  justify-content: center;
  transition: height 0.25s ease, border-radius 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.profile-bar.open {
  height: 180px;
  padding: 10px 0;
  border-radius: 33px;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.profile-bar .nav-item {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin: 0;
}

.profile-bar .nav-item.profile-main {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-bar.open .nav-item {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--card-background-color, rgba(255, 255, 255, 0.05));
  border-radius: 15px;
}

.season-info {
  margin-top: 15px;
}

.season-info.archived {
  margin-top: 11px;
  margin-bottom: 20px;
}

.hero-grid {
  margin-left: 75px;
}

.modern-detay-container {
  margin-left: 0;
}

.season-controls {
  margin-top: 120px;
}

.season-status.archived {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  padding: 0.5rem 1rem;
  border-radius: 23px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(108, 117, 125, 0.3);
  margin-top: 15px;
}

.episode-checkbox:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  margin-top: -7px;
  margin-right: -2px;
}

@keyframes notification-slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes notification-slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (min-width: 481px) {
  .desktop-nav {
    display: flex !important;
  }

  .fallout-logo {
    display: block !important;
  }
  
  .profile-bar {
    display: flex !important;
  }

  .footer-actions {
    display: none !important;
  }
}

/* Removed desktop-only rule that should be mobile */

@media (max-width: 768px) {
  /* Sol Üst Fallout Logo */
  .fallout-logo {
    width: 45px !important;
    height: 45px !important;
    top: 10px !important;
    left: 10px !important;
    /* Transition süresini profil bar ile eşitle */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Fallout logo için de nav-up-hidden'ın etkilerini doğrudan buraya ekle */
    opacity: 1 !important; /* Başlangıçta görünür */
    transform: scale(1) !important; /* Başlangıçta tam boyutta */
    pointer-events: auto !important; /* Tıklanabilir */
    visibility: visible !important; /* Görünür */
  }

  .fallout-logo.nav-up-hidden {
    opacity: 0 !important;
    transform: translateY(-100px) scale(0.8) !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  /* Sağ Üst Profil Bar */
  .profile-bar {
    display: flex !important;
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 45px !important;
    height: 45px !important;
    z-index: 1005 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    /* Daha hızlı ve keskin transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    background: var(--card-background-color) !important;
    border-radius: 25px !important;
    border: 1px solid var(--muted-border-color) !important;
    /* Profil bar için de nav-up-hidden'ın etkilerini doğrudan buraya ekle */
    opacity: 1 !important; /* Başlangıçta görünür */
    transform: none !important; /* Başlangıçta tam pozisyonda */
    pointer-events: auto !important; /* Tıklanabilir */
    visibility: visible !important; /* Görünür */
  }

  .profile-bar.nav-up-hidden {
    opacity: 0 !important;
    transform: translateY(-100px) scale(0.8) !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  /* Kaydırma ile Gizleme Sınıfı - Mobilde Yukarı Kayar */
  .nav-up-hidden {
    /* Bu sınıf artık doğrudan fallout-logo ve profile-bar'a uygulanacak */
    /* Bu yüzden buradaki genel tanımı kaldırıyoruz veya sadece transition için tutuyoruz */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .profile-bar.open {
    height: 150px !important;
    width: 45px !important;
    padding-top: 5px !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .profile-bar .nav-item {
    width: 35px !important;
    height: 35px !important;
    flex-shrink: 0 !important;
  }

  .profile-bar .nav-tooltip {
    display: none !important;
  }

  /* Alt Navigasyon Barı */
  .desktop-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 55px !important;
    transform: none !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    border-radius: 0 !important;
    padding: 0 10px !important;
    z-index: 1005 !important;
    background: var(--card-background-color) !important;
    border-top: 1px solid var(--muted-border-color) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3) !important;
  }

  /* Sayfa içeriğinin alt bar tarafından kapatılmaması için */
  body {
    padding-bottom: 70px !important;
  }

  .desktop-nav .nav-item {
    width: 45px !important;
    height: 45px !important;
  }

  .desktop-nav .nav-tooltip {
    display: none !important;
  }

  .desktop-nav .nav-home {
    display: none !important;
  }

  #menu-toggle {
    display: none !important;
  }
}

/* Modern Yeni Ekle button */
.modern-add-btn {
  background: linear-gradient(135deg, #8e44ad 0%, #e74c3c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 0.8rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  height: 50px !important;
  margin-right: 20px !important;
}

.modern-add-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4) !important;
  color: #ffffff !important;
}

.modern-add-btn svg {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

/* Force button background override */
nav ul li a.modern-add-btn[role="button"] {
  background: linear-gradient(135deg, #8e44ad 0%, #e74c3c 100%) !important;
  background-color: transparent !important;
  color: white !important;
}

.header-wrapper {
  margin-top: 1.25rem;
  padding-bottom: 2px;
  position: relative;
  z-index: 1002;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Header container styling */
.header-container {
  display: flex;
  justify-content: center; /* Merkeze hizala */
  align-items: center;
  margin-bottom: 15px;
  margin-top: 0;
  min-height: 56px;
  padding-top: 2px;
  padding-bottom: 2px;
  position: relative;
}

/* Takvim sayfasında header boşluğunu kaldır */
body:has(.takvim-container) .header-container {
  margin-top: 0 !important;
}

/* Takvim sayfasında header tamamen gizlensin */
body:has(.takvim-container) .header-wrapper {
  display: none !important;
}

/* Takvim sayfasında ana logoyu tamamen gizle */
body:has(.takvim-container) .logo-image {
  display: none !important;
}

#menu-toggle {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1001 !important;
}

/* Dropdown menu styling */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  display: none;
  background: var(--card-background-color);
  border: 1px solid var(--muted-border-color);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 120px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--pico-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background: var(--muted-border-color);
}

#menu-toggle {
  background: none !important;
  border: none;
  color: var(--pico-color);
  font-size: 1.5rem;
  padding: 0;
  cursor: pointer;
  width: auto;
  min-width: auto;
  margin-right: 20px;
  outline: none;
  box-shadow: none !important;
}

@media (min-width: 1400px) {
  #menu-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
  }
}

@media (min-width: 1700px) {
  .header-container {
    padding: 0;
    width: 100%;
  }

  .logo-link {
    margin-left: 20px;
  }

  .modern-add-btn {
    margin-right: 20px;
  }

  #menu-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }

  .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 0; /* Sol boşluk sıfırlandı */
}

/* Logo image styling */
.logo-image {
  height: 1.8rem;
  width: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  transform-origin: center center; /* Merkezden büyüme */
  display: block;
  /* 3 katmanlı, çok daha sert ve siyah gölge */
  filter: drop-shadow(0 0 2px rgba(0,0,0,1)) 
          drop-shadow(0 4px 10px rgba(0,0,0,1)) 
          drop-shadow(0 0 25px rgba(0,0,0,0.8));
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Make stats cards very compact */
.stat-card {
  padding: 0.5rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 1.5rem !important;
  margin-bottom: 0.3rem !important;
}

.stat-number {
  font-size: 1.8rem !important;
  margin-bottom: 0.2rem !important;
}

.stat-label {
  font-size: 1.1rem !important;
}

/* Stats cards 2-column layout override */
.stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.8rem !important;
}

.stat-icon {
  flex-shrink: 0 !important;
  font-size: 2.5rem !important;
  margin: 0 !important;
}

.stat-number {
  font-size: 3rem !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.stat-label {
  font-size: 1.3rem !important;
  margin: 0 0 0 auto !important;
  line-height: 1 !important;
}

@media (min-width: 641px) and (max-width: 850px) {
  .stat-icon {
    font-size: 1rem !important;
  }

  .stat-number {
    font-size: 1.2rem !important;
  }
}

/* Override border radius for episode and season buttons */
.bolumler-tablosu button,
.bolum-header-eylem button,
.episode-btn,
.season-btn {
  border-radius: 25px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
}

/* Force border radius override with highest specificity */
.detay-container .bolumler-tablosu button,
.detay-container .bolum-header-eylem button,
.modern-detay-container .episode-btn,
.modern-detay-container .season-btn,
.episodes-section .episode-btn,
.episodes-section .season-btn {
  border-radius: 25px !important;
}

/* Episode card container border radius */
.episode-card {
  border-radius: 40px !important;
}

/* Move episode buttons 1px to the right */
.episode-btn {
  margin-left: 2px !important;
}

/* Move episode buttons with higher specificity */
.episodes-section .episode-btn,
.modern-detay-container .episode-btn {
  transform: translateX(2px) !important;
}

/* Season card container border radius */
.season-header,
.episodes-section .season-header,
.modern-detay-container .season-header {
  border-radius: 50px !important;
}

/* Season button border radius */
.season-btn {
  border-radius: 40px !important;
}

/* Season button with higher specificity */
.episodes-section .season-btn,
.modern-detay-container .season-btn,
.detay-container .season-btn {
  border-radius: 9999px !important;
}

/* Align season button to right */
.season-header {
  justify-content: space-between !important;
}

.season-action {
  margin-left: auto !important;
}

/* Align season info text to left */
.season-info {
  text-align: left !important;
  margin-right: auto !important;
  transform: translateY(-5px) !important;
}

/* Make production title white on detail pages */
.hero-title,
.media-detay-header h1 {
  color: white !important;
}

/* Force production title white with highest specificity */
.modern-detay-container .hero-title,
.detay-container .media-detay-header h1,
.title-section h1 {
  color: white !important;
}

/* Force title to pure white with maximum specificity */
.modern-detay-container .hero-title,
.detay-container .media-detay-header h1,
.title-section h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body[data-theme="light"] .profile-name {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

body[data-theme="light"] .admin-container h1 {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

/* Move tagline 7px to the right */
.hero-tagline,
.media-detay-header p {
  transform: translateX(7px) !important;
}

/* Mobile spacing for second content section */
@media (max-width: 1199px) {
  .content-grid .content-section:nth-child(2) {
    margin-top: 0.75rem !important;
  }
}

/* Mobile spacing for second content section */
@media (max-width: 1199px) {
  .content-grid .content-section:nth-child(2) {
    margin-top: 0 !important;
  }
}

/* Move section headers 10px up and style icons */
.section-header h2 {
  transform: translateY(-10px) translateX(10px) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2 i {
  width: 1.2rem;
  height: 1.2rem;
}

/* Move item count badge 10px up */
.item-count {
  transform: translateY(-20px) !important;
}

/* Adjust the heading icons for the two main sections: move icons 5px down */
.content-grid .content-section:first-child .section-header h2 i,
.content-grid .content-section:first-child .section-header h2 svg,
.content-grid .content-section:nth-child(2) .section-header h2 i,
.content-grid .content-section:nth-child(2) .section-header h2 svg {
  display: inline-block;
  /* allow transform on either <i> or the generated <svg> */
  transform: translateY(2px);
}

/* Yapım sayfasındaki öneri butonları */
.action-btn.accept,
.action-btn.reject {
  margin-top: 30px !important;
  position: relative !important;
  transform: translateY(0px) !important;
}

.modern-detay-container .action-btn.accept,
.modern-detay-container .action-btn.reject {
  margin-top: 30px !important;
  position: relative !important;
  transform: translateY(0px) !important;
}

.action-buttons {
  overflow: visible !important;
  padding-bottom: 20px !important;
}

/* Unified media platform styling */
.media-platform {
  display: block !important;
  font-size: 0.75rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-platform .media-date {
  margin: 0 0 0 4px;
  padding: 0;
  font-size: 0.75rem !important;
}

/* Force smaller title font size */
.media-card .media-title,
.media-card h3.media-title {
  font-size: 0.95rem !important;
}
/* Hide progress bar in film and game cards */
.mobile-filmler .progress-container,
.mobile-oyunlar .progress-container,
body.mobile-filmler .progress-container,
body.mobile-oyunlar .progress-container,
.homepage-container.mobile-filmler .progress-container,
.homepage-container.mobile-oyunlar .progress-container {
  display: none !important;
}
/* Mobile rules for 768px-640px range */
@media (min-width: 641px) and (max-width: 768px) {
  nav ul {
    margin: -11px 0 auto;
  }

  nav ul li a {
    font-weight: 500;
    font-size: 32px;
    color: rgba(255, 255, 255, 1);
    background-color: #e53b51;
    border-radius: 5px;
    overflow: hidden;
    border-color: rgba(229, 59, 81, 1);
    line-height: 22px;
    text-align: center;
    margin: 10px auto 0 10px;
  }

  nav ul li {
    line-height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    margin: 20px 10px 0 auto;
  }

  nav ul li a[role="button"] {
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(74, 144, 226, 1);
    color: rgba(255, 255, 255, 1);
  }

  .media-backdrop {
    display: none !important;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 1rem !important;
  }

  .media-card {
    border-radius: 25px !important;
  }

  .media-poster {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .media-poster img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: inherit !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .poster-placeholder {
    border-radius: inherit !important;
  }

  .footer-actions {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--card-background-color) !important;
    padding: 0.5rem 1rem 0.3rem 1rem !important;
    margin: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    border-top: 1px solid var(--muted-border-color) !important;
  }

  .action-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.1rem !important;
    text-decoration: none !important;
    color: var(--pico-color) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transform: translateY(-0.3rem) !important;
  }

  .action-button .button-label {
    display: block !important;
    font-size: 0.8rem !important;
    color: var(--pico-color) !important;
    margin: 0 !important;
    text-align: center !important;
    margin-top: 0.2rem !important;
  }

  .homepage-container {
    padding-bottom: 4rem !important;
    margin-bottom: 0 !important;
  }
}
/* Hide navbar for tablet range */
@media (min-width: 641px) and (max-width: 768px) {
  nav {
    display: none !important;
  }
}
/* Mobile poster fix for homepage */

/* FINAL OVERRIDE: Anasayfadaki tüm kartların posterlerini düzenle ve zoomu kaldır */
.main-homepage .media-card,
.main-homepage .film-card,
.main-homepage .dizi-card,
.main-homepage .oyun-card {
  height: auto !important;
  width: 100% !important;
  max-width: 300px !important;
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: #1F2D38 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Kartın içindeki link yapısını flex yap ve boşlukları sıfırla */
.main-homepage .media-card > a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

.main-homepage .media-poster {
  background: #1F2D38 !important;
  overflow: hidden !important;
  width: 100% !important;
  aspect-ratio: 2/3 !important; /* Dikey poster formatına (2/3) geçildi */
  flex: 0 0 auto !important; /* Oranın yüksekliği belirlemesine izin ver */
  position: relative !important;
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.main-homepage .media-poster img {
  position: absolute !important;
  top: 0 !important;
  left: -3px !important;
  width: calc(100% + 3px) !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-homepage .media-info,
.mobile-diziler .media-info,
.mobile-filmler .media-info,
.mobile-oyunlar .media-info {
  padding: 0.5rem 0.7rem !important;
  flex: 0 0 90px !important; /* Yüksekliği netleştirerek posteri aşağıya zorla */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: #1F2D38 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  border: none !important; /* Olası gri çizgiyi kaldır */
  outline: none !important;
}

.main-homepage .media-info h3,
.mobile-diziler .media-info h3,
.mobile-filmler .media-info h3,
.mobile-oyunlar .media-info h3 {
  margin: 0 0 -4px 0 !important; /* Alt bilgilerin konumunu korumak için */
  font-size: 0.9rem !important;
  line-height: 1.4 !important; /* Harflerin (g, y) alt kısmının kesilmemesi için 1.1 -> 1.4 */
  padding-bottom: 2px !important; /* Alt kısma 2px dolgu ekle */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: #fff !important;
}

.main-homepage .media-info .media-meta {
  margin-top: auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  opacity: 0.8 !important;
  font-size: 0.8rem !important;
}

.oyun-card .media-platform {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.dizi-card .media-platform,
.film-card .media-platform {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  padding-bottom: 3px !important;
}

.media-card.dizi-card .media-platform,
.media-card.film-card .media-platform,
.mobile-diziler .dizi-card .media-platform,
.mobile-filmler .film-card .media-platform {
  display: flex !important;
}

.oyun-card .platform-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dizi-card .platform-text,
.dizi-card .platform-text,
.film-card .platform-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 3px;
  margin-bottom: -3px;
  line-height: 1.4;
}

.oyun-card .media-platform .media-date {
  flex-shrink: 0;
  margin-left: 0;
}

.dizi-card .media-platform .media-date,
.film-card .media-platform .media-date {
  flex-shrink: 0;
  margin-left: auto !important;
  text-align: right !important;
}

.archive-section {
  background: var(--card-background-color);
  border-radius: 25px;
  padding: 20px;
  border: 1px solid var(--muted-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  align-self: start;
  width: 85vw;
  margin: 0 7.5vw;
  position: relative;
  overflow: hidden;
}

.archive-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  opacity: 0.5;
}

.archive-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.archive-section .section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--pico-color);
}

.archive-section .item-count {
  background: var(--muted-border-color);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  top: 12px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0;
}

.archive-card {
  width: 100%;
  background: #1F2D38 !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--muted-border-color) !important;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.archive-poster {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

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

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

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
}

.archive-info {
  padding: 0.5rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pico-color);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-year {
  color: var(--muted-color);
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.archive-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-badge.completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.archive-badge.archived {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.archive-badge.dizi {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.archive-badge.film {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--pico-color);
}

.empty-state p {
  color: var(--muted-color);
  margin: 0;
}

@media (max-width: 768px) {     
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Consolidated Mobile Overrides - MOVED TO index.css */
@media (max-width: 768px) {
}

/* FINAL OVERRIDE FOR MOBILE POSTER DIMENSIONS */
@media (max-width: 768px) {
  .modern-detay-container .hero-backdrop {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
}

/* Masaüstü Backdrop Yükseklik Ayarları */
@media (min-width: 769px) {
  /* En yüksek öncelikli kural (body ekleyerek önceliği artırıyoruz) */
  body .modern-detay-container .hero-backdrop,
  body .bolum-detay-page .hero-backdrop {
    height: calc(60vh + 80px) !important;
    min-height: calc(60vh + 80px) !important;
  }

  body .modern-detay-container .hero-backdrop .backdrop-image,
  body .bolum-detay-page .hero-backdrop .backdrop-image {
    height: 100% !important;
    min-height: calc(60vh + 80px) !important;
    object-fit: cover !important;
  }
  
  /* Masaüstünde bölüm adını aşağı taşı */
  .bolum-detay-page .hero-tagline {
    margin-top: 20px !important;
    margin-left: -7px !important;
  }
}

@media (max-width: 768px) {
  .modern-detay-container .hero-poster img {
    width: 240px !important; /* %20 küçültüldü (300px -> 240px) */
    height: 360px !important; /* %20 küçültüldü (450px -> 360px) */
    min-height: 360px !important;
    max-height: 360px !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto !important;
    border-radius: 35px 35px 40px 40px !important;
    position: static !important; /* Fix for absolute positioning from index.css */
    z-index: 5 !important;
    flex-shrink: 0 !important;
  }

  .modern-detay-container .hero-poster .poster-placeholder {
    width: 240px !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    margin: 0 auto !important;
    border-radius: 35px 35px 40px 40px !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 5rem !important;
    background: linear-gradient(135deg, #2A3B4C 0%, #1F2D38 100%) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    flex-shrink: 0 !important;
  }
  
  .modern-detay-container .hero-content {
    margin-top: 30px !important; /* 40px'ten 30px'e indirildi */
    padding-top: 0 !important;
    position: relative !important;
    display: block !important;
  }

  /* Bölüm detay sayfasında mobilde arkaplan posterini kaldır */
  .bolum-detay-page .hero-backdrop {
    background-image: none !important;
  }

  .bolum-detay-page .backdrop-overlay {
    display: none !important;
  }
  
  /* Mobilde bölüm detay sayfasında başlığı aşağıya taşı */
  .bolum-detay-page .hero-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .bolum-detay-page .hero-poster {
    order: 1 !important;
    margin-bottom: 4rem !important;
  }
  
  .bolum-detay-page .hero-info {
    order: 2 !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 2.25rem !important;
  }
  
  .bolum-detay-page .mobile-title {
    text-align: center !important;
  }

  .modern-detay-container .hero-grid {
    display: block !important;
    margin-top: 0 !important;
    text-align: center !important;
  }
  
  .modern-detay-container.bolum-detay-page .hero-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .modern-detay-container .poster-with-buttons {
    height: auto !important;
    min-height: 360px !important; /* %20 küçültüldü (300px -> 240px) */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 0 !important; /* Kapsayıcı (hero-content) zaten taşındı */
  }

  /* Aşağıdaki öğelerin (başlık, özet vb.) posterle birlikte hareket etmesini sağla */
  .modern-detay-container .hero-info {
    margin-top: -20px !important; /* Toplam 40px yukarı taşındı (0px -> -20px) */
    display: block !important;
  }

  /* Arama sonuçlarından gelen (is-external) mobil detay sayfalarında başlık ve sloganı 30px aşağı taşı */
  .hero-backdrop.is-external .hero-info {
    margin-top: 110px !important;
  }

  /* Bölüm detay sayfasında başlık ve altındakileri mobilde aşağıya taşı */
  .modern-detay-container.bolum-detay-page .hero-info {
    margin-top: 0 !important;
  }

  /* Bölüm detay sayfası başlık ve bölüm ismi boyutları */
  .modern-detay-container.bolum-detay-page .hero-title,
  .modern-detay-container.bolum-detay-page .hero-title a {
    font-size: 1.8rem !important; /* Dizi ismi 1.8rem yapıldı */
    margin: 0 !important;
    padding-top: 0 !important;
  }
  
  .modern-detay-container.bolum-detay-page .title-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .modern-detay-container.bolum-detay-page .hero-tagline {
    font-size: 1.4rem !important; /* Bölüm ismi 1.4rem yapıldı */
    font-weight: 700 !important;
    margin-top: -5px !important;
  }
  
  .modern-detay-container.bolum-detay-page .title-section h3 {
    margin-top: -10px !important;
  }

  .modern-detay-container .title-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 20px !important; /* 40px -> 20px */
    transform: none !important;
    position: static !important;
    text-align: center !important;
  }

  /* Oyun, Film ve Dizi detay sayfalarında başlık ve sloganı sıfırla */
  .modern-detay-container:is(.oyun-detay, .film-detay, .dizi-detay) .hero-title,
  .modern-detay-container:is(.oyun-detay, .film-detay, .dizi-detay) .hero-tagline {
    transform: none !important;
    position: static !important;
    margin-top: 0 !important;
    text-align: center !important;
  }

  .modern-detay-container .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .modern-detay-container .hero-tagline {
    font-size: 1rem !important;
    opacity: 0.9 !important;
  }

  /* Film ve Dizi detay sayfalarında rozetleri en üste al ve başlığın üzerine binmesini engelle */
  .modern-detay-container.film-detay .rating-trailer-container,
  .modern-detay-container.dizi-detay .rating-trailer-container {
    order: -1 !important;
    position: static !important;
    transform: translateY(-10px) !important; /* -20px -> -10px (10px aşağı) */
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    z-index: 10 !important;
  }

  /* Oyun detay sayfalarında rozetleri en üste al */
  .modern-detay-container.oyun-detay .rating-trailer-container {
    order: -1 !important;
    position: static !important;
    transform: translateY(-10px) !important; /* -20px -> -10px (10px aşağı) */
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    z-index: 10 !important;
  }

  /* Öneri sayfalarında rozetleri düzenle */
  .modern-detay-container.oneri-page:is(.film-detay, .dizi-detay, .oyun-detay) .rating-trailer-container {
    margin-bottom: 25px !important;
    transform: translateY(-10px) !important;
  }

  /* UZUN BAŞLIKLI SAYFALAR İÇİN ÖZEL DÜZENLEME (MOBİL) */
  /* Uzun isimli ÖNERİ DİZİ sayfalarında rozetleri 10px daha yukarı taşı */
  .modern-detay-container.has-long-title.oneri-page.dizi-detay .rating-trailer-container {
    transform: translateY(-80px) !important; /* -70px -> -80px (10px yukarı) */
    margin-bottom: -30px !important;
  }

  .modern-detay-container.has-long-title.oneri-page.dizi-detay .title-section {
    margin-top: 60px !important; /* 40px -> 60px (20px aşağı) */
  }

  .modern-detay-container.has-long-title.oneri-page.dizi-detay .content-wrapper {
    margin-top: 10px !important; /* -10px -> 10px (20px aşağı) */
  }

  /* Sadece uzun isimli ÖNERİ OYUN sayfalarında başlık ve altındakileri 60px aşağı taşı */
  .modern-detay-container.has-long-title.oneri-page.oyun-detay .title-section {
    margin-top: 60px !important; /* 70px -> 60px (10px yukarı) */
  }

  .modern-detay-container.has-long-title.oneri-page.oyun-detay .content-wrapper {
    margin-top: 10px !important; /* 20px -> 10px (10px yukarı) */
  }

  /* Sadece uzun isimli ÖNERİ FİLM sayfalarında rozetleri tekrar 10px daha yukarı taşı */
  .modern-detay-container.has-long-title.oneri-page.film-detay .rating-trailer-container {
    transform: translateY(-70px) !important; /* -80px -> -70px (+10px aşağı) */
    margin-bottom: -30px !important;
  }

  .modern-detay-container.has-long-title.oneri-page.film-detay .title-section {
    margin-top: 60px !important; /* 40px -> 60px (+20px aşağı) */
  }

  .modern-detay-container.has-long-title.oneri-page.film-detay .content-wrapper {
    margin-top: 10px !important; /* -10px -> 10px (+20px aşağı) */
  }

  /* Sadece uzun isimli ÖNERİ OYUN sayfalarında rozetleri 10px aşağıya taşı */
  .modern-detay-container.has-long-title.oneri-page.oyun-detay .rating-trailer-container {
    transform: translateY(-60px) !important; /* -70px -> -60px (10px aşağı) */
    margin-bottom: -30px !important;
  }

  /* Uzun isimli NORMAL (Takipteki) sayfalarda sadece rozetleri 10px daha yukarı taşı */
  .modern-detay-container.has-long-title:not(.oneri-page) .rating-trailer-container {
    transform: translateY(-80px) !important; /* -90px -> -80px (+10px aşağı) */
    margin-bottom: -30px !important;
  }

  /* Başlığın iki satıra bölündüğü NORMAL sayfalarda başlık ve altındakileri 70px aşağı taşı */
  .modern-detay-container.has-long-title:not(.oneri-page) .title-section {
    margin-top: 60px !important; /* -10px -> 60px (+70px aşağı) */
  }

  /* Öneri olmayan uzun başlıklı sayfalarda özet alanını 70px aşağı taşı */
  .modern-detay-container.has-long-title:not(.oneri-page) .content-wrapper {
    margin-top: 0px !important; /* -70px -> 0px (+70px aşağı) */
  }

  /* Sadece uzun isimli NORMAL FİLM detay sayfalarında rozetleri 10px aşağı, başlık ve altını 10px yukarı taşı */
  .modern-detay-container.has-long-title:not(.oneri-page).film-detay .rating-trailer-container {
    transform: translateY(-60px) !important; /* -70px -> -60px (10px aşağı) */
  }
  .modern-detay-container.has-long-title:not(.oneri-page).film-detay .title-section {
    margin-top: 40px !important; /* 50px -> 40px (10px yukarı) */
  }
  .modern-detay-container.has-long-title:not(.oneri-page).film-detay .content-wrapper {
    margin-top: -20px !important; /* -10px -> -20px (10px yukarı) */
  }

  /* Mevcut genel kuralları sadece oneri-page için özelleştir veya koru */
  .modern-detay-container.has-long-title.oneri-page .title-section {
    margin-top: -10px !important;
  }

  .modern-detay-container.has-long-title.oneri-page .content-wrapper {
    margin-top: -60px !important;
  }

  /* KISA BAŞLIKLI SAYFALAR İÇİN ÖZEL DÜZENLEME (MOBİL) */
  /* Başlığın tek satır olduğu sayfalarda rozetleri ve altındaki her şeyi 10px daha yukarı taşı */
  .modern-detay-container:not(.has-long-title) .title-section {
    margin-top: 0px !important; /* 10px -> 0px (-10px) */
  }

  .modern-detay-container:not(.has-long-title) .content-wrapper {
    margin-top: -30px !important; /* -20px -> -30px (-10px) */
  }

  .modern-detay-container.oneri-page:not(.has-long-title) .content-wrapper {
    margin-top: -20px !important; /* -10px -> -20px (-10px) */
  }

  .content-wrapper {
    width: 95vw !important;
    max-width: 95vw !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-top: -10px !important; /* 0px -> -10px */
  }

  /* Film ve Dizi detay sayfalarında içerik alanını düzenle (10px -> 0px) */
  .modern-detay-container:is(.film-detay, .dizi-detay) .content-wrapper {
    margin-top: 0px !important;
  }

  /* Oyun detay sayfalarında içerik alanını düzenle (10px -> 0px) */
  .modern-detay-container.oyun-detay .content-wrapper {
    margin-top: 0px !important;
  }

  /* Öneri sayfalarında içerik alanını düzenle (20px -> 10px) */
  .modern-detay-container.oneri-page:is(.film-detay, .dizi-detay, .oyun-detay) .content-wrapper {
    margin-top: 10px !important;
  }

  /* Arama sonuçlarından gelen mobil detay sayfalarında (is-external) özet ve altındaki tüm içeriği daha aşağı taşı */
  .modern-detay-container .hero-backdrop.is-external + .content-wrapper {
    padding-top: 2rem !important;
    margin-top: 130px !important;
  }

  .modern-detay-container .hero-backdrop.is-external + .content-wrapper .overview-section {
    margin-top: 20px !important;
  }

  .meta-grid,
  .cast-grid,
  .oyuncu-listesi {
    grid-template-columns: 1fr !important; /* Bilgi ve oyuncu kartları mobilde tek sütun */
  }

  .episode-info {
    padding-right: 60px !important; /* Checkbox için alan aç */
    overflow: hidden !important;
    width: 100% !important;
  }

  .episode-info h4 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    line-height: 1.4 !important; /* Satır arası biraz açıldı (1.2 -> 1.4) */
    font-weight: 500 !important; /* Kalınlık azaltıldı */
  }

  .episode-action {
    position: absolute !important;
    right: 14.5px !important;
    top: 50% !important;
    transform: translateY(calc(-50% + 11px)) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
}


/* Loading Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.related-section {
  margin-top: 70px;
  margin-bottom: 2rem;
  padding: 0;
}

.related-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--pico-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
  padding-right: 0;
}

.related-title i,
.related-title svg {
  width: 1.45rem;
  height: 1.45rem;
}

.related-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 155px;
  padding-right: 155px;
}

.related-scroll.dragging {
  scroll-snap-type: none;
}

.related-scroll::before {
  content: '';
  flex-shrink: 0;
  width: 0;
}

.related-scroll:active {
  cursor: grabbing;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

/* Son kart için ekstra sağ padding */
.related-scroll .related-card:last-child {
  margin-right: var(--block-spacing-horizontal);
}

.related-card {
  flex: 0 0 220px; /* 200px -> 220px */
  text-decoration: none;
  color: inherit;
  border-radius: 21px; /* 16px -> 21px */
  overflow: hidden;
  background: var(--card-background-color);
  border: 1px solid var(--muted-border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.related-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.related-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-poster .poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(255,255,255,0.05);
}

.related-info {
  padding: 0.5rem 0.75rem; /* 0.6rem -> 0.5rem */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.related-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--pico-color);
  flex: 1;
  position: relative;
  /* Fade-out effect */
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.related-year {
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Açık temada yıl rengi */
[data-theme="light"] .related-year {
  color: #666 !important;
}

/* Koyu temada yıl rengi */
[data-theme="dark"] .related-year {
  color: var(--pico-muted-color);
}

@media (max-width: 768px) {
  .related-card {
    flex: 0 0 140px;
  }

  .related-title {
    font-size: 1.5rem;
  }

  .related-info h3 {
    font-size: 0.75rem;
  }

  .related-info {
    padding: 0.4rem 0.5rem;
  }

  .related-scroll {
    padding-left: 0;
    padding-right: 0;
  }
}

.progress-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.864rem;
  height: 0.864rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0px;
  flex-shrink: 0;
}

.progress-text.loading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 2.5rem;
}

.progress-text.loading .progress-loading {
  margin-right: 0 !important;
  margin-left: 5px !important;
}

/* Title text span - harflerin alt kısmının kesilmemesi için */
.media-title .title-text {
  display: inline-block;
  padding-bottom: 4px;
  line-height: 0.75;
}


/* ======================================== */
/*      Custom Dropdown Styling (Bölge)    */
/* ======================================== */

.custom-select {
  position: relative;
  width: 100%;
  display: block;
  z-index: 100;
  margin-top: 18px;
}

.custom-select-trigger {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-form-element-border-color);
  border-radius: var(--pico-border-radius);
  color: var(--pico-form-element-valid-border-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.custom-select-trigger:hover {
  border-color: var(--pico-form-element-focus-border-color);
}

.custom-select-trigger:focus {
  border-color: var(--pico-form-element-focus-border-color);
  box-shadow: 0 0 0 3px rgba(var(--pico-color-rgb), 0.1);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--pico-form-element-focus-border-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-label {
  flex: 1;
  text-align: left;
}

.custom-select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-form-element-border-color);
  border-top: none;
  border-bottom-left-radius: var(--pico-border-radius);
  border-bottom-right-radius: var(--pico-border-radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 99999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  pointer-events: auto;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: var(--pico-form-element-valid-border-color);
  white-space: nowrap;
}

.custom-select-option:hover {
  background-color: rgba(var(--pico-color-rgb), 0.1);
}

.custom-select-option.selected {
  background-color: rgba(var(--pico-color-rgb), 0.2);
  font-weight: 500;
}

/* Film ve Dizi Önerileri kartı altına özel boşluk */
.settings-page .settings-container .settings-card:first-child {
  margin-bottom: 20px !important;
}

/* Scrollbar styling */
.custom-select-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: rgba(var(--pico-color-rgb), 0.3);
  border-radius: 3px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--pico-color-rgb), 0.5);
}


/* Ensure dropdown menu is visible */
.card-content {
  overflow: visible !important;
  position: relative;
}

.settings-card {
  overflow: visible !important;
  position: relative;
}


/* Setting row styling for dropdown visibility */
.setting-row {
  position: relative;
  overflow: visible;
}

@media (min-width: 769px) {
  .main-homepage.mobile-filmler .media-info,
  .main-homepage.mobile-oyunlar .media-info {
    padding: 0.4rem 0.7rem !important;
    flex: 0 0 78px !important;
    justify-content: flex-start !important;
    gap: 0.1rem !important;
  }

  .main-homepage.mobile-filmler .media-platform,
  .main-homepage.mobile-oyunlar .media-platform {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    margin-top: 4px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  .main-homepage.mobile-filmler .media-info,
  .main-homepage.mobile-oyunlar .media-info {
    padding-top: calc(20px + 3px) !important;
  }

  .main-homepage.mobile-filmler .media-info > *,
  .main-homepage.mobile-oyunlar .media-info > * {
    position: relative !important;
    top: 3px !important;
  }
}
