:root {
  --bg: #0a0a12;
  --surface: #12121e;
  --surface2: #1a1a28;
  --border: #252535;
  --text: #e8e8f0;
  --text2: #8888a0;
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.nav-logo {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.nav-links-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; flex-direction: column; gap: 14px; z-index: 99; }
.nav-links-mobile.active { display: flex; }
.nav-links-mobile a, .nav-links-mobile button { font-size: 15px; font-weight: 500; color: var(--text2); text-align: left; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.card-poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; }
.card-info { padding: 12px; }
.card-title {
  font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text2); }
.card-rating { display: flex; align-items: center; gap: 3px; color: #ffc107; font-weight: 600; }

.hero { position: relative; height: 450px; overflow: hidden; margin-bottom: 40px; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 60%); }
.hero-content {
  position: absolute; bottom: 40px; left: 50%; right: auto;
  transform: translateX(-50%);
  max-width: 600px; width: calc(100% - 80px);
  text-align: center;
}
.hero-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hero-desc {
  font-size: 15px; color: var(--text2); margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.section { margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 22px; font-weight: 700; }
.section-link { font-size: 13px; color: var(--accent2); font-weight: 500; }

.ad-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin: 20px 0; border: 1px solid var(--border); }
.ad-banner img { width: 100%; display: block; }
.ad-label {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7); color: var(--text2);
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}

.ad-interstitial {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.ad-interstitial.active { display: flex; }
.ad-interstitial-inner {
  position: relative; max-width: 500px; width: 90%;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.ad-interstitial-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.8); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 1; cursor: pointer;
}
.ad-interstitial-label {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7); color: var(--text2);
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase;
}

.detail-header { display: flex; gap: 30px; margin-bottom: 30px; }
.detail-poster { width: 250px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.detail-info { flex: 1; }
.detail-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text2); }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.genre-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
  background: var(--accent-glow); color: var(--accent2);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.detail-desc { font-size: 15px; color: var(--text2); line-height: 1.7; }
.detail-cast {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-top: 20px;
}
.cast-card { background: var(--surface2); border-radius: 8px; padding: 10px; text-align: center; font-size: 13px; }

.player-wrapper { margin: 24px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.player-container { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; cursor: pointer; }
.player-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) blur(1px); transition: filter 0.3s; }
.player-container:hover .player-backdrop { filter: brightness(0.35) blur(0px); }
.player-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.4) 100%); }
.player-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; pointer-events: none; }
.player-progress { height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-bottom: 10px; }
.player-progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; }
.player-controls-row { display: flex; justify-content: space-between; align-items: center; }
.player-time { font-size: 12px; color: rgba(255,255,255,0.6); font-family: monospace; }
.player-quality { font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 4px; color: rgba(255,255,255,0.8); }
.player-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; z-index: 2;
}
.player-play-circle {
  width: 80px; height: 80px; border-radius: 50%; background: rgba(99,102,241,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 0 40px rgba(99,102,241,0.4);
}
.player-play-circle svg { margin-left: 4px; }
.player-container:hover .player-play-circle { transform: scale(1.1); background: rgba(99,102,241,1); box-shadow: 0 0 60px rgba(99,102,241,0.6); }
.player-play-text { font-size: 15px; font-weight: 600; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.player-ad-label {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.5);
  font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px; z-index: 3;
}

.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--surface); border-top: 1px solid var(--border); padding: 16px 20px; }
.cookie-banner.active { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-text { font-size: 13px; color: var(--text2); flex: 1; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn { padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.cookie-accept { background: var(--accent); color: white; }
.cookie-reject { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }

.footer { border-top: 1px solid var(--border); padding: 40px 20px; margin-top: 60px; text-align: center; color: var(--text2); font-size: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-links a { color: var(--text2); }
.footer-links a:hover { color: var(--text); }
.footer .tmdb-credit { margin-top: 12px; font-size: 11px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface);
}
.pagination .active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination a:hover { background: var(--surface2); }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.genre-card {
  padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); text-align: center; font-weight: 600;
  transition: transform 0.2s, border-color 0.2s;
}
.genre-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.search-form { max-width: 600px; margin: 0 auto 30px; display: flex; gap: 10px; }
.search-input {
  flex: 1; padding: 14px 20px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 16px; outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
  padding: 14px 28px; border-radius: 10px; background: var(--accent);
  color: white; font-weight: 600; font-size: 14px; cursor: pointer;
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .hero { height: 300px; }
  .hero-title { font-size: 24px; }
  .hero-content { left: 20px; right: 20px; bottom: 20px; transform: none; }
  .detail-header { flex-direction: column; align-items: center; }
  .detail-poster { width: 180px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .player-play-circle { width: 60px; height: 60px; }
  .player-play-circle svg { width: 36px; height: 36px; }
  .player-play-text { font-size: 13px; }
  .search-form { flex-direction: column; }
}

.seo-text { margin-top: 20px; padding: 12px 0; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.06); }
.seo-text p { max-width: 800px; margin: 0 auto; }
