@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;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #120201;
}

.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-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: -6.7rem;
}

/* ── CALENDAR WRAPPER ── */
.calendar-wrapper {
  padding: 1rem 5% 3rem;
  margin-top: -12.5rem;
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HEADER ── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calendar-month-title {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  min-width: 280px;
  text-align: center;
}

.calendar-nav {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 1rem;
  border-radius: 10px;
  background: #ffb7b5
}

.calendar-nav:hover {
  background: #e11e16;
  color: #fff;
}

/* ── GRID ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #1d0807; /* Solid grid line color */
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

/* ── DAY OF WEEK HEADERS ── */
.calendar-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 0.5rem;
  background: #180605;
  letter-spacing: 0.5px;
}

/* ── DAY CELLS ── */
.calendar-day {
  min-height: 140px;
  padding: 0.5rem;
  background: #150403;
  border: 1px solid transparent;
  position: relative;
  /* Paint & Layout containment stops cell changes from forcing full page reflows */
  contain: layout paint;
}

.calendar-day.empty {
  background: #120201;
}

.calendar-day.has-releases:hover {
  background: #230806;
}

.calendar-day.today {
  background: #290806;
  border-color: #5c110e;
}

.calendar-day-num {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 0.4rem;
}

.calendar-day.today .calendar-day-num {
  color: #e11e16;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ── RELEASES ── */
.calendar-releases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.calendar-release-item {
  position: relative;
  display: block;
  width: calc(50% - 2px);
  aspect-ratio: 2/3;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  background: #0d0101;
}

.calendar-release-item:hover {
  border-color: #e11e16;
  z-index: 2;
}

.calendar-release-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calendar-release-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.45rem;
  font-weight: 600;
  padding: 3px 4px;
  border-radius: 2px;
  line-height: 5px;
  text-transform: uppercase;
  pointer-events: none;
}

.calendar-release-badge.movie {
  background: #ffb7b5;
  color: #000;
}

.calendar-release-badge.tv {
  background: #e11e16;
  color: #fff;
}

.calendar-release-badge.season {
  background: #fff;
  color: #120201;
}

.calendar-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 15px;
  color: #ffb7b5;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(225,30,22,0.15);
  border: 1px solid rgba(225,30,22,0.3);
  user-select: none;
  z-index: 1;
}

.calendar-more:hover {
  background: rgba(225,30,22,0.3);
  border-color: #e11e16;
}

/* Hidden extra releases */
.calendar-more-list {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  width: 100%;
}

.calendar-day.expanded .calendar-more-list {
  display: flex;
}