/* ============================================================================
   v2.css - SmokingFetishHub v2 foundation + homepage components
   NEW stylesheet, linked only from v2 templates.
   Loads after all.css, so equal-specificity rules win by source order.
   Design system: CLAUDE.md + /design-reference v2 mockups.
   Deploy target: <statics_url>/static/styles/v2.css  (see INTEGRATION.md).
   ============================================================================ */

/* ---------- Design tokens (prefixed to avoid clashing with all.css) ---------- */
:root{
  --v2-ground:#170a10;
  --v2-surface:#251119;
  --v2-raised:#331723;
  --v2-ink:#f3e9ed;
  --v2-muted:#a68b97;
  --v2-line:rgba(243,233,237,.08);
  --v2-magenta:#b2175a;
  --v2-magenta-hi:#cf2a72;
  --v2-gold:#d9a441;
  --v2-gold-hi:#e6b657;
  --v2-gold-dim:rgba(217,164,65,.35);
  --v2-gold-soft:rgba(217,164,65,.12);
  --v2-magenta-soft:rgba(178,23,90,.22);
  --v2-magenta-line:rgba(207,42,114,.4);
  --v2-display:'Fraunces',Georgia,'Times New Roman',serif;
  --v2-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --v2-r-sm:6px; --v2-r-md:12px; --v2-r-lg:16px;
  --v2-maxw:1280px;
}

/* ---------- Page-level: paint the whole v2 page in the v2 palette ----------
   v2.css only loads on the v2 page, so styling body/chrome here is safe. */
body{
  background:var(--v2-ground);
  color:var(--v2-ink);
  font-family:var(--v2-body);
  -webkit-font-smoothing:antialiased;
}
.v2-main{
  font-family:var(--v2-body);
  font-size:16px;
  line-height:1.6;
  color:var(--v2-ink);
}
.v2-main a{color:inherit;text-decoration:none}
.v2-main img{max-width:100%;display:block}
.v2-main :focus-visible{outline:2px solid var(--v2-gold);outline-offset:2px;border-radius:4px}

/* ---------- Layout primitives ---------- */
.v2-wrap{max-width:var(--v2-maxw);margin:0 auto;padding:0 24px}
.v2-section{padding:48px 0}
.v2-section-tight{padding:32px 0}

/* ---------- Section headers ---------- */
.v2-sechead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:24px}
.v2-sechead h2{font-family:var(--v2-display);font-weight:500;font-size:clamp(24px,3vw,32px);letter-spacing:-.01em;line-height:1.2}
.v2-seeall{font-size:14px;font-weight:600;color:var(--v2-magenta-hi);white-space:nowrap;transition:color .2s}
.v2-seeall:hover{color:#e8548f}
.v2-secsub{color:var(--v2-muted);font-size:16px;margin:-8px 0 24px;max-width:60ch}

/* ---------- Buttons ---------- */
.v2-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:12px 24px;border-radius:var(--v2-r-sm);
  font-family:var(--v2-body);font-size:16px;font-weight:600;border:none;
  cursor:pointer;white-space:nowrap;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .1s ease;
}
.v2-btn:active{transform:scale(.98)}
.v2-btn-gold{background:var(--v2-gold);color:#1d1206}
.v2-btn-gold:hover{background:var(--v2-gold-hi);color:#1d1206}
.v2-btn-magenta{background:var(--v2-magenta);color:#fff}
.v2-btn-magenta:hover{background:var(--v2-magenta-hi);color:#fff}
.v2-btn-ghost{background:transparent;color:var(--v2-ink);border:1px solid var(--v2-line)}
.v2-btn-ghost:hover{border-color:var(--v2-gold-dim);color:#fff}
.v2-btn-sm{min-height:36px;padding:8px 16px;font-size:14px}
.v2-btn-block{width:100%}

/* ============================================================================
   Reused header/footer chrome - restyle to the v2 palette only (no relayout).
   These target the existing include markup; only loaded on the v2 page.
   ============================================================================ */
.wrapper{background:var(--v2-ground)}
.header-panel{background:var(--v2-surface);border-bottom:1px solid var(--v2-line)}
.header{background:rgba(23,10,16,.92);border-bottom:1px solid var(--v2-line)}
.header .search .input,
.header .search input{
  background:var(--v2-surface);border:1px solid var(--v2-line);color:var(--v2-ink);
}
.header .search .input::placeholder{color:var(--v2-muted)}
.header .search .input:focus{border-color:var(--v2-gold-dim);outline:none}

/* auth buttons in header: login = ghost, signup = magenta action */
.group-auth .button{border-radius:var(--v2-r-sm);font-weight:600}
.group-auth .button{background:transparent;color:var(--v2-ink);border:1px solid var(--v2-line)}
.group-auth .button.second{background:var(--v2-magenta);color:#fff;border-color:var(--v2-magenta)}
.group-auth .button.second:hover{background:var(--v2-magenta-hi)}
.auth .btn.second{background:var(--v2-magenta);color:#fff}

/* token balance chip = money = gold */
.item-balance,.balance-mobile{color:var(--v2-gold)}
.item-balance .svg-icon,.balance-mobile .svg-icon{color:var(--v2-gold)}

/* side/drawer nav hover states */
.menu-aside .item:hover,.menu-aside .item.active{color:var(--v2-ink);background:var(--v2-raised)}
.menu-aside .item.active .svg-icon{color:var(--v2-gold)}
.aside{background:var(--v2-surface)}
.lang-dropped{background:var(--v2-surface);border:1px solid var(--v2-line)}

/* footer */
.footer{background:var(--v2-surface);border-top:1px solid var(--v2-line)}
.footer .footer-list a{color:var(--v2-muted);transition:color .2s}
.footer .footer-list a:hover,.footer .footer-list a.active{color:var(--v2-ink)}
.footer .copy,.footer .copy-mob{color:var(--v2-muted)}

/* ============================================================================
   HERO
   ============================================================================ */
.v2-hero{position:relative;overflow:hidden;padding:64px 0}
.v2-hero-bg{position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 800px 500px at 85% 20%, rgba(178,23,90,.14), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(217,164,65,.06), transparent 60%);
}
.v2-smoke{position:absolute;right:4%;top:-10%;height:120%;width:auto;opacity:.5;pointer-events:none}
.v2-smoke path{filter:blur(6px);animation:v2-drift 26s ease-in-out infinite}
.v2-smoke path:nth-child(2){animation-delay:-9s;animation-duration:32s}
.v2-smoke path:nth-child(3){animation-delay:-17s;animation-duration:38s}
@keyframes v2-drift{
  0%,100%{transform:translateY(0) translateX(0)}
  50%{transform:translateY(-28px) translateX(10px)}
}
.v2-hero-inner{position:relative;max-width:760px}
.v2-eyebrow{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--v2-gold);margin-bottom:16px}
/* H1 kept intentionally small (keyword-rich SEO line); the display line below
   carries the visual weight. "visually small is fine" per the Phase-1 spec. */
.v2-h1{font-family:var(--v2-body);font-size:15px;font-weight:600;letter-spacing:.02em;color:var(--v2-muted);margin:0 0 16px;text-transform:none}
.v2-hero-display{font-family:var(--v2-display);font-weight:500;font-size:clamp(36px,5vw,58px);line-height:1.1;letter-spacing:-.01em;margin:0 0 16px;color:var(--v2-ink)}
.v2-hero-sub{font-size:18px;color:var(--v2-muted);max-width:52ch;margin-bottom:32px}
.v2-hero-cta{display:flex;gap:16px;flex-wrap:wrap}

/* ============================================================================
   VIDEO CARDS (rendered by include_list_videos_cards_v2.tpl; shared live
   renderer remains untouched).
   ============================================================================ */
/* Grid container is the block's own .main-grid (id=..._items). */
.v2-grid .main-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.v2-grid .main-grid > .th.item{width:100%;min-width:0}
.v2-grid .main-grid .empty-content{grid-column:1/-1;color:var(--v2-muted);padding:24px 0}

.v2-row .th.item{
  position:relative;background:var(--v2-surface);border:1px solid var(--v2-line);
  border-radius:var(--v2-r-md);overflow:hidden;
  transition:transform .2s ease,border-color .2s ease;
}
.v2-row .th.item:hover{transform:translateY(-3px);border-color:var(--v2-gold-dim)}
.v2-row .th.item .card{display:block;color:inherit}
.v2-row .th.item .media{position:relative;aspect-ratio:16/9;background:var(--v2-raised);overflow:hidden}
.v2-row .th.item .media .img{width:100%;height:100%;object-fit:cover;display:block}

/* Card body */
.v2-row .th.item .content{padding:16px}
.v2-row .th.item .content .text{
  font-size:15px;font-weight:600;line-height:1.4;color:var(--v2-ink);margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;
}
.v2-row .th.item .content .list{display:flex;align-items:center;gap:14px;list-style:none;margin:0;padding:0;font-size:13px;color:var(--v2-muted)}
.v2-row .th.item .content .list li{display:inline-flex;align-items:center;gap:5px}
.v2-row .th.item .content .list .svg-icon{width:14px;height:14px;fill:currentColor}

/* Duration + tools (bottom-right) */
.v2-row .card-tools{position:absolute;bottom:8px;right:8px;left:auto;display:flex;gap:6px;align-items:center;z-index:1}
.v2-row .card-tools .item_card{background:rgba(0,0,0,.68);color:#fff;font-size:12px;font-weight:600;padding:3px 8px;border-radius:4px;display:inline-flex;align-items:center;gap:4px}
/* HD chip (bottom-left) - .card-quality WITHOUT .thumb_label */
.v2-row .media .card-quality{
  position:absolute;z-index:1;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.v2-row .media .card-quality:not(.thumb_label){
  top:auto;right:auto;bottom:8px;left:8px;background:rgba(0,0,0,.6);color:var(--v2-gold);
  font-size:11px;font-weight:700;letter-spacing:.06em;padding:3px 7px;border-radius:4px;
}

/* Unlock badge (top-left) - .card-quality.thumb_label */
.v2-row .media .thumb_label{
  top:8px;right:auto;bottom:auto;left:8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 9px;border-radius:999px;line-height:1;
}
.v2-row .media .thumb_label.premium{background:var(--v2-gold);color:#1d1206}      /* Premium access mark */
.v2-row .media .thumb_label.free{background:rgba(0,0,0,.65);color:var(--v2-ink);border:1px solid var(--v2-line)}

/* Token price = money = gold. The v2 renderer adds this only to token cards. */
.v2-row .v2-token-price{color:var(--v2-gold);font-weight:700;font-size:14px}
.v2-row .v2-token-price .svg-icon{width:15px;height:15px;fill:var(--v2-gold)}

/* The v2 card renderer owns the invariant in markup: Premium, token-priced, or
   Free. CSS only styles the already-exclusive signal. */

/* Favourites hover panel (logged-in only) top-right, out of the way */
.v2-row .top-panel{position:absolute;top:8px;right:8px;z-index:2;display:flex;gap:6px;opacity:0;transition:opacity .2s}
.v2-row .th.item:hover .top-panel{opacity:1}
.v2-row .top-panel .btn{width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer}
.v2-row .top-panel .btn .svg-icon{width:15px;height:15px;fill:currentColor}

/* ============================================================================
   PREMIUM BAND
   ============================================================================ */
.v2-premium-band{
  background:var(--v2-surface);border:1px solid var(--v2-gold-dim);border-radius:var(--v2-r-lg);
  padding:40px;display:grid;grid-template-columns:1.4fr .9fr;gap:40px;align-items:center;
}
.v2-band-title{font-family:var(--v2-display);font-weight:500;font-size:clamp(24px,3vw,32px);line-height:1.2;margin:8px 0 16px}
.v2-band-lead{font-size:17px;color:var(--v2-ink);margin:0 0 20px;max-width:52ch}
.v2-premium-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.v2-premium-list li{position:relative;padding-left:26px;color:var(--v2-muted);font-size:15px}
.v2-premium-list li::before{content:"";position:absolute;left:2px;top:6px;width:14px;height:8px;border-left:2px solid var(--v2-gold);border-bottom:2px solid var(--v2-gold);transform:rotate(-45deg)}
.v2-premium-cta{background:var(--v2-ground);border:1px solid var(--v2-line);border-radius:var(--v2-r-md);padding:24px;text-align:center}
.v2-price{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-bottom:16px}
.v2-price-amt{font-family:var(--v2-display);font-weight:600;font-size:40px;color:var(--v2-gold);line-height:1}
.v2-price-per{font-size:15px;color:var(--v2-muted)}
.v2-premium-fine{font-size:13px;color:var(--v2-muted);margin:12px 0 0}

/* ============================================================================
   RAILS (horizontal scroll) - video "most watched" + models
   The block renders .main-grid (videos) or .model-grid (members big-thumb);
   turn that container into a scroll-snap row.
   ============================================================================ */
.v2-rail .main-grid,
.v2-rail .model-grid{
  display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:4px 4px 16px;scrollbar-width:thin;scrollbar-color:var(--v2-raised) transparent;
  grid-template-columns:none;
}
.v2-rail .main-grid::-webkit-scrollbar,
.v2-rail .model-grid::-webkit-scrollbar{height:6px}
.v2-rail .main-grid::-webkit-scrollbar-thumb,
.v2-rail .model-grid::-webkit-scrollbar-thumb{background:var(--v2-raised);border-radius:3px}
.v2-rail .main-grid > *,
.v2-rail .model-grid > *{flex:0 0 auto;scroll-snap-align:start}
.v2-rail .main-grid > .th.item{width:300px}

/* ---------- Model cards (members big-thumb variant) ---------- */
.v2-modelrail .model-grid > .th.item{width:220px}
.v2-modelrail .card-model{
  position:relative;display:block;aspect-ratio:3/4.2;border-radius:var(--v2-r-md);overflow:hidden;
  border:1px solid var(--v2-line);background:var(--v2-raised);
  transition:transform .2s ease,border-color .2s ease;
}
.v2-modelrail .card-model:hover{transform:translateY(-3px);border-color:var(--v2-gold-dim)}
.v2-modelrail .card-model .img{width:100%;height:100%;object-fit:cover;display:block}
.v2-modelrail .card-model .no-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--v2-surface)}
.v2-modelrail .card-model .no-thumb img{width:42%;opacity:.35}
.v2-modelrail .card-model .content{
  position:absolute;inset:auto 0 0 0;padding:44px 14px 14px;
  background:linear-gradient(to top,rgba(13,5,9,.94) 30%,transparent);
}
.v2-modelrail .card-model .content .text{font-size:17px;font-weight:700;color:var(--v2-ink);line-height:1.2}
.v2-modelrail .card-model .view-link{
  display:inline-flex;align-items:center;margin-top:10px;font-size:12px;font-weight:600;
  background:var(--v2-magenta-soft);border:1px solid var(--v2-magenta-line);color:#f0a8c6;
  padding:4px 10px;border-radius:999px;
}

/* ============================================================================
   TWO WAYS TO WATCH (lanes)
   ============================================================================ */
.v2-lanes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v2-lane{background:var(--v2-surface);border:1px solid var(--v2-line);border-radius:var(--v2-r-lg);padding:28px;display:flex;flex-direction:column}
.v2-lane-premium{border-color:var(--v2-gold-dim)}
.v2-lane-tokens{border-color:var(--v2-magenta-line)}
.v2-lane-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.v2-lane-badge{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 12px;border-radius:999px}
.v2-lane-badge-gold{background:var(--v2-gold);color:#1d1206}
.v2-lane-badge-magenta{background:var(--v2-magenta);color:#fff}
.v2-lane-tag{font-size:13px;color:var(--v2-muted)}
.v2-lane-title{font-family:var(--v2-display);font-weight:500;font-size:22px;margin:0 0 6px}
.v2-lane-lead{color:var(--v2-muted);font-size:15px;margin:0 0 16px}
.v2-lane-list{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:10px}
.v2-lane-list li{position:relative;padding-left:24px;color:var(--v2-ink);font-size:15px}
.v2-lane-list li::before{content:"";position:absolute;left:2px;top:6px;width:12px;height:7px;border-left:2px solid var(--v2-gold);border-bottom:2px solid var(--v2-gold);transform:rotate(-45deg)}
.v2-lane-tokens .v2-lane-list li::before{border-color:var(--v2-magenta-hi)}
.v2-lane .v2-btn{margin-top:auto}
.v2-lane-note{font-size:13px;color:var(--v2-muted);margin:12px 0 0}

/* ============================================================================
   TOKEN BAND
   ============================================================================ */
.v2-tokenband{background:var(--v2-surface);border-top:1px solid var(--v2-line);border-bottom:1px solid var(--v2-line)}
.v2-pkg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.v2-pkg{position:relative;background:var(--v2-ground);border:1px solid var(--v2-line);border-radius:var(--v2-r-md);padding:28px 20px;text-align:center;transition:transform .2s ease,border-color .2s ease}
.v2-pkg:hover{transform:translateY(-3px);border-color:var(--v2-gold-dim)}
.v2-pkg-popular{border-color:var(--v2-magenta)}
.v2-pkg-flag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 12px;border-radius:999px;white-space:nowrap}
.v2-flag-magenta{background:var(--v2-magenta);color:#fff}
.v2-flag-gold{background:var(--v2-gold);color:#1d1206}
.v2-pkg-tokens{display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--v2-display);font-weight:600;font-size:36px;color:var(--v2-gold);line-height:1.1;margin-bottom:16px}
.v2-pkg-tokens .svg-icon{width:28px;height:28px;fill:var(--v2-gold)}
.v2-pkg-price{font-size:20px;font-weight:700;color:var(--v2-ink);margin-bottom:4px}
.v2-pkg-save{font-size:13px;color:var(--v2-gold);font-weight:600;min-height:1.4em;margin-bottom:16px}

/* ============================================================================
   SELL BAND + BOTTOM SEO
   ============================================================================ */
.v2-sellband{
  background:var(--v2-surface);border:1px solid var(--v2-line);border-radius:var(--v2-r-lg);
  padding:24px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;
}
.v2-sell-title{font-family:var(--v2-display);font-weight:500;font-size:clamp(20px,2.4vw,26px);margin:0 0 4px}
.v2-sell-lead{color:var(--v2-muted);font-size:15px;margin:0;max-width:60ch}

.v2-seo{max-width:900px}
.v2-seo-title{font-family:var(--v2-display);font-weight:500;font-size:clamp(22px,2.6vw,28px);margin:0 0 16px}
.v2-seo p{color:var(--v2-muted);font-size:16px;line-height:1.7;margin:0 0 16px;max-width:75ch}
.v2-seo p:last-child{margin-bottom:0}

/* KVS injects an inline preview video on card hover. Fill the thumbnail frame
   so fractional image dimensions cannot leave a black strip at the edge. */
.v2-row .th.item .media video{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  background:transparent!important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .v2-main *{transition:none!important;animation:none!important}
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width:1024px){
  .v2-grid .main-grid{grid-template-columns:repeat(3,1fr)}
  .v2-pkg-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .v2-wrap{padding:0 16px}
  .v2-section{padding:32px 0}
  .v2-section-tight{padding:24px 0}
  .v2-hero{padding:40px 0}
  .v2-hero-sub{font-size:16px}
  .v2-hero-cta .v2-btn{flex:1}
  .v2-smoke{opacity:.3}
  .v2-grid .main-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .v2-premium-band{grid-template-columns:1fr;gap:24px;padding:24px}
  .v2-rail .main-grid > .th.item{width:260px}
  .v2-modelrail .model-grid > .th.item{width:170px}
  .v2-lanes{grid-template-columns:1fr}
  .v2-pkg-grid{grid-template-columns:1fr 1fr;gap:12px}
  .v2-pkg{padding:20px 16px}
  .v2-pkg-tokens{font-size:30px}
  .v2-sellband{padding:24px}
  .v2-sellband .v2-btn{width:100%}
}
@media (max-width:420px){
  .v2-pkg-grid{grid-template-columns:1fr}
}
