/*
Theme Name: JustSwallows Lite
Theme URI: https://justswallows.live/
Author: JustSwallows
Description: Fast standalone video theme for justswallows.live.
Version: 1.0.0
Text Domain: justswallows
*/

:root {
	--bg: #fff6e3;
	--bg-soft: #fffdf8;
	--panel: #ffffff;
	--panel-2: #fff1cc;
	--text: #321606;
	--muted: rgba(50,22,6,.62);
	--line: #f0b963;
	--line-strong: #d9781c;
	--accent: #f2891f;
	--accent-2: #ffd069;
	--ink: #050403;
	--cream: #fff8e9;
	--shadow: 0 14px 34px rgba(116, 55, 7, .16);
	--max: 1240px;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(circle at 9% 0%, rgba(255, 208, 105, .42), transparent 26%),
		radial-gradient(circle at 92% 12%, rgba(210, 105, 18, .14), transparent 28%),
		linear-gradient(180deg, #fffdf8 0%, var(--bg) 58%, #ffe3aa 100%);
	color: var(--text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; padding: 8px 0; background: rgba(255, 248, 232, .86); border-bottom: 1px solid rgba(217,120,28,.24); backdrop-filter: blur(14px); }
.header-inner { position: relative; display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 82px; padding: 8px 14px; border: 2px solid transparent; border-radius: 28px; background: linear-gradient(var(--cream), var(--cream)) padding-box, linear-gradient(120deg, #fff, var(--accent-2), var(--accent), #201008) border-box; box-shadow: var(--shadow); overflow: hidden; }
.header-inner::before { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -100px; border-radius: 999px; background: radial-gradient(circle, rgba(242,137,31,.2), transparent 68%); pointer-events: none; animation: jswGlowDrift 6s ease-in-out infinite; }
.header-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.42) 46%, transparent 62%); transform: translateX(-120%); pointer-events: none; animation: jswHeaderSheen 6.5s ease-in-out infinite; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); font-size: clamp(1.45rem, 2.4vw, 2.25rem); font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.brand-logo { width: clamp(58px, 6vw, 86px); height: clamp(58px, 6vw, 86px); object-fit: cover; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 12px 28px rgba(217,120,28,.32); background: #fff2d0; animation: jswLogoPulse 3.8s ease-in-out infinite; }
.brand-text { color: var(--text); text-shadow: 0 2px 0 rgba(255,255,255,.85); position: relative; z-index: 1; }
.brand-text::after { content: ""; display: block; height: 5px; margin-top: -2px; border-radius: 999px; background: linear-gradient(90deg, var(--ink), var(--accent), var(--accent-2)); transform-origin: left; animation: jswBrandUnderline 4.4s ease-in-out infinite; }
.nav { color: var(--muted); font-weight: 700; }
.nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.nav .menu li { margin: 0; padding: 0; list-style: none; }
.nav .menu li::marker { content: ""; }
.nav .menu li::before, .nav .menu li::after, .nav .menu a::before, .nav .menu a::after { content: none !important; display: none !important; }
.nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav a:hover, .nav .current-menu-item > a { color: #fff; background: linear-gradient(180deg, #3d1d08, #130704); transform: translateY(-1px); box-shadow: 0 10px 18px rgba(50,22,6,.16); }
.search-form { position: relative; z-index: 1; display: flex; min-width: min(280px, 100%); border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); transition: box-shadow .18s ease, border-color .18s ease; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,137,31,.16); }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; color: var(--text); background: transparent; }
.search-form button { border: 0; padding: 10px 18px; color: #fff; background: linear-gradient(180deg, #ffad39, #e27519); font-weight: 900; cursor: pointer; }
.site-main { padding: 22px 0 46px; }
.toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 2px solid rgba(217,120,28,.32); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,238,198,.62)); box-shadow: 0 12px 30px rgba(116,55,7,.1); overflow: hidden; }
.toolbar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(242,137,31,.1) 0 1px, transparent 1px 15px); opacity: .42; pointer-events: none; }
.toolbar > * { position: relative; z-index: 1; }
.page-title { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.05; letter-spacing: 0; text-shadow: 0 2px 0 rgba(255,255,255,.9); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { border: 2px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); background: var(--panel); font-size: .9rem; font-weight: 900; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.filters a.active, .filters a:hover { color: #fff; border-color: var(--accent); background: linear-gradient(180deg, #ffaf37, #e77518); transform: translateY(-1px); box-shadow: 0 16px 28px rgba(217,120,28,.22); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); grid-auto-flow: dense; gap: 14px; }
.grid-ad { grid-column: 1 / -1; }
.grid-ad .ad-slot { margin: 4px 0; padding: 12px; border: 2px dashed rgba(217,120,28,.32); border-radius: 18px; background: rgba(255,255,255,.52); }
.card { --lift: 0px; position: relative; min-width: 0; overflow: hidden; border-radius: 17px; background: linear-gradient(#fff, #fffaf0) padding-box, linear-gradient(135deg, #fff, var(--line), var(--accent), #321606) border-box; border: 2px solid transparent; box-shadow: var(--shadow); transform: translateY(var(--lift)); transition: transform .18s ease, box-shadow .18s ease; isolation: isolate; }
.card:nth-child(6n+2), .card:nth-child(6n+5) { --lift: 7px; }
.card:nth-child(8n+3) { --lift: 3px; }
.card::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, var(--ink), var(--accent), var(--accent-2)); z-index: 2; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 48%, transparent 62%); transform: translateX(-130%); pointer-events: none; transition: transform .55s ease; }
.card:hover { transform: translateY(calc(var(--lift) - 4px)); box-shadow: 0 20px 42px rgba(116,55,7,.22); }
.card:hover::after { transform: translateX(130%); }
.card-thumb { position: relative; aspect-ratio: 16/9; background: #ffe8bd; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease, filter .24s ease; }
.card:hover img { transform: scale(1.055); filter: saturate(1.08) contrast(1.04); }
.badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(226,117,25,.9); color: #fff; font-size: .75rem; font-weight: 900; }
.views { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(74,38,15,.82); color: #fff; font-size: .75rem; font-weight: 800; }
.play-dot { position: absolute; left: 9px; top: 9px; width: 30px; height: 30px; border-radius: 999px; background: rgba(5,4,3,.72); box-shadow: 0 0 0 2px rgba(255,255,255,.72); backdrop-filter: blur(4px); }
.play-dot::before { content: ""; position: absolute; left: 12px; top: 8px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #fff; }
.duration { position: absolute; left: 47px; top: 12px; padding: 2px 7px; border-radius: 999px; color: #fff; background: rgba(5,4,3,.68); font-size: .68rem; font-weight: 900; }
.card-title { min-height: 3.3em; margin: 0; padding: 9px 10px 5px; color: var(--text); font-size: .82rem; line-height: 1.18; font-weight: 850; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; min-height: 28px; padding: 0 9px 9px; color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.card-meta span { max-width: 100%; min-width: 0; padding: 3px 7px; border-radius: 999px; background: rgba(255,218,145,.58); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-shell { background: #000; border: 3px solid transparent; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background-image: linear-gradient(#000,#000), linear-gradient(135deg, var(--ink), var(--accent), var(--accent-2)); background-origin: border-box; background-clip: padding-box, border-box; }
.video-player { position: relative; aspect-ratio: 16/9; width: 100%; background: #000; }
.video-player iframe, .video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.single-title { margin: 18px 0 10px; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; }
.meta-row, .term-row { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text); font-size: .95rem; }
.term-row a, .meta-row a, .content-box a { color: var(--text); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(242,137,31,.55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.term-row a:hover, .meta-row a:hover, .content-box a:hover { color: #000; text-decoration-color: var(--accent); }
.content-box { margin-top: 18px; color: var(--text); }
.sidebar { display: grid; gap: 16px; }
.ad-slot { display: block; width: 100%; min-height: 1px; margin: 16px 0; text-align: center; overflow: hidden; }
.ad-slot iframe, .ad-slot img, .ad-slot ins { max-width: 100%; }
.ad-slot-header { margin: 12px 0 0; }
.ad-slot-sidebar { position: sticky; top: 86px; }
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 38px; padding: 8px 11px; border: 2px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); text-align: center; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.site-footer { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255, 242, 218, .7); }
.empty { padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.term-cloud { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 22px; }
.term-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 11px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 800; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.term-pill:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }
.term-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-pill em { flex: 0 0 auto; color: var(--muted); font-style: normal; font-size: .82rem; }
#jsw-splash { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fffdf8 0%, #fff2d8 48%, #ffd994 100%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
#jsw-splash::before, #jsw-splash::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
#jsw-splash::before { width: min(72vw, 720px); height: min(72vw, 720px); background: radial-gradient(circle, rgba(255,255,255,.72), rgba(242,137,31,.16) 48%, transparent 70%); animation: jswSplashHalo 2s ease-in-out infinite; }
#jsw-splash::after { inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.15) 0 2px, transparent 2px 22px); opacity: .35; }
#jsw-splash.jsw-on { opacity: 1; visibility: visible; }
.jsw-splash-core { position: relative; z-index: 1; width: min(50vw, 330px); aspect-ratio: 1/1; display: grid; place-items: center; }
.jsw-splash-ring { position: absolute; inset: 7%; border-radius: 999px; border: 3px solid rgba(50,22,6,.72); box-shadow: 0 0 34px rgba(240,143,36,.36), inset 0 0 22px rgba(219,129,40,.22); animation: jswSplashPulse 1.25s ease-in-out infinite; }
.jsw-splash-ring.r2 { inset: 18%; animation-delay: .32s; }
#jsw-splash img { width: min(72%, 230px); height: auto; border-radius: 999px; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); filter: drop-shadow(0 16px 34px rgba(226,117,25,.42)); animation: jswSplashFloat 1.15s ease-in-out infinite; }
@keyframes jswSplashPulse { 0%,100% { transform: scale(1); opacity: .76; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes jswSplashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes jswSplashHalo { 0%,100% { transform: scale(.96); opacity: .72; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes jswHeaderSheen { 0%, 62% { transform: translateX(-120%); } 78%, 100% { transform: translateX(120%); } }
@keyframes jswGlowDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,18px) scale(1.08); } }
@keyframes jswLogoPulse { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.025); } }
@keyframes jswBrandUnderline { 0%,100% { transform: scaleX(.72); opacity: .78; } 50% { transform: scaleX(1); opacity: 1; } }
@media (max-width: 860px) {
	.header-inner { align-items: center; flex-direction: column; padding: 12px; }
	.nav .menu { gap: 10px; justify-content: center; }
	.single-layout { grid-template-columns: 1fr; }
	.sidebar { display: block; }
}
@media (max-width: 520px) {
	.wrap { width: min(100% - 20px, var(--max)); }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.card { --lift: 0px !important; }
	.card-title { font-size: .78rem; }
	.card-meta { font-size: .62rem; }
	.filters a { padding: 7px 9px; }
}
