/*
Theme Name: Pass The Kabsa
Author: Pass The Kabsa
Description: A bold podcast and Saudi culture theme with episode discovery and an on-demand player.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pass-the-kabsa
*/
:root{--pink:#f65c99;--yellow:#ffe34a;--ink:#161616;--paper:#f7f7f2}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #3669ef;outline-offset:5px}.skip{position:absolute;left:15px;top:-80px;background:var(--yellow);padding:12px;z-index:20}.skip:focus{top:10px}.shell{max-width:1600px;margin:auto;padding:0 5%}header{border-bottom:1px solid #222;background:var(--paper)}.nav{min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:950;font-size:22px;line-height:.86;letter-spacing:-1px;display:block}.brand span{display:block}.navlinks{display:flex;gap:32px;align-items:center;font-weight:700;font-size:14px}.navcta,.btn{border:1px solid var(--ink);background:var(--ink);color:white;display:inline-flex;align-items:center;justify-content:center;gap:26px;padding:14px 22px;font-size:14px;font-weight:700}.navcta{background:var(--yellow);color:var(--ink)}.menu{display:none}.hero{display:grid;grid-template-columns:1.05fr 1fr;border-bottom:1px solid var(--ink)}.hero-copy{background:var(--pink);padding:44px 8% 40px 9.5%;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:660px}.eyebrow{font:700 12px/1.4 'Courier New',monospace;letter-spacing:1.4px;text-transform:uppercase;display:flex;align-items:center;gap:12px}.eyebrow:before{content:'✳';font-size:23px}h1{font-size:clamp(64px,7.2vw,116px);font-weight:950;line-height:.89;letter-spacing:-.065em;margin:35px 0 24px}h1 em{font-family:Georgia,serif;font-weight:400;letter-spacing:-.075em}p{max-width:430px}.hero-copy p{margin:0 0 28px;font-size:17px}.actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.textlink{border-bottom:1px solid;font-size:14px;font-weight:700;padding:8px 0}.hero-image{position:relative;background:#243849;overflow:hidden;min-height:600px}.hero-image img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:center 49%;transition:transform 1s}.hero-image:hover img{transform:scale(1.025)}.hero-image:after{content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}.image-label{position:absolute;top:30px;left:30px;color:white;font:12px 'Courier New',monospace;letter-spacing:2px}.sticker{position:absolute;right:28px;top:28px;z-index:1;background:var(--yellow);border:1px solid var(--ink);padding:16px 20px;transform:rotate(9deg);font-size:19px;line-height:1;font-weight:900;text-align:center;box-shadow:4px 4px 0 var(--ink)}.image-bottom{position:absolute;bottom:28px;left:30px;right:30px;color:white;display:flex;justify-content:space-between;align-items:flex-end;z-index:1;font:12px 'Courier New',monospace}.image-bottom strong{font:italic 33px Georgia,serif}.ticker{background:var(--yellow);border-bottom:1px solid var(--ink);padding:16px 0;overflow:hidden;white-space:nowrap;font-weight:900;letter-spacing:2px;font-size:15px}.ticker-track{display:inline-block;animation:move 35s linear infinite}.ticker span{margin:0 25px}@keyframes move{to{transform:translateX(-40%)}}.episodes{padding-top:76px;padding-bottom:80px}.section-top{display:flex;justify-content:space-between;gap:30px;align-items:flex-end}h2{font-size:clamp(40px,5vw,68px);line-height:1;letter-spacing:-3px;margin:15px 0 24px}.section-top p{font-size:14px;max-width:220px;color:#555}.toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #aaa;padding:20px 0 24px;margin-bottom:30px}.filters{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #bbb;border-radius:40px;padding:9px 19px;background:transparent;font-size:14px}.chip[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.search{border-bottom:1px solid #222;display:flex;align-items:center;gap:10px}.search input{border:0;background:transparent;width:180px;padding:10px 0;outline-offset:1px;font-size:14px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.card[hidden]{display:none}.art{position:relative;width:100%;aspect-ratio:16/10;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:25px;background:var(--pink);border:1px solid var(--ink);overflow:hidden;text-align:left;color:var(--ink)}.card:nth-child(2) .art{background:var(--yellow)}.card:nth-child(3) .art{background:#bac6f4}.art small{font:700 12px 'Courier New',monospace;letter-spacing:1px}.art strong{font-size:clamp(32px,3.8vw,57px);font-weight:950;line-height:.92;letter-spacing:-2px;max-width:85%}.play{position:absolute;right:20px;bottom:20px;background:var(--ink);color:white;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;transition:transform .2s}.art:hover .play{transform:scale(1.12)}.meta{font:12px 'Courier New',monospace;color:#555;margin:20px 0 8px}.card h3{font-size:22px;letter-spacing:-.6px;line-height:1.2;margin:0 0 8px}.watchlink{font-size:14px;border:0;background:transparent;padding:8px 0;text-decoration:underline;text-underline-offset:5px}.empty{padding:30px;border:1px solid #aaa}.about{background:var(--ink);color:var(--paper);padding:72px 0}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.about h2{color:var(--pink);font-size:clamp(55px,6vw,88px);margin:25px 0}.about p{font-size:19px;line-height:1.65}.about .textlink{color:var(--yellow)}.tag-cloud{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}.tag-cloud span{border:1px solid #626262;padding:8px 14px;font-size:14px;border-radius:30px}.listen{padding:65px 0;background:var(--yellow)}.listen .shell{display:flex;justify-content:space-between;align-items:center;gap:30px}.listen h2{margin:0 0 10px;font-size:48px}.platforms{display:flex;gap:12px;flex-wrap:wrap}.platforms a{padding:14px 18px;border:1px solid #222;font-size:14px;font-weight:700}footer{padding:32px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}footer small{font-size:12px;color:#555}dialog{width:min(920px,94vw);padding:24px;background:var(--paper);border:1px solid var(--ink);max-height:90vh}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.dialog-top h2{font-size:24px;letter-spacing:-.7px;margin:0}.close{background:transparent;border:1px solid;padding:5px 12px;font-size:24px}.player{aspect-ratio:16/9;background:#111}.player iframe{width:100%;height:100%;border:0}.dialog-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:18px;font-size:14px}.custom-logo{max-width:110px;height:auto}.article{padding:70px 5%;max-width:950px;margin:auto}.article img{max-width:100%;height:auto}.article h1{font-size:55px;line-height:1.05}.article a{text-decoration:underline}.wp-block-image img{height:auto;max-width:100%}@media(min-width:1600px){.hero{max-width:1600px;margin:auto;border-left:1px solid;border-right:1px solid}}@media(max-width:800px){.nav{min-height:80px}.navlinks{gap:18px}.hero-copy{min-height:570px;padding:35px 8%}.hero-image{min-height:570px}h1{font-size:70px}.hero-copy p{font-size:16px}.btn{gap:15px;padding:13px 17px}.hero .textlink{font-size:13px}.cards{gap:16px}.art{padding:18px}.art strong{font-size:35px}.about-grid{gap:35px}.toolbar{align-items:flex-start}.search input{width:135px}}@media(max-width:600px){.shell{padding-left:6%;padding-right:6%}.nav{flex-wrap:wrap;padding-top:18px;padding-bottom:18px}.menu{display:block;border:1px solid;background:transparent;padding:8px 12px}.navlinks{display:none;width:100%;padding-top:20px;flex-wrap:wrap}.navlinks.open{display:flex}.hero{grid-template-columns:1fr}.hero-copy{padding:30px 6% 40px;min-height:540px}h1{font-size:85px;margin:28px 0}.hero-image{min-height:410px}.hero-image img{object-position:center 49%}.image-label{left:22px}.sticker{font-size:17px}.episodes{padding-top:50px;padding-bottom:50px}.section-top{display:block}.section-top p{max-width:none}.toolbar{flex-direction:column;align-items:stretch}.search input{width:100%}.cards{grid-template-columns:1fr;gap:32px}.art{padding:25px;aspect-ratio:16/9}.art strong{font-size:58px}.about{padding:45px 0}.about-grid{grid-template-columns:1fr;gap:10px}.about p{font-size:17px}.listen .shell{display:block}.platforms{margin-top:25px}.footer-inner{flex-wrap:wrap}.footer-inner small{width:100%}.dialog-bottom{flex-direction:column}.ticker{font-size:13px}h2{letter-spacing:-2px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ticker-track{animation:none}*{transition:none!important}}
/* Owner-controlled colors and flexible content layouts. */
header{background:var(--header-bg,var(--paper));color:var(--header-text,var(--ink))}header,.hero,.ticker,.navcta,.btn,.art,.platforms a{border-color:var(--border,var(--ink))}
.hero-copy{background:var(--hero-bg,var(--pink));color:var(--hero-text,var(--ink));min-width:0}.hero-text-only{grid-template-columns:1fr}.hero-text-only .hero-copy{padding-inline:5%}
.btn{background:var(--button-bg,var(--ink));color:var(--button-text,#fff)}.navcta{background:var(--yellow);color:var(--ink)}
.ticker{background:var(--ticker-bg,var(--yellow));color:var(--ticker-text,var(--ink))}
.episodes{background:var(--episodes-bg,var(--paper))}.section-top p,.meta,footer small{color:var(--muted,#555)}
.art{background:var(--card-1,var(--pink));color:var(--card-text,var(--ink));min-height:240px;height:auto;aspect-ratio:auto;gap:25px}
.card:nth-child(3n+2) .art{background:var(--card-2,var(--yellow))}.card:nth-child(3n) .art{background:var(--card-3,#bac6f4)}
.art strong{font-size:clamp(1.6rem,3vw,3rem);overflow-wrap:anywhere;letter-spacing:-.04em;text-transform:uppercase}.card{min-width:0}.card h3{overflow-wrap:anywhere}
.episode-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.episode-excerpt{font-size:1rem}.watchlink{display:inline-block;color:inherit}.art small{position:relative}
.about{background:var(--about-bg,var(--ink));color:var(--about-text,var(--paper))}.about h2{color:var(--about-heading,var(--pink))}.about .textlink{color:var(--about-link,var(--yellow))}.about-image{width:100%;height:auto;display:block;margin-top:24px}
.listen{background:var(--listen-bg,var(--yellow));color:var(--listen-text,var(--ink))}footer{background:var(--footer-bg,var(--paper));color:var(--footer-text,var(--ink))}footer small{color:inherit}.footer-logo{height:auto}
h1,h2,h3,.sticker,.image-label{overflow-wrap:anywhere}.hero h1{max-width:100%;line-height:1;letter-spacing:-.055em}.hero-copy p,.about p{font-size:1.0625em}.image-bottom{gap:20px}.image-bottom span{max-width:65%}.sticker{max-width:65%}.brand{line-height:1}.art .play{z-index:1}.custom-logo{height:auto}
@media(max-width:800px){.section-top,.toolbar{flex-wrap:wrap}.about-grid>div{min-width:0}.art{padding:18px}.hero-image{min-height:420px}}@media(max-width:600px){.hero .hero-copy h1{font-size:clamp(2.8rem,13vw,5.3rem)}.art{min-height:240px;padding:25px}.art strong{font-size:clamp(2rem,9vw,3.7rem)}.hero-image{min-height:410px}}

@media(max-width:600px){.hero .hero-copy h1{font-size:clamp(2.8rem,13vw,var(--hero-heading-max,116px))}}

/* Pixel header and hero. Scoped to preserve the rest of the theme. */
.ptk-game-header{position:sticky;top:0;z-index:15;background:#210b30;color:#ffd05b;border-bottom:3px solid #6e3b83}
.admin-bar .ptk-game-header{top:32px}
.ptk-game-header .nav{min-height:104px;max-width:1800px;flex-wrap:nowrap}
.ptk-game-header .ptk-game-brand{display:flex;align-items:center;gap:16px;font:14px/1.35 'Press Start 2P',monospace;letter-spacing:0;color:#ffd05b}
.ptk-bag-mark{display:block;width:52px;height:66px;flex-shrink:0}
.ptk-desktop-nav{display:flex;align-items:center;gap:clamp(20px,3vw,48px);font:11px/1.5 'Press Start 2P',monospace;text-transform:uppercase}
.ptk-desktop-nav a,.ptk-mobile-menu a{min-height:44px;display:flex;align-items:center}
.ptk-desktop-nav a:hover,.ptk-mobile-menu a:hover{color:#fff2d9;text-decoration:underline;text-underline-offset:7px}
.ptk-game-header .ptk-watch{background:#f65c99;color:#210b30;padding:16px 20px;border:3px solid #f65c99;box-shadow:5px 5px 0 #883364;text-decoration:none}
.ptk-watch:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #883364}
.ptk-mobile-menu{display:none}
.ptk-game-hero{position:relative;background:#210b30;isolation:isolate;overflow:hidden;min-height:440px;aspect-ratio:3/1}
.ptk-game-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-1}
.ptk-game-copy{position:absolute;left:6.8%;top:50%;transform:translateY(-50%);width:55%}
.ptk-game-copy h1{font:clamp(30px,4.6vw,92px)/1.3 'Press Start 2P',monospace;letter-spacing:-.035em;color:#fff2d9;margin:0 0 22px;overflow-wrap:normal}
.ptk-game-copy p{font:clamp(11px,1.25vw,24px)/1.8 'Press Start 2P',monospace;max-width:none;color:#c497df;margin:0}
.ptk-game-header a:focus-visible,.ptk-game-header summary:focus-visible{outline:3px solid #ffd05b;outline-offset:5px}
@media(max-width:1000px){.ptk-desktop-nav{display:none}.ptk-mobile-menu{display:block}.ptk-mobile-menu summary{cursor:pointer;min-height:44px;padding:12px;border:2px solid #ffd05b;font:12px/1.5 'Press Start 2P',monospace;list-style:none}.ptk-mobile-menu summary::-webkit-details-marker{display:none}.ptk-mobile-menu nav{position:absolute;top:100%;left:0;right:0;background:#210b30;border-bottom:3px solid #6e3b83;padding:20px 6%;display:flex;flex-direction:column;gap:14px;font:12px/1.5 'Press Start 2P',monospace;text-transform:uppercase}.ptk-mobile-menu .ptk-watch{align-self:flex-start}.ptk-game-hero{min-height:350px}}
@media(max-width:782px){.admin-bar .ptk-game-header{top:46px}}
@media(max-width:600px){.admin-bar .ptk-game-header{top:0}.ptk-game-header .nav{min-height:90px;padding-top:10px;padding-bottom:10px}.ptk-game-header .ptk-game-brand{font-size:11px;gap:8px}.ptk-bag-mark{width:40px;height:56px}.ptk-game-hero{aspect-ratio:auto;min-height:560px}.ptk-game-backdrop{top:auto;bottom:0;height:320px;object-fit:cover;object-position:80% bottom}.ptk-game-copy{position:relative;left:auto;top:auto;transform:none;width:auto;padding:42px 6% 300px}.ptk-game-copy h1{font-size:clamp(25px,7vw,42px);line-height:1.45;margin-bottom:16px}.ptk-game-copy p{font-size:11px;max-width:320px;line-height:2}}

/* Pass the Kabsa: buttons and section spacing. Typography stays in its existing rules. */
body .ptk-game-header .ptk-watch,
body #hero.ptk-editable-hero .actions .btn,
body #about.ptk-pixel-about .textlink{
 display:inline-flex;align-items:center;justify-content:center;gap:16px;
 min-height:48px;max-width:100%;padding:14px 20px;
 border:2px solid #f65c99;border-radius:0;background:#f65c99;color:#210b30;
 box-shadow:4px 4px 0 #883364;text-decoration:none;text-align:center;
 white-space:normal;overflow-wrap:anywhere;
 transition:background-color .15s,border-color .15s,transform .15s,box-shadow .15s;
}
body .ptk-game-header .ptk-watch:hover,
body #hero.ptk-editable-hero .actions .btn:hover,
body #about.ptk-pixel-about .textlink:hover{
 background:#ffd05b;border-color:#ffd05b;color:#210b30;text-decoration:none;
}
body .ptk-game-header .ptk-watch:active,
body #hero.ptk-editable-hero .actions .btn:active,
body #about.ptk-pixel-about .textlink:active{
 transform:translate(2px,2px);box-shadow:2px 2px 0 #883364;
}
body .ptk-game-header .ptk-watch:focus-visible,
body #hero.ptk-editable-hero .actions a:focus-visible,
body #about.ptk-pixel-about .textlink:focus-visible{
 outline:3px solid #ffd05b;outline-offset:7px;
}
body #hero.ptk-editable-hero .actions{gap:16px 24px;margin-top:28px}
body #hero.ptk-editable-hero .actions .textlink{
 display:inline-flex;align-items:center;justify-content:center;min-height:48px;
 max-width:100%;padding:12px 0;color:#ffd05b;border:0;
 text-decoration:underline;text-underline-offset:6px;white-space:normal;
}
body #hero.ptk-editable-hero .actions .textlink:hover{color:#fff2d9}
body #about.ptk-pixel-about .textlink{margin-top:4px}
body #about.ptk-pixel-about .textlink::after{flex-shrink:0}
body #listen.ptk-listen-robot .platforms a{
 min-height:48px;border:2px solid #210b30;border-radius:0;
 background:#210b30;color:#fff2d9;box-shadow:4px 4px 0 #b78036;
 max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere;
 transition:background-color .15s,transform .15s,box-shadow .15s;
}
body #listen.ptk-listen-robot .platforms a:hover{background:#492153}
body #listen.ptk-listen-robot .platforms a:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #b78036}
body #listen.ptk-listen-robot .platforms a:focus-visible{outline:3px solid #210b30;outline-offset:7px}
body #listen.ptk-listen-robot .platforms a::after{flex-shrink:0}
body #episodes.ptk-pixel-episodes,body #about.ptk-pixel-about{padding-top:64px;padding-bottom:64px}
body #about.ptk-pixel-about .about-grid{gap:48px}
body #about.ptk-pixel-about h2{margin:16px 0 24px}
body #about.ptk-pixel-about .about-image{margin-top:0}
body #about.ptk-pixel-about p{margin:0 0 20px}
body #about.ptk-pixel-about .tag-cloud{margin-top:28px;gap:12px}
body #hero.ptk-editable-hero .ptk-game-copy{padding-top:64px;padding-bottom:64px}
/* Keep the listening strip and centered robot at their existing dimensions. */
@media(max-width:800px){
 body #episodes.ptk-pixel-episodes,body #about.ptk-pixel-about{padding-top:40px;padding-bottom:40px}
 body #about.ptk-pixel-about .about-grid{gap:28px}
}
@media(max-width:600px){
 body #hero.ptk-editable-hero .ptk-game-copy{padding-top:40px;padding-bottom:350px}
 body #hero.ptk-editable-hero.ptk-no-art .ptk-game-copy{padding-bottom:40px}
 body #hero.ptk-editable-hero .actions{gap:16px;margin-top:24px}
 body #hero.ptk-editable-hero .actions .btn,body #about.ptk-pixel-about .textlink{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){
 body .ptk-game-header .ptk-watch,body #hero.ptk-editable-hero .actions .btn,
 body #about.ptk-pixel-about .textlink,body #listen.ptk-listen-robot .platforms a{transition:none;transform:none}
}

/* Mobile polish only: retain all desktop rules and footer artwork. */
@media(max-width:600px){
 html{scroll-padding-top:92px}
 body .ptk-game-header .nav{min-height:76px;padding-top:8px;padding-bottom:8px;gap:16px}
 body .ptk-game-header .ptk-bag-mark{width:36px;height:48px}
 body .ptk-game-header .ptk-mobile-menu summary{min-height:44px;padding:10px 12px}
 body .ptk-game-header .ptk-mobile-menu nav{max-height:calc(100dvh - 90px);overflow-y:auto;padding-bottom:24px}
 body #hero.ptk-editable-hero .ptk-game-copy{padding-top:32px}
 body #hero.ptk-editable-hero .actions{gap:12px 20px}
 body #episodes.ptk-pixel-episodes .cards{gap:24px}
 body #episodes.ptk-pixel-episodes .card{padding:8px 8px 18px}
 body #episodes.ptk-pixel-episodes .card h3{font-size:20px;line-height:1.4;margin:10px 10px 12px}
 body #episodes.ptk-pixel-episodes .card .meta{margin:12px 10px;color:#c497df}
 body #episodes.ptk-pixel-episodes .card .art{min-height:0;height:auto;aspect-ratio:16/9}
 body #episodes.ptk-pixel-episodes .card .watchlink{display:flex;justify-content:center;align-items:center;min-height:48px;margin:16px 10px 0;text-align:center}
 /* Hide only the visual emoji; its existing accessible text remains in the markup. */
 body #episodes.ptk-pixel-episodes .play{font-size:0;width:44px;height:44px;right:14px;bottom:14px;transform:none}
 body #episodes.ptk-pixel-episodes .play::before{content:"";width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid #210b30;margin-left:3px}
 body #about.ptk-pixel-about .about-grid{gap:20px}
 body #about.ptk-pixel-about .tag-cloud{gap:8px 12px;margin-top:24px}
 body #listen.ptk-listen-robot .platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
 body #listen.ptk-listen-robot .platforms a{width:100%;min-width:0;margin:0;padding:12px 10px}
 body #listen.ptk-listen-robot .platforms a:last-child:nth-child(odd){grid-column:1/-1}
}

/* Replace platform-rendered play emojis with a CSS triangle. */
body #episodes.ptk-pixel-episodes .play{
 font-size:0!important;line-height:0!important;color:transparent!important;
 text-shadow:none!important;background-image:none!important;
}
body #episodes.ptk-pixel-episodes .play>*{visibility:hidden!important}
body #episodes.ptk-pixel-episodes .play img{display:none!important}
body #episodes.ptk-pixel-episodes .play::before{content:none!important}
body #episodes.ptk-pixel-episodes .play::after{
 content:""!important;display:block!important;visibility:visible!important;
 position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);
 width:0;height:0;padding:0;margin:0;background:none;
 border:0;border-top:7px solid transparent;border-bottom:7px solid transparent;
 border-left:11px solid #210b30;pointer-events:none;
}
