/* ========== MOVIELAND - Core Styles ========== */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-dim: #8b8b9e;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --radius: 12px;
  --font: 'Inter', -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo i { margin-right: 6px; }

/* ========== SEARCH ========== */
.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 16px 10px 40px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-dim); }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
  z-index: 200;
  display: none;
}

.search-results:has(.search-item), .search-results:has(.search-empty) { display: block; }

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background 0.2s;
}

.search-item:hover { background: rgba(255, 255, 255, 0.05); }
.search-item img { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; }
.search-item strong { display: block; font-size: 0.9rem; }
.search-item span { font-size: 0.75rem; color: var(--text-dim); }
.search-empty { padding: 16px; text-align: center; color: var(--text-dim); }

/* ========== HERO SLIDER ========== */
#hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  margin-top: 56px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

/* Poster image for mobile (hidden on desktop) */
.hero-poster {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 30px;
  width: 130px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 60%, transparent 100%),
              linear-gradient(to top, rgba(10,10,15,1) 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  max-width: 550px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.3s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
