/**
 * MovieNetwork OTT Theme — StreamIt Modern Dark Stylesheet
 * Version: 4.0.0
 */

:root {
  --ott-bg: #0b0c0e;
  --ott-card-bg: #14151c;
  --ott-card-border: #22242e;
  --ott-red: #E50914;
  --ott-dark-red: #b20710;
  --ott-gold: #ffd000;
  --ott-text: #ffffff;
  --ott-muted: #aaaaaa;
  --ott-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ott-heading-font: 'Bebas Neue', 'Oswald', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ott-bg);
  color: var(--ott-text);
  font-family: var(--ott-font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   1. STREAMIT MODERN OTT TOP NAVBAR
   ───────────────────────────────────────────────────────────── */
.ott-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(11,12,14,0.98) 0%, rgba(11,12,14,0.7) 60%, transparent 100%);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ott-navbar.scrolled {
  background: #0b0c0e;
  box-shadow: 0 4px 25px rgba(0,0,0,0.9);
  border-bottom: 1px solid #1c1d24;
}

.ott-nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ott-brand-logo {
  font-family: var(--ott-heading-font);
  font-size: 34px;
  letter-spacing: 1.5px;
  color: var(--ott-red);
  display: flex;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}

.ott-brand-logo span {
  color: #ffffff;
}

.ott-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.ott-menu li a {
  font-size: 13.5px;
  color: #b5b5b5;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}

.ott-menu li a:hover,
.ott-menu li a.active {
  color: var(--ott-red);
}

.ott-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ott-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.ott-search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #2a2b34;
  border-radius: 24px;
  padding: 7px 16px 7px 36px;
  font-size: 13px;
  color: #fff;
  width: 200px;
  outline: none;
  transition: all 0.3s ease;
}

.ott-search-input:focus {
  width: 270px;
  border-color: var(--ott-red);
  background: #14151c;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.ott-search-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  color: #888;
  font-size: 13px;
}

.ott-btn-tg-join {
  background: linear-gradient(135deg, #0088cc, #00a8ff);
  color: #ffffff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.ott-btn-tg-join:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   2. HERO BILLBOARD SPOTLIGHT
   ───────────────────────────────────────────────────────────── */
.ott-billboard {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: center;
  padding: 60px 4% 60px 4%;
}

.ott-billboard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(77deg, rgba(11,12,14,0.96) 0%, rgba(11,12,14,0.7) 50%, rgba(11,12,14,0.2) 100%), linear-gradient(to bottom, transparent 65%, #0b0c0e 100%);
  z-index: 1;
}

.ott-billboard-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.ott-billboard-title {
  font-family: var(--ott-heading-font);
  font-size: 58px;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.ott-billboard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}

.ott-pill-red {
  background: var(--ott-red);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.ott-pill-gold {
  background: rgba(255,208,0,0.15);
  color: #ffd000;
  border: 1px solid rgba(255,208,0,0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.ott-billboard-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #ccc;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.ott-billboard-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ott-btn-play-hero {
  background: var(--ott-red);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(229,9,20,0.5);
}

.ott-btn-play-hero:hover {
  background: #ff1a26;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(229,9,20,0.7);
}

.ott-btn-tg-hero {
  background: rgba(0,136,204,0.25);
  color: #00d2d3;
  border: 1px solid rgba(0,136,204,0.5);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ott-btn-tg-hero:hover {
  background: #0088cc;
  color: #fff;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   3. HORIZONTAL STREAM CAROUSELS & ROWS
   ───────────────────────────────────────────────────────────── */
.ott-row-wrap {
  position: relative;
  margin-bottom: 40px;
}

.ott-row-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ott-row-heading {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.ott-row-sub {
  font-size: 12.5px;
  color: #888;
}

.ott-carousel-box {
  position: relative;
}

.ott-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 4px;
  width: 100%;
}

.ott-track::-webkit-scrollbar {
  display: none;
}

.ott-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ott-scroll-btn.prev { left: -16px; }
.ott-scroll-btn.next { right: -16px; }

.ott-scroll-btn:hover {
  background: var(--ott-red);
  border-color: var(--ott-red);
  transform: translateY(-50%) scale(1.1);
}

/* Top 10 Ranked Card */
.ott-rank-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  height: 285px !important;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #16171d;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #22242e;
}

.ott-rank-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.9), 0 0 18px rgba(229,9,20,0.4);
  border-color: var(--ott-red);
}

.ott-rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ott-rank-num {
  position: absolute;
  bottom: -15px;
  left: -10px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 85px;
  line-height: 1;
  font-weight: 900;
  color: #0b0c0e;
  -webkit-text-stroke: 2px #555;
  z-index: 2;
  pointer-events: none;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.ott-rank-card:hover .ott-rank-num {
  color: var(--ott-red);
  -webkit-text-stroke: 2px #fff;
}

/* Standard Vertical Card */
.ott-card-v {
  flex: 0 0 170px !important;
  width: 170px !important;
  height: 255px !important;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #16171d;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #22242e;
}

.ott-card-v:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 15px rgba(229,9,20,0.35);
  border-color: var(--ott-red);
}

.ott-card-v img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ott-card-v-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,208,0,0.4);
  color: #ffd000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.ott-card-v-pill {
  position: absolute;
  bottom: 34px;
  left: 8px;
  background: var(--ott-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.ott-card-v-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   4. SEARCH RESULTS GRID
   ───────────────────────────────────────────────────────────── */
.ott-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.ott-search-grid .ott-card-v {
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2/3 !important;
}

/* ─────────────────────────────────────────────────────────────
   5. 🎬 FULL-SCREEN STREAM PLAYER MODAL & SEASONS/EPISODES
   ───────────────────────────────────────────────────────────── */
.ott-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
  z-index: 99999;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 15px;
}

.ott-modal-card {
  background: #121318;
  border: 1px solid #282a36;
  border-radius: 12px;
  width: 100%;
  max-width: 1050px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95);
  position: relative;
  margin: auto;
}

.ott-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #444;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ott-modal-close:hover {
  background: var(--ott-red);
  border-color: var(--ott-red);
  transform: scale(1.1);
}

.ott-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect */
  background: #000;
  overflow: hidden;
}

.ott-player-top-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(11,12,14,0.98) 0%, rgba(11,12,14,0.7) 70%, transparent 100%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.ott-player-mask-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.ott-player-mask-right {
  font-size: 11px;
  font-weight: 800;
  color: var(--ott-red);
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.ott-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ott-red);
  box-shadow: 0 0 10px var(--ott-red);
  animation: pulseRed 1.8s infinite ease-in-out;
}

@keyframes pulseRed {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.ott-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ott-modal-body {
  padding: 24px 28px;
}

.ott-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.ott-match-green {
  color: #46d369;
  font-weight: 800;
}

.ott-modal-desc {
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Episodes Section */
.ott-episodes-section {
  border-top: 1px solid #20222d;
  padding-top: 24px;
  margin-top: 10px;
}

.ott-episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.ott-season-select {
  background: #1c1d24;
  color: #fff;
  border: 1px solid #383a48;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.ott-ep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.ott-ep-list::-webkit-scrollbar {
  width: 6px;
}

.ott-ep-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.ott-ep-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #16171e;
  border: 1px solid #242632;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ott-ep-item:hover {
  background: #1f202a;
  border-color: var(--ott-red);
  transform: translateX(4px);
}

.ott-ep-item.active {
  border-color: var(--ott-red);
  background: rgba(229,9,20,0.12);
}

.ott-ep-num {
  font-size: 20px;
  font-weight: 800;
  color: #777;
  min-width: 24px;
  text-align: center;
}

.ott-ep-item.active .ott-ep-num {
  color: var(--ott-red);
}

.ott-ep-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #222;
  flex-shrink: 0;
}

.ott-ep-details {
  flex: 1;
  min-width: 0;
}

.ott-ep-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ott-ep-runtime {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.ott-ep-overview {
  font-size: 12px;
  color: #aaa;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   6. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ott-menu {
    display: none;
  }
  .ott-billboard-title {
    font-size: 40px;
  }
  .ott-search-input {
    width: 140px;
  }
}

@media (max-width: 600px) {
  .ott-navbar {
    padding: 0 14px;
    height: 64px;
  }
  .ott-brand-logo {
    font-size: 26px;
  }
  .ott-search-input {
    display: none;
  }
  .ott-billboard {
    min-height: 60vh;
    padding: 40px 14px 40px 14px;
  }
  .ott-billboard-title {
    font-size: 32px;
  }
  .ott-rank-card {
    flex: 0 0 150px !important;
    width: 150px !important;
    height: 225px !important;
  }
  .ott-card-v {
    flex: 0 0 135px !important;
    width: 135px !important;
    height: 202px !important;
  }
  .ott-ep-thumb {
    width: 90px;
    height: 52px;
  }
  .ott-ep-overview {
    display: none;
  }
}
