/*
Theme Name: Pink Frame
Text Domain: pinkframe
Version: 261029.1216
Description: Candy Shorts AI XXX: top bar, side player, 3:4 episode frames, rails.
Author: Candy Shorts AI XXX
*/

:root {
	--bg: #ffffff;
	--blush: #fff2f8;
	--blush-2: #ffe0ee;
	--ink: #1c1420;
	--ink-2: #4a3d50;
	--muted: #7b6d80;
	--line: #f1dfe9;
	--bezel: #1c1420;
	--green: #0d7a46;
	--green-bg: #eafaf1;
	--green-line: #a6e6c4;
	--font: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--shadow: 0 22px 44px -30px rgba(130, 0, 72, .6);
	--top-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.62 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; }
.pf-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.pf-skip:focus { left: 8px; }
.pf-ico { flex: none; }

/* ---------- Barra in alto ---------- */
.pf-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.pf-top-in { max-width: 1340px; margin: 0 auto; height: var(--top-h); padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.pf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.pf-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(140deg, var(--accent-2), var(--accent) 55%, var(--accent-deep)); box-shadow: 0 8px 18px -8px var(--accent); }
.pf-logo-text { display: flex; align-items: center; gap: 7px; line-height: 1; }
.pf-logo-text b, .pf-footer-name b { color: var(--accent); font-weight: 850; font-stretch: 80%; font-size: 23px; letter-spacing: -.01em; }
.pf-logo-text i, .pf-footer-name i { font-style: normal; color: var(--accent-deep); border: 2px solid var(--accent); border-radius: 7px; padding: 3px 6px 2px; font-weight: 800; font-stretch: 75%; font-size: 13px; letter-spacing: .06em; }
.pf-nav { display: flex; gap: 4px; margin-left: auto; }
.pf-nav a { color: var(--ink-2); text-decoration: none; font-weight: 650; font-stretch: 85%; font-size: 15px; letter-spacing: .02em; padding: 8px 12px; border-radius: 999px; }
.pf-nav a:hover { background: var(--blush); color: var(--accent-deep); }
.pf-nav a[aria-current] { color: var(--accent); background: var(--blush); }
.pf-top-cta { display: inline-flex; align-items: center; gap: 7px; flex: none; color: #fff; text-decoration: none; font-weight: 800; font-stretch: 85%; font-size: 15px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 22px -12px var(--accent); }
.pf-top-cta:hover { color: #fff; filter: brightness(1.06); }
.pf-cats { max-width: 1340px; margin: 0 auto; padding: 0 28px 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pf-cats::-webkit-scrollbar { display: none; }
.pf-cats a { flex: none; font-size: 13.5px; font-weight: 650; font-stretch: 90%; color: var(--ink-2); text-decoration: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.pf-cats a b { font-weight: 600; color: var(--muted); margin-left: 2px; }
.pf-cats a:hover, .pf-cats-new { border-color: var(--accent) !important; color: var(--accent) !important; }

/* ---------- Struttura ---------- */
.pf-shell { max-width: 1340px; margin: 0 auto; padding: 30px 28px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.pf-main { min-width: 0; }
.pf-side { position: sticky; top: calc(var(--top-h) + 58px); display: grid; gap: 22px; }

/* ---------- Player ---------- */
.pf-screen { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 32px; overflow: hidden; background: var(--blush-2); border: 7px solid var(--bezel); box-shadow: 0 34px 60px -36px rgba(130, 0, 72, .85); color: #fff; text-decoration: none; isolation: isolate; }
.pf-screen > img, .pf-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pf-screen > video { opacity: 0; transition: opacity .6s; }
.pf-screen > video.is-on { opacity: 1; }
.pf-screen-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 6, 16, 0) 42%, rgba(20, 6, 16, .82) 100%); z-index: 1; }
.pf-screen-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pf-screen-text em { font-style: normal; font-size: 11.5px; font-weight: 800; font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); padding: 4px 9px; border-radius: 999px; }
.pf-screen-text strong { font-size: 25px; line-height: 1.08; font-weight: 850; font-stretch: 78%; color: #ffa3d2; text-wrap: balance; }
.pf-screen-text small { font-size: 14px; opacity: .9; }
.pf-screen-text .pf-btn { margin-top: 10px; }
.pf-screen:hover .pf-btn { filter: brightness(1.08); }
.pf-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-weight: 800; font-stretch: 80%; color: var(--accent-deep); background: linear-gradient(150deg, var(--blush), var(--blush-2)); }

.pf-next { background: var(--blush); border-radius: 22px; padding: 18px; }
.pf-next-title { margin: 0 0 12px; font-size: 19px; font-weight: 850; font-stretch: 80%; display: flex; align-items: baseline; justify-content: space-between; }
.pf-next-title span { font-size: 12.5px; font-weight: 600; font-stretch: 100%; color: var(--muted); }
.pf-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-next li { display: flex; gap: 12px; align-items: center; }
.pf-next-thumb { flex: none; width: 54px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--blush-2); }
.pf-next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-next li > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pf-next li small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cs-name, .pf-next .cs-name { color: var(--accent); font-weight: 750; text-decoration: none; }
.pf-next .cs-name { font-stretch: 85%; font-size: 15.5px; }
.cs-name:hover { text-decoration: underline; }

/* ---------- Articolo ---------- */
.pf-head { margin-bottom: 8px; }
.pf-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pf-kicker-new { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
.pf-h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; font-weight: 880; font-stretch: 76%; letter-spacing: -.012em; text-wrap: balance; }
.pf-h1--name { color: var(--accent); }
.pf-updated { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pf-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-crumbs a { color: var(--muted); }
.pf-content { max-width: 820px; }
.pf-content > p, .pf-content li { color: var(--ink-2); }
.pf-content h2 { margin: 46px 0 12px; font-size: clamp(26px, 2.6vw, 33px); line-height: 1.08; font-weight: 850; font-stretch: 78%; letter-spacing: -.005em; color: var(--ink); }
.pf-content h2::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: 12px; }
.pf-content h3 { margin: 28px 0 6px; font-size: 21px; font-weight: 800; font-stretch: 85%; }
.pf-content strong { color: var(--ink); }
.pf-lead { font-size: 20px; line-height: 1.55; color: var(--ink) !important; }
.pf-sub { margin-top: -4px; color: var(--muted) !important; font-size: 15px; }
.pf-content ul { padding-left: 1.2em; }
.pf-content ul li::marker { color: var(--accent); }

.pf-btn, .cs-btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-stretch: 85%; font-size: 16px; letter-spacing: .01em; padding: 13px 22px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 26px -14px var(--accent); border: 0; cursor: pointer; }
.pf-btn:hover, .cs-btn:hover { color: #fff; filter: brightness(1.07); }
.pf-btn--ghost { background: #fff; color: var(--accent-deep); box-shadow: inset 0 0 0 2px var(--blush-2); }
.pf-btn--ghost:hover { color: var(--accent); }
.cs-textlink { font-weight: 700; }
.pf-head-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

.pf-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-facts li { background: var(--blush); border-radius: 16px; padding: 11px 15px; display: flex; flex-direction: column; min-width: 96px; }
.pf-facts b { display: flex; align-items: center; min-height: 26px; font-size: 25px; line-height: 1; font-weight: 850; font-stretch: 78%; color: var(--accent-deep); }
.pf-facts span { font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 4px; }

.pf-quote { margin: 18px 0; padding: 18px 22px; background: var(--blush); border-left: 5px solid var(--accent); border-radius: 0 18px 18px 0; }
.pf-quote p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); }
.pf-quote cite, .pf-quote-src { display: block; margin-top: 8px !important; font-style: normal; font-size: 12.5px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }

.pf-steps { list-style: none; padding: 0; counter-reset: s; }
.pf-steps li { position: relative; padding: 4px 0 4px 50px; margin: 14px 0; counter-increment: s; }
.pf-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 850; font-stretch: 80%; font-size: 18px; background: linear-gradient(140deg, var(--accent-2), var(--accent)); }

.pf-callout { background: linear-gradient(135deg, #fff1f8, #ffe4f1); border-radius: 20px; padding: 18px 22px; margin: 22px 0; }
.pf-callout p { margin: 0; color: var(--ink); }

.pf-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15.5px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pf-content th, .pf-content td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-content th { background: var(--blush); font-weight: 800; font-stretch: 85%; color: var(--accent-deep); }
.pf-content tr:last-child td { border-bottom: 0; }

.pf-content details { border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; background: #fff; }
.pf-content summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative; font-weight: 750; color: var(--ink); }
.pf-content summary::-webkit-details-marker { display: none; }
.pf-content summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; font-weight: 500; color: var(--accent); }
.pf-content details[open] summary::after { content: "–"; }
.pf-content details p { margin: 0 0 16px; }

/* ---------- Episodi ---------- */
.pf-eps { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pf-ep { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; line-height: 1.25; background: #fff; }
.pf-ep b { font-size: 17px; font-weight: 850; font-stretch: 80%; }
.pf-ep span { font-size: 14px; font-weight: 700; margin-top: 2px; }
.pf-ep em { font-style: normal; font-size: 12px; color: var(--muted); }
.pf-ep--free, .pf-ep--acct { background: var(--green-bg); border-color: var(--green-line); }
.pf-ep--free span, .pf-ep--acct span { color: var(--green); }
.pf-ep--paid span { color: var(--accent-deep); }
.pf-ep--more { border-style: dashed; justify-content: center; }

/* ---------- Schede ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 24px 16px; margin: 18px 0 8px; }
.pf-card { min-width: 0; }
.pf-card[hidden] { display: none; }
.pf-frame { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--blush-2); box-shadow: var(--shadow); isolation: isolate; }
.pf-frame > img, .pf-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-frame > video { opacity: 0; transition: opacity .5s; }
.pf-frame > video.is-on { opacity: 1; }
.pf-frame:hover > img { transform: scale(1.045); }
.pf-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(20, 6, 16, .66)); z-index: 1; pointer-events: none; }
.pf-chips { position: absolute; top: 9px; left: 9px; right: 9px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.pf-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; font-weight: 850; font-stretch: 85%; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: #fff; color: var(--accent-deep); }
.pf-chip--new { background: var(--accent); color: #fff; }
.pf-chip--lock { background: var(--bezel); color: #fff; }
.pf-foot { position: absolute; left: 11px; bottom: 10px; z-index: 2; color: #fff; font-size: 12.5px; font-weight: 700; }
.pf-play { position: absolute; right: 9px; bottom: 9px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 6px 14px -6px var(--accent); transition: transform .2s; }
.pf-frame:hover .pf-play { transform: scale(1.12); }
.pf-card-title { margin: 11px 0 1px; font-size: 17px; line-height: 1.16; font-weight: 800; font-stretch: 82%; color: var(--accent); }
.pf-card-title a { color: inherit; text-decoration: none; }
.pf-card-title a:hover { text-decoration: underline; }
.pf-card-tags { margin: 0; font-size: 13px; color: var(--muted); }

.pf-rail { position: relative; margin: 16px 0 6px; }
.pf-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--blush-2) transparent; }
.pf-rail-track .pf-card { scroll-snap-align: start; }
.pf-rail-btn { position: absolute; right: -14px; top: calc(50% - 50px); width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--accent); box-shadow: 0 10px 24px -10px rgba(80, 0, 40, .5); cursor: pointer; display: grid; place-items: center; }
@media (hover: none) { .pf-rail-btn { display: none; } }

.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; position: sticky; top: calc(var(--top-h) + 48px); z-index: 5; background: rgba(255, 255, 255, .94); padding: 10px 0; }
.pf-filter button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-stretch: 88%; font-size: 14.5px; cursor: pointer; }
.pf-filter button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.pf-footer { max-width: 1340px; margin: 40px auto 0; padding: 30px 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pf-footer p { margin: 0 0 10px; max-width: 880px; }
.pf-footer-name { display: flex; align-items: center; gap: 7px; }
.pf-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pf-footer-links a { color: var(--ink-2); }

.pf-mini, .pf-tabs { display: none; }

/* ---------- Avviso 18+ ---------- */
.pf-age { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(255, 236, 246, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pf-age[hidden] { display: none; }
.pf-age-box { max-width: 420px; background: #fff; border-radius: 28px; padding: 30px 26px; text-align: center; box-shadow: 0 40px 80px -40px rgba(130, 0, 72, .7); }
.pf-age-badge { display: inline-grid; place-items: center; width: 74px; height: 74px; margin: 0 0 6px; border-radius: 24px; color: #fff; font-weight: 900; font-stretch: 75%; font-size: 30px; background: linear-gradient(140deg, var(--accent-2), var(--accent)); }
.pf-age-title { margin: 6px 0; font-size: 28px; font-weight: 880; font-stretch: 78%; color: var(--accent); }
.pf-age-box p { color: var(--ink-2); }
.pf-age-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pf-age-actions .pf-btn { justify-content: center; }

/* ---------- Tablet e mobile: aspetto da app ---------- */
@media (max-width: 1180px) {
	.pf-shell { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.pf-nav a { padding: 8px 9px; font-size: 14.5px; }
}

@media (max-width: 959px) {
	:root { --top-h: 56px; }
	body { font-size: 16.5px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	html { scroll-padding-top: 110px; }
	.pf-top-in { padding: 0 16px; gap: 12px; }
	.pf-nav { display: none; }
	.pf-top-cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
	.pf-logo-text b { font-size: 21px; }
	.pf-cats { padding: 0 16px 9px; }
	.pf-shell { display: flex; flex-direction: column; align-items: stretch; padding: 0 16px 10px; gap: 0; }
	.pf-side { display: contents; }
	.pf-player { order: -1; margin: 0 -16px 22px; }
	.pf-screen { aspect-ratio: auto; height: min(62svh, 540px); border: 0; border-radius: 0 0 30px 30px; box-shadow: 0 26px 40px -34px rgba(130, 0, 72, .9); }
	.pf-screen-text { padding: 20px 18px 22px; }
	.pf-screen-text strong { font-size: 30px; }
	.pf-main { order: 1; }
	.pf-next { order: 2; margin-top: 30px; }
	.pf-h1 { font-size: clamp(32px, 9vw, 42px); }
	.pf-content h2 { margin-top: 38px; }
	.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.pf-rail-track { grid-auto-columns: 46%; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
	.pf-facts li { min-width: 0; flex: 1 1 28%; }
	.pf-filter { top: calc(var(--top-h) + 44px); flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 4px; padding: 10px 16px; scrollbar-width: none; }
	.pf-filter button { flex: none; }
	.pf-footer { margin-top: 20px; padding: 26px 16px 30px; }

	.pf-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
	.pf-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 750; font-stretch: 85%; }
	.pf-tabs a[aria-current] { color: var(--accent); }
	.pf-mini { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 49; align-items: center; gap: 11px; padding: 7px 8px 7px 7px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 16px 36px -16px rgba(100, 0, 56, .55), 0 0 0 1px var(--line); transform: translateY(0); transition: transform .3s, opacity .3s; }
	.pf-mini[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
	.pf-mini img { width: 36px; height: 48px; object-fit: cover; border-radius: 9px; }
	.pf-mini span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; flex: 1; }
	.pf-mini strong { color: var(--accent); font-weight: 800; font-stretch: 85%; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pf-mini small { font-size: 12.5px; color: var(--muted); }
	.pf-mini b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
