/*
Theme Name: MovieElite Pro
Theme URI: https://github.com/codeoba/elite-movie-theme
Author: DeepMind Antigravity AI
Author URI: https://google.com
Description: Elite-Level WordPress Theme for Movies, TV Shows, Asian Dramas, K-Dramas & C-Dramas with automated TMDb/IMDb bulk importer tool, multi-source video embed generator (4+ servers), embed domain manager, draft protection, and customizable homepage blocks.
Version: 1.0.0
Text Domain: movie-elite
License: GNU General Public License v2 or later
*/

:root {
  --bg-primary: #0b0d14;
  --bg-secondary: #131722;
  --bg-card: #191e2d;
  --bg-card-hover: #22293d;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-magenta: #ff0055;
  --accent-gold: #ffb703;
  --accent-green: #00ff88;
  --text-main: #f0f3f8;
  --text-muted: #8e9bb0;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(19, 23, 34, 0.88);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.site-logo span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-logo .movie-pop-icon {
  color: var(--accent-magenta);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-magenta)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 15px var(--accent-magenta)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-magenta)); }
}

.nav-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 12px 20px 12px 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.nav-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav li.active a {
  color: var(--accent-cyan);
}

/* Hero Slider */
.hero-slider-section {
  padding: 25px 0 35px;
}

.slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  background: var(--bg-secondary);
  min-height: 460px;
}

.slide-item {
  display: none;
  position: relative;
  width: 100%;
  min-height: 460px;
  background-size: cover;
  background-position: center top;
}

.slide-item.active {
  display: flex;
  align-items: flex-end;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b0d14 0%, rgba(11, 13, 20, 0.65) 50%, rgba(11, 13, 20, 0.2) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 45px;
  max-width: 700px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid var(--accent-magenta);
  color: #ff3377;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.slide-meta .imdb-pill {
  background: var(--accent-gold);
  color: #000;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-watch-slide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
  transition: var(--transition);
}

.btn-watch-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.6);
  color: #000;
}

.slider-controls {
  position: absolute;
  bottom: 25px;
  right: 35px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.btn-slide-prev, .btn-slide-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-slide-prev:hover, .btn-slide-next:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* Alphabet Filter Bar */
.alphabet-filter-section {
  padding: 10px 0 35px;
}

.alphabet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.alphabet-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

.alphabet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.alphabet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.alphabet-btn:hover,
.alphabet-btn.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* Section Blocks */
.movie-section-block {
  margin-bottom: 50px;
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.block-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.block-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.view-all-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all-btn:hover {
  color: var(--accent-cyan);
}

/* Movies Grid Layout */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.movie-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-poster {
  position: relative;
  width: 100%;
  padding-top: 145%; /* 2:3 Poster Ratio */
  background-color: #0d1017;
  overflow: hidden;
}

.card-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card:hover .card-poster img {
  transform: scale(1.08);
}

.card-quality-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.card-imdb-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  background: var(--accent-gold);
  color: #000;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .card-play-overlay {
  opacity: 1;
}

.play-circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
  transform: scale(0.8);
  transition: var(--transition);
}

.movie-card:hover .play-circle-btn {
  transform: scale(1);
}

.card-details {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-genre {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Single Movie Player & Tabs */
.single-movie-wrapper {
  padding: 30px 0 60px;
}

.movie-player-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
}

.server-switcher-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #0d1017;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.server-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.server-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.server-tab:hover,
.server-tab.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.iframe-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.iframe-player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 45px 0 25px;
  margin-top: 60px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav-search { order: 3; max-width: 100%; }
  .slide-title { font-size: 1.6rem; }
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .slide-content { padding: 25px; }
}
