
:root{
  --ps-ink:#07070A;
  --ps-gold:#FFD78C;
  --ps-white:#fff;
  --ps-mist:rgba(255,255,255,.65);
  --ps-soft:rgba(255,255,255,.08);
  --ps-border:rgba(255,255,255,.12);
  --ps-radius:28px;
  --ps-shadow:0 20px 60px rgba(0,0,0,.45);
  --ps-shadow2:0 25px 80px rgba(0,0,0,.60);
}

html, body { height: 100%; }
body{
  margin:0;
  background:var(--ps-ink);
  color:var(--ps-white);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

/* Global cinematic backdrop (works even if theme header HTML is filtered) */
body::before{
  content:"";
  position:fixed; inset:0;
  z-index:-10;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,215,140,.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(120,180,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.20), rgba(0,0,0,.95));
}
body::after{
  content:"";
  position:fixed; inset:0;
  z-index:-9;
  opacity:.08;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* Backdrop (film-grade gradients + subtle grid + dust) */
.ps-backdrop{
  position:fixed; inset:0;
  z-index:-10;
}
.ps-backdrop::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,215,140,.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(120,180,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.20), rgba(0,0,0,.95));
}
.ps-backdrop::after{
  content:"";
  position:absolute; inset:0;
  opacity:.08;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  pointer-events:none;
}

.ps-container{ max-width:1200px; margin:0 auto; padding: 18px 16px 80px; }
.ps-card{
  position:relative;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  overflow:hidden;
}
.ps-card.ps-hover { transition: transform .25s ease; }
.ps-card.ps-hover:hover{ transform: translateY(-2px); }

.ps-film-matte{
  pointer-events:none;
  position:absolute; inset:0;
  opacity:.22;
  mix-blend-mode: overlay;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,215,140,.25), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55));
}

.ps-card-inner{ position:relative; padding: 20px; }

.ps-badge{
  display:inline-flex; align-items:center;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  border-radius:999px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.75);
}
.ps-lux-badge{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.35);
  border-radius:999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.70);
  text-transform: uppercase;
}
.ps-lux-badge .ps-dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--ps-gold);
  box-shadow: 0 0 25px rgba(255,215,140,.35);
}

.ps-title{
  font-family: Cinzel, ui-serif, Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin:0;
  background: linear-gradient(90deg, #fff, #fff, rgba(255,215,140,.92));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}

.ps-subtitle{
  margin-top:10px;
  font-size: 14px;
  color: rgba(255,255,255,.60);
  line-height: 1.65;
  max-width: 720px;
}

.ps-row{ display:grid; gap:14px; }
@media (min-width: 980px){
  .ps-row.cols-12{ grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ps-col-7{ grid-column: span 7 / span 7; }
  .ps-col-5{ grid-column: span 5 / span 5; }
  .ps-col-4{ grid-column: span 4 / span 4; }
  .ps-col-6{ grid-column: span 6 / span 6; }
  .ps-col-12{ grid-column: span 12 / span 12; }
}

.ps-nav{
  position:sticky; top:0;
  z-index:40;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
}
.ps-nav-inner{
  max-width:1200px; margin:0 auto;
  padding: 12px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.ps-brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
  color: #fff;
}
.ps-brand-mark{
  width:42px; height:42px; border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:grid; place-items:center;
  overflow:hidden;
}
.ps-brand-mark img{ width:38px; height:auto; display:block; }
.ps-brand-name{ font-weight:700; font-size: 14px; }
.ps-brand-tag{ font-size: 11px; color: rgba(255,255,255,.60); margin-top:2px; }

.ps-menu{ display:none; gap:6px; align-items:center; }
@media (min-width: 960px){ .ps-menu{ display:flex; } }

.ps-menu a{
  text-decoration:none;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid transparent;
  color: rgba(255,255,255,.70);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ps-menu a:hover{ background: rgba(255,255,255,.05); color:#fff; }
.ps-menu a.current{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color:#fff; }

.ps-actions{ display:flex; gap:10px; align-items:center; }
.ps-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}
.ps-btn:hover{ background: rgba(255,255,255,.10); }
.ps-btn.primary{
  background: #fff;
  color:#000;
  border-color: transparent;
}
.ps-btn.primary:hover{ opacity:.92; }
.ps-btn:active{ transform: translateY(1px); }

/* Gutenberg buttons can apply class to wrapper; style link consistently */
.wp-block-button.ps-btn .wp-block-button__link,
.wp-block-button.ps-btn.primary .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}
.wp-block-button.ps-btn .wp-block-button__link:hover{ background: rgba(255,255,255,.10); }
.wp-block-button.ps-btn.primary .wp-block-button__link{
  background:#fff;
  color:#000;
  border-color:transparent;
}
.wp-block-button.ps-btn.primary .wp-block-button__link:hover{ opacity:.92; }

.ps-mobile-menu{
  display:flex; flex-wrap:wrap; gap:10px;
  max-width:1200px; margin:0 auto;
  padding: 0 16px 12px;
}
@media (min-width: 960px){ .ps-mobile-menu{ display:none; } }
.ps-mobile-menu a{
  text-decoration:none;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.70);
}
.ps-mobile-menu a.current{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color:#fff; }

.ps-section-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.ps-right-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.ps-grid{ display:grid; gap:14px; }
.ps-grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 740px){
  .ps-grid.two, .ps-grid.three{ grid-template-columns: 1fr; }
}

.ps-kpi{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  border-radius: 18px;
  padding: 12px 14px;
}
.ps-kpi .k{ font-size:11px; letter-spacing:.18em; color: rgba(255,255,255,.55); text-transform:uppercase; }
.ps-kpi .v{ margin-top:6px; font-size: 14px; font-weight:800; color:#fff; }

/* KPI row (keeps non-series sections looking like premium cards) */
.ps-kpi-row{ display:grid; gap:10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px){ .ps-kpi-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px){ .ps-kpi-row{ grid-template-columns: 1fr; } }

/* Widget cards (used in About/Hero/Studio/Media pages) */
.ps-widget{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  border-radius: 18px;
  padding: 14px;
}
.ps-widget .t{ font-size:11px; letter-spacing:.18em; color: rgba(255,255,255,.55); text-transform:uppercase; }
.ps-widget .d{ margin-top:8px; font-size: 13px; color: rgba(255,255,255,.70); line-height:1.65; }

/* Lists */
.ps-list{ margin:0; padding-left: 18px; color: rgba(255,255,255,.72); }
.ps-list li{ margin: 8px 0; }

.ps-series-card{
  text-decoration:none; color:inherit;
  display:block;
}
.ps-series-card .ps-card{ height:100%; }

.ps-series-hero{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
  height: 170px;
  display:grid; place-items:center;
  position:relative;
  overflow:hidden;
}
.ps-series-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 35% 10%, rgba(255,215,140,.16), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(120,180,255,.10), transparent 60%);
}
.ps-series-hero span{ position:relative; font-weight:800; color:#fff; }

.ps-note{
  font-size: 11px; color: rgba(255,255,255,.45);
  margin-top: 10px;
}

.ps-footer{
  max-width:1200px; margin:0 auto;
  padding: 40px 16px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* Modals */
.ps-modal{
  position:fixed; inset:0;
  z-index:1000;
  display:none;
}
.ps-modal.is-open{ display:block; }
.ps-modal .overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(14px);
}
.ps-modal .panel{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow:auto;
  border-radius: 26px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.70);
  box-shadow: var(--ps-shadow2);
}
.ps-modal .panel .panel-inner{ padding: 18px; }
.ps-modal .panel .head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding: 10px 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ps-modal .close{
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight:800;
}
.ps-modal .close:hover{ background: rgba(255,255,255,.10); }

.ps-deck{
  display:grid; gap:12px;
}
.ps-deck-slide{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: 22px;
  padding: 18px;
}
.ps-deck-slide h3{
  margin:0; font-size: 18px;
  font-family: Cinzel, ui-serif, Georgia, serif;
}
.ps-deck-slide p{ margin:10px 0 0; color: rgba(255,255,255,.65); line-height:1.6; }
.ps-deck-slide ul{ margin: 12px 0 0 18px; color: rgba(255,255,255,.70); }
.ps-deck-slide li{ margin: 6px 0; }

.ps-episode{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  border-radius: 18px;
  padding: 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.ps-episode .meta{ font-size: 11px; color: rgba(255,255,255,.55); margin-top:6px; }
.ps-episode .title{ font-weight:800; }

.ps-price-grid{ display:grid; gap:10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px){ .ps-price-grid{ grid-template-columns: 1fr; } }
.ps-price{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  border-radius: 18px;
  padding: 14px;
}
.ps-price .p{ font-size: 20px; font-weight:900; }
.ps-price .t{ margin-top:6px; color: rgba(255,255,255,.70); }

/* Swipe mode (scroll-snap) */
body.ps-swipe-mode{
  scroll-snap-type: y mandatory;
}
.ps-snap{
  scroll-snap-align: start;
  padding-top: 16px;
}

/* Reveal */
.ps-reveal{ opacity:0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.ps-reveal.is-visible{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .ps-card.ps-hover:hover{ transform:none; }
  .ps-reveal{ opacity:1; transform:none; }
}


/* Gutenberg / FSE alignment */
.wp-site-blocks{min-height:100vh;}
.wp-site-blocks > .wp-block-group{margin:0;}
.wp-block-navigation .wp-block-navigation-item__content{color:rgba(255,255,255,.70);text-decoration:none;font-size:12px;padding:10px 12px;border-radius:14px;display:inline-block;}
.wp-block-navigation .wp-block-navigation-item__content:hover{background:rgba(255,255,255,.05);color:#fff;}
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);color:#fff;}
.wp-block-site-title a{color:#fff;text-decoration:none;font-weight:800;font-size:14px;}
.wp-block-site-tagline{margin-top:2px;color:rgba(255,255,255,.60);font-size:11px;}
.wp-block-buttons .wp-block-button__link{border-radius:16px;}
