html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Card yüksekliklerini eşitle */
.movie-card,
.tvshow-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-card .card-body,
.tvshow-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.movie-card .card-img-top,
.tvshow-card .card-img-top {
  flex-shrink: 0;
}

/* Mobil uyumluluk */
@media (max-width: 575.98px) {
  .display-5 {
    font-size: 1.75rem;
  }
  
  .movie-card .card-img-top,
  .tvshow-card .card-img-top {
    height: 300px !important;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
  }
  
  .h3, h3 {
    font-size: 1.25rem;
  }
  
  .h5, h5 {
    font-size: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .movie-card .card-img-top,
  .tvshow-card .card-img-top {
    height: 350px !important;
  }
}

/* Container padding mobilde */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Modal mobilde tam ekran */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
  }
  
  .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }
  
  .modal-body .row {
    flex-direction: column;
  }
  
  .modal-body .col-md-4,
  .modal-body .col-md-8 {
    width: 100%;
    max-width: 100%;
  }
  
  /* Navbar mobilde */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Section başlıkları mobilde */
  .h3, h3 {
    font-size: 1.1rem;
  }
  
  /* Modal close button mobilde görünür yap */
  .modal-header .btn-close {
    width: 2rem !important;
    height: 2rem !important;
    padding: 0.5rem !important;
    opacity: 1 !important;
    background-size: 1.5rem !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.375rem !important;
    margin: 0 !important;
  }
  
  .modal-header .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
  }
}

/* Tablet için */
@media (min-width: 768px) and (max-width: 991.98px) {
  .movie-card .card-img-top,
  .tvshow-card .card-img-top {
    height: 380px !important;
  }
}