/* Port fundamentu UI2 AnimePilot 0bdc1ba7; PROVENANCE.md. */
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.12; letter-spacing: -.028em; }
h3 { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.2; letter-spacing: -.02em; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:where(button, input, select, textarea):disabled, [aria-disabled="true"] { opacity: .5; }
.btn, .ui2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--radius-btn); font-size: 15.5px; line-height: 1.4; font-weight: 700; text-decoration: none; transition: background .15s; box-shadow: none; }
.btn--primary, .ui2-btn--primary { background: var(--accent-solid); color: var(--on-accent); }
.btn--primary:hover, .ui2-btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: none; box-shadow: none; }
.btn--secondary, .ui2-btn--secondary { background: var(--surface-2); color: var(--text); min-height: 44px; }
.btn--secondary:hover, .ui2-btn--secondary:hover { background: var(--surface-3); transform: none; box-shadow: none; }
.ui2-btn--dark { background: var(--text); color: var(--bg); }
.ui2-btn--dark:hover { opacity: .9; }
.on-dark .ui2-btn--primary { background: var(--ui2-white); color: var(--hero-bg); }
.on-dark .ui2-btn--secondary { background: var(--ui2-on-dark-field); color: var(--ui2-white); }
.ui2-more { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-size: 15px; font-weight: 700; text-decoration: none; }
.ui2-more:hover { text-decoration: underline; }
.chip, .ui2-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 0; border-radius: var(--radius-chip); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650; }
.ui2-tile .ui2-chip { background: var(--bg); }
.ui2-filter { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 0; border-radius: var(--radius-btn); background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 650; }
.ui2-tabs { display: flex; gap: 24px; max-width: 100%; overflow-x: auto; border-bottom: 1px solid var(--surface-3); }
.ui2-tabs > :is(a, button) { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 52px; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--text-muted); font-size: 16px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.ui2-tabs > :is([aria-current], [aria-selected="true"]) { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px var(--accent); }
.ui2-tabs small { color: var(--text-muted); font-size: 13px; }
.ui2-subnav { min-height: 58px; }
.ui2-tile, .ui2-question { display: block; padding: 20px; border: 0; border-radius: var(--radius-tile); background: var(--surface-2); color: var(--text); box-shadow: none; text-decoration: none; }
a.ui2-tile:hover { background: var(--surface-3); }
.ui2-question h3 { font-size: 18px; font-weight: 700; }
.ui2-panel { padding: 24px; border: 0; border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: none; }
.ui2-panel h3 { font-size: 19px; }
.ui2-callout { padding: 22px; border: 0; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--text); }
.ui2-step, .ui2-rank { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-solid); color: var(--on-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.ui2-step--optional { background: var(--surface-3); color: var(--text-muted); }
.ui2-rank { width: 28px; height: 28px; border-radius: var(--radius-chip); background: var(--accent-soft); color: var(--link); }
.ui2-rank--first { background: var(--accent-solid); color: var(--on-accent); }
.ui2-section { padding-block: var(--section-gap); }
.ui2-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ui2-section-head h2 { margin: 0; }
.ui2-poster img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--poster-shadow); }
.ui2-poster { color: var(--text); font-size: 15.5px; font-weight: 700; text-decoration: none; }
.ui2-meta { color: var(--text-muted); font-size: 13.5px; font-weight: 400; }
.ui2-avatar { display: inline-grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-weight: 800; }
.ui2-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ui2-switch { appearance: none; width: 46px; height: 28px; padding: 3px; border: 0; border-radius: 14px; background: var(--surface-3); cursor: pointer; }
.ui2-switch::before { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--ui2-white); transition: translate .15s; }
.ui2-switch:checked { background: var(--accent-solid); }
.ui2-switch:checked::before { translate: 18px; }
.ui2-pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.ui2-pagination a, .ui2-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--surface-2); color: var(--text); text-decoration: none; }
.ui2-pagination [aria-current] { background: var(--accent-solid); color: var(--on-accent); }
/* Existing cards adopt the shared surfaces; layout and server text remain owned by each lane. */
:is(.anime-card, .post-card, .panel, .info-card, .faq-item, .nav-panel__service, .app-sheet__nav a) { border: 0; box-shadow: none; }
:is(.anime-card, .post-card, .panel, .info-card, .faq-item):hover { box-shadow: none; transform: none; }
.reveal { animation: none !important; opacity: 1; translate: none; }
.site-header { border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header > .container { position: relative; }
.site-header__bar { min-height: 60px; gap: 20px; }
.brand img { height: 24px; }
.header-actions { margin-left: auto; gap: 8px; }
.header-account { order: 3; height: 44px; padding: 10px 14px; border: 0; border-radius: var(--radius-btn); background: var(--ui2-white); color: var(--hero-bg) !important; font-size: 15px; font-weight: 700; }
.header-account svg { display: none; }
.header-account span { display: inline; }
.theme-toggle, .search-toggle { width: 44px; height: 44px; border: 0; border-radius: var(--radius-btn); background: var(--ui2-on-dark-field); color: var(--ui2-white); }
.theme-toggle { order: 2; }
.ui2-header-search { display: none; }
.nav-panel, .search-panel { border: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: var(--menu-shadow); }
.nav-panel { top: 100%; left: 0; right: 0; padding: 30px 26px; gap: 40px; translate: none; }
.nav-panel > .nav-panel__col { padding: 0; --inset: 0px; }
.nav-panel:not(:has(.nav-feature)) { padding-right: 26px; }
.nav-panel__title { margin: 0 0 16px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.nav-panel__col--rich ul { gap: 8px; }
.nav-panel__col--rich a, .nav-panel__col--services .nav-panel__service { padding: 12px 14px; border: 0; border-radius: var(--radius-md); background: var(--surface-inset); }
.nav-panel__col--rich a:hover, .nav-panel__col--services .nav-panel__service:hover { background: var(--surface-3); }
.nav-panel__icon { display: none; }
.nav-panel__label svg { opacity: 1; translate: none; margin-left: auto; }
.nav-panel__label { font-size: 16px; }
.nav-panel__desc { white-space: normal; font-size: 13.5px; }
.nav-panel__col--compact ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-panel__col--compact a { white-space: normal; }
.nav-feature { flex: 1 1 0; min-width: 0; padding: 0; background: none; border: 0; }
.nav-feature__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.nav-feature__grid .nav-feature__card { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 4px 12px; padding: 8px; background: var(--surface-inset); border-radius: var(--radius-md); }
.nav-feature__card .poster { grid-row: span 2; width: 48px; }
.nav-feature__title { font-size: 15px; }
.nav-feature__meta { font-size: 13px; }
.site-footer { padding-block: 72px 36px; border: 0; }
.site-footer__grid { gap: 40px; }
.site-footer .footer-heading { color: var(--footer-label); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.site-footer nav a:not(.btn) { color: var(--ui2-on-dark-muted); font-size: 15px; }
.site-footer__about p { color: var(--ui2-on-dark-muted); }
.site-footer__social a { width: 46px; height: 46px; background: var(--ui2-on-dark-field); }
.site-footer__bottom { border-color: var(--ui2-on-dark-line); align-items: center; padding-top: 24px; color: var(--ui2-on-dark-muted); }
.site-footer__bottom p { order: -1; margin: 0; }
.ui2-sister { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; }
.ui2-sister span { color: var(--ui2-on-dark-muted); }
.ui2-sister img { width: auto; height: 18px; }
.ui2-sister svg { width: 20px; height: 20px; }
.nl-band { margin: 0; border-radius: 0; border: 0; background: var(--band-newsletter); overflow: hidden; color: var(--ui2-white); }
[data-theme="dark"] .nl-band { background: var(--band-newsletter); }
.nl-band__inner { position: relative; }
.nl-band h2 { color: var(--ui2-white); font-size: 34px; line-height: 1.05; font-weight: 800; }
.nl-band__text p { font-size: 16px; line-height: 1.55; color: var(--ui2-on-dark-muted); }
.nl-band__body { padding: 40px 0; }
.nl-band .nl-form { max-width: none; }
.nl-band .nl-form__field { padding: 6px; border-radius: var(--radius-tile); box-shadow: none; background: var(--ui2-white); }
.nl-band .nl-form__field input { height: 52px; min-width: 0; border: 0; background: var(--ui2-white); color: var(--hero-bg); }
.nl-band .btn--primary { min-height: 52px; border-radius: 11px; background: var(--hero-bg); color: var(--ui2-white); white-space: normal; }
.nl-band .nl__visual--wall { height: 120px; }
.ap-cookie .btn--primary { background: var(--accent-solid); }
@media (min-width: 1024px) {
  :root { --header-h: 128px; }
  .site-header__bar { min-height: 76px; }
  .brand img { height: 28px; }
  .header-actions .theme-toggle, .header-actions .header-account { height: 46px; }
  .header-actions .theme-toggle { width: 46px; }
  .header-actions .search-toggle { display: none; }
  .ui2-header-search { display: block; flex: 1; max-width: 560px; margin-left: 32px; }
  .ui2-header-search .search-field { height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--ui2-on-dark-field); }
  .ui2-header-search input { color: var(--ui2-white); background: transparent; }
  .ui2-header-search input::placeholder { color: var(--ui2-on-dark-muted); }
  .ui2-header-search button { color: var(--ui2-white); }
  .primary-nav { display: block; }
  .primary-nav__list { gap: 10px; min-height: 52px; }
  .primary-nav__list > li, .primary-nav__list > li:hover, .primary-nav__list > li.is-active, .primary-nav__list > li:has(> a[aria-current]) { border-radius: 0; background: none; }
  .primary-nav__list > li > a { display: flex; align-items: center; min-height: 52px; padding: 10px 12px; border-radius: 0; font-size: 15px; font-weight: 650; color: var(--ui2-on-dark-muted) !important; }
  .primary-nav__item.is-active { box-shadow: inset 0 -3px var(--now); }
  .primary-nav__item.is-active > a, .primary-nav__item.is-active > button { color: var(--ui2-white) !important; }
  .js .primary-nav__toggle { border-radius: var(--radius-chip); }
  .search-panel { top: 76px; }
  .nl-band__inner { grid-template-columns: minmax(0,1fr) 300px; }
  .nl-band__body { grid-template-columns: minmax(0, 380px) minmax(0,1fr); padding: 68px 0; gap: 32px; }
  .nl-band .nl__visual--wall { height: auto; }
}
@media (max-width: 1023px) {
  :root { --tabbar-h: 64px; }
  .site-header { position: relative; }
  .site-header__bar { gap: 8px; }
  .brand { min-width: 0; }
  .brand img { max-width: 100%; }
  .header-actions { flex-shrink: 0; gap: 6px; }
  .header-account { padding-inline: 10px; font-size: 14px; }
  .theme-toggle, .search-toggle { width: 40px; }
  .js .header-actions [data-search-toggle] { display: grid; }
  .js .tabbar, .js[data-theme="dark"] .tabbar { background: var(--surface); box-shadow: 0 -6px 24px var(--overlay); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar__item { min-height: 56px; font-size: 11.5px; font-weight: 650; color: var(--text-muted); }
  .tabbar__item[aria-current="page"], .tabbar__item[aria-expanded="true"] { color: var(--link); }
  .tabbar__item .tabbar__icon, .tabbar__item[aria-current="page"] .tabbar__icon, .tabbar__item[aria-expanded="true"] .tabbar__icon { background: none; }
  .tabbar__icon svg { width: 22px; height: 22px; }
  .js .app-sheet { background: var(--surface); color: var(--text); }
  .app-sheet__nav a { min-height: 48px; margin-bottom: 8px; padding: 12px; border: 0; border-radius: var(--radius-md); background: var(--surface-inset); color: var(--text); }
  .app-sheet .nav-panel__desc, .app-sheet__group-title { color: var(--text-muted); }
  .app-sheet__all, .app-sheet__info a { color: var(--link); }
  .app-sheet__head { border: 0; }
  .app-sheet__head .icon-btn { color: var(--text); background: var(--surface-2); }
  .ui2-section { padding-block: var(--section-gap-mobile); }
  .ui2-subnav { min-height: 52px; }
  .nl-band h2 { font-size: 28px; }
  .nl-band__inner { grid-template-columns: minmax(0,1fr); }
  .nl-band__body { grid-template-columns: minmax(0,1fr); padding: 32px 0 40px; }
  .nl-band .nl-form__field { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; min-width: 0; background: none; padding: 0; gap: 8px; }
  .nl-band .nl-form__field input, .nl-band .nl-form__field button { flex: 0 0 auto; width: 100%; min-height: 52px; border-radius: var(--radius-btn); }
  .site-footer { padding-top: 44px; }
  .site-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .site-footer__bottom { gap: 20px; }
  .ui2-sister { order: -2; width: 100%; margin: 0; min-height: 56px; border-bottom: 1px solid var(--ui2-on-dark-line); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .primary-nav__list { gap: 0; }
  .primary-nav__list > li > a { padding-inline: 10px; font-size: 14px; }
  .nl-band__inner { grid-template-columns: minmax(0,1fr) 160px; }
  .nl-band__body { grid-template-columns: minmax(0,280px) minmax(0,1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ui2-switch::before, .btn, .ui2-btn { transition: none; } }
/* Specificity bridge for existing header/search and panel card rules. */
@media (min-width: 1024px) {
  .header-actions .search-toggle:not(.search-toggle--link) { display: none; }
  .js .search-panel { top: 76px; left: 0; right: 0; border: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: var(--menu-shadow); }
}
.nav-panel .nav-feature__grid { grid-template-columns: minmax(0,1fr); gap: 10px !important; }
.nav-panel .nav-feature__card { padding: 8px !important; background: var(--surface-inset) !important; }
.search-panel__main { border: 0; }
@media (max-width: 359px) {
  .brand img { height: 20px; }
  .header-actions { gap: 4px; }
  .header-account { font-size: 13px; padding-inline: 8px; }
}
.primary-nav__list > li:has(> a[aria-current="page"]) > a, .primary-nav__list > li.is-active > a { color: var(--ui2-white) !important; }
.nl-band .nl__visual--wall { position: relative; overflow: hidden; }
.nl-band .nl-wall { inset: 0; width: 100%; }
.ap-cookie [data-ap-cookie="accept"] { background: var(--accent-solid); border-color: var(--accent-solid); }
.ap-cookie [data-ap-cookie="accept"]:hover { background: var(--accent-hover); }
.contest-bar { background: var(--band-newsletter); }
.contest-bar__inner { min-height: 36px; }
.contest-bar__text { justify-content: center; font-size: 13.5px; padding-block: 6px; }
:is(.anime-card--row, .panel, .vod-row, .watch-order > li, .empty, .account-panel, .list-card) { border: 0; box-shadow: none; background: var(--surface-2); }
.segmented :is(a,button), .pagination .page-numbers { border: 0; border-radius: var(--radius-btn); background: var(--surface-2); }
@media (min-width:1024px) { .ui2-header-search .search-field { width: 100%; max-width: none; } }
.ui2-mobile-search { display: none; }
@media(max-width:1023px) { .js .header-actions [data-search-toggle] { display: none; } .js .header-actions .ui2-mobile-search { display: grid; place-items: center; } }
@media(min-width:1024px) {
  .primary-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ui2-header-season { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 14px; text-decoration: none; }
  .ui2-header-season svg { width: 16px; height: 16px; }
}
@media(min-width:1024px) and (max-width:1199px) { .ui2-header-season { font-size: 12px; } .primary-nav__list > li > a { padding-inline: 7px; } }

.app-sheet .search-field { background: var(--surface-2); border: 0; }
.app-sheet .search-field input { color: var(--text); }
.app-sheet .search-field input::placeholder, .app-sheet .search-field__icon { color: var(--text-muted); }


/* Karta zgody: geometria wspólnego komponentu UI2, tekst i zachowanie z wtyczki MangaPilot. */
.mp-consent { inset:auto auto 24px 24px; width:min(440px,calc(100vw - 48px)); padding:24px; border-radius:var(--radius-lg); background:var(--surface); color:var(--text); box-shadow:0 8px 40px #0003; }
.mp-consent a { color:inherit; }
.mp-consent button { background:var(--surface-2); color:var(--text); border:0; box-shadow:inset 0 0 0 1px var(--surface-3); }
@media(max-width:767px) { .mp-consent { left:16px; bottom:calc(80px + env(safe-area-inset-bottom)); width:calc(100vw - 32px); padding:20px; } }
