/*
Theme Name: Split Screen
Text Domain: splitscreen
Version: 261029.1309
Description: Candy AI Uncensored Shorts: split screen with a fixed series panel, 16:9 frames, remote bar on mobile.
Author: Candy AI Uncensored Shorts
*/

:root {
	--bg: #ffffff;
	--panel: #fff2f8;
	--blush: #ffe2ef;
	--ink: #1b1419;
	--ink-2: #4a3d46;
	--muted: #84737e;
	--line: #f1e1ea;
	--green: #0c7a45;
	--font: Bricolage, "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); font-variation-settings: "opsz" 14; -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; }
.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.sp-skip:focus { left: 8px; }
.sp-ico { flex: none; }

/* ---------- Schermo diviso ---------- */
.sp-shell { display: grid; grid-template-columns: clamp(400px, 42vw, 660px) minmax(0, 1fr); min-height: 100vh; }
.sp-panel { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 20px; background: var(--panel); }
.sp-panel-top { display: flex; flex-direction: column; gap: 12px; }
.sp-logo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-decoration: none; line-height: 1; margin: 0; }
.sp-logo b { font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: var(--accent); font-variation-settings: "opsz" 96; }
.sp-logo span { font-weight: 600; font-size: 15px; font-stretch: 80%; letter-spacing: .02em; color: var(--accent-deep); }
.sp-channels { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-channels a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.sp-channels a:hover { background: #fff; color: var(--accent-deep); }
.sp-channels a[aria-current] { background: var(--accent); color: #fff; }

.sp-screen { position: relative; flex: 1; min-height: 0; display: block; border-radius: 30px; overflow: hidden; background: var(--blush); color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 40px 70px -46px rgba(120, 0, 66, .9); }
.sp-screen > img, .sp-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-screen > video { opacity: 0; transition: opacity .7s; }
.sp-screen > video.is-on { opacity: 1; }
.sp-screen-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(24, 6, 16, 0) 50%, rgba(24, 6, 16, .8) 100%); }
.sp-screen-cap { position: absolute; z-index: 2; left: 24px; right: 100px; bottom: 22px; display: flex; flex-direction: column; gap: 3px; }
.sp-screen-cap em { align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sp-screen-cap strong { font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.02em; color: #ffb0d6; font-variation-settings: "opsz" 96; text-wrap: balance; }
.sp-screen-cap small { font-size: 14px; opacity: .9; }
.sp-screen-play { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 14px 30px -12px var(--accent); transition: transform .2s; }
.sp-screen:hover .sp-screen-play { transform: scale(1.08); }
.sp-upnext { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; }
.sp-upnext p { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.sp-upnext a { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-decoration: none; }
.sp-upnext img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.sp-upnext span { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--accent-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 800; color: var(--accent-deep); background: linear-gradient(150deg, #fff, var(--blush)); }

/* ---------- Colonna di testo ---------- */
.sp-page { min-width: 0; }
.sp-main { max-width: 820px; padding: 52px 56px 20px; }
.sp-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.sp-crumbs a { color: var(--muted); }
.sp-kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sp-kicker span { color: var(--muted); }
.sp-kicker .sp-new { color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 999px; }
.sp-h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.0; letter-spacing: -.035em; color: var(--ink); font-variation-settings: "opsz" 96; text-wrap: balance; }
.sp-series .sp-h1 { color: var(--accent); }
.sp-deck { margin: 16px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.sp-head-cta { margin: 22px 0 0; }
.sp-content { margin-top: 10px; }
.sp-content > p, .sp-content li { color: var(--ink-2); }
.sp-content h2 { margin: 48px 0 12px; font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.025em; color: var(--ink); font-variation-settings: "opsz" 72; }
.sp-content h3 { margin: 28px 0 6px; font-weight: 750; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.sp-content h3 a, .cs-name { color: var(--accent); font-weight: 700; text-decoration: none; }
.sp-content h3 a:hover, .cs-name:hover { text-decoration: underline; }
.sp-content strong { color: var(--ink); }
.sp-content ul { padding-left: 1.2em; }
.sp-content ul li::marker { color: var(--accent); }
.sp-lede { font-size: 20px; line-height: 1.55; color: var(--ink) !important; }
.sp-sub { margin-top: -4px; font-size: 15px; color: var(--muted) !important; }
.sp-story { margin: 16px 0 4px; font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -.01em; color: var(--ink) !important; font-variation-settings: "opsz" 36; }
.sp-source { margin: 0 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }

.sp-btn, .cs-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; text-decoration: none; font: 700 16px/1.2 var(--font); background: var(--accent); box-shadow: 0 14px 28px -14px var(--accent); }
.sp-btn:hover, .cs-btn:hover { color: #fff; background: var(--accent-deep); }
.sp-btn--ghost { background: #fff; color: var(--accent-deep); box-shadow: inset 0 0 0 2px var(--blush); }
.sp-btn--ghost:hover { background: var(--panel); color: var(--accent-deep); }
.cs-textlink { font-weight: 700; }

.sp-timeline { list-style: none; margin: 18px 0; padding: 0 0 0 28px; position: relative; }
.sp-timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green) 0 40%, var(--blush) 40% 100%); }
.sp-timeline li { position: relative; padding: 6px 0 14px 18px; display: flex; flex-direction: column; line-height: 1.35; }
.sp-timeline li::before { content: ""; position: absolute; left: -26px; top: 10px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.sp-timeline li.is-free::before { box-shadow: 0 0 0 3px var(--green); background: var(--green); }
.sp-timeline b { font-weight: 800; font-size: 18px; color: var(--ink); }
.sp-timeline span { font-size: 15px; color: var(--muted); }
.sp-timeline .is-free span { color: var(--green); font-weight: 600; }

.sp-steps { list-style: none; padding: 0; counter-reset: s; }
.sp-steps li { position: relative; padding: 4px 0 4px 54px; margin: 14px 0; counter-increment: s; }
.sp-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variation-settings: "opsz" 96; }

.sp-callout { margin: 22px 0; padding: 20px 24px; border-radius: 22px; background: var(--panel); }
.sp-callout p { margin: 0; color: var(--ink); }

.sp-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.sp-content th, .sp-content td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-content th { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.sp-content details { border-bottom: 1px solid var(--line); }
.sp-content details:first-of-type { border-top: 1px solid var(--line); }
.sp-content summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-weight: 750; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.sp-content summary::-webkit-details-marker { display: none; }
.sp-content summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.sp-content details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.sp-content details p { margin: 0 0 18px; }

/* ---------- Schede 16:9 ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 18px; margin: 18px 0 8px; }
.sp-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 16px; overflow-x: auto; margin: 16px 0 6px; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--blush) transparent; }
.sp-strip .sp-card { scroll-snap-align: start; }
.sp-card { min-width: 0; }
.sp-card[hidden] { display: none; }
.sp-wide { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--blush); isolation: isolate; box-shadow: 0 20px 34px -28px rgba(120, 0, 66, .9); }
.sp-wide > img, .sp-wide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sp-wide > video { object-fit: contain; background: rgba(24, 6, 16, .55); opacity: 0; transition: opacity .5s; }
.sp-wide > video.is-on { opacity: 1; }
.sp-wide:hover > img { transform: scale(1.04); }
.sp-chips { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.sp-chip--new { background: var(--accent); color: #fff; }
.sp-chip--lock { background: var(--ink); color: #fff; }
.sp-play { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--accent); transition: transform .2s; }
.sp-wide:hover .sp-play { transform: scale(1.12); }
.sp-card-title { margin: 12px 0 2px; font-weight: 750; font-size: 18px; line-height: 1.2; letter-spacing: -.015em; color: var(--accent); }
.sp-card-title a { color: inherit; text-decoration: none; }
.sp-card-title a:hover { text-decoration: underline; }
.sp-card-meta { margin: 0; font-size: 13.5px; color: var(--muted); }

.sp-filter { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; padding: 12px 0; background: var(--bg); }
.sp-filter button { border: 0; padding: 8px 15px; border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 14.5px; font-weight: 650; cursor: pointer; }
.sp-filter button.is-on { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.sp-foot { max-width: 820px; padding: 34px 56px 46px; margin-top: 30px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.sp-foot p { margin: 0 0 10px; }
.sp-logo--foot { margin-bottom: 14px; }
.sp-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-foot-links a { color: var(--ink-2); }
.sp-remote { display: none; }

/* ---------- Avviso 18+ ---------- */
.sp-age { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(255, 242, 248, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sp-age[hidden] { display: none; }
.sp-age-box { max-width: 430px; padding: 30px 28px 26px; border-radius: 30px; background: #fff; text-align: center; box-shadow: 0 40px 80px -40px rgba(120, 0, 66, .7); }
.sp-age-box .sp-logo { justify-content: center; margin-bottom: 10px; }
.sp-age-title { margin: 8px 0; font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.sp-age-box p { color: var(--ink-2); }
.sp-age-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sp-age-actions .sp-btn { justify-content: center; }

/* ---------- Tablet ---------- */
@media (max-width: 1240px) {
	.sp-main { padding: 44px 36px 20px; }
	.sp-foot { padding: 30px 36px 40px; }
	.sp-upnext { grid-template-columns: auto repeat(2, minmax(0, 1fr)); }
	.sp-upnext a:nth-of-type(3) { display: none; }
}

/* ---------- Mobile: aspetto da app ---------- */
@media (max-width: 999px) {
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.sp-shell { display: block; }
	.sp-panel { display: contents; }
	.sp-panel-top { position: sticky; top: 0; z-index: 30; flex-direction: row; align-items: center; gap: 12px; padding: 10px 0 10px 14px; background: rgba(255, 242, 248, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
	.sp-logo { flex: none; flex-direction: column; gap: 2px; }
	.sp-logo b { font-size: 19px; }
	.sp-logo span { font-size: 11.5px; }
	.sp-channels { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 14px; }
	.sp-channels::-webkit-scrollbar { display: none; }
	.sp-channels a { flex: none; font-size: 13.5px; padding: 6px 11px; background: #fff; }
	.sp-screen { flex: none; height: min(60svh, 125vw); border-radius: 0 0 30px 30px; }
	.sp-screen-cap { left: 18px; bottom: 18px; right: 90px; }
	.sp-screen-cap strong { font-size: 26px; }
	.sp-screen-play { right: 16px; bottom: 16px; width: 58px; height: 58px; }
	.sp-upnext { display: none; }
	.sp-main { padding: 22px 16px 10px; }
	.sp-h1 { font-size: clamp(32px, 9.5vw, 42px); }
	.sp-deck { font-size: 18px; }
	.sp-story { font-size: 19.5px; }
	.sp-content h2 { margin-top: 40px; }
	.sp-grid { grid-template-columns: 1fr; gap: 22px; }
	.sp-strip { grid-auto-columns: 78%; margin: 12px -16px 4px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
	.sp-filter { top: 62px; flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 4px; padding: 10px 16px; scrollbar-width: none; }
	.sp-filter button { flex: none; }
	.sp-foot { padding: 26px 16px 30px; }

	.sp-remote { display: flex; align-items: center; gap: 8px; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 7px; border-radius: 24px; background: rgba(27, 20, 25, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(60, 0, 30, .8); }
	.sp-remote-btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 17px; color: #fff; background: rgba(255, 255, 255, .1); }
	.sp-remote-btn:hover { color: #fff; background: rgba(255, 255, 255, .2); }
	.sp-remote-go { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 17px; color: #fff; text-decoration: none; font-weight: 750; font-size: 15px; background: var(--accent); }
	.sp-remote-go:hover { color: #fff; }
}

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