@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #120201;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4px;
}

.accent { color: #ffb7b5; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #e11e16;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  mix-blend-mode: darken;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #120201 0%,
    rgba(18,2,1,0.95) 10%,
    rgba(18,2,1,0.5) 40%,
    rgba(18,2,1,0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10; /* Increased from 2 */
  width: 100%;
  padding: 4rem 5% 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-logo {
  max-width: min(480px, 65%) !important;
  max-height: 160px !important;
  width: auto !important;
  height: 100px !important;
  object-fit: contain !important;
  margin-bottom: 0;
}

.hero-title-fallback {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  min-height: 100px;
  width: 70%;
  line-height: 50px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0;
}

/* Netflix-style info pills */
.hero-meta-pills {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.60rem 0.7rem;
  border-radius: 5px;
  color: rgba(0, 0, 0, 0.9);
  background: #ffb7b5;
  text-decoration: none;
}

a.pill {
  cursor: pointer;
}

a.pill:hover {
  background: #e11e16;
  color: #fff;
}

.pill-play {
  background: #fff;
  color: #120201;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.17rem 0.5rem;
}

.pill-play:hover {
  background: #e11e16;
  color: #fff;
}

.play-icon {
  height: 15px;
  width: auto;
  filter: invert(1);
}

.pill-play:hover .play-icon {
  filter: invert(0);
}

.pill-facts .play-icon,
.pill-vibe .play-icon {
  filter: none;
}

.pill-facts:hover .play-icon,
.pill-vibe:hover .play-icon {
  filter: invert(1);
}

/* RELEASE DATE PILL */
.pill-outline {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  color: rgb(255, 255, 255);
  font-size: 0.75rem;
  border: none;
  border-left: 2px solid #ffb7b5;
  padding: 0.60rem 0.7rem;
}

.pill-sublabel {
  color: rgba(255,255,255,0.45);
  padding-left: 0.25rem;
  font-size: 0.65rem;
  line-height: 5px;
}

.pill-facts,
.pill-vibe {
  cursor: pointer;
}

/* ── POPUP ── */
#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

#popup-box {
  background: #120201;
  border: 2px solid #e11e16;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem 3rem;
  position: relative;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Popup content styling */
#popup-content h2 {
  margin-top: 0;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
}

#popup-content ul:last-child {
  margin-bottom: 0;
}

#popup-content p:last-child,
#popup-content br:last-child {
  display: none;
}

#popup-content li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  line-height: 15px;
  color: #fff;
}

#popup-content li:last-child {
  border-bottom: none;
  padding-bottom: 0; /* Add this line */
}

#popup-content > :last-child {
  margin-bottom: 0 !important;
}

#popup-content strong {
  color: #ffb7b5;
  font-weight: 600;
}

.pill-watched,
.pill-watchlist {
  position: relative; /* Add this */
  z-index: 20; /* Add this to ensure they sit above everything */
  background: rgba(255,255,255,0.06);
  color: rgb(255, 255, 255);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-left: 2px solid #e11e16;
  user-select: none;
  padding: 0.30rem 0.7rem;
  border-radius: 5px;
  margin-top: 0.5rem;
}

.pill-watched:hover,
.pill-watchlist:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.pill-status-icon {
  height: 15px;
  display: block;
  margin-left: -0.2rem;
  pointer-events: none;
}

/* Watched: red when off, green when active */
.pill-watched .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%);
}
.pill-watched.active .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%);
}
.pill-watched.active {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
  border-left: 2px solid #2ecc71;
}

.pill-watched.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Watchlist: red when off, green when active */
.pill-watchlist .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%);
}
.pill-watchlist.active .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%);
}
.pill-watchlist.active {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
  border-left: 2px solid #2ecc71;
}

.pill-label-text {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 15px;
  display: block;
  pointer-events: none;
}

.pill-rating {
  background: rgba(255,255,255,0.06);
  color: rgb(255, 255, 255);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-left: 2px solid #fff;
  user-select: none;
  padding: 0.30rem 0.7rem;
  border-radius: 5px;
  margin-top: 0.5rem;
}

.pill-rating:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.rating-heart-icon {
  filter: brightness(0) invert(1);
}

.rating-popup {
  margin-top: 0 !important;
}

/* ── DETAILS ROW ── */
.details-row {
  display: flex;
  margin: 0;
  padding: 0.75rem 5% 2.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  margin-top: -7rem;
}

.info-col-detail {
  flex: 1;
  min-width: 0;
}

.synopsis {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 15px;
  color: rgb(255, 255, 255);
  width: 80%;
  margin-bottom: 1.5rem;
}

/* ── RATINGS ROW ── */
.ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.25rem;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

a.rating-item:hover {
  color: #e11e16;
}

.rating-icon {
  width: auto;
}

.rating-value {
  line-height: 1px;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.stat-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.8rem;
}

.stat-value {
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffb7b5;
}

a.stat-value:hover {
  color: #e11e16;
}

/* ── TABS ── */
.tabs-wrapper {
  padding: 0 5%;
  padding-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 15px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn:hover { color: rgba(255,255,255,0.7); }
.tab-btn.active {
  color: #ffffff;
  background: #e11e16;
  border-radius: 5px;
  border: 1px solid #e11e16;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-subheading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  padding-bottom: 0.4rem;
}
.tab-subheading:not(:first-child) {
  margin-top: 2rem;
}

/* ── VIDEOS GRID ── */
#tab-videos .horizontal-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  overflow: visible;
  padding: 0;
}

.video-horizontal-card {
  width: 100%;
}

.video-horizontal-card iframe {
  width: 100%;
  height: auto;
  min-height: 200px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  display: block;
}

/* ── CAST & CREW GRID ── */
#tab-credits .horizontal-scroll {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1rem;
  overflow: visible;
  padding: 0;
}

.cast-circle-card {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-start;
  width: 100%;
  border-radius: 12px;
}

.cast-circle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cast-circle-img {
  width: 103px;
  height: 103px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}
.cast-circle-card:hover .cast-circle-img {
  border-color: #e11e16;
}
.cast-circle-name {
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.55rem;
  text-align: center;
  line-height: 12px;
  width: 80%;
}
.cast-circle-role {
  font-size: 0.65rem;
  margin-top: 0.2rem;
  color: #ffb7b5;
  text-align: center;
  line-height: 12px;
  width: 80%;
}

/* ── POSTERS GRID ── */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  overflow: visible;
  padding: 0;
}

.poster-scroll-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
}

.poster-scroll-img:hover {
  border-color: #e11e16;
}

/* ── BACKDROPS GRID ── */
.backdrops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  overflow: visible;
  padding: 0;
}

.backdrop-scroll-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
}

.backdrop-scroll-img:hover {
  border-color: #e11e16;
}

/* ── SUBTABS (Images) ── */
.subtabs-nav {
  margin-top: -0.6rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0;
}

.subtab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  white-space: nowrap;
}

.subtab-btn:first-child {
  border-radius: 5px 0 0 5px;
}

.subtab-btn:last-child {
  border-radius: 0 5px 5px 0;
}

.subtab-btn:not(:last-child) {
  border-right: none;
}

.subtab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.subtab-btn.active {
  color: #120201;
  background: #ffb7b5;
  border-color: #ffb7b5;
}

.subtab-panel {
  display: none;
}

.subtab-panel.active {
  display: block;
}

/* ── WATCH TAB ── */
.watch-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.watch-row:last-child {
  margin-bottom: 0;
}

.watch-type-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  min-width: 50px;
}

.watch-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.watch-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  text-decoration: none;
}

.watch-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.1)
}

.watch-icon-img:hover {
  border: 2px solid rgb(255, 255, 255);
}

.watch-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: rgba(255,255,255,0.6);
  font-size: 0.55rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  padding: 0.2rem;
  word-break: break-word;
}

.watch-icon-fallback:hover {
  border: 2px solid rgb(255, 255, 255);
}

/* ── REVIEWS GRID ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  align-items: start;
}

.review-card {
  background: rgba(255,255,255,0.025);
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.35rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.review-reviewer {
  font-weight: 600;
  font-size: 0.9rem;
}
.review-rating {
  background: rgba(255,183,181,0.12);
  padding: 0.5rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffb7b5;
}
.review-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}
.review-content {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 15px;
  margin: 0;
}

.review-read-more,
.review-read-less {
  background: none;
  border: none;
  color: #ffb7b5;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
  margin-top: 0.3rem;
}

.review-read-more:hover,
.review-read-less:hover {
  color: #fff;
}

/* ── COLLECTION GRID ── */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 0;
}

.collection-card {
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.collection-card-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.collection-card-wrapper:hover {
  border-color: #e11e16;
}

.collection-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.collection-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-info {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
}

.collection-title {
  font-size: 0.7rem;
  color: #fff;
  line-height: 12px;
}

/* ── RELATED GRID ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 0;
}

.related-card {
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.related-card-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: visible;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.related-card-wrapper:hover {
  border-color: #e11e16;
}

.related-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border-radius: 8px 8px 0 0;
}

.related-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Options Button */
.related-options-btn {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.related-options-icon {
  height: 25px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

.related-options-icon:hover {
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%) drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

/* Options Dropdown */
.related-options-dropdown {
  position: absolute;
  top: 30px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.related-watched-btn {
  background: #2A1A17;
  border: 2px solid #e11e16;
  border-radius: 5px;
  padding: 0.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-watched-btn:hover {
  background: #1d1210;
}

.related-watched-btn.active {
  background: #2A1A17;
  border-color: #2ecc71;
}

.related-watched-btn.active:hover {
  background: #1d1210;
}

.related-watched-btn .pill-status-icon {
  height: 13px;
  width: auto;
  display: block;
  margin: 0;
}

.related-watched-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.related-watchlist-btn {
  background: #2A1A17;
  border: 2px solid #e11e16;
  border-radius: 5px;
  padding: 0.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.3rem;
}

.related-watchlist-btn:hover {
  background: #1d1210;
}

.related-watchlist-btn.active {
  background: #2A1A17;
  border-color: #2ecc71;
}

.related-watchlist-btn.active:hover {
  background: #1d1210;
}

.related-watchlist-btn .pill-status-icon {
  height: 13px;
  width: auto;
  display: block;
  margin: 0;
}

/* Watchlist icon colors */
.related-watchlist-btn .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%);
}

.related-watchlist-btn.active .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%);
}

.related-info {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
}

.related-title {
  font-size: 0.7rem;
  color: #fff;
  line-height: 12px;
}

.related-date {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 15px;
  color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Disable all hover effects on touch devices */
  a.pill:hover { background: #ffb7b5; color: rgba(0, 0, 0, 0.9); }
  .pill-play:hover { background: #fff; color: #120201; }
  .pill-play:hover .play-icon { filter: invert(1); }
  .pill-facts:hover .play-icon,
  .pill-vibe:hover .play-icon { filter: none; }
  .pill-watched:hover,
  .pill-watchlist:hover { background: rgba(255,255,255,0.06); color: rgb(255, 255, 255); }
  .tab-btn:hover { color: rgba(255,255,255,0.4); }
  .subtab-btn:hover { color: rgba(255,255,255,0.5); background: transparent; }
  .cast-circle-card:hover .cast-circle-img { border-color: rgba(255,255,255,0.08); }
  .collection-poster-link:hover { border-color: rgba(255,255,255,0.08); }
  .collection-poster-link:hover .collection-poster-img { filter: none; }
  .collection-poster-link:hover .collection-hover-info { opacity: 0; }
  .related-card:hover { border-color: rgba(255,255,255,0.08); }
  .related-card:hover .related-poster-img { filter: none; }
  .related-card:hover .related-hover-info { opacity: 0; }
  .review-read-more:hover,
  .review-read-less:hover { color: #ffb7b5; }
  a.rating-item:hover { color: #fff; }
  a.stat-value:hover { color: #ffb7b5; }
  .watch-icon-img:hover { border: 2px solid rgba(255,255,255,0.1); }
  .pill-rating:hover { background: rgba(255,255,255,0.06); color: rgb(255, 255, 255); }
  
  /* Hero */
  .hero { min-height: 50vh; }
  .hero-logo { max-width: 240px !important; height: 60px !important; }
  .hero-title-fallback { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-content { padding: 2rem 5% 0.5rem; }
  
  /* Pills */
  .hero-meta-pills { gap: 0.35rem; }
  .pill { font-size: 0.68rem; padding: 0.35rem 0.5rem; }
  .pill-outline { padding: 0.35rem 0.5rem; }
  .pill-sublabel { font-size: 0.6rem; }
  .pill-play { padding: 0.2rem 0.45rem; font-size: 0.68rem; }
  .play-icon { height: 12px; }
  .pill-watched,
  .pill-watchlist { padding: 0.3rem 0.5rem; margin-top: 0.35rem; }
  .pill-label-text { font-size: 0.68rem; }
  .pill-status-icon { height: 13px; }
  .pill-facts,
  .pill-vibe { font-size: 0.68rem; }
  .pill-rating { padding: 0.3rem 0.5rem; margin-top: 0.35rem; }
  .rating-heart-icon { height: 13px; }
  .rating-popup { font-size: 0.68rem; }
  .rating-popup .rating-star { font-size: 0.75rem; }
  
  /* Details */
  .details-row { margin-top: -4rem; padding: 0.5rem 5% 1.5rem; }
  .synopsis { font-size: 0.82rem; width: 100%; line-height: 1.4; margin-bottom: 1rem; }
  
  /* Ratings */
  .ratings-row { gap: 0.5rem; }
  .rating-item { font-size: 0.7rem; gap: 0.2rem; }
  
  /* Stats */
  .stats-bar { gap: 0.35rem; margin-top: 0.8rem; }
  .stat-item { padding: 0.5rem 0.6rem; }
  .stat-label { font-size: 0.55rem; margin-bottom: 0.4rem; }
  .stat-value { font-size: 0.7rem; }
  
  /* Tabs */
  .tabs-wrapper { padding: 0 5%; padding-bottom: 1.5rem; }
  .tabs-nav { gap: 4px; margin-bottom: 1rem; }
  .tab-btn { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
  
  /* Videos */
  #tab-videos .horizontal-scroll { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .video-horizontal-card iframe { min-height: 160px; }
  
  /* Cast & Crew */
  #tab-credits .horizontal-scroll { grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
  .cast-circle-img { width: 65px; height: 65px; }
  .cast-circle-name { font-size: 0.6rem; margin-top: 0.3rem; width: 90%; }
  .cast-circle-role { font-size: 0.55rem; width: 90%; }
  
  /* Posters */
  .posters-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  
  /* Backdrops */
  .backdrops-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  
  /* Watch */
  .watch-row { gap: 0.6rem; margin-bottom: 1rem; }
  .watch-type-label { font-size: 0.6rem; min-width: 40px; }
  .watch-icon-link { width: 40px; height: 40px; }

  /* Collection & Related */
  .collection-grid,
  .related-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .collection-hover-info,
  .related-hover-info { top: 40px; left: 10px; gap: 0.2rem; }
  .collection-hover-title,
  .related-hover-title { font-size: 0.68rem; padding-right: 10px; }
  .related-hover-date { font-size: 0.5rem; padding: 2px 5px; }

  /* Subtabs */
  .subtab-btn { font-size: 0.58rem; padding: 0.22rem 0.5rem; }
  
  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .review-card { padding: 1rem; }
  .review-reviewer { font-size: 0.75rem; }
  .review-rating { font-size: 0.68rem; padding: 0.3rem 0.5rem; }
  .review-date { font-size: 0.65rem; }
  .review-content { font-size: 0.72rem; }
  
  /* Popup */
  #popup-box { padding: 2rem 1.5rem; max-width: 95%; }
  #popup-content li { font-size: 0.78rem; padding: 0.5rem 0; }
}

@media (max-width: 480px) {
  /* Disable all hover effects on touch devices */
  a.pill:hover { background: #ffb7b5; color: rgba(0, 0, 0, 0.9); }
  .pill-play:hover { background: #fff; color: #120201; }
  .pill-play:hover .play-icon { filter: invert(1); }
  .pill-facts:hover .play-icon,
  .pill-vibe:hover .play-icon { filter: none; }
  .pill-watched:hover,
  .pill-watchlist:hover { background: rgba(255,255,255,0.06); color: rgb(255, 255, 255); }
  .tab-btn:hover { color: rgba(255,255,255,0.4); }
  .subtab-btn:hover { color: rgba(255,255,255,0.5); background: transparent; }
  .cast-circle-card:hover .cast-circle-img { border-color: rgba(255,255,255,0.08); }
  .collection-poster-link:hover { border-color: rgba(255,255,255,0.08); }
  .collection-poster-link:hover .collection-poster-img { filter: none; }
  .collection-poster-link:hover .collection-hover-info { opacity: 0; }
  .related-card:hover { border-color: rgba(255,255,255,0.08); }
  .related-card:hover .related-poster-img { filter: none; }
  .related-card:hover .related-hover-info { opacity: 0; }
  .review-read-more:hover,
  .review-read-less:hover { color: #ffb7b5; }
  a.rating-item:hover { color: #fff; }
  a.stat-value:hover { color: #ffb7b5; }
  .watch-icon-img:hover { border: 2px solid rgba(255,255,255,0.1); }
  .pill-rating:hover { background: rgba(255,255,255,0.06); color: rgb(255, 255, 255); }
  
  /* Hero */
  .hero { min-height: 45vh; }
  .hero-logo { max-width: 180px !important; height: 50px !important; }
  .hero-title-fallback { font-size: 1.3rem; }
  .hero-content { padding: 1.5rem 5% 0.5rem; }
  
  /* Pills */
  .hero-meta-pills { gap: 0.3rem; }
  .pill { font-size: 0.62rem; padding: 0.3rem 0.4rem; }
  .pill-outline { padding: 0.3rem 0.4rem; }
  .pill-play { padding: 0.18rem 0.4rem; font-size: 0.62rem; }
  .pill-label-text { font-size: 0.62rem; }
  .pill-status-icon { height: 11px; }
  .pill-facts,
  .pill-vibe { font-size: 0.62rem; }
  .pill-rating { padding: 0.3rem 0.4rem; }
  .rating-heart-icon { height: 11px; }
  .rating-popup { font-size: 0.62rem; }
  .rating-popup .rating-star { font-size: 0.68rem; }
  
  /* Details */
  .details-row { margin-top: -3rem; padding: 0.5rem 5% 1rem; }
  .synopsis { font-size: 0.75rem; }
  
  /* Ratings */
  .ratings-row { gap: 0.35rem; }
  .rating-item { font-size: 0.62rem; }
  
  /* Stats */
  .stats-bar { gap: 0.3rem; }
  .stat-item { padding: 0.4rem 0.5rem; }
  .stat-value { font-size: 0.65rem; }
  
  /* Tabs */
  .tab-btn { font-size: 0.58rem; padding: 0.25rem 0.5rem; }
  
  /* Videos */
  #tab-videos .horizontal-scroll { grid-template-columns: 1fr; gap: 0.6rem; }
  .video-horizontal-card iframe { min-height: 140px; }
  
  /* Cast & Crew */
  #tab-credits .horizontal-scroll { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .cast-circle-img { width: 55px; height: 55px; }
  .cast-circle-name { font-size: 0.55rem; }
  .cast-circle-role { font-size: 0.5rem; }
  
  /* Posters */
  .posters-grid { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  
  /* Backdrops */
  .backdrops-grid { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Watch */
  .watch-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-bottom: 0.8rem; }
  .watch-type-label { font-size: 0.55rem; }
  .watch-icon-link { width: 36px; height: 36px; }

  /* Collection & Related */
  .collection-grid,
  .related-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .collection-hover-info,
  .related-hover-info { top: 30px; left: 8px; }
  .collection-hover-title,
  .related-hover-title { font-size: 0.6rem; padding-right: 8px; }
  .related-hover-date { font-size: 0.45rem; padding: 1px 4px; }

  /* Subtabs */
  .subtabs-nav { margin-top: -0.4rem; }
  .subtab-btn { font-size: 0.52rem; padding: 0.2rem 0.4rem; }
  
  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .review-card { padding: 0.85rem; }
  
  /* Popup */
  #popup-box { padding: 1.25rem 0.8rem; max-width: 98%; border-radius: 8px; }
  #popup-close { top: 6px; right: 10px; font-size: 1.2rem; }
  #popup-content h2 { font-size: 1rem; }
  #popup-content li { font-size: 0.72rem; line-height: 1.3; }
}