@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; }

/* ── EXPLORE WRAPPER ── */
.explore-wrapper { padding: 1rem 5% 3rem; margin-top: -12.5rem; position: relative; z-index: 3; max-width: 1400px; margin-left: auto; margin-right: auto; min-height: 30vh; }

/* ── TABS + FILTERS ── */
.tabs-nav-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

.tabs-nav { display: flex; gap: 7px; }
.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; }

/* ── FILTERS ── */
.explore-filters { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.filter-dropdown { position: relative; }
.filter-btn { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); font-family: "Outfit", system-ui, sans-serif; font-size: 0.72rem; font-weight: 500; line-height: 15px; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 5px; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; white-space: nowrap; }
.filter-btn:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }
.filter-btn.active { color: #ffffff; background: #e11e16; border-color: #e11e16; }
.filter-arrow { font-size: 0.6rem; }

.filter-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #1a0a08; border: 2px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.5rem 0; min-width: 200px; max-height: 300px; overflow-y: auto; z-index: 10; }
.filter-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; font-size: 0.72rem; color: rgba(255,255,255,0.7); cursor: pointer; white-space: nowrap; }
.filter-option:hover { background: rgba(255,255,255,0.05); color: #fff; }
.filter-option input[type="checkbox"] { accent-color: #e11e16; }

.filter-clear-btn { display: inline-flex; align-items: center; justify-content: center; background: rgba(225,30,22,0.15); color: #e11e16; font-family: "Outfit", system-ui, sans-serif; font-size: 0.72rem; font-weight: 500; line-height: 15px; padding: 0.4rem 0.7rem; border-radius: 5px; border: 1px solid rgba(225,30,22,0.3); cursor: pointer; white-space: nowrap; }
.filter-clear-btn:hover { background: rgba(225,30,22,0.3); }

/* ── EXPLORE GRID ── */
.explore-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; padding: 0; }

.explore-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); }
.explore-card-wrapper:hover { border-color: #e11e16; }
.explore-card { text-decoration: none; color: #fff; border: none; border-radius: 0; overflow: visible; background: transparent; }
.explore-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; background: rgba(255,255,255,0.05); border-radius: 8px 8px 0 0; }
.explore-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-info { display: flex; flex-direction: column; padding: 0.5rem 0.75rem; }
.explore-item-title { font-size: 0.7rem; color: #fff; line-height: 12px; }
.explore-item-date { font-size: 0.65rem; font-weight: 500; line-height: 15px; color: rgba(255,255,255,0.5); }

.explore-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; }
.explore-options-icon { height: 25px; width: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.8)); }
.explore-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)); }
.explore-options-dropdown { position: absolute; top: 38px; right: 8px; z-index: 6; display: flex; flex-direction: column; gap: 0.3rem; }

.explore-watched-btn { background: #2A1A17; border: 2px solid #e11e16; border-radius: 5px; padding: 0.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.explore-watched-btn:hover { background: #1d1210; }
.explore-watched-btn.active { background: #2A1A17; border-color: #2ecc71; }
.explore-watched-btn.active:hover { background: #1d1210; }
.explore-watched-btn.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.explore-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%); }
.explore-watched-btn.active .pill-status-icon { filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%); }

.explore-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; }
.explore-watchlist-btn:hover { background: #1d1210; }
.explore-watchlist-btn.active { background: #2A1A17; border-color: #2ecc71; }
.explore-watchlist-btn.active:hover { background: #1d1210; }
.explore-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%); }
.explore-watchlist-btn.active .pill-status-icon { filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(495%) hue-rotate(84deg) brightness(92%) contrast(88%); }