:root {
  --theme-bg: #070a10;
  --theme-panel: #101722;
  --theme-accent: #e52332;
  --theme-soft: #ff8990;
  --theme-glow: rgba(229,35,50,.22);
}

body {
  --cyan: var(--theme-accent);
  --cyan2: var(--theme-soft);
  background: var(--theme-bg) !important;
  transition: background-color .35s ease, color .35s ease;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, var(--theme-glow), transparent 31%), radial-gradient(circle at 92% 88%, var(--theme-glow), transparent 28%);
  opacity: .9;
  transition: background .35s ease;
}
.topbar { background: color-mix(in srgb, var(--theme-bg) 88%, transparent) !important; }
.brand-accent, .nav-link.active:after, .hero-rule, .meta-divider, .eyebrow-dot { color: var(--theme-accent) !important; background-color: var(--theme-accent) !important; }
.brand-accent { background-color: transparent !important; color: var(--theme-accent) !important; }
.button-primary { background: var(--theme-accent) !important; color: #fff !important; }
.button-primary:hover { background: var(--theme-soft) !important; }
.section-kicker, .eyebrow, .season-total, .poster-card-label, .release-countdown { color: var(--theme-soft) !important; }
.home-section-heading h2, .home-card-copy strong { background: linear-gradient(120deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 70%, #000)) !important; }
.home-card-art { background-color: var(--theme-accent) !important; box-shadow: 0 0 36px var(--theme-glow), inset 0 2px #ffffff32 !important; }
.site-footer { border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent) !important; }
.kwami-theme-picker { position: relative; z-index: 40; }
.kwami-theme-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--theme-accent) 58%, #fff 10%); border-radius: 10px; background: color-mix(in srgb, var(--theme-panel) 84%, transparent); color: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.kwami-theme-trigger:hover { background: color-mix(in srgb, var(--theme-accent) 23%, var(--theme-panel)); }
.kwami-theme-chevron { color: var(--theme-soft); font-size: 15px; line-height: 1; }
.kwami-theme-swatch { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid #fff8; border-radius: 50%; background: var(--swatch, var(--theme-accent)); box-shadow: 0 0 10px var(--swatch, var(--theme-accent)); }
.kwami-theme-menu { position: absolute; top: calc(100% + 8px); right: 0; display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 5px; width: min(315px, calc(100vw - 28px)); max-height: min(470px, 72vh); overflow: auto; padding: 8px; border: 1px solid color-mix(in srgb, var(--theme-accent) 60%, #fff 8%); border-radius: 14px; background: color-mix(in srgb, var(--theme-panel) 94%, #000); box-shadow: 0 18px 45px #000b, 0 0 22px var(--theme-glow); backdrop-filter: blur(18px); }
.kwami-theme-menu[hidden] { display: none; }
.kwami-theme-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--option-color, #f5f7fa); text-align: left; cursor: pointer; }
.kwami-theme-option:hover, .kwami-theme-option.is-selected { border-color: color-mix(in srgb, var(--theme-accent) 70%, #fff 10%); background: color-mix(in srgb, var(--theme-accent) 20%, transparent); }
.kwami-theme-option > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.kwami-theme-option strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.kwami-theme-option small { color: #aeb8c5; font-size: 8px; }
.kwami-theme-option i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: transparent; }
.kwami-theme-option.is-selected i { background: var(--theme-soft); box-shadow: 0 0 8px var(--theme-soft); }
.kwami-theme-menu { grid-template-columns: repeat(4, 1fr); width: 224px; }
.kwami-theme-option { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.kwami-theme-option > span:not(.kwami-option-symbol), .kwami-theme-option > strong, .kwami-theme-option > small { display: none !important; }
.kwami-theme-option .kwami-option-symbol { width: 36px; height: 36px; border-radius: 50%; }
.kwami-theme-option .kwami-option-symbol .kwami-symbol { width: 26px; height: 26px; }
.kwami-theme-option i { position: absolute; right: 4px; bottom: 4px; margin: 0; width: 5px; height: 5px; }
.kwami-symbol { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.kwami-symbol-image { object-fit: contain; object-position: center; }
.kwami-symbol[hidden] { display: none !important; }
.kwami-option-symbol { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--option-color, var(--theme-accent)) 48%, #fff 8%); border-radius: 50%; background: color-mix(in srgb, var(--option-color, var(--theme-accent)) 16%, transparent); color: var(--option-color, var(--theme-soft)); }
.kwami-option-symbol .kwami-symbol-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.kwami-option-symbol .kwami-symbol { width: 20px; height: 20px; }

body[data-kwami="tikki"] { --theme-bg:#160608; --theme-panel:#2c1015; --theme-accent:#E52535; --theme-soft:#ff8b96; --theme-glow:rgba(229,37,53,.25); }
body[data-kwami="plagg"] { --theme-bg:#080808; --theme-panel:#171717; --theme-accent:#202020; --theme-soft:#b9b9b9; --theme-glow:rgba(32,32,32,.35); }
body[data-kwami="wayzz"] { --theme-bg:#041613; --theme-panel:#0b2b26; --theme-accent:#26B7A0; --theme-soft:#86ead8; --theme-glow:rgba(38,183,160,.22); }
body[data-kwami="trixx"] { --theme-bg:#160a05; --theme-panel:#2c170c; --theme-accent:#F07832; --theme-soft:#ffb27e; --theme-glow:rgba(240,120,50,.22); }
body[data-kwami="pollen"] { --theme-bg:#171304; --theme-panel:#2b2409; --theme-accent:#F5CE24; --theme-soft:#ffe98a; --theme-glow:rgba(245,206,36,.22); }
body[data-kwami="nooroo"] { --theme-bg:#0e0718; --theme-panel:#1e1030; --theme-accent:#7546A8; --theme-soft:#c89be9; --theme-glow:rgba(117,70,168,.22); }
body[data-kwami="duusu"] { --theme-bg:#041418; --theme-panel:#0a2932; --theme-accent:#38AFCB; --theme-soft:#91e4f5; --theme-glow:rgba(56,175,203,.22); }
body[data-kwami="sass"] { --theme-bg:#06130f; --theme-panel:#0d2a21; --theme-accent:#168C68; --theme-soft:#7eddb9; --theme-glow:rgba(22,140,104,.22); }
body[data-kwami="kaalki"] { --theme-bg:#17130b; --theme-panel:#2b2417; --theme-accent:#D9C49B; --theme-soft:#f5e5c2; --theme-glow:rgba(217,196,155,.22); }
body[data-kwami="longg"] { --theme-bg:#160606; --theme-panel:#2c0d0c; --theme-accent:#D83B37; --theme-soft:#ff9691; --theme-glow:rgba(216,59,55,.22); }
body[data-kwami="fluff"] { --theme-bg:#08151a; --theme-panel:#102b35; --theme-accent:#B9E4F4; --theme-soft:#e6f8ff; --theme-glow:rgba(185,228,244,.22); }
body[data-kwami="mullo"] { --theme-bg:#11091a; --theme-panel:#241334; --theme-accent:#8C55B5; --theme-soft:#d0a6ec; --theme-glow:rgba(140,85,181,.22); }
body[data-kwami="barkk"] { --theme-bg:#170d08; --theme-panel:#2c1b11; --theme-accent:#B87543; --theme-soft:#e5b084; --theme-glow:rgba(184,117,67,.22); }
body[data-kwami="orikko"] { --theme-bg:#180a06; --theme-panel:#2d160e; --theme-accent:#E65A32; --theme-soft:#ffab8f; --theme-glow:rgba(230,90,50,.22); }
body[data-kwami="daizzi"] { --theme-bg:#180a13; --theme-panel:#2d1424; --theme-accent:#E989B5; --theme-soft:#ffd0e4; --theme-glow:rgba(233,137,181,.22); }
body[data-kwami="roaar"] { --theme-bg:#170611; --theme-panel:#2d0e22; --theme-accent:#C72B75; --theme-soft:#f17eb4; --theme-glow:rgba(199,43,117,.22); }
body[data-kwami="stompp"] { --theme-bg:#07130d; --theme-panel:#11291c; --theme-accent:#387B54; --theme-soft:#91c6a0; --theme-glow:rgba(56,123,84,.22); }
body[data-kwami="xuppu"] { --theme-bg:#170e08; --theme-panel:#2b1c11; --theme-accent:#A66B43; --theme-soft:#d7a67f; --theme-glow:rgba(166,107,67,.22); }
body[data-kwami="ziggy"] { --theme-bg:#111704; --theme-panel:#222d0b; --theme-accent:#A9C85B; --theme-soft:#ddf08e; --theme-glow:rgba(169,200,91,.22); }
body[data-kwami="liiri"] { --theme-bg:#06121d; --theme-panel:#0d2639; --theme-accent:#398BCB; --theme-soft:#8cc9f5; --theme-glow:rgba(57,139,203,.22); }

@media (max-width: 700px) {
  .kwami-theme-trigger { min-height: 29px; padding-inline: 7px; font-size: 9px; }
  .kwami-theme-trigger .kwami-theme-chevron { font-size: 13px; }
  .kwami-theme-menu { right: -5px; grid-template-columns: repeat(2, minmax(120px, 1fr)); width: min(290px, calc(100vw - 20px)); }
}

/* Camada global do tema: substitui o fundo fixo da joaninha por uma atmosfera do Kwami escolhido. */
.home-catalog { background: var(--theme-bg) !important; }
.home-catalog::before {
  background-image: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--theme-accent) 27%, transparent) 0 2px, transparent 3px), radial-gradient(circle at 74% 38%, color-mix(in srgb, var(--theme-soft) 18%, transparent) 0 1px, transparent 3px), linear-gradient(135deg, transparent, var(--theme-glow)) !important;
  background-size: 39px 39px, 61px 61px, 100% 100% !important;
  opacity: .72 !important;
}
.home-hero { background-color: var(--theme-bg) !important; }
.hero-overlay { background: linear-gradient(90deg, color-mix(in srgb, var(--theme-bg) 96%, #000) 0%, color-mix(in srgb, var(--theme-bg) 76%, transparent) 38%, transparent 82%), linear-gradient(0deg, var(--theme-bg) 0%, transparent 42%) !important; }
.release-agenda::before { background: linear-gradient(var(--theme-accent), color-mix(in srgb, var(--theme-accent) 15%, transparent)) !important; }
.release-agenda-item { border-color: color-mix(in srgb, var(--theme-accent) 18%, #fff 5%) !important; background: linear-gradient(100deg, color-mix(in srgb, var(--theme-accent) 10%, var(--theme-panel)), var(--theme-panel)) !important; }
.release-agenda-item:hover, .release-agenda-item.is-new { border-color: color-mix(in srgb, var(--theme-accent) 62%, #fff 10%) !important; }
.agenda-check { border-color: var(--theme-accent) !important; background: color-mix(in srgb, var(--theme-panel) 92%, #000) !important; box-shadow: 0 0 0 5px var(--theme-bg) !important; }
.agenda-check::before, .agenda-check::after, .agenda-check i { display: none !important; }
.agenda-check .kwami-symbol { width: 23px; height: 23px; color: var(--theme-soft); }
.player-loading { background: color-mix(in srgb, var(--theme-bg) 83%, transparent) !important; }
.kwami-loader { display: flex; align-items: center; gap: 11px; height: 34px; }
.kwami-loader-dot { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--theme-accent); border-radius: 50%; background: color-mix(in srgb, var(--theme-accent) 20%, var(--theme-bg)); color: var(--theme-soft); animation: kwami-loader-hop 1s ease-in-out infinite; }
.kwami-loader-dot .kwami-symbol { width: 19px; height: 19px; }
.kwami-loader-dot:nth-child(2) { animation-delay: .16s; }
.kwami-loader-dot:nth-child(3) { animation-delay: .32s; }
@keyframes kwami-loader-hop { 0%, 100% { transform: translateY(4px) scale(.84); opacity: .52; } 50% { transform: translateY(-5px) scale(1); opacity: 1; box-shadow: 0 0 20px var(--theme-glow); } }

/* O seletor fica com aparência de perfil e ocupa uma área própria, sem sobrepor a busca. */
.top-actions { gap: 9px !important; align-items: center; min-width: 0; }
.kwami-theme-picker { flex: 0 0 auto; }
.kwami-theme-trigger { width: 38px; height: 38px; min-height: 38px; justify-content: center; padding: 0; border-radius: 50%; }
.kwami-theme-trigger [data-theme-label], .kwami-theme-chevron { display: none; }
.kwami-theme-trigger .kwami-theme-swatch { display: none; }
.kwami-theme-trigger .kwami-theme-symbol { display: grid; place-items: center; color: var(--theme-soft); }
.kwami-theme-trigger .kwami-theme-symbol .kwami-symbol { width: 23px; height: 23px; }
.kwami-theme-menu { top: calc(100% + 10px); right: 0; }


@media (max-width: 620px) {
  .top-actions { flex: 0 0 auto !important; width: auto !important; margin-left: auto !important; }
  .kwami-theme-trigger { width: 32px; height: 32px; min-height: 32px; }
  .kwami-theme-trigger .kwami-theme-swatch { width: 18px; height: 18px; flex-basis: 18px; }
  .kwami-theme-menu { right: -3px; }
}

/* Convocação original do tema: órbita de emblemas e aro luminoso inspirado em um ioiô. */
.kwami-summon-overlay { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; background: radial-gradient(circle at center, color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 18%, transparent), transparent 34%), #020307b8; backdrop-filter: blur(3px); }
.kwami-summon-overlay.is-active { animation: kwami-summon-fade 920ms ease both; }
.kwami-summon-orbit { position: absolute; width: min(66vw, 310px); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 72%, #fff 8%); border-radius: 50%; box-shadow: 0 0 0 8px color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 8%, transparent), 0 0 65px color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 45%, transparent); transform: scale(.54) rotate(-18deg); }
.kwami-summon-orbit::before, .kwami-summon-orbit::after { content: ""; position: absolute; inset: 9%; border: 1px solid color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 28%, transparent); border-radius: 50%; }
.kwami-summon-orbit::after { inset: 22%; border-style: dashed; opacity: .7; }
.kwami-summon-token { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin: -16px; border: 1px solid color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 52%, #fff 10%); border-radius: 50%; background: color-mix(in srgb, var(--theme-bg) 74%, var(--summon-accent)); color: #fff; transform: rotate(calc(var(--token-index) * 18deg)) translateY(-155px) rotate(calc(var(--token-index) * -18deg)) scale(.6); opacity: 0; }
.kwami-summon-token .kwami-symbol { width: 19px; height: 19px; }
.kwami-summon-core { position: relative; z-index: 2; display: grid; place-items: center; width: 104px; height: 104px; border: 2px solid var(--summon-accent, var(--theme-accent)); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 33%, #10131a), #07090d 68%); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 12%, transparent), 0 0 45px var(--summon-accent, var(--theme-accent)); transform: scale(.35); opacity: 0; }
.kwami-summon-core::before, .kwami-summon-core::after { content: ""; position: absolute; inset: -18px; border: 1px solid color-mix(in srgb, var(--summon-accent, var(--theme-accent)) 36%, transparent); border-radius: 50%; transform: rotate(28deg) scaleX(.55); }
.kwami-summon-core::after { inset: -27px; transform: rotate(-28deg) scaleX(.55); opacity: .7; }
.kwami-summon-core .kwami-summon-symbol { width: 58px; height: 58px; stroke-width: 1.7; }
.kwami-summon-caption { position: absolute; top: calc(50% + 92px); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 2px 16px #000; transform: translateY(12px); opacity: 0; }
.kwami-summon-overlay.is-active .kwami-summon-orbit { animation: kwami-summon-orbit 920ms cubic-bezier(.2,.8,.2,1) both; }
.kwami-summon-overlay.is-active .kwami-summon-token { animation: kwami-summon-token 920ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--token-index) * 18ms); }
.kwami-summon-overlay.is-active .kwami-summon-core { animation: kwami-summon-core 920ms cubic-bezier(.16,.9,.25,1) both; }
.kwami-summon-overlay.is-active .kwami-summon-caption { animation: kwami-summon-caption 920ms ease both; }
@keyframes kwami-summon-fade { 0%, 100% { opacity: 0; } 14%, 82% { opacity: 1; } }
@keyframes kwami-summon-orbit { 0% { transform: scale(.54); opacity: 0; } 20% { opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.04); opacity: 0; } }
@keyframes kwami-summon-token { 0%, 12% { opacity: 0; transform: rotate(calc(var(--token-index) * 18deg)) translateY(-110px) rotate(calc(var(--token-index) * -18deg)) scale(.3); } 30%, 76% { opacity: 1; transform: rotate(calc(var(--token-index) * 18deg)) translateY(-155px) rotate(calc(var(--token-index) * -18deg)) scale(1); } 100% { opacity: 0; transform: rotate(calc(var(--token-index) * 18deg)) translateY(-155px) rotate(calc(var(--token-index) * -18deg)) scale(.7); } }
@keyframes kwami-summon-core { 0%, 30% { opacity: 0; transform: scale(.35); } 55% { opacity: 1; transform: scale(1.08); } 74% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16); } }
@keyframes kwami-summon-caption { 0%, 46% { opacity: 0; transform: translateY(12px); } 62%, 78% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 700px) { .kwami-theme-menu { grid-template-columns: repeat(4, 1fr); width: min(224px, calc(100vw - 24px)); } }
@media (max-width: 620px) { .kwami-summon-orbit { width: 76vw; } .kwami-summon-token { transform: rotate(calc(var(--token-index) * 18deg)) translateY(-36vw) rotate(calc(var(--token-index) * -18deg)) scale(.6); } .kwami-summon-caption { top: calc(50% + 78px); font-size: 8px; } .kwami-theme-menu { grid-template-columns: repeat(4, 1fr); width: min(224px, calc(100vw - 20px)); } }
