/*
Theme Name: REEL/AFTER
Theme URI: https://example.com/reel-after
Author: REEL/AFTER
Description: A cinematic WordPress theme for publishing movie trailers and editorial reviews.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: reel-after
*/

:root {
  --ink: #0d1521;
  --ink-soft: #121c2a;
  --panel: #162131;
  --line: rgba(255, 255, 255, .12);
  --paper: #f8f3e8;
  --muted: rgba(248, 243, 232, .56);
  --amber: #f3b54a;
  --teal: #68d7d2;
  --coral: #e4668c;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}
body, button, input, select, textarea { font-family: "Manrope", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.site-shell { min-height: 100vh; overflow: hidden; background: var(--ink); }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.mono { font-family: "DM Mono", ui-monospace, monospace; }
.display { font-family: "Space Grotesk", system-ui, sans-serif; }
.eyebrow {
  color: var(--amber); font: 600 10px/1.2 "DM Mono", monospace;
  letter-spacing: .17em; text-transform: uppercase;
}

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20;
}
.header-inner {
  display: flex; height: 76px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; width: 36px; height: 36px; place-items: center; border-radius: 999px;
  background: var(--amber); color: var(--ink); box-shadow: 0 0 0 5px rgba(243,181,74,.08);
  font-size: 16px; font-weight: 900; transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: rotate(12deg); }
.brand-name { font: 700 17px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand-name small { display: inline-block; margin-left: 4px; color: var(--amber); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a, .header-upload, .menu-toggle {
  font: 700 11px/1 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav a { color: rgba(248,243,232,.64); transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus { color: var(--amber); }
.header-upload {
  border: 0; border-radius: 999px; background: var(--amber); color: var(--ink);
  padding: 13px 18px; transition: transform .2s ease;
}
.header-upload:hover { transform: translateY(-2px); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--paper); padding: 11px 13px; }
.mobile-nav { display: none; padding: 18px 0 22px; border-bottom: 1px solid var(--line); background: rgba(18,28,42,.97); }
.mobile-nav.is-open { display: grid; gap: 16px; }
.mobile-nav a { color: var(--paper); font-size: 14px; font-weight: 700; }

.hero {
  position: relative; min-height: 690px; padding-top: 76px; border-bottom: 1px solid var(--line); isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle at 76% 35%, rgba(243,181,74,.22), transparent 26%),
    linear-gradient(90deg, var(--ink) 0%, rgba(13,21,33,.9) 28%, rgba(13,21,33,.28) 67%, var(--ink) 100%);
}
.hero-art {
  position: absolute; inset: 0 0 0 auto; z-index: -1; width: 65%;
  background-position: center; background-size: cover; opacity: .64; mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 27%, #000 78%, transparent);
}
.hero-inner { display: grid; min-height: 614px; align-items: center; gap: 50px; padding: 64px 0 56px; grid-template-columns: 1fr 390px; }
.hero-copy { max-width: 680px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(243,181,74,.08); }
.hero h1 { margin: 28px 0 0; font: 700 clamp(58px, 9vw, 134px)/.84 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.hero h1 .accent { color: var(--amber); }
.hero h1 .teal { color: var(--teal); }
.hero-description { max-width: 510px; margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-primary, .button-secondary {
  display: inline-flex; height: 48px; align-items: center; gap: 10px; border-radius: 999px;
  padding: 0 21px; font: 800 11px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
}
.button-primary { border: 0; background: var(--amber); color: var(--ink); }
.button-secondary { border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(248,243,232,.78); }
.button-primary:hover, .button-secondary:hover { transform: translateY(-2px); }
.hero-card {
  position: relative; width: 250px; height: 360px; justify-self: end; overflow: hidden; transform: rotate(5deg);
  border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: var(--panel);
  box-shadow: 0 24px 55px rgba(0,0,0,.45); transition: transform .45s ease;
}
.hero-card:hover { transform: rotate(2deg) translateY(-5px); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), transparent 64%, rgba(243,181,74,.1)); }
.hero-card-copy { position: absolute; z-index: 1; right: 20px; bottom: 22px; left: 20px; }
.hero-card-copy small { color: var(--amber); font: 10px/1.2 "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero-card-copy strong { display: block; margin-top: 9px; font: 700 38px/.86 "Space Grotesk", sans-serif; text-transform: uppercase; }
.hero-footer { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--line); color: rgba(248,243,232,.32); font: 10px/1 "DM Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }

.section { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section h2 { margin: 12px 0 0; font: 700 clamp(38px, 5vw, 68px)/.95 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.section h2 span { color: rgba(248,243,232,.34); }
.search-form { position: relative; width: min(100%, 385px); }
.search-form input {
  width: 100%; height: 48px; padding: 0 17px 0 44px; border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; outline: 0; background: var(--panel); color: var(--paper);
}
.search-form input:focus { border-color: var(--amber); }
.search-icon { position: absolute; top: 50%; left: 16px; color: rgba(255,255,255,.36); transform: translateY(-50%); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 28px 0; }
.filter {
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: transparent;
  color: rgba(248,243,232,.55); padding: 10px 16px; font-size: 12px; font-weight: 700;
}
.filter:hover, .filter.is-active { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.reel-card { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: #131c2a; transition: transform .3s ease, border-color .3s ease; }
.reel-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.3); }
.reel-card-media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; }
.reel-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: .84; transition: transform .35s ease; }
.reel-card:hover .reel-card-media img { transform: scale(1.04); }
.reel-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), transparent 58%); }
.reel-card-badges { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { border-radius: 999px; background: rgba(13,21,33,.78); padding: 5px 9px; color: rgba(255,255,255,.8); font: 10px/1 "DM Mono", monospace; }
.reel-card-play { position: absolute; z-index: 2; top: 50%; left: 16px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); opacity: 0; transform: translateY(-50%) scale(.9); transition: opacity .25s ease, transform .25s ease; }
.reel-card:hover .reel-card-play, .reel-card:focus-within .reel-card-play { opacity: 1; transform: translateY(-50%) scale(1); }
.reel-card-copy { position: absolute; z-index: 1; right: 14px; bottom: 14px; left: 14px; }
.reel-card-meta { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.5); font: 10px/1.2 "DM Mono", monospace; }
.reel-card-meta.review { color: var(--amber); }
.reel-card h3 { margin: 6px 0 0; color: var(--paper); font: 700 21px/1.05 "Space Grotesk", sans-serif; }
.reel-card-author { margin: 5px 0 0; color: rgba(255,255,255,.5); font-size: 11px; }
.empty-state { padding: 72px 20px; border: 1px dashed rgba(255,255,255,.15); border-radius: 12px; color: rgba(255,255,255,.55); text-align: center; }

.feature-band { border-block: 1px solid var(--line); background: var(--ink-soft); }
.feature-band-inner { display: grid; align-items: center; gap: 48px; padding: 84px 0; grid-template-columns: .72fr 1.28fr; }
.feature-band h2 { max-width: 570px; margin: 15px 0 0; font: 700 clamp(42px, 6vw, 78px)/.95 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.feature-band h2 span { color: var(--teal); }
.feature-band p { max-width: 410px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.feature-band-link { display: inline-flex; gap: 10px; margin-top: 25px; color: var(--amber); font: 800 11px/1 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.feature-steps { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.feature-step { padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: var(--ink); }
.feature-step:first-child { transform: translateY(25px); }
.feature-step-number { color: var(--amber); font: 38px/1 "DM Mono", monospace; }
.feature-step:nth-child(2) .feature-step-number { color: var(--teal); }
.feature-step h3 { margin: 46px 0 0; font: 700 22px/1.05 "Space Grotesk", sans-serif; }
.feature-step p { margin: 10px 0 0; }
.genre-grid { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
.genre-room { position: relative; min-height: 170px; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #131e2d; }
.genre-room::before { content: ""; position: absolute; top: -40px; right: -20px; width: 145px; height: 145px; border-radius: 50%; background: var(--room-color); opacity: .2; filter: blur(25px); }
.genre-room small, .genre-room strong { position: relative; }
.genre-room small { color: var(--room-color); font: 10px/1 "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.genre-room strong { display: block; margin-top: 70px; font: 700 30px/1 "Space Grotesk", sans-serif; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.3); font-size: 11px; }

.video-modal[hidden] { display: none; }
.video-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,10,16,.92); backdrop-filter: blur(12px); }
.video-modal-dialog { position: relative; width: min(100%, 920px); overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: #121b28; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.video-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.video-modal-title { font: 700 15px/1 "Space Grotesk", sans-serif; }
.video-modal-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); }
.video-modal iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.video-modal-description { margin: 0; padding: 17px 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .site-nav, .header-upload { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { min-height: 760px; }
  .hero-art { width: 100%; opacity: .42; }
  .hero-inner { display: block; padding-top: 100px; }
  .hero h1 { font-size: clamp(58px, 16vw, 94px); }
  .hero-card { display: none; }
  .section { padding: 74px 0; }
  .section-heading { display: block; }
  .search-form { width: 100%; margin-top: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-band-inner { display: block; padding: 70px 0; }
  .feature-steps { margin-top: 35px; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { display: grid; }
}
@media (max-width: 420px) {
  .hero-footer { padding-inline: 16px; }
  .feature-steps { grid-template-columns: 1fr; }
  .feature-step:first-child { transform: none; }
}