/* ============================================================
   SINETAMBAYAN — Global Stylesheet
   Shared across all pages. Page-specific styles live below,
   scoped by a body class added to each page.
   ============================================================ */

/* ---- Copy Protection ---- */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Re-enable selection only on search inputs so users can type normally */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* ---- Accessibility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Variables ---- */
:root {
  --primary: #db2b39;
  --secondary: #29335c;
  --accent: #f3a712;
  --bg-dark: #0f1014;
  --card-bg: #1a1d24;
  --text-light: #f5f5f5;
}

/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ---- Base ---- */
body {
  font-family: "Saira", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ---- Header ---- */
header {
  background: rgba(15, 16, 20, 0.95);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 167, 18, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

/* ---- Shared Buttons ---- */
.back-home,
.back-btn {
  color: white;
  text-decoration: none;
  font-size: 14px;
  background: var(--primary);
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.back-home:hover,
.back-btn:hover {
  background: var(--accent);
  color: var(--secondary);
}

.view-more-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.view-more-btn:hover {
  color: var(--accent);
}

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
}

.section-title {
  font-size: 22px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(219, 43, 57, 0.3);
}

.card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.card-info {
  padding: 10px 12px 12px;
  font-size: 13px;
  text-align: center;
  background: linear-gradient(to top, #1a1d24 70%, transparent);
}

.card-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.card-fav-icon,
.card-wl-icon {
  background: rgba(0, 0, 0, 0.65);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  transition: 0.3s;
  cursor: pointer;
}

.card-fav-icon:hover { background: rgba(219, 43, 57, 0.8); }
.card-wl-icon:hover  { background: rgba(243, 167, 18, 0.8); }
.card-fav-icon.active { color: var(--primary); }
.card-wl-icon.active  { color: var(--accent); }

.card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-meta {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

/* ---- Grids ---- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

/* ---- Footer ---- */
.site-footer {
  background: #0a0b0d;
  color: #888;
  padding: 60px 5% 30px;
  border-top: 1px solid #1a1c1f;
  margin-top: 50px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.footer-logo span {
  color: var(--primary);
}


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.footer-col h4 {
  color: #555;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  cursor: pointer;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links a i {
  margin-right: 6px;
  color: var(--accent);
  font-size: 13px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #15171a;
  font-size: 12px;
  color: #444;
}

/* ---- Skeleton Loading Cards ---- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-card {
  pointer-events: none;
  cursor: default;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e2128 25%, #2a2d36 50%, #1e2128 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin: 8px 0 4px;
  background: linear-gradient(90deg, #1e2128 25%, #2a2d36 50%, #1e2128 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-line.short { width: 60%; }

/* ---- Toast Notification ---- */
#cr-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2229;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #3a3d45;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  white-space: nowrap;
}
#cr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- PWA Install Button ---- */
#pwa-container {
  text-align: right;
  min-width: 150px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#pwa-desc {
  font-size: 11px;
  color: #888;
  margin-bottom: 5px;
  display: none;
  white-space: nowrap;
}

#installBtn {
  display: none;
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 800;
  font-family: "Saira", sans-serif;
  font-size: 12px;
  transition: 0.3s;
  width: fit-content;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  header {
    padding: 10px 4%;
  }

  .logo {
    font-size: 22px;
  }

  .back-home,
  .back-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  #pwa-container {
    text-align: right;
    flex: 1;
  }

  #installBtn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #pwa-container {
    text-align: left;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
  }
}

/* ---- Header Actions & Search (global — shared header on all pages) ---- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 15px;
  border: 1px solid transparent;
  transition: 0.3s;
  position: relative;
}
.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.2);
}
.search-box input {
  background: none;
  border: none;
  color: white;
  outline: none;
  padding: 5px;
  width: 200px;
}
.search-box i {
  color: var(--accent);
  cursor: pointer;
}

.header-fav-btn {
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}
.header-fav-btn:hover {
  transform: scale(1.2);
}

#searchDropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 0 0 10px 10px;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  z-index: 3000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.search-item {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}
.search-item:hover {
  background: #25282e;
}
.search-item img {
  width: 40px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}
.search-item-info {
  flex: 1;
}
.search-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

@media (max-width: 768px) {
  header {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 8px;
    padding: 8px 4%;
  }
  .logo {
    flex-shrink: 0;
  }
  .header-nav {
    flex-shrink: 0;
  }
  .header-actions {
    flex: 1;
    min-width: 0;
    gap: 8px;
    justify-content: flex-end;
  }
  .header-fav-btn {
    min-width: 36px;
    min-height: 36px;
  }
}

/* ============================================================
   INDEX PAGE  (body.page-index)
   ============================================================ */

body.page-index {
  padding-top: 80px;
}

/* Hero Slider */
.hero-slider {
  height: 75vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 5%;
}
.slide.active {
  opacity: 1;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}
.hero-title {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
  border: none;
}
.slider-dot.active {
  background: var(--primary);
  width: 28px;
}

/* Genre Scroll */
.genre-wrapper {
  position: relative;
  background: var(--bg-dark);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.genre-scroll {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 5%;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.genre-scroll::-webkit-scrollbar {
  display: none;
}
.genre-box {
  min-width: 160px;
  height: 90px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(243, 167, 18, 0.3);
  transition: 0.3s;
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.genre-box:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(219, 43, 57, 0.4);
}
.genre-box span {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}
.genre-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: 0.3s;
}
.genre-box:hover::after {
  background: rgba(0, 0, 0, 0.4);
}
.genre-nav {
  background: rgba(0, 0, 0, 0.8);
  color: var(--primary);
  border: 1px solid var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.3s;
}
.genre-nav:hover {
  background: var(--primary);
  color: white;
}
.g-prev {
  left: 10px;
}
.g-next {
  right: 10px;
}

/* Content rows */
body.page-index .container {
  padding: 30px 4%;
}
@media (min-width: 769px) {
  body.page-index .container {
    padding: 40px 5%;
  }
}
.row-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 40px;
  height: 60px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.3s;
}
.nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.prev {
  left: -10px;
}
.next {
  right: -10px;
}
.movie-row {
  display: flex;
  overflow-x: hidden;
  gap: 20px;
  padding: 15px 0;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.movie-row.expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  overflow: visible;
}
.movie-row .card {
  flex: 0 0 180px;
  width: 180px;
}
.movie-row.expanded + .next,
.movie-row.expanded ~ .nav-btn {
  display: none !important;
}
.row-container .nav-btn {
  display: flex !important;
}

/* Country Select */
.country-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f3a712' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  padding: 10px 30px 10px 15px !important;
  cursor: pointer;
  transition: 0.3s;
  background-color: var(--card-bg);
  color: white;
  border: 2px solid var(--accent);
  border-radius: 25px;
  outline: none;
  font-family: "Saira", sans-serif;
  font-weight: 600;
  max-width: 100%;
  min-width: 150px;
}
.country-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 5px var(--primary);
}
.go-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 800;
  margin-left: 10px;
  transition: 0.3s;
}
.go-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

@media (max-width: 768px) {
  body.page-index {
    padding-top: 65px;
  }
  .hero-slider {
    height: 55vh;
  }
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .genre-nav {
    display: none;
  }
  .genre-box {
    min-width: 130px;
    height: 70px;
    font-size: 13px;
  }
  .section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .nav-btn {
    display: none !important;
  }
  .movie-row {
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  .movie-row .card {
    flex: 0 0 140px;
    width: 140px;
    scroll-snap-align: start;
  }
  .country-select {
    font-size: 12px;
  }
  .go-btn {
    padding: 8px 15px;
    font-size: 12px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-slider {
    height: 48vh;
  }
  .section-title {
    font-size: 16px;
  }
  .movie-row .card {
    flex: 0 0 120px;
    width: 120px;
  }
  .genre-box {
    min-width: 110px;
    height: 60px;
    font-size: 12px;
  }
}

/* ============================================================
   PLAY PAGE  (body.page-play) & WATCH PAGES
   ============================================================ */

.player-section {
  padding: 100px 5% 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.player-frame {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

.controls-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.label {
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

.btn-pill {
  background: #25282e;
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}
.btn-pill.active {
  background: var(--primary);
}
.btn-action {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-outline {
  background: transparent;
  border: 1px solid #444;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.episode-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ep-btn {
  background: #25282e;
  border: none;
  color: white;
  width: 50px;
  height: 35px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.ep-btn.active {
  background: var(--primary);
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 40px;
}
.poster-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #333;
  min-height: 375px;
  background: #1a1d24;
  object-fit: cover;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.rating-badge {
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}
.meta-badge {
  background: #25282e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.synopsis {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  margin-top: 15px;
}

.cast-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}
.cast-item {
  text-align: center;
  min-width: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cast-item:hover {
  transform: scale(1.1);
}
.cast-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 5px;
  border: 2px solid #333;
}

.recommendations-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #222;
}
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.rec-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
  position: relative;
}
.rec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(219, 43, 57, 0.4);
}
.rec-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.rec-card-info {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.rec-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

/* Modals */
.trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.trailer-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(243, 167, 18, 0.3);
}
.close-trailer {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.close-trailer:hover {
  color: var(--primary);
}

.actor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3050;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  padding: 20px;
}
.actor-modal-content {
  background: #1a1d24;
  width: 100%;
  max-width: 1000px;
  height: 90vh;
  border-radius: 10px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  position: relative;
}
.actor-modal-header {
  padding: 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #15171a;
  border-radius: 10px 10px 0 0;
}
.actor-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}
.close-actor {
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: 0.3s;
}
.close-actor:hover {
  color: var(--primary);
}

/* Watch-page extras */
.seo-backlink {
  background: #15171a;
  padding: 15px;
  border-left: 4px solid var(--primary);
  margin-top: 20px;
  border-radius: 5px;
}
.seo-backlink a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.genre-nav-bar {
  background: #15171a;
  padding: 20px 5%;
  border-top: 1px solid #222;
}
.genre-nav-bar p {
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.genre-nav-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.genre-nav-bar a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  background: #1a1d24;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #333;
  transition: 0.2s;
}
.genre-nav-bar a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .player-section {
    padding: 75px 4% 30px;
  }
  .movie-detail-grid {
    grid-template-columns: 1fr;
  }
  .poster-img {
    max-width: 180px;
    min-height: auto;
  }
  .synopsis {
    word-wrap: break-word;
    white-space: normal;
    font-size: 14px;
  }
  .cast-list {
    flex-wrap: nowrap;
  }
  .recommendations-grid,
  .actor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .recommendations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .actor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .control-row {
    gap: 8px;
  }
  .btn-pill {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ============================================================
   SEARCH PAGE  (body.page-search)
   ============================================================ */

body.page-search {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-search .container {
  padding: 40px 5%;
  flex: 1;
  margin-top: 80px;
}

.search-query-text {
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--accent);
  border-left: 5px solid var(--primary);
  padding-left: 15px;
}

#player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-box {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}
.close-btn:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  body.page-search .container {
    margin-top: 70px;
    padding: 30px 4%;
  }
  .search-query-text {
    font-size: 1.2rem;
  }
}

/* ============================================================
   FAVORITES PAGE  (body.page-favorites)
   ============================================================ */

body.page-favorites .container {
  padding: 120px 5% 40px;
  min-height: 70vh;
}

.remove-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(219, 43, 57, 0.8);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.remove-fav:hover {
  background: var(--primary);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  body.page-favorites .container {
    padding: 75px 4% 30px;
  }
}

/* ============================================================
   GENRE PAGE  (body.page-genre)
   ============================================================ */

body.page-genre .container {
  padding: 40px 5%;
  margin-top: 90px;
}

.genre-title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 30px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
  text-transform: uppercase;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* Genre browse grid (no specific genre selected) */
.genre-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.genre-browse-grid .genre-box {
  min-width: unset;
  height: 110px;
  font-size: 15px;
}

@media (max-width: 768px) {
  body.page-genre .container {
    margin-top: 70px;
    padding: 30px 4%;
  }
  .genre-title {
    font-size: 1.4rem;
  }
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .genre-browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .genre-browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .genre-browse-grid .genre-box {
    height: 80px;
    font-size: 13px;
  }
}

/* ============================================================
   WATCH LATER PAGE  (body.page-watchlater)
   ============================================================ */

body.page-watchlater .container {
  padding: 120px 5% 40px;
  min-height: 70vh;
}

@media (max-width: 768px) {
  body.page-watchlater .container {
    padding: 75px 4% 30px;
  }
}

/* ============================================================
   ARTICLE PAGE  (body.page-article)
   ============================================================ */

body.page-article {
  padding-top: 80px;
}

.article-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 5%;
  line-height: 1.8;
}

.article-title {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
}

body.page-article .content p {
  margin-bottom: 20px;
  color: #ccc;
}

body.page-article .content h2 {
  color: white;
  font-size: 1.4rem;
  margin: 32px 0 12px;
  border-bottom: 1px solid #2a2d36;
  padding-bottom: 8px;
}

body.page-article .content h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

body.page-article .content ul,
body.page-article .content ol {
  padding-left: 22px;
  color: #ccc;
  margin-bottom: 16px;
}

body.page-article .content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}

.article-cta {
  margin-top: 48px;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}

.article-cta p {
  color: #ccc;
  margin-bottom: 16px !important;
  font-size: 15px;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.article-card {
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.article-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.article-card h3 {
  color: white;
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
}

.article-card p {
  color: #888;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

/* ---- Infinite Scroll Spinner ---- */
.inf-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
}

.inf-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(243, 167, 18, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: inf-spin 0.7s linear infinite;
}

@keyframes inf-spin {
  to { transform: rotate(360deg); }
}

.inf-end-msg {
  text-align: center;
  padding: 24px;
  color: #555;
  font-size: 13px;
}

/* ---- Header Articles Nav ---- */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border: 1px solid rgba(243, 167, 18, 0.4);
  border-radius: 20px;
  transition: 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   ARTICLE REVIEW PAGE  (individual AI-generated article)
   ============================================================ */

.review-hero {
  position: relative;
  min-height: 420px;
  background: var(--bg-dark);
  overflow: hidden;
}

.review-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--backdrop);
  background-size: cover;
  background-position: center top;
  filter: blur(3px) brightness(0.35);
}

.review-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,16,20,0.2) 0%, rgba(15,16,20,0.85) 70%, var(--bg-dark) 100%);
}

.review-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 5% 40px;
  display: flex;
  gap: 28px;
  align-items: flex-end;
}

.review-poster {
  width: 140px;
  min-width: 140px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.review-hero-text {
  flex: 1;
}

.review-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

.review-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #bbb;
  margin-bottom: 12px;
}

.rmb-tag {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- YouTube Trailer Embed --- */
.trailer-section {
  max-width: 900px;
  margin: 0 auto 4px;
  padding: 24px 5% 0;
}

.trailer-section h2 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trailer-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.trailer-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Citations --- */
.citations-section {
  margin-top: 40px;
  padding: 20px 24px;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.citations-section h3 {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.citations-section ol {
  padding-left: 18px;
}

.citations-section li {
  color: #888;
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.citations-section a {
  color: var(--primary);
  text-decoration: none;
}

.citations-section a:hover {
  text-decoration: underline;
}

/* ============================================================
   ARTICLE HUB — Magazine Layout  (article.html)
   ============================================================ */

.magazine-hub {
  padding-top: 80px;
}

/* --- Featured Article --- */
.magazine-featured {
  margin-bottom: 48px;
  overflow: hidden;
}

.featured-card {
  position: relative;
  display: block;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: var(--card-bg);
  background-image: var(--featured-bg);
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  transition: background-position 0.4s;
}

.featured-card:hover {
  background-position: center 45%;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,16,20,0.97) 0%,
    rgba(15,16,20,0.55) 45%,
    rgba(15,16,20,0.15) 100%
  );
  transition: opacity 0.3s;
}

.featured-card:hover::before {
  opacity: 0.85;
}

.featured-card-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 6%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.featured-card-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  line-height: 1.25;
  max-width: 620px;
}

.featured-card-desc {
  color: #ccc;
  font-size: 14px;
  max-width: 480px;
  line-height: 1.6;
}

/* --- Magazine Review Cards --- */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.magazine-card {
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.magazine-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.magazine-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  background: #2a2d36;
  display: block;
}

.magazine-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.magazine-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.magazine-card-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.magazine-card-desc {
  color: #888;
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

/* --- Upcoming Movies --- */
.upcoming-section {
  padding: 40px 5%;
  background: rgba(26,29,36,0.6);
  margin-top: 20px;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.upcoming-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2d36;
  transition: transform 0.2s, border-color 0.2s;
}

.upcoming-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.upcoming-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #2a2d36;
}

.upcoming-card-info {
  padding: 10px 12px;
}

.upcoming-card-title {
  color: white;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.upcoming-card-date {
  color: var(--accent);
  font-size: 11px;
}

.upcoming-trailer-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.upcoming-trailer-btn:hover {
  background: var(--accent);
  color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body.page-article {
    padding-top: 65px;
  }
  .article-title {
    font-size: 1.9rem;
  }
  .article-container {
    padding: 0 4%;
  }
  .review-hero {
    min-height: 260px;
  }
  .review-hero-content {
    padding: 30px 4% 24px;
    gap: 14px;
  }
  .review-poster {
    width: 80px;
    min-width: 80px;
  }
  .review-title {
    font-size: 1.35rem;
  }
  .trailer-section {
    padding: 16px 4% 0;
  }
  .featured-card {
    aspect-ratio: 4 / 3;
  }
  .featured-card-title {
    font-size: 1.3rem;
  }
  .featured-card-desc {
    display: none;
  }
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .upcoming-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .header-nav-link .nav-text {
    display: none;
  }
  .magazine-hub {
    padding-top: 65px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.6rem;
  }
  .review-title {
    font-size: 1.15rem;
  }
  .review-poster {
    width: 65px;
    min-width: 65px;
  }
  .review-meta-bar {
    font-size: 12px;
    gap: 8px;
  }
  .featured-card {
    aspect-ratio: 3 / 2;
  }
  .featured-card-title {
    font-size: 1.1rem;
  }
  .featured-card-overlay {
    padding: 20px 4%;
  }
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  body.page-article .content h2 {
    font-size: 1.2rem;
  }
}

/* ============================================================
   MOBILE BOTTOM SEARCH BAR
   ============================================================ */

/* Hidden on desktop */
.mobile-search-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop search from header */
  .desktop-search-box {
    display: none !important;
  }

  /* Body gets bottom padding so content isn't hidden under the bar */
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  /* The fixed bottom bar */
  .mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2001;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(243, 167, 18, 0.2);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-search-icon {
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
  }

  .mobile-search-inner {
    flex: 1;
    position: relative;
  }

  .mobile-search-inner input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(243, 167, 18, 0.25);
    border-radius: 22px;
    color: white;
    outline: none;
    padding: 9px 16px;
    font-size: 16px; /* prevents iOS auto-zoom */
    font-family: "Saira", sans-serif;
    transition: border-color 0.2s, background 0.2s;
  }

  .mobile-search-inner input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.11);
  }

  .mobile-search-inner input::placeholder {
    color: #666;
  }

  /* Dropdown opens upward */
  #mobileSearchDropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1d24;
    border: 1px solid var(--accent);
    border-radius: 12px;
    max-height: 52vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    z-index: 3000;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  }
}


/* ============================================================
   ARTICLE HUB PAGE  (article.html)
   ============================================================ */

/* ---- Featured Article Banner ---- */
.magazine-featured {
  width: 100%;
  margin-bottom: 48px;
}

.featured-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  background-image: var(--featured-bg);
  background-size: cover;
  background-position: center top;
  text-decoration: none;
  overflow: hidden;
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.2) 100%);
}

.featured-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 5%;
  z-index: 1;
}

.featured-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.featured-card-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.featured-card-desc {
  font-size: 15px;
  color: #ccc;
  max-width: 550px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Magazine Grid (article cards) ---- */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.magazine-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(255,255,255,0.05);
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.magazine-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.magazine-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.magazine-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(243,167,18,0.1);
  padding: 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.magazine-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazine-card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Upcoming Movies Section ---- */
.upcoming-section {
  padding: 48px 5%;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 48px;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.upcoming-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

.upcoming-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.upcoming-card-info {
  padding: 10px 12px 6px;
  flex: 1;
}

.upcoming-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-card-date {
  font-size: 12px;
  color: var(--accent);
}

.upcoming-trailer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.upcoming-trailer-btn:hover {
  background: #b71c2a;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .featured-card { aspect-ratio: 16 / 9; }
  .featured-card-overlay { padding: 20px 4%; }
  .magazine-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .upcoming-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ============================================================
   LIVE DATA CARD  (article injector)
   ============================================================ */
.live-data-card {
  background: #1a1d24;
  border: 1px solid rgba(243,167,18,0.25);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}

.live-data-card h4 {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.ldc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ldc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ldc-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ldc-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.ldc-value.accent { color: var(--accent); }

.ldc-note {
  font-size: 11px;
  color: #555;
  margin: 0;
}

/* ============================================================
   WIDGET BUTTONS  (article injector)
   ============================================================ */
.widget-buttons {
  background: linear-gradient(135deg, rgba(219,43,57,0.1) 0%, rgba(26,29,36,0.8) 100%);
  border: 1px solid rgba(219,43,57,0.3);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}

.wb-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 18px;
}

.wb-watch-btn:hover {
  background: #b71c2a;
  transform: translateY(-2px);
  color: #fff;
}

.wb-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wb-share-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.wb-share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.wb-fb   { background: #1877f2; color: #fff; }
.wb-tw   { background: #000; color: #fff; }
.wb-copy { background: #25282e; color: #fff; font-family: inherit; }

/* ============================================================
   SPORTS BANNER (footer)
   ============================================================ */
.footer-sports-banner {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0 5%;
  background: rgba(219,43,57,0.08);
}

.footer-sports-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: gap 0.2s;
}

.footer-sports-link:hover { gap: 16px; color: #fff; }

.footer-sports-link .fa-broadcast-tower {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.footer-sports-link span {
  color: #ccc;
}

.footer-sports-link strong {
  color: var(--accent);
  font-weight: 700;
  margin-left: auto;
  letter-spacing: 0.3px;
}

.footer-sports-link .fa-arrow-right {
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================================
   SPORTS BOTTOM BANNER  (non-intrusive, Google-compliant)
   ============================================================ */
#sportsBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 12, 18, 0.96);
  border-top: 2px solid var(--primary);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  animation: sb-slidein 0.4s ease;
}

@keyframes sb-slidein {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

#sportsBannerLink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

#sportsBannerLink .fa-broadcast-tower {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.sb-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ccc;
}

.sb-text strong { color: var(--primary); }
.sb-text em     { color: var(--accent); font-style: normal; font-weight: 700; }

#sportsBannerClose {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #888;
  font-size: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

#sportsBannerClose:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 480px) {
  #sportsBanner { padding: 8px 14px; }
  .sb-text      { font-size: 12px; }
}

/* ============================================================
   STATIC ARTICLE LINKS  (homepage — crawlable by Googlebot)
   ============================================================ */
.static-article-links {
  padding: 40px 5% 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 20px;
}

.sal-inner  { max-width: 1200px; margin: 0 auto; }

.sal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.sal-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0;
}

/* Card grid — poster thumbnails + title */
.sal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.sal-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  height: 100%;
}

.sal-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.sal-card-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #25282e;
  flex-shrink: 0;
}

.sal-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s;
}

.sal-card-link:hover .sal-card-img-wrap img { transform: scale(1.04); }

.sal-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sal-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sal-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sal-card-date {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
}

.sal-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.sal-view-all:hover { color: var(--accent); }

@media (max-width: 768px) {
  .sal-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}

@media (max-width: 480px) {
  .sal-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sal-card-title { -webkit-line-clamp: 2; }
}

/* ============================================================
   FAQ SECTION  (articles + watch pages)
   ============================================================ */
.faq-section {
  margin: 40px 0 0;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 12px;
  overflow: hidden;
}

.faq-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 20px 24px 16px;
  margin: 0;
  border-bottom: 1px solid #2a2d36;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item {
  border-bottom: 1px solid #2a2d36;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Saira", sans-serif;
  transition: background 0.2s;
  line-height: 1.4;
}

.faq-q:hover { background: rgba(255,255,255,0.03); }

.faq-icon {
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
}

.faq-a {
  display: none;
  padding: 0 24px 18px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}

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

/* ============================================================
   RELATED ARTICLES  (article pages)
   ============================================================ */
.related-articles {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid #2a2d36;
}

.related-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 18px;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rel-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.rel-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.rel-card-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  background: #25282e;
  display: block;
}

.rel-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rel-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.rel-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-card-date {
  font-size: 11px;
  color: #555;
}

@media (max-width: 600px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-q    { font-size: 13px; padding: 14px 16px; }
  .faq-a    { padding: 0 16px 14px; }
  .faq-heading { padding: 16px 16px 12px; }
}

/* ============================================================
   BREADCRUMB NAV
   ============================================================ */
.breadcrumb-nav {
  padding: 10px 5%;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #555;
  max-width: 1200px;
}

.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  color: #444;
  font-size: 14px;
}

.breadcrumb-list a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.breadcrumb-list a:hover { color: var(--accent); }

.breadcrumb-list [aria-current="page"] {
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0 28px;
  border-bottom: 1px solid #2a2d36;
  margin-bottom: 32px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.author-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.author-role {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-badge {
  background: #25282e;
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.author-badge i { color: var(--accent); }

.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.author-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.author-article-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.author-article-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top;
  background: #25282e;
  display: block;
}

.aac-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aac-tag  { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.aac-title { font-size: 12px; color: #fff; font-weight: 600; line-height: 1.35;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aac-date  { font-size: 11px; color: #555; }

@media (max-width: 600px) {
  .author-hero    { flex-direction: column; align-items: flex-start; gap: 16px; }
  .author-avatar  { width: 64px; height: 64px; font-size: 22px; }
  .author-name    { font-size: 1.4rem; }
  .author-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .breadcrumb-list [aria-current="page"] { max-width: 140px; }
}
