
:root {
  --bg: #0a0a0a;
  --yellow: #00aaff;
  --yellow-hover: #33bbff;
  --text: #ffffff;
  --text-sec: #aaaaaa;
  --green: #22c55e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #121315 !important; height: 100%; }
body {
  background: #121315;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.header {
  background: #000;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--yellow);
}
.logo-icon {
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border-radius: 5px;
  position: relative;
}
.logo-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  border-left: 8px solid #000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.nav { display: flex; gap: 20px; }
.nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ddd;
}
.nav a:hover { color: var(--yellow); }
.header-right { display: flex; align-items: center; gap: 10px; }
.search-box input {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 6px 12px 6px 30px;
  color: #fff;
  width: 160px;
  font-size: 13px;
  outline: none;
}
.login-btn { color: #ccc; font-size: 13px; }

/* Hero */
.hero-search {
  text-align: center;
  padding: 36px 16px 16px;
}
.hero-search h1 { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.big-search {
  max-width: 480px;
  margin: 0 auto 10px;
  display: flex;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}
.big-search input {
  flex: 1;
  border: 0;
  padding: 11px 16px;
  font-size: 15px;
  outline: none;
}
.big-search button {
  background: var(--yellow);
  border: 0;
  width: 48px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}
.site-desc {
  max-width: 720px;
  margin: 0 auto 12px;
  color: #999;
  font-size: 12.5px;
}
.social-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.social-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.social-btn.tw { background: #1da1f2; }
.social-btn.fb { background: #1877f2; }
.social-btn.wa { background: #25d366; }
.social-btn.pin { background: #e60023; }
.social-btn.tg { background: #0088cc; }
.social-btn.em { background: #ea4335; }
.social-btn.more { background: #555; }

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 17px; font-weight: 700; padding-bottom: 10px; }
.tabs { display: flex; background: #1a1a1a; padding: 3px; border-radius: 18px; }
.tab {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #aaa;
}
.tab.active { background: var(--yellow); color: #000; }

/* CRITICAL GRID FIX */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}
.movie-card {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  display: block;
}
.poster-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* 2:3 ratio */
  background: #1a1a1a;
  border-radius: 5px;
  overflow: hidden;
}
.poster-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hd-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  z-index: 2;
}
.card-info { padding: 6px 2px 0; text-align: left; }
.card-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.card-meta .type {
  background: #222;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  margin-left: 4px;
}

/* Detail page */
.breadcrumb {
  max-width: 1280px;
  margin: 0;
  padding: 12px 20px 8px;
  font-size: 14px;
  color: #ccc;
  text-align: left;
  background: transparent;
}
.breadcrumb a {
  color: #aaa;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #00aaff;
  text-decoration: underline;
}
.breadcrumb span {
  color: #fff;
}
.movie-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center top;
}
.movie-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(10,10,10,0.95));
}
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.play-overlay::after {
  content: "";
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}
.movie-content {
  max-width: 1280px;
  margin: -50px auto 0;
  padding: 0 16px 20px;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.movie-poster {
  width: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.movie-poster img { width: 100%; }
.movie-details { flex: 1; min-width: 260px; }
.watch-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  margin-bottom: 8px;
}
.add-fav {
  float: right;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
}
.movie-title { font-size: 24px; font-weight: 700; margin: 4px 0 8px; clear: both; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { background: #222; color: #ddd; padding: 3px 8px; border-radius: 3px; font-size: 11px; }
.badge.imdb { color: var(--yellow); background: transparent; }
.synopsis { color: #ccc; font-size: 13.5px; margin-bottom: 12px; }
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  font-size: 12.5px;
  color: #aaa;
  margin-bottom: 12px;
}
.meta-grid strong { color: #fff; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.score { font-size: 22px; font-weight: 700; color: var(--yellow); }
.like-btn, .dislike-btn { padding: 6px 12px; border-radius: 5px; border: 0; cursor: pointer; font-size: 12px; }
.like-btn { background: var(--green); color: #fff; }
.dislike-btn { background: #333; color: #ccc; }
.related-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.related-links a { background: #1a1a1a; border: 1px solid #333; padding: 5px 10px; border-radius: 4px; font-size: 11px; color: #aaa; }

.servers-section {
  background: #141414;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0 24px;
}
.servers-note { text-align: center; color: #888; font-size: 12px; margin-bottom: 10px; }
.servers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.server-btn {
  background: #222;
  border: 1px solid #333;
  color: #ddd;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}
.server-btn.active, .server-btn:hover { border-color: var(--yellow); color: var(--yellow); }

/* Player */
.player-wrap {
  max-width: 960px;
  margin: 12px auto;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.player-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 24px 16px 12px;
  margin-top: 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { color: var(--yellow); font-weight: 800; margin-bottom: 6px; }
.footer-desc { max-width: 420px; color: #888; font-size: 12px; }
.footer-links { display: flex; gap: 14px; font-size: 12px; color: #aaa; }
.footer-bottom {
  max-width: 1280px;
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  color: #666;
  font-size: 11px;
}

.loading { text-align: center; padding: 40px; color: #888; grid-column: 1 / -1; }
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #333;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .nav { display: none; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .movie-content { flex-direction: column; }
  .meta-grid { grid-template-columns: 1fr; }
  .movie-hero { height: 200px; }
}
@media (max-width: 480px) {
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 110px; }
}

/* Watch page specific fixes */
.player-container { max-width: 1100px; margin: 0 auto; }
.player-area {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  position: relative;
}
.player-area iframe { width: 100%; height: 100%; border: 0; }
.servers-section { margin: 16px auto; max-width: 1100px; }
.servers { display: flex !important; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 40px; }
.server-btn { display: inline-flex !important; }
.info-block { max-width: 1100px; margin: 20px auto; padding: 0 16px; }

/* Genre Dropdown Menu */
.nav { position: relative; }
.genre-menu { position: relative; }
.genre-menu > a { display: inline-block; }
.genre-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2a2a2a;
  min-width: 520px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 9999;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 20px;
}
.genre-menu:hover .genre-dropdown { display: grid; }
.genre-dropdown a {
  color: #ddd;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px 4px;
  text-decoration: none;
  white-space: nowrap;
}
.genre-dropdown a:hover { color: #00aaff; background: transparent; }

/* Fixed Genre Dropdown */
.genre-menu {
  position: relative !important;
  display: inline-block;
}
.genre-dropdown {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #2a2a2a !important;
  min-width: 540px !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  z-index: 99999 !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px 16px !important;
}
.genre-menu:hover .genre-dropdown {
  display: grid !important;
}
.genre-dropdown a {
  color: #ddd !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  padding: 7px 6px !important;
  text-decoration: none !important;
  display: block !important;
  white-space: nowrap !important;
}
.genre-dropdown a:hover {
  color: #00aaff !important;
  background: transparent !important;
}

/* Country Dropdown */
.country-menu { position: relative !important; display: inline-block; }
.country-dropdown {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #2a2a2a !important;
  min-width: 540px !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  z-index: 99999 !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px 16px !important;
}
.country-menu:hover .country-dropdown { display: grid !important; }
.country-dropdown a {
  color: #ddd !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  padding: 7px 6px !important;
  text-decoration: none !important;
  display: block !important;
}
.country-dropdown a:hover { color: #00aaff !important; }

/* Stronger Country Dropdown Fix */
.country-menu {
  position: relative !important;
  display: inline-block !important;
}
.country-dropdown {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #2a2a2a !important;
  min-width: 560px !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  z-index: 99999 !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px 14px !important;
}
.country-menu:hover .country-dropdown {
  display: grid !important;
}
.country-dropdown a {
  color: #ddd !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  padding: 6px 4px !important;
  text-decoration: none !important;
  display: block !important;
  white-space: nowrap !important;
}
.country-dropdown a:hover {
  color: #00aaff !important;
}

.nav .country-menu { position: relative; }
.nav .country-dropdown { display: none; }
.nav .country-menu:hover .country-dropdown { display: grid; }

/* Final dropdown */ .genre-menu:hover .genre-dropdown, .country-menu:hover .country-dropdown { display: grid !important; }

.site-footer {
  background: #000;
  color: #ccc;
  padding: 28px 24px 32px;
  margin-top: 50px;
  border-top: 1px solid #1a1a1a;
  font-size: 13.5px;
  line-height: 1.55;
}
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo-col {
  flex: 0 0 120px;
  text-align: center;
  padding-top: 4px;
}
.play-icon {
  width: 52px;
  height: 52px;
  background: #00aaff;
  color: #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.copy {
  font-size: 12px;
  color: #888;
}
.footer-text-col {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.footer-text-col p {
  margin: 0 0 14px;
  color: #bbb;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
}
.footer-nav a:hover { color: #00aaff; }
.footer-nav .sep { color: #555; }
.footer-box-col {
  flex: 0 0 280px;
}
.disclaimer-box {
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #999;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-logo-col, .footer-text-col, .footer-box-col {
    flex: none;
    width: 100%;
    max-width: 520px;
  }
  .footer-nav { justify-content: center; }
}

/* ========== Front Page (ho1 / ho2) ========== */
.front-page {
  min-height: 70vh;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
}
.front-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}
.front-logo {
  width: 72px;
  height: 72px;
  background: #00aaff;
  color: #000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 10px auto 16px;
}
.front-title {
  font-size: 32px;
  font-weight: 800;
  color: #00aaff;
  margin: 0 0 24px;
}
.front-search {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.front-search input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  color: #000;
}
.front-search button {
  background: #00aaff;
  border: none;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}
.front-social {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}
.front-social .soc {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.soc.tw { background: #1da1f2; }
.soc.fb { background: #1877f2; }
.soc.wa { background: #25d366; }
.soc.pin { background: #e60023; }
.soc.tg { background: #0088cc; }
.soc.em { background: #555; }
.soc.more { background: #e74c3c; }

.front-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00aaff;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 28px;
  text-decoration: none;
  margin: 8px 0 28px;
}
.front-btn:hover { background: #33bbff; }

.front-text {
  text-align: left;
  color: #ccc;
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 10px;
}
.front-lead {
  text-align: center;
  color: #aaa;
  margin-bottom: 12px;
}
.front-text h2 {
  color: #fff;
  font-size: 18px;
  margin: 22px 0 8px;
  font-weight: 700;
}
.front-text p { margin: 0 0 10px; }

@media (max-width: 600px) {
  .front-title { font-size: 26px; }
  .front-logo { width: 60px; height: 60px; font-size: 26px; }
  .front-search { max-width: 100%; }
  .front-text { font-size: 13.5px; }
}

/* ========== FORCE Front Page Styles ========== */
.front-page {
  background: #0a0a0a !important;
  min-height: 70vh;
  padding: 50px 10px 50px !important;
  display: flex !important;
  justify-content: center !important;
}
.front-inner {
  width: 100% !important;
  max-width: 90% !important;
  text-align: center !important;
}
.front-logo {
  width: 70px !important;
  height: 70px !important;
  background: #00aaff !important;
  color: #000 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin: 0 auto 14px !important;
  line-height: 1 !important;
}
.front-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #00aaff !important;
  margin: 0 0 22px !important;
}
.front-search {
  display: flex !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto 18px !important;
  background: #fff !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.front-search input {
  flex: 1 !important;
  border: none !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  outline: none !important;
  background: #fff !important;
  color: #000 !important;
}
.front-search button {
  background: #00aaff !important;
  border: none !important;
  width: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #000 !important;
}
.front-social {
  display: flex !important;
  justify-content: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  margin: 14px 0 20px !important;
}
.front-social .soc {
  padding: 5px 10px !important;
  border-radius: 3px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.front-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #00aaff !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 11px 26px !important;
  border-radius: 26px !important;
  text-decoration: none !important;
  margin: 6px 0 26px !important;
}
.front-text {
  text-align: left !important;
  color: #ccc !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  max-width: 90%px !important;
  margin: 0 auto !important;
  padding-top: 20px !important;
}
.front-lead { text-align: center !important; color: #aaa !important; }
.front-text h2 { color: #fff !important; font-size: 17px !important; margin: 20px 0 6px !important; }
.front-social .soc.tw { background: #1da1f2 !important; }
.front-social .soc.fb { background: #1877f2 !important; }
.front-social .soc.wa { background: #25d366 !important; }
.front-social .soc.pin { background: #e60023 !important; }
.front-social .soc.tg { background: #0088cc !important; }
.front-social .soc.em { background: #666 !important; }
.front-social .soc.more { background: #e74c3c !important; }

/* ========== Static Pages (DMCA / FAQs / Contact) ========== */
.page-content {
  min-height: 60vh;
  padding: 30px 16px 50px;
  background: #0b0e1a;
}
.page-inner {
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
  font-size: 15px;
  line-height: 1.65;
}
.page-inner h1 {
  color: #00aaff;
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}
.page-inner h2 {
  color: #fff;
  font-size: 18px;
  margin: 22px 0 8px;
  font-weight: 600;
}
.page-inner p { margin: 0 0 12px; }
.page-inner ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}
.page-inner li { margin-bottom: 6px; }
.faq-item {
  background: #111;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.contact-box {
  background: #0b0e1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}
.contact-box .email a {
  color: #00aaff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.contact-box .email a:hover { text-decoration: underline; }

.page-content .breadcrumb {
  max-width: none;
  margin: 0 0 20px;
  padding: 10px 0;
  font-size: 14px;
  color: #ccc;
  text-align: left;
}
.page-inner h1 {
  margin-top: 0;
}
.page-inner a {
  color: #00aaff;
  text-decoration: none;
}
.page-inner a:hover {
  text-decoration: underline;
}

/* Footer logo center on mobile */
@media (max-width: 768px) {
  .footer-logo-col {
    text-align: center !important;
    width: 100% !important;
  }
  .footer-logo-img {
    display: flex;
    justify-content: center;
  }
  .footer-logo-img img {
    margin: 0 auto;
  }
  .copy {
    text-align: center;
  }
}

/* ========== Footer Layout Fix ========== */
.footer-logo-col {
  text-align: center;
  flex: 0 0 160px;
}
.footer-logo-img {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-logo-img img {
  height: 42px !important;
  width: auto;
}
.copy {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo-col {
    width: 100%;
    flex: none;
    margin-bottom: 16px;
  }
  .footer-logo-img {
    justify-content: center;
  }
  .copy {
    white-space: normal;
    text-align: center;
  }
  .footer-text-col,
  .footer-box-col {
    width: 100%;
    text-align: center;
  }
  .footer-nav {
    justify-content: center;
  }
}



/* Force proper multi-column grid for posts */
.movie-grid,
#trending-grid,
#latest-movies,
#latest-tv,
#movies-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.movie-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
}
.poster-wrap {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 150% !important;
  background: #1a1a1a !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.poster-wrap img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.section {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 16px !important;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  .movie-grid,
  #trending-grid,
  #latest-movies,
  #latest-tv,
  #movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* Global post card style matching home page (b4.png look) */
.movie-card {
  position: relative !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #111 !important;
}
.movie-card .poster-wrap {
  position: relative !important;
  padding-bottom: 150% !important;
}
.movie-card .poster-wrap img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.movie-card .hd-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  background: rgba(0,0,0,0.75) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 7px !important;
  border-radius: 4px !important;
  z-index: 2 !important;
}
.movie-card .card-info {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(transparent, rgba(0,0,0,0.92)) !important;
  padding: 40px 10px 12px !important;
  color: #fff !important;
  opacity: 1 !important;
}
.movie-card .card-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
.movie-card .card-meta span,
.movie-card .card-meta .type {
  background: #007AFF !important;
  color: #000 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
}

/* Force 8 posts per row on all pages (desktop) */
@media (min-width: 1200px) {
  .movie-grid,  #trending-grid, #latest-movies, #latest-tv {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}


/* Global color theme matching /home page */
:root {
  --bg: #121315;
  --accent: #007AFF;
  --accent-hover: #00c8ff;
  --text: #ffffff;
  --text-sec: #aaaaaa;
  --card-bg: #1a1a1a;
}
body {
  background: #121315 !important;
  color: #fff !important;
}
a { color: #fff; }
a:hover { color: #007AFF; }
.btn-watch, .watch-btn, .toggle-btn.active {
  background: #007AFF !important;
  color: #000;
}
.page-num.active, .filter-btn {
  background: #007AFF !important;
  color: #000 !important;
}
.hd-badge { background: rgba(0,0,0,0.75) !important; }
.card-meta span, .card-meta .type {
  background: #007AFF !important;
  color: #000 !important;
}

/* Theme for detail and watch pages */
.movie-detail, .detail-page, .watch-page, .player-container, .player-area {
  background: #121315 !important;
  color: #fff !important;
}
.server-btn, .watch-btn, .btn-primary {
  background: #007AFF !important;
  color: #000 !important;
  border: none !important;
}
.meta-grid, .info-section, .related-section {
  background: transparent !important;
}


/* Watch page improved layout */
.notice-bar {
  background: #00aaff;
  color: #000;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.player-box {
  max-width: 1100px;
  margin: 16px auto;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.controls {
  padding: 10px 16px;
  background: #1a1a1a;
  display: flex;
  gap: 12px;
}
.controls button {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
}
.servers-wrap {
  max-width: 1100px;
  margin: 10px auto 20px;
  text-align: center;
}
.servers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.server-btn {
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.server-btn.active {
  background: #00aaff;
  color: #000;
}
.info-wrap {
  max-width: 1100px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  background: #111;
  padding: 16px;
  border-radius: 8px;
}
.info-poster img {
  width: 180px;
  border-radius: 8px;
}
.info-details {
  flex: 1;
}
.info-details h1 {
  margin: 0 0 8px;
  font-size: 22px;
}
.breadcrumb {
  max-width: 1100px;
  margin: 10px auto;
  padding: 8px 0;
  font-size: 14px;
  color: #aaa;
  text-align: left;
}
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #00aaff; }


/* Desktop player size fix */
@media (min-width: 1024px) {
  .player-box { max-width: 1280px !important; }
  .player-frame { min-height: 520px; }
  .info-wrap { max-width: 1280px; }
  .servers-wrap { max-width: 1280px; }
}
.info-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.info-poster img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.breadcrumb a {
  color: #aaa;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #00aaff;
  text-decoration: underline;
}


/* Breadcrumb style like image */
.breadcrumb {
  font-size: 14px;
  color: #ccc;
  padding: 10px 16px;
}
.bc-sep {
  margin: 0 6px;
  color: #666;
}
.breadcrumb a {
  color: #aaa;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #00aaff;
}

/* Mobile friendly watch page */
@media (max-width: 768px) {
  .player-box {
    max-width: 100% !important;
    margin: 8px 0;
    border-radius: 0;
  }
  .player-frame {
    min-height: 220px;
    aspect-ratio: 16/9;
  }
  .servers {
    justify-content: center;
    gap: 6px;
  }
  .server-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .info-wrap {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .info-poster img {
    width: 140px;
    margin: 0 auto;
    display: block;
  }
  .breadcrumb {
    font-size: 13px;
    padding: 8px 12px;
  }
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 8px;
  }
  .notice-bar {
    font-size: 13px;
    padding: 6px 10px;
  }
}


/* Clean breadcrumb spacing */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 14px;
  color: #ccc;
  padding: 12px 16px;
}
.breadcrumb a,
.breadcrumb span {
  margin: 0;
}
.bc-sep {
  margin: 0 8px !important;
  color: #888;
  font-size: 16px;
}
.breadcrumb a {
  color: #bbb;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #00aaff;
  text-decoration: underline;
}


/* ===== Watch Page - Desktop + Mobile Optimized ===== */
.player-box {
  max-width: 1280px;
  margin: 16px auto;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  min-height: 480px;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.servers-wrap {
  max-width: 1280px;
  margin: 12px auto;
  padding: 0 12px;
  text-align: center;
}
.servers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.server-btn {
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.server-btn.active {
  background: #00aaff;
  color: #000;
}

/* Episodes & Season */
.season-select {
  max-width: 1280px;
  margin: 16px auto;
  padding: 0 16px;
}
.episodes-grid {
  max-width: 1280px;
  margin: 10px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.ep-btn {
  background: #1a1a1a;
  color: #ddd;
  border: 1px solid #333;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.ep-btn.active {
  background: #00aaff;
  color: #000;
  border-color: #00aaff;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .player-box {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .player-frame {
    min-height: 240px;
    aspect-ratio: 16/9;
  }
  .servers {
    gap: 6px;
    padding: 0 8px;
  }
  .server-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 10px;
  }
  .ep-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .season-select {
    padding: 0 10px;
  }
  .info-wrap {
    flex-direction: column;
    padding: 12px;
  }
  .info-poster img {
    width: 150px;
    margin: 0 auto;
    display: block;
  }
  .breadcrumb {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (min-width: 1024px) {
  .player-frame {
    min-height: 560px;
  }
}


/* ===== Final Watch Page Polish ===== */
.player-box {
  max-width: 1400px !important;
  margin: 12px auto;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
}
.player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  min-height: 620px;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Episode buttons - more visible */
.ep-btn {
  background: #222 !important;
  color: #eee !important;
  border: 1px solid #444 !important;
  padding: 12px 14px !important;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.ep-btn:hover {
  background: #00aaff !important;
  border-color: #00aaff !important;
  color: #fff !important;
}
.ep-btn.active {
  background: #00aaff !important;
  color: #000 !important;
  border-color: #00aaff !important;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .player-box {
    max-width: 100% !important;
    margin: 0;
    border-radius: 0;
  }
  .player-frame {
    min-height: 260px;
    aspect-ratio: 16/9;
  }
  .episodes-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    padding: 0 8px;
  }
  .ep-btn {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }
  .servers {
    gap: 5px;
    padding: 0 6px;
  }
  .server-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Desktop larger */
@media (min-width: 1200px) {
  .player-frame {
    min-height: 680px;
  }
}


/* ===== Watch + Detail Pages - Match Home Theme ===== */
body {
  background: #121315 !important;
}
.player-box {
  max-width: 1400px !important;
  margin: 16px auto;
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  min-height: 640px;
}
.notice-bar {
  background: #00aaff;
  color: #000;
  font-weight: 500;
}
.server-btn {
  background: #1a1a1a;
  color: #ddd;
  border: 1px solid #333;
}
.server-btn.active {
  background: #00aaff;
  color: #000;
  border-color: #00aaff;
}
.ep-btn {
  background: #1a1a1a !important;
  color: #ddd !important;
  border: 1px solid #333 !important;
}
.ep-btn.active {
  background: #00aaff !important;
  color: #000 !important;
  border-color: #00aaff !important;
}
.info-wrap {
  background: #161616;
  border-radius: 8px;
  padding: 16px;
}
.breadcrumb {
  background: transparent;
  color: #aaa;
}

/* Mobile */
@media (max-width: 768px) {
  .player-box {
    max-width: 100% !important;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .player-frame {
    min-height: 240px;
  }
  .info-wrap {
    background: transparent;
    padding: 12px;
  }
  .episodes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (min-width: 1200px) {
  .player-frame {
    min-height: 700px;
  }
}


/* ========== FORCE WATCH PAGE FIXES ========== */
.player-box {
  max-width: 1400px !important;
  width: 95% !important;
  margin: 20px auto !important;
  background: #0a0a0a !important;
  border-radius: 8px !important;
}
.player-frame {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  min-height: 680px !important;
  background: #000 !important;
}
.player-frame iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 680px !important;
}

@media (max-width: 768px) {
  .player-box {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .player-frame,
  .player-frame iframe {
    min-height: 250px !important;
  }
  .episodes-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

body {
  background: #121315 !important;
}
.ep-btn {
  background: #007AFF !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}
.ep-btn.active {
  background: #00aaff !important;
  color: #000 !important;
}


/* Mobile details - side by side like image */
@media (max-width: 768px) {
  .info-wrap {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 12px !important;
    background: #161616 !important;
    border-radius: 8px;
    margin: 12px 8px !important;
  }
  .info-poster {
    width: 110px !important;
    flex-shrink: 0;
  }
  .info-poster img {
    width: 100% !important;
    border-radius: 6px;
  }
  .info-details h1 {
    font-size: 18px !important;
    margin: 0 0 6px !important;
  }
  .info-details p, .synopsis {
    font-size: 13px !important;
    line-height: 1.4;
    color: #ccc;
  }
  .info-details div {
    font-size: 12px !important;
    color: #aaa;
  }
}

/* Blue accent instead of yellow */
.notice-bar {
  background: #00aaff !important;
  color: #ddd !important;
}
.server-btn.active, .ep-btn.active {
  background: #00aaff !important;
  color: #fff !important;
  border-color: #00aaff !important;
}

/* 6-column grid and sidebar layout matching r1.png */
.lay{display:grid;grid-template-columns:1fr 260px;gap:22px}
.g{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.c{background:#12162b;border-radius:8px;overflow:hidden;text-decoration:none;color:#fff;display:block;position:relative}
.c:hover{transform:translateY(-3px);transition:.15s}
.c img{width:100%;height:260px;object-fit:cover;display:block}
.cb{padding:8px 8px 10px}
.ct{font-size:.8rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}
.cs{font-size:.7rem;color:#888;display:flex;justify-content:space-between}
.yr{background:#007AFF;color:#fff;font-size:.65rem;padding:1px 5px;border-radius:3px}
.play{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.6);width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem}
.side .bx{background:#12162b;border-radius:8px;padding:12px;margin-bottom:14px}
.side h3{font-size:.85rem;margin:0 0 10px;text-transform:uppercase;letter-spacing:.3px;background:#1a3a6e;padding:6px 10px;border-radius:4px;text-align:center}
.yg{display:flex;flex-wrap:wrap;gap:5px}
.yg button{background:#1a2038;border:none;color:#ccc;padding:4px 8px;border-radius:3px;font-size:.75rem;cursor:pointer}
.yg button:hover{background:#007AFF;color:#fff}
.rec{display:flex;gap:8px;margin-bottom:10px;text-decoration:none;color:#fff}
.rec img{width:42px;height:60px;object-fit:cover;border-radius:3px}
.rec div{font-size:.78rem}
.st{display:flex;flex-wrap:wrap;gap:5px}
.st span{background:#1a2038;padding:4px 7px;border-radius:3px;font-size:.65rem;color:#aaa}
.stars{color:#f5c518;letter-spacing:1px}
@media(max-width:1200px){.g{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.lay{grid-template-columns:1fr}.g{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.g{grid-template-columns:repeat(2,1fr)!important}.c img{height:220px}.lay{grid-template-columns:1fr}}

/* Force 6 columns on listing pages like movies, genres, etc. */
@media (min-width: 1200px) {
  .g, #movies-grid, #series-grid, #genre-grid, #listing-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Mobile styles matching home.html */
@media(max-width:1200px){
  .g, .g4, #movies-grid, #series-grid, #genre-grid, #listing-grid { grid-template-columns:repeat(4,1fr) !important; }
}
@media(max-width:900px){
  .lay { grid-template-columns:1fr !important; }
  .g, .g4, #movies-grid, #series-grid, #genre-grid, #listing-grid { grid-template-columns:repeat(3,1fr) !important; }
  .side { width:100% !important; margin:20px 0 !important; }
}
@media(max-width:600px){
  .g, .g4, #movies-grid, #series-grid, #genre-grid, #listing-grid, #trendingGrid { grid-template-columns:repeat(2,1fr) !important; }
  .c img { height:220px !important; }
  .lay { grid-template-columns:1fr !important; }
}

/* Year/Studio Modal - matching home.html */
#ym{display:none;position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:9999;align-items:center;justify-content:center;padding:16px}
#ym.open{display:flex}
.mb{background:#0f1324;border-radius:10px;max-width:960px;width:100%;max-height:82vh;overflow:auto;padding:16px}
.mh{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cl{background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer}

/* Mobile menu fix - apply to all pages */
#menu-display .nav,
#menu-display .menu-display-list,
#menu-display .sub-menu {
  display: block !important;
}
#menu-display .sub-menu .nav-item {
  display: inline-block !important;
}
@media (max-width: 991px) {
  .navbar-collapse, #menu-display {
    display: none;
  }
  .navbar-collapse.show, #menu-display.show {
    display: block !important;
  }
}

/* Consistent mobile poster size across all pages */
@media screen and (max-width: 768px) {
  .g, .g4, #trendingGrid, #movies-grid, #genre-grid, #search-grid, .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .c img, .sim-card img, .movie-card img {
    height: 260px !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  .c, .sim-card {
    min-width: 0 !important;
  }
}
@media screen and (max-width: 480px) {
  .c img, .sim-card img {
    height: 260px !important;
  }
}
