@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;
  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;
}

/* 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.7rem 0.7rem;
}

.pill-watchlist {
  position: relative;
  z-index: 20;
  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-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;
}

/* 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);
}

/* ── 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;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.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;
}

/* ── 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; }

/* ── 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: visible;
  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);
  border-radius: 8px 8px 0 0;
}

.collection-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Options Button */
.collection-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;
}

.collection-options-icon {
  height: 25px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

.collection-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 */
.collection-options-dropdown {
  position: absolute;
  top: 38px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.collection-watched-btn {
  background: #2A1A17;
  border: 2px solid #e11e16;
  border-radius: 5px;
  padding: 0.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-watched-btn:hover {
  background: #1d1210;
}

.collection-watched-btn.active {
  background: #2A1A17;
  border-color: #2ecc71;
}

.collection-watched-btn.active:hover {
  background: #1d1210;
}

.collection-watched-btn .pill-status-icon {
  height: 13px;
  width: auto;
  display: block;
  margin: 0;
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%);
}

.collection-watched-btn.active .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%);
}

.collection-watched-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.collection-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;
}

.collection-watchlist-btn:hover {
  background: #1d1210;
}

.collection-watchlist-btn.active {
  background: #2A1A17;
  border-color: #2ecc71;
}

.collection-watchlist-btn.active:hover {
  background: #1d1210;
}

.collection-watchlist-btn .pill-status-icon {
  height: 13px;
  width: auto;
  display: block;
  margin: 0;
  filter: brightness(0) saturate(100%) invert(22%) sepia(98%) saturate(3858%) hue-rotate(351deg) brightness(92%) contrast(94%);
}

.collection-watchlist-btn.active .pill-status-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%);
}

.collection-info {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
}

.collection-item-title {
  font-size: 0.7rem;
  color: #fff;
  line-height: 12px;
}

.collection-item-date {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 15px;
  color: rgba(255,255,255,0.5);
}