/* Wisso Show — two looks on one structure. Default "playground": warm white, sunflower + teal blocks, rounded, sticker shadows.
   "playbill": paper, ink, one vermilion accent, square, thick rules. The admin switches them (settings.theme). */
:root, [data-theme="playground"] {
  --ground: #fffdf7; --card: #ffffff; --ink: #1f1b2e; --mute: #4d4860; --line: #1f1b2e; --soft: #f1eee6;
  --accent: #ffc531; --accent-ink: #1f1b2e; --accent-2: #0e7c7b; --accent-2-ink: #ffffff; --accent-3: #ff6b57; --accent-3-ink: #ffffff;
  --display: 'Baloo Bhaijaan 2', 'Readex Pro', sans-serif; --body: 'Readex Pro', 'Baloo Bhaijaan 2', sans-serif;
  --radius: 24px; --radius-s: 16px; --btn-radius: 999px; --border: 3px;
  --shadow: 6px 6px 0 var(--ink); --shadow-s: 4px 4px 0 var(--ink);
  --display-weight: 800; --display-lh: 1.2;
}
[data-theme="playbill"] {
  --ground: #f4efe4; --card: #ffffff; --ink: #15120f; --mute: #4f4840; --line: #15120f; --soft: #e8e0d0;
  --accent: #d8381e; --accent-ink: #ffffff; --accent-2: #15120f; --accent-2-ink: #f4efe4; --accent-3: #e8e0d0; --accent-3-ink: #15120f;
  --display: 'Changa', 'Tajawal', sans-serif; --body: 'Tajawal', 'Changa', sans-serif;
  --radius: 0; --radius-s: 0; --btn-radius: 0; --border: 3px;
  --shadow: 8px 8px 0 var(--ink); --shadow-s: 0 0 0 transparent;
  --display-weight: 800; --display-lh: 1.15;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 8px; }
.display { font-family: var(--display); font-weight: var(--display-weight); line-height: var(--display-lh); text-wrap: balance; margin: 0; }
h1.display { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2.display { font-size: clamp(2rem, 4vw, 3.2rem); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; margin: 0 0 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .9rem; padding: 4px 14px; border-radius: 999px; }
[data-theme="playbill"] .eyebrow { border-radius: 0; font-family: var(--display); letter-spacing: .04em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px 16px; padding: 12px 16px; background: var(--ground); border-bottom: var(--border) solid transparent; }
[data-theme="playbill"] .top { border-bottom-color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: var(--border) solid var(--ink); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
[data-theme="playbill"] .brand-mark { display: none; }
[data-theme="playbill"] .brand { text-transform: uppercase; letter-spacing: .03em; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: var(--btn-radius); white-space: nowrap; font-weight: 500; }
.nav a:hover, .nav a:focus-visible { background: var(--soft); }
.lang-switch { border: var(--border) solid var(--ink); border-radius: var(--btn-radius); padding: 5px 16px; color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; font-weight: 600; }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; }
  .lang-switch { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 4px 0 0; }
}

/* hero */
.hero { padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 6vw, 72px); }
[data-theme="playbill"] .hero { border-bottom: var(--border) solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hero-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-tag { display: inline-flex; margin: 0 0 4px; background: var(--accent-2); color: var(--accent-2-ink); font-weight: 600; font-size: .95rem; padding: 6px 16px; border-radius: 999px; transform: rotate(-3deg); }
[data-theme="playbill"] .hero-tag { background: var(--accent); color: var(--accent-ink); border-radius: 0; transform: none; font-family: var(--display); letter-spacing: .06em; }
.roles { color: var(--accent-2); font-weight: 600; margin: 0; font-size: 1.1rem; }
[data-theme="playbill"] .roles { color: var(--accent); }
.lede { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.4; margin: 6px 0 0; max-width: 28ch; }
.intro { color: var(--mute); max-width: 58ch; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 26px; border-radius: var(--btn-radius); font-weight: 700; text-decoration: none; border: var(--border) solid var(--ink); color: var(--ink); background: var(--card); transition: transform .12s ease; }
.btn:hover { transform: translate(-1px, -1px); }
.btn-spot { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-s); }
[data-theme="playbill"] .btn-spot { background: var(--ink); color: var(--ground); font-family: var(--display); font-size: 1.1rem; }
.btn-ghost { background: var(--card); }
[data-theme="playbill"] .btn-ghost { background: transparent; font-family: var(--display); font-size: 1.1rem; }
.btn-big { font-size: 1.15rem; min-height: 58px; padding-inline: 34px; box-shadow: var(--shadow); }
[data-theme="playbill"] .btn-big { background: var(--accent); color: var(--accent-ink); }
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.blob { position: absolute; display: block; }
.blob-1 { width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-2); inset-inline-end: 0; top: 0; }
.blob-2 { width: 44%; aspect-ratio: 1; border-radius: 42% 58% 55% 45%; background: var(--accent); inset-inline-start: 2%; bottom: 2%; }
.blob-3 { width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-3); inset-inline-start: 40%; top: 0; }
[data-theme="playbill"] .blob { display: none; }
.portrait { position: relative; width: min(100%, 320px); aspect-ratio: 4 / 5; border-radius: 28px; border: var(--border) solid var(--ink); background: var(--card); display: grid; place-items: center; color: var(--mute); font-weight: 500; box-shadow: var(--shadow); overflow: hidden; text-align: center; padding: 16px; }
[data-theme="playbill"] .portrait { border-radius: 0; width: min(100%, 400px); background: var(--soft); box-shadow: 14px 14px 0 var(--accent); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; top: 18px; inset-inline-start: 4%; transform: rotate(-8deg); background: var(--card); border: var(--border) solid var(--ink); padding: 6px 14px; font-family: var(--display); font-weight: 700; font-size: 1rem; border-radius: 999px; z-index: 2; }
[data-theme="playbill"] .sticker { border-radius: 0; }
[data-theme="playground"] .sticker { display: none; }

/* sections */
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-works { background: var(--card); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); }
[data-theme="playbill"] .section-works { background: transparent; border-top: 0; }
[data-theme="playbill"] .section-screen { background: var(--ink); color: var(--ground); }
[data-theme="playbill"] .section-screen .eyebrow { background: var(--accent); color: var(--accent-ink); }
[data-theme="playbill"] .section-screen .section-sub, [data-theme="playbill"] .section-screen .meta, [data-theme="playbill"] .section-screen .subhead, [data-theme="playbill"] .section-screen .video-on, [data-theme="playbill"] .section-screen .channel-text span { color: #c9c0b2; }
.section-contact { background: var(--accent-2); color: var(--accent-2-ink); border-top: var(--border) solid var(--ink); }
.section-contact .eyebrow { background: var(--card); color: var(--ink); }
.section-contact .section-sub, .section-contact .meta { color: inherit; opacity: .92; }
[data-theme="playbill"] .section-contact { background: transparent; color: var(--ink); }
[data-theme="playbill"] .section-contact .eyebrow { background: var(--accent); color: var(--accent-ink); }
[data-theme="playbill"] .section-contact .section-sub, [data-theme="playbill"] .section-contact .meta { color: var(--mute); opacity: 1; }
.section-head { margin-bottom: 32px; max-width: 60ch; position: relative; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--mute); margin: 10px 0 0; font-size: 1.1rem; }
.body-text { margin: 16px 0 0; max-width: 60ch; }
[data-theme="playbill"] .section-head { border-bottom: var(--border) solid currentColor; padding-bottom: 12px; max-width: none; }
[data-theme="playbill"] .section-head::before { content: attr(data-n); display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--accent); margin-bottom: 4px; }
[data-theme="playbill"] .section-head .eyebrow { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.split .section-head { margin-bottom: 0; }
.subhead { font-weight: 700; font-size: 1.05rem; color: var(--mute); margin: 36px 0 14px; }

/* posters */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
@media (min-width: 1100px) { .poster-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.poster-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.poster { aspect-ratio: 3 / 4; border-radius: var(--radius); border: var(--border) solid var(--ink); overflow: hidden; position: relative; display: grid; place-items: center; background: var(--soft); box-shadow: var(--shadow); transition: transform .15s ease; }
.poster-card:hover .poster { transform: translate(-2px, -2px); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.placeholder { padding: 20px; text-align: center; }
.poster.placeholder[data-n="0"] { background: var(--accent-2); color: var(--accent-2-ink); }
.poster.placeholder[data-n="1"] { background: var(--accent); color: var(--accent-ink); }
.poster.placeholder[data-n="2"] { background: var(--accent-3); color: var(--accent-3-ink); }
.poster.placeholder[data-n="3"] { background: var(--ink); color: var(--ground); box-shadow: 6px 6px 0 var(--accent); }
[data-theme="playbill"] .poster.placeholder[data-n="0"] { background: var(--accent); color: var(--accent-ink); }
[data-theme="playbill"] .poster.placeholder[data-n="1"] { background: var(--ink); color: var(--ground); }
[data-theme="playbill"] .poster.placeholder[data-n="2"] { background: var(--soft); color: var(--ink); }
[data-theme="playbill"] .poster.placeholder[data-n="3"] { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.poster-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; text-wrap: balance; }
.poster-note { position: absolute; bottom: 14px; inset-inline: 0; font-size: .8rem; opacity: .8; }
.card-body h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.meta { color: var(--mute); margin: 2px 0 0; font-size: .95rem; }
.sum { margin: 8px 0 0; font-size: .95rem; }

/* channels + videos */
.channel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: var(--border) solid var(--ink); border-radius: 20px; background: var(--card); color: inherit; text-decoration: none; box-shadow: var(--shadow-s); }
[data-theme="playbill"] .channel { border: 2px solid var(--ground); background: transparent; color: var(--ground); border-radius: 0; }
.channel-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.channel-yt { background: #e0362c; }
.channel-tt { background: var(--ink); }
[data-theme="playbill"] .channel-icon { border-radius: 0; background: var(--accent); }
[data-theme="playbill"] .channel-tt { background: var(--ground); color: var(--ink); }
.channel-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.channel-text strong { font-family: var(--display); font-size: 1.15rem; }
.channel-text span { color: var(--mute); font-size: .9rem; }
.channel-cta { color: var(--accent-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
[data-theme="playbill"] .channel-cta { color: var(--ground); border-bottom: 2px solid var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.video-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; border: var(--border) solid var(--ink); overflow: hidden; background: var(--soft); display: grid; place-items: center; }
[data-theme="playbill"] .video-thumb { border: 2px solid var(--ground); border-radius: 0; background: #2a2521; }
.video-thumb[data-n="0"] { background: var(--accent); }
.video-thumb[data-n="1"] { background: var(--accent-2); }
.video-thumb[data-n="2"] { background: var(--accent-3); }
[data-theme="playbill"] .video-thumb[data-n="0"], [data-theme="playbill"] .video-thumb[data-n="1"], [data-theme="playbill"] .video-thumb[data-n="2"] { background: #2a2521; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--ground); display: grid; place-items: center; }
.play svg { width: 22px; height: 22px; margin-inline-start: 3px; }
[data-theme="playbill"] .play { border-radius: 0; background: var(--accent); color: var(--accent-ink); }
.video-title { font-weight: 600; }
.video-on { color: var(--mute); font-size: .9rem; }

/* rows, prose, facts */
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.row-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: var(--border) solid var(--ink); border-radius: var(--radius-s); background: var(--card); }
.row-year { color: var(--accent-2); font-weight: 800; font-family: var(--display); font-size: 1.1rem; }
[data-theme="playbill"] .row-year { color: var(--accent); }
.row-card a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--accent); }
.prose p { margin: 0 0 14px; max-width: 65ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 22px 0 0; padding-top: 18px; border-top: var(--border) solid var(--ink); }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; }

/* contact + footer */
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.contact-lines { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-lines p { margin: 0; }
.contact-lines a { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 36px 0 0; }
.social-row a { color: inherit; text-decoration: none; border-bottom: 2px solid currentColor; font-weight: 500; }
.foot { padding: 24px 0 36px; color: var(--mute); font-size: .9rem; }
[data-theme="playbill"] .foot { border-top: var(--border) solid var(--ink); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
.foot-name { margin: 0; color: var(--ink); font-weight: 700; }
.foot-sub, .foot-right { margin: 2px 0 0; }

/* work page */
.work { padding: clamp(32px, 6vw, 72px) 0; }
.work-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .work-grid { grid-template-columns: minmax(0, 1fr); } .poster-large { max-width: 420px; } }
.work-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.big-meta { font-size: 1.05rem; }
.embed { aspect-ratio: 16 / 9; border-radius: var(--radius-s); border: var(--border) solid var(--ink); overflow: hidden; margin: 12px 0; background: #000; width: 100%; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.back { color: var(--ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); border: var(--border) solid var(--ink); display: block; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
