/* ==================================================
   BASE
================================================== */
.filmography-page {
  background: #000;
  color: #ccc;
  padding: 120px 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
}

/* ==================================================
   HEADER
================================================== */
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 80px;
  color: #fff;
}

.accent {
  width: 96px;
  height: 4px;
  background: #FFDE00;
  margin: 16px 0 60px;
}

/* ==================================================
   CATEGORY FILTERS
================================================== */
.film-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 6px;

  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;

  color: #777;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: #FFDE00;
}

.filter-btn.active {
  color: #FFDE00;
  border-color: #FFDE00;
}

/* ==================================================
   FILM LIST
================================================== */
.film-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.film-click {
  display: flex;
  align-items: center;
  gap: 40px;
}

.thumb {
  width: 64px;
  height: 96px;
  object-fit: cover;
}

.film-text {
  display: flex;
  flex-direction: column;
}

.film-year-top {
  font-size: 14px;
  letter-spacing: 0.35em;
  color: #FFDE00;
  opacity: 0.8;
  text-transform: uppercase;
}

.title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px;
  color: #fff;
}

.role {
  font-size: 12px;
  color: #777;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==================================================
   POPUP OVERLAY
================================================== */
.film-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: rgba(0,0,0,0.95);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================================================
   POPUP BOX
================================================== */
.popup-inner {
  position: relative;
  background: #080808;
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 900px;
  width: 90%;
  padding: 40px;
  color: #ccc;
}

/* ==================================================
   CLOSE BUTTON
================================================== */
.popup-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 48px;
  color: #FFDE00;
  cursor: pointer;
  line-height: 1;
}

.popup-close:hover {
  color: #fff;
}

/* ==================================================
   POPUP CONTENT
================================================== */
.popup-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  color: #fff;
}

.popup-meta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #FFDE00;
}

.popup-brief {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

/* ==================================================
   ACTION BUTTONS
================================================== */
.popup-actions {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.popup-actions button {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.3em;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 6px;
  cursor: pointer;
  color: #777;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.popup-actions button.enabled {
  color: #fff;
}

.popup-actions button.enabled:hover {
  color: #FFDE00;
  border-color: #FFDE00;
}

/* ==================================================
   VIDEO (SAFE 16:9)
================================================== */
.popup-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  margin-top: 24px;
}

.popup-video-wrap iframe,
.popup-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==================================================
   MOBILE OPTIMIZATION
================================================== */
@media (max-width: 768px) {

  .page-title {
    font-size: 40px;
  }

  .title {
    font-size: 32px;
    text-transform: uppercase;
  }

  .popup-inner {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px;
    animation: popupScale 0.35s ease forwards;
  }

  .film-popup {
    animation: popupFade 0.3s ease forwards;
  }

  .popup-actions {
    flex-direction: column;
    gap: 20px;
  }

}

/* ==================================================
   SIMPLE ANIMATIONS
================================================== */
@keyframes popupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ======================================
   FORCE CLOSE BUTTON VISIBILITY (MOBILE)
====================================== */
@media (max-width: 768px) {

  .popup-close {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;

    font-size: 36px !important;
    z-index: 100000 !important;

    background: rgba(0,0,0,0.6);
    padding: 8px 14px;
    border-radius: 50%;

    line-height: 1;
    color: #FFDE00;
  }

}

