/* Sayfa yüksekliği kontrolü:
   Results sayfasında telefon büyük olacak. Yine de navbar + header yüzünden taşmasını istemiyoruz.
   80vh isteğine göre results-wrapper'ın kendisini biraz daha rahat bırakıyoruz.
*/
.results-wrapper {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 0.5rem;
}



/* Büyük telefon çerçevesi (results view için) */
.iphone-shell {
  position: relative;
  background: #000;
  border-radius: 32px;
  padding: 16px;

  /* telefonun kendisi yine büyük olsun ama ekran oranını ekran belirlesin */
  width: 360px;            /* istersen 400-420 yapabilirsin */
  max-width: 480px;
  height: auto;

  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 2px solid #222;

  display: flex;
  flex-direction: column;
}

/* Üst çentik (notch) aynı kalabilir, ama konum yüksekliğe göre yine mantıklı */
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #222;
  z-index: 10;
}

/* Ekran alanı:
   Notch'tan aşağı doğru tüm yüksekliği kaplasın.
*/
.iphone-screen {
  position: relative;
  background: #000;
  border-radius: 24px;
  width: 100%;
  /* 9:16 sabitliyoruz */
  aspect-ratio: 9 / 16;
  overflow: hidden;
  margin-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video görünümü:
   Şimdi burada tam ekran doldurma istiyoruz.
   - aspect-ratio: 9/16 = dikey format
   - width: 100%; height: 100%;
   - object-fit: cover (yanlarda siyah boşluk kalmasın)
*/
.iphone-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border-radius: 16px;
  object-fit: cover;   /* ekranı tamamen doldur */
}

/* Carousel kontrol butonları aynı */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;              /* full yüksekliğe yayılmayı bırak */
  height: 40px;
  top: 50%;                 /* ortala */
  transform: translateY(-50%);
  opacity: 1;               /* hep görünür olsun */
  filter: none;             /* default beyaz invert hack'ini kaldır */
  background-color: rgba(214, 51, 255, 0.9); /* SesMate tarzı pembe/mor */
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(214, 51, 255, 0.35);
}

.carousel-control-prev {
  left: -20px;              /* telefondan biraz dışarı taşı */
}

.carousel-control-next {
  right: -20px;             /* telefondan biraz dışarı taşı */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(2); /* oku beyaza çevir */
  width: 1rem;
  height: 1rem;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(214, 51, 255, 0.4);
}

/* Meta kart alanı (sağ panel) */
.clip-meta-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  min-width: 250px;
  max-width: 360px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

/* Başlık */
.clip-meta-card .clip-title {
  font-size: 1rem;
  line-height: 1.3;
}

/* Score pill */
.score-pill {
  background: #fff8e1;
  color: #b7791f;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  padding: 4px 10px;
  box-shadow: 0 4px 8px rgba(251,191,36,0.3);
}

/* Scrollbar hafif olsun */
.results-wrapper::-webkit-scrollbar {
  width: 6px;
}
.results-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
  border-radius: 3px;
}
.results-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

/* MINI IPHONE CARD ... (job_lists için) */
/* Bunları aynen bırakıyoruz, çünkü job_lists sayfasında küçük kart görünümü hâlâ lazım */
.mini-iphone-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.mini-iphone-card:hover {
  box-shadow: 0 20px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.mini-iphone-shell {
  position: relative;
  background: #000;
  border-radius: 24px;
  padding: 10px;
  width: 160px;
  height: 300px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.2);
  border: 2px solid #222;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mini-iphone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #222;
  z-index: 10;
}
.mini-iphone-screen {
  position: relative;
  background: #000;
  border-radius: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mini-iphone-video {
  max-height: 100%;
  max-width: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.mini-meta {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}
.mini-meta .mini-title {
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
  max-width: 180px;
}
.mini-score-pill {
  background: #fff8e1;
  color: #b7791f;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  padding: 2px 8px;
  box-shadow: 0 4px 8px rgba(251,191,36,0.3);
}
