/*
Theme Name: Next Cinema Theme
Theme URI: https://local.dev/next-cinema-theme
Author: Local Build
Description: Lightweight movie/video theme designed to pair with Next Player plugin.
Version: 0.1.0
Text Domain: next-cinema-theme
*/

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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1f2630;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --accent: #58a6ff;
  --border: #2d333b;
}

body[data-scheme="dark-2026"] {
  --bg: #0b0f14;
  --surface: #141a22;
  --surface-2: #1b2430;
  --text: #f2f7ff;
  --muted: #96a6ba;
  --accent: #7c9dff;
  --border: #273243;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  line-height: 1.5;
}

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

.site-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
}

.site-title a {
  color: var(--text);
}

.switch-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.switch-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.switch-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.main-content {
  padding: 1.2rem 0 2rem;
}

.layout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.layout-title {
  margin: 0;
  font-size: 1.2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

body[data-layout="list"] .cards-grid {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(120deg, #2a3a4d, #122033);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 0.75rem;
}

.card__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.card__meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.card__actors {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0.9;
}

body[data-layout="list"] .card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
}

body[data-layout="list"] .card__thumb {
  border-right: 1px solid var(--border);
}

.single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}

.single-main,
.single-side {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem;
}

.single-side .cards-grid {
  grid-template-columns: 1fr;
}

.single-title {
  margin: 0 0 0.5rem;
}

.single-content {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem 0 2rem;
}

@media (max-width: 980px) {
  .single-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-layout="list"] .card {
    grid-template-columns: 1fr;
  }
}
