/*
Theme Name: Movie Aura
Theme URI: https://example.com/movie-aura
Author: Movie Aura
Description: Tema WordPress untuk situs streaming film (drama China, K-Drama, TV Series) dengan integrasi Bunny Stream dan slot iklan siap pakai.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: movie-aura
*/

/* ============ RESET & BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0d13;
  --bg-elevated: #151822;
  --bg-card: #1b1f2b;
  --border: #262b38;
  --text: #e9eaef;
  --text-muted: #9297a8;
  --accent: #ff5a3c;
  --accent-hover: #ff7a5c;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER / NAVBAR ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 19, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.site-logo span { color: var(--accent); }

.primary-menu {
  display: flex;
  gap: 4px;
}

.primary-menu li a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
  color: var(--text);
  background: var(--bg-elevated);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 160px;
}

.header-search button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ============ MOVIE GRID ============ */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 18px;
  padding-left: 4px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.movie-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .15s ease, border-color .15s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.movie-card .poster {
  aspect-ratio: 2 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.movie-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card .card-body {
  padding: 10px 12px 14px;
}

.movie-card .card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .card-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: rgba(255, 90, 60, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

/* ============ SINGLE MOVIE PAGE ============ */
.single-movie {
  padding: 32px 0 60px;
}

.movie-header {
  margin-bottom: 18px;
}

.movie-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.movie-meta a {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}

.movie-meta a:hover { color: var(--accent); border-color: var(--accent); }

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.movie-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
}

.movie-description p { margin-bottom: 14px; }

/* ============ AD SLOTS ============ */
.ad-slot {
  margin: 24px 0;
  text-align: center;
  min-height: 0;
}

.ad-slot:empty { display: none; }

.ad-slot-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ============ SIDEBAR ============ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.content-layout.has-sidebar {
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: sticky;
  top: 84px;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 50px;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .site-logo {
  justify-content: center;
  margin-bottom: 12px;
  display: flex;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .content-layout.has-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 720px) {
  .primary-menu, .header-search { display: none; }
  .nav-toggle { display: block; }
  .header-inner.menu-open .primary-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
}
