/* =========================================================
   WETRIXXX FLAGSHIP — INDEX THEME (CLEAN / WHITE / GLOW)
   File: global-flagship.css
   ========================================================= */

:root{
  --bg:#ffffff;
  --panel:#f6f7f9;
  --card:#ffffff;
  --border:#e2e6ea;

  --text:#111418;
  --muted:#5b6777;

  --accent:#9E1B1B;
  --accent2:#143A6B; /* optional secondary */
  --soft: rgba(158,27,27,.12);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height:1.45;
}

/* banner */
.index-hero{
  width: 100% !important;
  display:flex;
  justify-content:center;
  background: transparent;     /* or var(--bg) */
  padding: 18px 0 12px;
  border-bottom:1px solid var(--border);
  text-align: left !important;
}
.index-banner{
  max-width:520px; 
  display: block !important;
  width: auto !important; 
  height:auto;
  justify-content:center;
  display: block !important;
  width: auto !important; 
}

.index-hero .container{
  max-width: 1280px;             /* match max-w-7xl */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* nav */
.nav-strip{
  display:flex;
  justify-content:center;
  gap:14px;
  padding:14px 12px;
  background:#fff;
  border-bottom:1px solid var(--border);
  flex-wrap:wrap;
}
.nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
  transition:all .2s ease;
}
.nav-btn:hover{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  transform:translateY(-2px);
}

/* page wrapper */
.container.mx-auto.px-4.py-12.max-w-7xl{
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 16px 44px;
}

/* section headers */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 18px 0 18px;
}
.section-title{
  margin:0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .2px;
}
.section-sub{
  margin:0;
  color:var(--muted);
  font-weight:700;
}

/* wide list */
.movie-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* wide tile */
.movie-wide{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: all .22s ease;
}
.movie-wide:hover{
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 25px 55px rgba(0,0,0,0.20),
    0 0 0 3px rgba(158,27,27,0.55),
    0 0 35px rgba(158,27,27,0.45),
    0 0 70px rgba(158,27,27,0.25);
}

/* title bar */
.movie-wide .titlebar{
  padding:14px 16px;
  background: linear-gradient(180deg, rgba(158,27,27,0.10), rgba(158,27,27,0.00));
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.movie-wide .titlebar h2{
  margin:0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}
.movie-wide .titlebar h2 a{
  color: var(--text);
  text-decoration:none;
}
.movie-wide .titlebar h2 a:hover{
  color: var(--accent);
  text-decoration:underline;
}
.movie-wide .titlebar .badge{
  flex-shrink:0;
  font-weight:900;
  font-size:.85rem;
  color: var(--accent);
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:7px 12px;
}

/* body grid */
.movie-wide .bodygrid{
  display:grid;
  grid-template-columns: 210px 1fr;
  gap:16px;
  padding:16px;
}

@media (max-width: 900px){
  .movie-wide .bodygrid{
    grid-template-columns: 1fr;
  }
}

/* cover flip */
.cover-flip{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fafafa;
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}
.cover-flip img{
  width:100%;
  display:block;
  aspect-ratio: 2 / 3;
  object-fit:cover;
}
.cover-back{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .25s ease;
}
.cover-flip.has-back:hover .cover-back{ opacity:1; }

/* meta */
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}
.meta .pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight:800;
  font-size:.9rem;
}

/* default summary */
.summary{
  margin: 10px 0 0;
  color: var(--text);
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
}

/* tabs */
.tabs{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tab-btn{
  appearance:none;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
  transition: all .18s ease;
}
.tab-btn:hover{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--soft);
}
.tab-btn.active{
  background: var(--accent);
  border-color: var(--accent);
  color:var(--text);;
}

/* panels */
.panels{
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:visible;
  background:#fff;
}
.panel{
  display:none;
  padding:12px 12px;
  background:#fff;
}
.panel.active{ display:block; }

.panel ul{
  margin: 0;
  padding-left: 18px;
}
.panel a{
  color: var(--accent);
  text-decoration:none;
  font-weight:800;
}
.panel a:hover{
  text-decoration:underline;
}
/* Titlebar CTA pill */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  text-decoration:none;
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.badge-watch{
  border-color: rgba(158,27,27,0.35);
  color: var(--accent);
}

.badge-watch:hover{
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.18),
    0 0 0 3px rgba(158,27,27,0.35),
    0 0 40px rgba(158,27,27,0.25);
}

.badge-off{
  opacity:.55;
}


/* =========================================================
   WETRIXXX FLAGSHIP – SUB-INDEX (A–Z) SKIN
   Applies to ALL 4 sub-index pages using:
   .cat-wrap .cat-title .cat-grid .cat-card details summary .page-link
   ========================================================= */

/* If your new root vars exist, this uses them.
   If not, it still looks good with fallback values. */
:root{
  --bg: var(--bg, #FFFFFF);
  --panel: var(--panel, #F7F7F7);
  --card: var(--card, #FFFFFF);
  --border: var(--border, #E2E2E2);
  --text: var(--text, #111418);
  --muted: var(--muted, #5F6B7A);
  --accent: var(--accent, #9E1B1B);
}

/* page base */
html, body{
  background: var(--bg);
  color: var(--text);
}

/* hero/banner align with content width (not hard-left) */
.index-hero{
  width:100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.index-banner{
  display:block;
  width:100%;
  max-width: 1200px;      /* matches wrap */
  height:auto;
  margin: 0 auto;         /* centers banner */
}

/* nav spacing polish so it matches flagship */
.nav-strip{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-strip .nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
  justify-content:flex-start; /* left aligned like the cards */
}

/* nav buttons (inherits your existing .nav-btn if present) */
.nav-btn{
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.nav-btn:hover{
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.10),
    0 0 0 3px rgba(158,27,27,0.18),
    0 0 34px rgba(158,27,27,0.14);
}

/* optional: live/hook accent */
.nav-btn-live, .nav-btn-hook{
  border-color: rgba(158,27,27,0.28);
}
.nav-btn-live:hover, .nav-btn-hook:hover{
  background: var(--accent);
  color:var(--text);
}

/* wrap/panel */
.cat-wrap{
  max-width: 1200px;
  margin: 26px auto 46px;
  padding: 26px 16px 46px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
}

/* title */
.cat-title{
  margin: 6px 0 22px;
  text-align:center;
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--accent);
}

/* grid */
.cat-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* each letter card */
.cat-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  overflow:hidden;
  transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.cat-card:hover{
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 24px 52px rgba(0,0,0,0.18),
    0 0 0 3px rgba(158,27,27,0.20),
    0 0 38px rgba(158,27,27,0.16);
}

/* details + summary */
.cat-card details{ width:100%; }

.cat-card summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);

  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* hide default markers */
.cat-card summary::-webkit-details-marker{ display:none; }

/* custom caret */
.cat-card summary::after{
  content: "▾";
  font-size: 1.05rem;
  color: var(--muted);
  opacity: .9;
  margin-left: 10px;
}
.cat-card details[open] summary::after{ content:"▴"; }

/* count */
.count{
  font-size: .95rem;
  font-weight: 900;
  color: var(--muted);
}

/* open state emphasis */
.cat-card details[open] summary{
  border-color: rgba(158,27,27,0.28);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.08),
    0 0 0 3px rgba(158,27,27,0.12);
}

/* pills grid */
.pages{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding: 4px 2px 2px;
}

/* link pills */
.page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.page-link:hover{
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.12),
    0 0 0 3px rgba(158,27,27,0.18),
    0 0 34px rgba(158,27,27,0.14);
}

/* mobile tighten */
@media (max-width: 600px){
  .cat-wrap{ padding: 18px 12px 30px; }
  .cat-title{ font-size: 2.05rem; }
  .cat-card summary{ font-size: 1.18rem; }
}

/* =========================================================
   WETRIXXX — SCENES PANEL (index movie card tabs)
   Drop-in override — paste at VERY BOTTOM of global.css
   Targets:
   .panel[data-panel="scenes"] .scene-mini-list .scene-mini ...
   ========================================================= */

/* Scenes panel wrapper */
.panel[data-panel="scenes"]{
  padding: 14px 0;
}

/* Vertical list */
.scene-mini-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each scene row/card */
.scene-mini{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Hover glow (matches your new red glow vibe) */
.scene-mini:hover{
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.14),
    0 0 0 2px rgba(158,27,27,0.30),
    0 0 26px rgba(158,27,27,0.20);
}

/* Thumb */
.scene-mini-thumb{
  width: 92px;
}

.scene-mini-thumb img{
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Info */
.scene-mini-info{
  min-width: 0;
}

.scene-mini-title{
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .2px;
  margin: 2px 0 10px;
  color: var(--text);
}

/* Key/value rows */
.scene-mini-row{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;

  border-top: 1px solid rgba(0,0,0,0.06);
}

.scene-mini-row:first-of-type{
  border-top: 0;
  padding-top: 0;
}

/* Labels */
.scene-mini-row .k{
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .8px;
  white-space: nowrap;
}

/* Values */
.scene-mini-row .v{
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Links inside values */
.scene-mini-row .v a{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.scene-mini-row .v a:hover{
  text-decoration: underline;
}

/* Mobile tighten */
@media (max-width: 640px){
  .scene-mini{
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }
  .scene-mini-thumb{
    width: 78px;
  }
  .scene-mini-row{
    grid-template-columns: 80px 1fr;
  }
  .scene-mini-title{
    font-size: 1.0rem;
  }
}

/* =========================================================
   WETRIXXX — SCENES PANEL (index movie card tabs)
   Drop-in override — paste at VERY BOTTOM of global.css
   Targets:
   .panel[data-panel="scenes"] .scene-mini-list .scene-mini ...
   ========================================================= */

/* Scenes panel wrapper */
.panel[data-panel="scenes"]{
  padding: 14px 0;
}

/* Vertical list */
.scene-mini-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each scene row/card */
.scene-mini{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Hover glow (matches your new red glow vibe) */
.scene-mini:hover{
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.14),
    0 0 0 2px rgba(158,27,27,0.30),
    0 0 26px rgba(158,27,27,0.20);
}

/* Thumb */
.scene-mini-thumb{
  width: 92px;
}

.scene-mini-thumb img{
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Info */
.scene-mini-info{
  min-width: 0;
}

.scene-mini-title{
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .2px;
  margin: 2px 0 10px;
  color: var(--text);
}

/* Key/value rows */
.scene-mini-row{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;

  border-top: 1px solid rgba(0,0,0,0.06);
}

.scene-mini-row:first-of-type{
  border-top: 0;
  padding-top: 0;
}

/* Labels */
.scene-mini-row .k{
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .8px;
  white-space: nowrap;
}

/* Values */
.scene-mini-row .v{
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Links inside values */
.scene-mini-row .v a{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.scene-mini-row .v a:hover{
  text-decoration: underline;
}

/* Mobile tighten */
@media (max-width: 640px){
  .scene-mini{
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }
  .scene-mini-thumb{
    width: 78px;
  }
  .scene-mini-row{
    grid-template-columns: 80px 1fr;
  }
  .scene-mini-title{
    font-size: 1.0rem;
  }

}
.scene-mini-thumb{ display:block; }
.scene-mini-link{
  color: var(--accent);
  text-decoration:none;
  font-weight:900;
}
.scene-mini-link:hover{ text-decoration:underline; }




/* Thumbs grid */
.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Thumb images (landscape) */
.thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* for 1920x1080 landscape */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}

.thumb:hover {
  transform: scale(1.05);
}

/* Lightbox CSS - add to global.css bottom */
.scene-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close, .prev, .next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 30px;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev, .next {
  top: 50%;
  transform: translateY(-50%);
}
