/*
 * Disseny "Escena" (proposta C): imatges a sang, el destacat a pantalla completa, títols en Anton
 * majúscula i text en Inter, cantonades rectes. Dos modes amb les mateixes peces: clar (per
 * defecte) i fosc (body.tk-scheme-dark). El color de la marca arriba en variables que calcula
 * Theme amb contrast AA contra el fons del mode (--tk-accent-ui, --tk-accent-text...).
 * Primer el mòbil; a partir de 48rem, tauleta i escriptori.
 */

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(anton-5-2-7-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(anton-5-2-7-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(inter-5-2-8-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(inter-5-2-8-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

/* Mode clar. El fons ha de ser el de Theme::BACKGROUNDS['light'] (contra el qual es calcula el contrast). */
:root {
    --tk-bg: #FFFFFF;
    --tk-surface: #F4F4F5;
    --tk-raised: #FFFFFF;
    --tk-muted-bg: #F4F4F5;
    --tk-line: #E4E4E7;
    --tk-line-strong: #A1A1AA;
    --tk-ink: #0C0C0E;
    --tk-ink-2: #3F3F46;
    --tk-ink-3: #52525B;
    --tk-ink-4: #71717A;
    --tk-danger: #B42318;
    --tk-danger-bg: #FEF3F2;
    --tk-ok: #067647;
    --tk-ok-bg: #ECFDF3;
    --tk-footer-bg: #F4F4F5;
    /* Botons, xips i etiquetes: el color de la marca, ajustat el mínim si el text no hi arriba a AA. */
    --tk-btn: var(--tk-btn-light);
    --tk-on-btn: var(--tk-on-btn-light);
    /* El destacat i les imatges sempre són foscos. */
    --tk-stage-bg: #1F2A30;
    --tk-stage-ink: #FFFFFF;
    --tk-stage-ink-2: #E4E4E7;
    --tk-shadow-sm: 0 1px 2px rgba(12, 12, 14, .06);
    --tk-shadow: 0 8px 24px rgba(12, 12, 14, .1);
    --tk-shadow-lg: 0 12px 32px rgba(12, 12, 14, .16);
    --tk-gutter: 16px;
    --tk-header-h: 64px;
    --tk-display: 'Anton', 'Arial Narrow', sans-serif;
}

/* Mode fosc. El fons ha de ser el de Theme::BACKGROUNDS['dark']. */
.tk-scheme-dark {
    --tk-bg: #0C0C0E;
    --tk-surface: #17171A;
    --tk-raised: #17171A;
    --tk-muted-bg: #1F1F23;
    --tk-line: #2A2A2F;
    --tk-line-strong: #52525B;
    --tk-ink: #F4F4F5;
    --tk-ink-2: #D4D4D8;
    --tk-ink-3: #A1A1AA;
    --tk-ink-4: #8B8B94;
    --tk-danger: #FDA29B;
    --tk-danger-bg: #3A1513;
    --tk-ok: #75E0A7;
    --tk-ok-bg: #0D2B1C;
    --tk-footer-bg: #070708;
    /* En fosc, el color de marca només si es veu sobre el negre (si no, botons clars), ajustat per al text. */
    --tk-btn: var(--tk-btn-dark);
    --tk-on-btn: var(--tk-on-btn-dark);
    --tk-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --tk-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    --tk-shadow-lg: 0 12px 32px rgba(0, 0, 0, .6);
    /* Mapa de butaques (seat-map.css): 3:1 de les vores sobre el fons fosc. */
    --tk-seat-free: #27272A;
    --tk-seat-free-line: #A1A1AA;
    --tk-seat-busy: #3F3F46;
    --tk-seat-mobility: #102C4A;
    --tk-seat-mobility-line: #7CB4F0;
    --tk-seat-reduced: #2C1A3B;
    --tk-seat-reduced-line: #C39BE0;
    --tk-seat-pack: #221E46;
    --tk-seat-pack-line: #A69BF0;
}

/* Cantonades rectes: el radi del projecte no s'aplica a aquest disseny. */
.tk-design-escena { --tk-radius: 0px; --tk-radius-sm: 0px; }

@media (min-width: 64rem) {
    :root { --tk-gutter: 32px; --tk-header-h: 88px; }
}

/* Alçada real de la capçalera: un logo més alt que --tk-header-h (logo_height) l'estira, i la columna
   fixa de la fitxa, el checkout i les àncores s'han de posar a sota. En mòbil el logo no passa de 56px. */
:root { --tk-header-offset: var(--tk-header-h); }
@media (min-width: 48rem) {
    :root { --tk-header-offset: max(var(--tk-header-h), var(--tk-logo-height, 0px)); }
}

@media (min-width: 90rem) {
    :root { --tk-gutter: 64px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tk-header-offset) + 16px); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--tk-bg);
    color: var(--tk-ink);
    font-family: var(--tk-font-body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--tk-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: .005em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a { color: var(--tk-ink); text-underline-offset: .15em; }
a:hover { color: var(--tk-ink); text-decoration-thickness: 2px; }

img, svg { max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--tk-accent-ui); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid var(--tk-line); margin: 2rem 0; }

.tk-wrap { width: 100%; max-width: calc(1312px + 2 * var(--tk-gutter)); margin: 0 auto; padding: 0 var(--tk-gutter); }

.tk-main { flex: 1 0 auto; padding-bottom: 3rem; }

.tk-skip { position: absolute; left: -999px; z-index: 100; padding: .75rem 1rem; background: var(--tk-ink); color: var(--tk-bg); }
.tk-skip:focus { left: 1rem; top: 1rem; color: var(--tk-bg); }

.tk-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Etiquetes en majúscula espaiada (menú, xips, botons): la veu del disseny. */
.tk-nav__link, .tk-chip, .tk-button, .tk-tag, .tk-card__badge, .tk-row__cta, .tk-eyebrow, .tk-accordion > summary {
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Capçalera ---------- */

.tk-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--tk-bg);
    border-bottom: 1px solid var(--tk-line);
    color: var(--tk-ink);
}

.tk-header__inner {
    min-height: var(--tk-header-h);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-right: auto;
    text-decoration: none;
    color: inherit;
}

.tk-brand__logo { display: block; height: var(--tk-logo-height, 44px); width: auto; max-width: 200px; object-fit: contain; }
/* El logo de sempre (fosc) en mode fosc: sobre una placa clara perquè es vegi. */
.tk-brand__logo--plate { padding: 4px 8px; background: #FFFFFF; box-sizing: content-box; height: calc(var(--tk-logo-height, 44px) - 8px); }
@media (max-width: 47.99rem) {
    .tk-brand__logo { height: min(var(--tk-logo-height, 44px), 56px); max-width: 160px; }
    .tk-brand__logo--plate { height: calc(min(var(--tk-logo-height, 44px), 56px) - 8px); }
}

.tk-brand__mark {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tk-btn);
    color: var(--tk-on-btn);
    font-family: var(--tk-display);
    font-size: 1.25rem;
}

.tk-brand__name { font-family: var(--tk-display); font-size: 1.25rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tk-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.tk-nav__item { position: relative; }

.tk-nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 4px;
    border-bottom: 2px solid transparent;
    color: inherit;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
}

.tk-nav__link:hover { border-bottom-color: currentColor; color: inherit; }
.tk-nav__link[aria-current] { border-bottom-color: var(--tk-accent-ui); }

.tk-nav__sub { list-style: none; margin: 0; padding: 0 0 0 14px; }
.tk-nav__sub .tk-nav__link { font-weight: 500; }

.tk-actions { display: flex; align-items: center; gap: 4px; }

.tk-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.tk-icon-button:hover { background: rgba(127, 127, 127, .16); color: inherit; }
.tk-icon-button svg { width: 22px; height: 22px; }

.tk-icon-button__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--tk-accent-ui);
    box-shadow: 0 0 0 2px var(--tk-bg);
}

.tk-lang { position: relative; }

.tk-lang > summary {
    list-style: none;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    font-weight: 600;
    font-size: .8125rem;
    cursor: pointer;
}

.tk-lang > summary::-webkit-details-marker { display: none; }

.tk-lang__list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 140px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--tk-raised);
    color: var(--tk-ink);
    border: 1px solid var(--tk-line-strong);
    box-shadow: var(--tk-shadow-lg);
}

.tk-lang__list a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; }
.tk-lang__list a:hover, .tk-lang__list a[aria-current] { background: var(--tk-muted-bg); }

.tk-menu-toggle { display: none; }

@media (max-width: 63.99rem) {
    .tk-header__inner { flex-wrap: wrap; }
    .tk-nav { order: 10; flex-basis: 100%; padding: 0 0 12px; }
    .tk-nav__link { padding: 10px 0; }
    .tk-js .tk-menu-toggle { display: inline-flex; }
    .tk-js .tk-nav { display: none; }
    .tk-js .tk-header.is-open .tk-nav { display: block; border-top: 1px solid var(--tk-line); padding-top: 8px; }
    .tk-actions .tk-hide-mobile { display: none; }
}

@media (min-width: 64rem) {
    .tk-brand { margin-right: 0; }
    .tk-nav { margin: 0 auto; }
    .tk-nav__list { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; }
    .tk-nav__sub {
        position: absolute;
        left: -14px;
        top: 100%;
        z-index: 50;
        display: none;
        min-width: 220px;
        padding: 6px 14px;
        background: var(--tk-raised);
        color: var(--tk-ink);
        border: 1px solid var(--tk-line-strong);
        box-shadow: var(--tk-shadow-lg);
    }
    .tk-nav__item:hover > .tk-nav__sub,
    .tk-nav__item:focus-within > .tk-nav__sub { display: block; }
}

/* Menús llargs (7 elements o més): més compactes perquè càpiguen en una línia */
@media (min-width: 64rem) {
    .tk-nav__list:has(> li:nth-child(7)) { column-gap: 16px; }
    .tk-nav__list:has(> li:nth-child(7)) > li > .tk-nav__link { font-size: .8125rem; letter-spacing: .05em; }
}

/* Capçalera fosca o del color de marca (tincket.theme.header_style) */
.tk-header--dark { background: #0C0C0E; border-bottom-color: #0C0C0E; color: #F4F4F5; }
.tk-header--brand { background: var(--tk-btn-light); border-bottom-color: var(--tk-btn-light); color: var(--tk-on-btn-light); }
.tk-header--brand .tk-brand__mark { background: var(--tk-on-btn-light); color: var(--tk-btn-light); }
.tk-header--brand .tk-nav__link[aria-current] { border-bottom-color: currentColor; }
.tk-header--dark .tk-icon-button__dot { box-shadow: 0 0 0 2px #0C0C0E; }

/*
 * Home amb el destacat, en mode fosc: la capçalera va a sobre de la imatge, translúcida.
 * Només quan el destacat ve just després (sense avís de la marca ni missatges).
 */
.tk-scheme-dark.tk-has-stage .tk-header:not(.tk-header--brand) { background: rgba(12, 12, 14, .55); border-bottom-color: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tk-scheme-dark.tk-has-stage .tk-header.is-open { background: var(--tk-bg); }
.tk-scheme-dark.tk-has-stage .tk-header + .tk-main:not(:has(.tk-notice)) > .tk-stage { margin-top: calc(-1 * var(--tk-header-offset)); }
.tk-scheme-dark.tk-has-stage .tk-header + .tk-main:not(:has(.tk-notice)) > .tk-stage .tk-stage__slide { padding-top: var(--tk-header-offset); }
.tk-scheme-dark.tk-has-stage .tk-header + .tk-main:not(:has(.tk-notice)) > .tk-stage .tk-hero__controls { top: calc(var(--tk-header-offset) + 24px); }

/* ---------- Peu ---------- */

.tk-footer {
    margin-top: auto;
    background: var(--tk-footer-bg);
    border-top: 1px solid var(--tk-line);
    padding: 48px 0 24px;
    font-size: .9375rem;
}

.tk-footer__grid { display: grid; gap: 28px; }

.tk-footer__name { display: block; margin-bottom: 8px; font-family: var(--tk-display); font-weight: 400; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }

.tk-footer__panel { color: var(--tk-ink-3); overflow-x: auto; }
.tk-footer__panel img { max-height: 80px; width: auto; }
.tk-footer__panel table { width: 100%; }
.tk-footer__panel td, .tk-footer__panel th { border: 0; padding: 4px 8px 4px 0; vertical-align: middle; }

.tk-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.tk-footer__bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--tk-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    color: var(--tk-ink-3);
    font-size: .8125rem;
}

.tk-powered { display: inline-flex; align-items: center; gap: 6px; color: var(--tk-ink-3); text-decoration: none; }
.tk-powered__mark { padding: 2px 5px; border-radius: 4px; background: #D81921; color: #FFFFFF; font-size: .625rem; font-weight: 700; letter-spacing: .02em; }

@media (min-width: 48rem) {
    .tk-footer__grid { grid-template-columns: 2fr 1fr; gap: 48px; }
}

.tk-footer__locales a[aria-current] { font-weight: 700; text-decoration: none; }
.tk-footer__button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Peu fosc (footer_style = dark): el mateix en els dos modes. */
.tk-footer--dark { --tk-ink: #F4F4F5; --tk-ink-2: #D4D4D8; --tk-ink-3: #A1A1AA; --tk-line: #2A2A2F; background: #070708; border-top-color: #070708; color: #F4F4F5; }
.tk-footer--dark a, .tk-footer--dark a:hover, .tk-footer--dark .tk-powered { color: #F4F4F5; }
/* Peu amb el color de la marca (logos del panell en blanc pensats per anar sobre el color, com a la v2) */
.tk-footer--brand { --tk-ink: var(--tk-on-btn-light); --tk-ink-2: var(--tk-on-btn-light); --tk-ink-3: var(--tk-on-btn-light); --tk-line: rgba(127, 127, 127, .4); background: var(--tk-btn-light); border-top-color: var(--tk-btn-light); color: var(--tk-on-btn-light); }
.tk-footer--brand a, .tk-footer--brand a:hover, .tk-footer--brand .tk-powered { color: var(--tk-on-btn-light); }
.tk-footer--brand .tk-powered__mark { background: var(--tk-on-btn-light); color: var(--tk-btn-light); }

/* ---------- Peces comunes ---------- */

.tk-eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--tk-accent-text);
    font-size: .75rem;
    font-weight: 700;
}

.tk-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 6px 12px;
    background: var(--tk-btn-dark);
    color: var(--tk-on-btn-dark);
    font-size: .75rem;
    font-weight: 700;
}

.tk-page-head { padding: 32px 0 8px; }
.tk-page-head h1 { margin-bottom: .2em; }
.tk-page-head p { color: var(--tk-ink-3); margin: 0; }

.tk-page { max-width: 44rem; margin-inline: auto; }
.tk-page--wide { max-width: none; margin-inline: 0; }

.tk-section { padding-top: 40px; }
.tk-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.tk-section__head h2, .tk-section__head .tk-section__title { margin: 0; }
.tk-section__title { margin: 0 0 18px; font-size: clamp(2.125rem, 1.4rem + 2.8vw, 4rem); line-height: 1; }

.tk-muted { color: var(--tk-ink-3); }
.tk-small { font-size: .875rem; }

.tk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--tk-btn);
    background: var(--tk-btn);
    color: var(--tk-on-btn);
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tk-button:hover { color: var(--tk-on-btn); filter: brightness(.92); text-decoration: none; }
.tk-button[disabled], .tk-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }

.tk-button--secondary { background: transparent; color: var(--tk-ink); border-color: var(--tk-line-strong); }
.tk-button--secondary:hover { color: var(--tk-ink); background: var(--tk-muted-bg); filter: none; }

.tk-button--quiet { background: var(--tk-muted-bg); border-color: var(--tk-muted-bg); color: var(--tk-ink); }
.tk-button--quiet:hover { color: var(--tk-ink); filter: brightness(.97); }

/* Sobre una imatge (el destacat): vora i text blancs */
.tk-button--outline { background: transparent; border-color: var(--tk-stage-ink); color: var(--tk-stage-ink); }
.tk-button--outline:hover { background: rgba(255, 255, 255, .12); color: var(--tk-stage-ink); filter: none; }

.tk-button--large { min-height: 56px; padding: 0 30px; font-size: .9375rem; }
.tk-button--block { display: flex; width: 100%; }
.tk-button--small { min-height: 44px; padding: 0 16px; font-size: .8125rem; }

.tk-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--tk-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}

.tk-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 1.5rem 0; }

.tk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; list-style: none; scrollbar-width: thin; }
.tk-chips li { flex: none; }

.tk-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--tk-line-strong);
    background: transparent;
    color: var(--tk-ink);
    font-weight: 600;
    font-size: .8125rem;
    text-decoration: none;
    white-space: nowrap;
}

.tk-chip:hover { background: var(--tk-muted-bg); color: var(--tk-ink); }
.tk-chip[aria-current] { background: var(--tk-btn); border-color: var(--tk-btn); color: var(--tk-on-btn); font-weight: 700; }

.tk-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--tk-line-strong);
    color: var(--tk-ink-2);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.tk-status--low { border-color: var(--tk-danger); color: var(--tk-danger); }

.tk-panel {
    padding: 16px;
    margin: 0 0 16px;
    background: var(--tk-raised);
    border: 1px solid var(--tk-line);
}

.tk-panel > :last-child { margin-bottom: 0; }
.tk-panel h2 { font-size: 1.5rem; }

@media (min-width: 48rem) {
    .tk-panel { padding: 24px; }
}

.tk-surface { background: var(--tk-surface); }

.tk-notice {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--tk-ink);
    background: var(--tk-muted-bg);
    color: var(--tk-ink);
    font-size: .9375rem;
}

.tk-notice > :last-child, .tk-notice ul { margin-bottom: 0; }
.tk-notice p { margin: 0; }
.tk-notice ul { margin-top: .25rem; padding-left: 1.25rem; }
.tk-notice.tk-error { display: block; border-left-color: var(--tk-danger); background: var(--tk-danger-bg); color: var(--tk-danger); }
.tk-notice.tk-ok { border-left-color: var(--tk-ok); background: var(--tk-ok-bg); color: var(--tk-ok); }

.tk-prose { display: flow-root; color: var(--tk-ink-2); line-height: 1.65; overflow-wrap: anywhere; }
.tk-prose iframe { max-width: 100%; border: 0; }
.tk-prose table { width: 100%; }
.tk-prose h2, .tk-prose h3 { color: var(--tk-ink); margin-top: 1.5em; }
.tk-prose a { color: var(--tk-ink); }
/* HTML del panell fet per a la v2 (Bootstrap 4): només les classes que hi surten (peu del Teatre Núria Espert) */
.tk-prose .row { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.tk-prose .col-24 { flex: 0 0 100%; }
.tk-prose .align-items-center { align-items: center; }
.tk-prose .justify-content-around { justify-content: space-around; }
.tk-prose .text-center { text-align: center; }
.tk-prose .my-4 { margin-block: 1.5rem; }
@media (min-width: 48rem) {
    .tk-prose .col-md-auto { flex: 0 0 auto; }
}

/*
 * HTML del panell en mode fosc: porta colors en línia pensats per al blanc (text negre, fons
 * blancs). Es neutralitzen perquè hereti els del mode; les imatges es queden com són.
 */
.tk-scheme-dark .tk-prose [style*="color"] { color: inherit !important; }
.tk-scheme-dark .tk-prose [style*="background"]:not(img) { background: transparent !important; }
.tk-scheme-dark .tk-prose [bgcolor] { background: transparent !important; }
.tk-scheme-dark .tk-prose font[color] { color: inherit !important; }

/* ---------- Formularis ---------- */

.tk-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.tk-field label, .tk-field legend { font-weight: 700; font-size: .875rem; }
.tk-field small { color: var(--tk-ink-3); font-size: .8125rem; }

.tk-field input:not([type="checkbox"]):not([type="radio"]),
.tk-field select,
.tk-field textarea,
.tk-input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--tk-line-strong);
    border-radius: 0;
    background: var(--tk-raised);
    color: var(--tk-ink);
    font-size: 1rem;
    font-weight: 500;
}

.tk-field textarea { min-height: 120px; padding: 12px 14px; line-height: 1.5; }
.tk-field select { appearance: auto; }
.tk-field [aria-invalid="true"] { border-color: var(--tk-danger); }

.tk-field fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-field fieldset label { font-weight: 500; font-size: .9375rem; }

.tk-field label:has(> input[type="checkbox"]),
.tk-field label:has(> input[type="radio"]),
.tk-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    font-size: .9375rem;
    line-height: 1.4;
}

input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--tk-accent-ui); }

.tk-field-error { margin: 0; color: var(--tk-danger); font-size: .875rem; font-weight: 600; }

fieldset { min-width: 0; margin: 0 0 16px; padding: 16px; border: 1px solid var(--tk-line); }
legend { padding: 0 6px; font-family: var(--tk-display); font-weight: 400; font-size: 1.125rem; text-transform: uppercase; }

.tk-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }

/* ---------- Taules ---------- */

table { border-collapse: collapse; }
.tk-table { width: 100%; font-size: .9375rem; }
.tk-table th, .tk-table td { padding: 12px 10px; border-bottom: 1px solid var(--tk-line); text-align: left; vertical-align: top; }
.tk-table thead th { color: var(--tk-ink-3); font-size: .8125rem; font-weight: 600; }
.tk-table-wrap { overflow-x: auto; border: 1px solid var(--tk-line); }
.tk-table-wrap .tk-table tr:last-child > * { border-bottom: 0; }

/* ---------- Passos de la compra ---------- */

.tk-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    color: var(--tk-ink-3);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tk-steps li { display: flex; flex-direction: column; gap: 6px; }
.tk-steps li::before { content: ''; height: 3px; background: var(--tk-line); }
.tk-steps .is-done::before { background: var(--tk-ink); }
.tk-steps [aria-current] { color: var(--tk-ink); font-weight: 700; }
.tk-steps [aria-current]::before { background: var(--tk-accent-ui); }

.tk-purchase-head { padding: 16px 0 4px; }
.tk-purchase-head__top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tk-purchase-head__title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tk-purchase-head__title strong { font-family: var(--tk-display); font-weight: 400; font-size: 1.25rem; line-height: 1.05; text-transform: uppercase; }
.tk-purchase-head__title span { color: var(--tk-ink-3); font-size: .8125rem; }

@media (min-width: 48rem) {
    .tk-purchase-head__title strong { font-size: 2rem; }
    .tk-purchase-head__title span { font-size: .9375rem; }
}

.tk-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--tk-danger);
    background: var(--tk-danger-bg);
    color: var(--tk-danger);
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tk-timer svg { width: 14px; height: 14px; }

/* Barra de compra: enganxada a baix al mòbil, dins del flux a l'escriptori. */
.tk-buybar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: 20px calc(-1 * var(--tk-gutter)) 0;
    padding: 12px var(--tk-gutter);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--tk-raised);
    border-top: 1px solid var(--tk-line-strong);
    box-shadow: 0 -10px 30px rgba(12, 12, 14, .12);
}

.tk-buybar__total { display: flex; flex-direction: column; color: var(--tk-ink-3); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; flex: 1 1 10rem; margin: 0; }
.tk-buybar .tk-button { margin-left: auto; white-space: nowrap; }
.tk-buybar__total strong { color: var(--tk-ink); font-size: 1.75rem; font-family: var(--tk-display); font-weight: 400; letter-spacing: 0; }
.tk-buybar--end { justify-content: flex-end; }

@media (min-width: 48rem) {
    .tk-buybar { position: static; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--tk-line); box-shadow: none; background: transparent; }
}

/* ---------- Home: el destacat (tk-stage) ---------- */

.tk-stage { position: relative; background: var(--tk-stage-bg); color: var(--tk-stage-ink); }

.tk-stage__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tk-stage__track::-webkit-scrollbar { display: none; }

.tk-stage__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: clamp(440px, 72vh, 680px);
    display: flex;
    align-items: flex-end;
    background: var(--tk-stage-bg);
    overflow: hidden;
}

.tk-stage__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Degradat perquè el text es llegeixi sobre qualsevol foto (i a dalt, per a la capçalera). */
.tk-stage__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(12, 12, 14, .92) 0%, rgba(12, 12, 14, .55) 40%, rgba(12, 12, 14, 0) 70%),
        linear-gradient(to bottom, rgba(12, 12, 14, .45) 0%, rgba(12, 12, 14, 0) 25%);
}

.tk-stage__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; padding-top: 48px; }

.tk-stage__title { margin: 0; max-width: 1180px; color: var(--tk-stage-ink); line-height: .92; }
.tk-stage__title a { color: inherit; text-decoration: none; }
.tk-stage__title a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .08em; }

.tk-stage__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.tk-stage__meta { margin: 0; color: var(--tk-stage-ink-2); font-size: 1rem; }
.tk-stage__meta strong { color: var(--tk-stage-ink); }
.tk-stage__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-stage .tk-button:not(.tk-button--outline) { background: var(--tk-btn-dark); border-color: var(--tk-btn-dark); color: var(--tk-on-btn-dark); }

.tk-hero__controls { position: absolute; right: var(--tk-gutter); top: 24px; z-index: 2; display: none; gap: 8px; }
.tk-js .tk-hero--multi .tk-hero__controls { display: flex; }
.tk-hero__controls button {
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #0C0C0E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 47.99rem) {
    .tk-stage__actions { width: 100%; }
    .tk-stage__actions .tk-button { flex: 1 1 auto; }
    .tk-stage__meta { font-size: .9375rem; }
}

@media (min-width: 48rem) {
    .tk-stage__body { padding-bottom: 56px; gap: 18px; }
    .tk-stage__meta { font-size: 1.25rem; }
}

.tk-hide-mobile { display: none; }
@media (min-width: 48rem) {
    .tk-hide-mobile { display: inline-flex; }
}

/*
 * Mida dels títols segons els caràcters (tk_title_size): el destacat i la fitxa (hero), les
 * targetes (poster) i les files (row). Com a molt 3, 4 i 2 línies; el títol sencer és a la fitxa.
 */
.tk-stage__title, .tk-event__intro h1, .tk-card--poster-escena .tk-card__title, .tk-row__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding-top: .06em;
}

.tk-stage__title, .tk-event__intro h1 { -webkit-line-clamp: 3; }
.tk-stage__title.tk-title--s { font-size: clamp(4rem, 15vw, 13.75rem); line-height: .88; }
.tk-stage__title.tk-title--m { font-size: clamp(3.25rem, 10.4vw, 9.375rem); line-height: .92; }
.tk-stage__title.tk-title--l { font-size: clamp(2.5rem, 7.8vw, 7rem); line-height: .95; }
.tk-stage__title.tk-title--xl { font-size: clamp(2rem, 6.1vw, 5.5rem); line-height: .98; }

/* ---------- Filtres ---------- */

.tk-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; border-bottom: 1px solid var(--tk-line); }
.tk-filters > nav { flex: 1 1 100%; min-width: 0; }

@media (min-width: 64rem) {
    .tk-filters > nav { flex: 1 1 0; }
}

/* min-width 0 i el camp sense amplada pròpia: si no, l'amplada intrínseca de l'<input> fa sortir el formulari de la pantalla en mòbil. */
.tk-search { display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; max-width: 480px; }
.tk-search input { width: 0; flex: 1 1 0; }
.tk-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--tk-line-strong); border-radius: 0; background: var(--tk-raised); color: var(--tk-ink); font-size: 1rem; }

/* ---------- Targetes ---------- */

.tk-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 48rem) {
    .tk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
}

@media (min-width: 80rem) {
    .tk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* "Aquesta setmana" a la home: en mòbil, una fila que llisca. */
@media (max-width: 47.99rem) {
    .tk-grid--posters { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin-right: calc(-1 * var(--tk-gutter)); padding-right: var(--tk-gutter); scrollbar-width: none; }
    .tk-grid--posters::-webkit-scrollbar { display: none; }
    .tk-grid--posters > li { flex: 0 0 min(62vw, 220px); scroll-snap-align: start; }
}

/* Targeta de notícia (i la de base, si un projecte la fa servir): imatge apaïsada i text a sota. */
.tk-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; }

.tk-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tk-surface);
}

.tk-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tk-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-card__meta { color: var(--tk-ink-3); font-size: .8125rem; font-weight: 600; }
.tk-card__title { margin: 0; font-size: 1.375rem; line-height: 1.05; }
.tk-card__title a { text-decoration: none; color: var(--tk-ink); }
.tk-card__title a::after { content: ''; position: absolute; inset: 0; }
.tk-card__title a:hover { text-decoration: underline; }
.tk-card__venue { color: var(--tk-ink-3); font-size: .875rem; }
.tk-card__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tk-price { color: var(--tk-ink-3); font-size: .875rem; }
.tk-price strong { color: var(--tk-ink); font-size: 1rem; }

/* El cartell: la imatge vertical amb el títol a sobre (el títol és fill de la targeta i se
   superposa a la imatge amb la graella; així l'enllaç pot cobrir la targeta sencera). */
/* Columna minmax(0, 1fr): sense, la graella creix fins a l'amplada de la foto i surt de la seva columna. */
.tk-card--poster-escena { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.tk-card--poster-escena .tk-card__media { grid-area: 1 / 1; aspect-ratio: 3 / 4; background: #27272A; container-type: inline-size; }
.tk-card--poster-escena .tk-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 14, .85) 0%, rgba(12, 12, 14, .25) 45%, rgba(12, 12, 14, 0) 65%); }
.tk-card--poster-escena .tk-card__media--empty::after { background: none; }
.tk-card--poster-escena .tk-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 6px 10px;
    background: #0C0C0E;
    color: #F4F4F5;
    font-size: .6875rem;
    font-weight: 700;
}
.tk-card--poster-escena .tk-card__title {
    grid-area: 1 / 1;
    align-self: end;
    z-index: 1;
    margin: 0;
    padding: 0 14px 14px;
    -webkit-line-clamp: 4;
    color: #FFFFFF;
    line-height: 1;
    /* Mida relativa a l'amplada de la targeta (container de la imatge no és ancestre: es fa amb vw a la graella). */
    font-size: 1.75rem;
}
.tk-card--poster-escena .tk-card__title a { color: #FFFFFF; }
.tk-card--poster-escena .tk-card__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.tk-card--poster-escena .tk-card__foot { grid-row: 2; flex-wrap: nowrap; }
.tk-card--poster-escena .tk-card__venue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-card--poster-escena .tk-price { flex: none; }

.tk-card--poster-escena .tk-title--s { font-size: 1.75rem; }
.tk-card--poster-escena .tk-title--m { font-size: 1.5rem; }
.tk-card--poster-escena .tk-title--l { font-size: 1.25rem; line-height: 1.04; }
.tk-card--poster-escena .tk-title--xl { font-size: 1.0625rem; line-height: 1.06; }

@media (min-width: 48rem) {
    .tk-card--poster-escena .tk-card__title { padding: 0 18px 18px; }
    .tk-card--poster-escena .tk-title--s { font-size: 2.5rem; }
    .tk-card--poster-escena .tk-title--m { font-size: 2.125rem; }
    .tk-card--poster-escena .tk-title--l { font-size: 1.75rem; }
    .tk-card--poster-escena .tk-title--xl { font-size: 1.5rem; }
    .tk-card--poster-escena .tk-card__badge { font-size: .75rem; }
}

.tk-empty { margin: 32px 0 0; padding: 32px 16px; text-align: center; color: var(--tk-ink-3); background: var(--tk-surface); }

/* ---------- Files de la programació (tk-row) ---------- */

.tk-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tk-line); }

.tk-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tk-line);
}

.tk-row__date { display: flex; flex-direction: column; line-height: 1; }
.tk-row__day { font-family: var(--tk-display); font-size: 2.25rem; color: var(--tk-accent-text); }
.tk-row__wd { margin-top: 4px; color: var(--tk-ink-3); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tk-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-row__title { margin: 0; -webkit-line-clamp: 2; font-size: 1.25rem; line-height: 1.05; }
.tk-row__title a { color: var(--tk-ink); text-decoration: none; }
.tk-row__title a::after { content: ''; position: absolute; inset: 0; }
.tk-row:hover .tk-row__title a { text-decoration: underline; text-decoration-thickness: 2px; }
.tk-row__meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--tk-ink-3); font-size: .875rem; }
.tk-row__price { font-size: .875rem; color: var(--tk-ink-3); white-space: nowrap; }
.tk-row__price strong { color: var(--tk-ink); font-size: 1rem; }
.tk-row__cta { display: none; }
.tk-row--sold .tk-row__day { color: var(--tk-ink-4); }

@media (min-width: 48rem) {
    .tk-row { grid-template-columns: 120px minmax(0, 1fr) 160px 180px; gap: 24px; padding: 22px 0; }
    .tk-row__day { font-size: 3.5rem; }
    .tk-row__wd { font-size: .8125rem; }
    .tk-row__title { font-size: 2.125rem; }
    .tk-row__title.tk-title--l, .tk-row__title.tk-title--xl { font-size: 1.75rem; }
    .tk-row__meta { font-size: .9375rem; }
    .tk-row__price { font-size: 1rem; }
    .tk-row__price { grid-column: 3; }
    .tk-row__cta {
        grid-column: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        background: var(--tk-btn);
        color: var(--tk-on-btn);
        font-weight: 700;
        font-size: .8125rem;
    }
    .tk-row--sold .tk-row__cta { background: transparent; border: 1px solid var(--tk-line-strong); color: var(--tk-ink-3); }
}

/* Notícies */
.tk-post__date { color: var(--tk-ink-3); font-size: .8125rem; font-weight: 600; }
.tk-post__image { display: block; width: 100%; max-height: 480px; object-fit: cover; margin: 0 0 24px; }
.tk-post__lead { font-size: 1.125rem; color: var(--tk-ink); }

/* Paginació (Laravel) */
nav[role="navigation"] { margin-top: 28px; }
nav[role="navigation"] svg { width: 20px; height: 20px; }
.tk-pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; }
.tk-pagination a, .tk-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--tk-line-strong); text-decoration: none; font-weight: 600; }
.tk-pagination [aria-current] span { background: var(--tk-btn); border-color: var(--tk-btn); color: var(--tk-on-btn); }
.tk-pagination [aria-disabled] span { color: var(--tk-ink-4); }

/* ---------- Fitxa d'esdeveniment ---------- */

/*
 * La imatge a sang i, a sota, la franja fosca amb el títol (en els dos modes: el títol sempre
 * va sobre fosc, així es llegeix encara que sigui llarg i la foto sigui clara).
 */
.tk-event-hero { position: relative; height: clamp(260px, 52vh, 560px); background: var(--tk-stage-bg); overflow: hidden; }
.tk-event-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-event-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #0C0C0E 0%, rgba(12, 12, 14, .6) 30%, rgba(12, 12, 14, 0) 60%); }

.tk-event { position: relative; }

.tk-event__intro {
    --tk-lift: 96px;
    position: relative;
    z-index: 1;
    margin: calc(-1 * var(--tk-lift)) 0 0;
    padding: 0 0 24px;
    color: var(--tk-stage-ink);
}

/* La franja fosca: comença on s'acaba la imatge i ocupa tota l'amplada de la pantalla. */
.tk-event__intro::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: var(--tk-lift);
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #0C0C0E;
}

/* Perquè la franja (100vw) no faci aparèixer una barra horitzontal. */
.tk-main { overflow-x: clip; }

.tk-event__intro h1 { margin-bottom: .15em; color: var(--tk-stage-ink); line-height: .92; }
.tk-event__intro h1.tk-title--s { font-size: clamp(4rem, 12vw, 10rem); line-height: .88; }
.tk-event__intro h1.tk-title--m { font-size: clamp(3rem, 8.5vw, 7.5rem); }
.tk-event__intro h1.tk-title--l { font-size: clamp(2.375rem, 6vw, 5.5rem); line-height: .95; }
.tk-event__intro h1.tk-title--xl { font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: .98; }
.tk-event__intro .tk-eyebrow { align-self: flex-start; display: inline-block; padding: 6px 12px; background: var(--tk-btn-dark); color: var(--tk-on-btn-dark); }
.tk-event__lead { margin: 0; color: var(--tk-stage-ink-2); font-size: 1.0625rem; }

.tk-event__layout { display: grid; gap: 32px; margin-top: 28px; }
.tk-event__aside > * + * { margin-top: 16px; }
.tk-event__aside > h2 { font-size: 2rem; }

.tk-sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--tk-line); }

.tk-session {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tk-line);
}

.tk-date {
    width: 64px;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 4px;
    line-height: 1;
    text-transform: uppercase;
}

/* El dia a dalt, gran; a sota, el dia de la setmana i el mes en una línia. */
.tk-date__day { order: -1; flex-basis: 100%; margin-bottom: 4px; font-family: var(--tk-display); font-size: 2.75rem; color: var(--tk-accent-text); }
.tk-date__wd, .tk-date__mon { color: var(--tk-ink-3); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; }
.tk-session--sold .tk-date__day { color: var(--tk-ink-4); }

.tk-session__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-session__info strong { font-size: 1rem; }
.tk-session__info span { color: var(--tk-ink-3); font-size: .8125rem; }
.tk-session--sold .tk-session__info strong { color: var(--tk-ink-2); }

.tk-accordion { border-bottom: 1px solid var(--tk-line); }
.tk-accordion:first-of-type { border-top: 1px solid var(--tk-line); }
.tk-accordion > summary {
    list-style: none;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: .875rem;
    cursor: pointer;
}
.tk-accordion > summary::-webkit-details-marker { display: none; }
.tk-accordion > summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: 0; }
.tk-accordion[open] > summary::after { content: '−'; }
.tk-accordion__body { padding: 0 0 16px; }

.tk-prices { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 16px; font-size: .9375rem; }
.tk-prices dt { color: var(--tk-ink-2); }
.tk-prices dd { margin: 0; text-align: right; font-weight: 700; }

.tk-place { border: 1px solid var(--tk-line); padding: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: .875rem; line-height: 1.4; }
.tk-place a { font-weight: 700; white-space: nowrap; }

.tk-event__buybar { display: flex; }

@media (min-width: 48rem) {
    .tk-event__intro { --tk-lift: 140px; padding-bottom: 36px; }
}

@media (min-width: 64rem) {
    .tk-event__layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
    .tk-event__aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--tk-header-offset) + 16px); }
    .tk-event__main { grid-column: 1; grid-row: 1; }
    .tk-event__buybar { display: none; }
}

/* Galeria de l'esdeveniment */
.tk-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: 0; padding: 0; list-style: none; }
.tk-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Tarifes ---------- */

.tk-rates { display: flex; flex-direction: column; gap: 10px; }

.tk-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--tk-line);
    background: var(--tk-raised);
}

.tk-rate.is-chosen { border: 2px solid var(--tk-accent-ui); padding: 13px; }
.tk-rate__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-rate__name { font-weight: 700; font-size: 1rem; }
.tk-rate__price { font-weight: 700; font-size: .9375rem; }
.tk-rate__extra { flex-basis: 100%; }
.tk-rate__extra .tk-field { margin: 4px 0 0; }

.tk-stepper { display: flex; align-items: center; gap: 6px; }
.tk-stepper input {
    width: 64px;
    min-height: 44px;
    border: 1px solid var(--tk-line-strong);
    border-radius: 0;
    text-align: center;
    font-family: var(--tk-display);
    font-size: 1.375rem;
    font-variant-numeric: tabular-nums;
    background: var(--tk-raised);
    color: var(--tk-ink);
}

.tk-stepper.is-enhanced input { width: 36px; border-color: transparent; background: var(--tk-raised); -moz-appearance: textfield; }
.tk-stepper.is-enhanced input::-webkit-outer-spin-button,
.tk-stepper.is-enhanced input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tk-stepper button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--tk-line-strong);
    background: transparent;
    color: var(--tk-ink);
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
}

.tk-stepper button[data-tk-step="1"] { border-color: var(--tk-btn); background: var(--tk-btn); color: var(--tk-on-btn); }
.tk-stepper button:disabled { opacity: .4; cursor: not-allowed; }

/* Opcions (sessions d'un pack) */
.tk-options { display: flex; flex-direction: column; gap: 8px; }
.tk-options .tk-field { margin: 0; }
.tk-field label.tk-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--tk-line); background: var(--tk-raised); cursor: pointer; }
.tk-field label.tk-option:has(input:checked) { border: 2px solid var(--tk-accent-ui); padding: 11px 13px; }
.tk-field label.tk-option:has(input:disabled) { background: var(--tk-surface); cursor: not-allowed; }
.tk-option__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-option__text strong::first-letter { text-transform: uppercase; }
.tk-option__price { font-weight: 700; white-space: nowrap; }

/* Comprovació del codi de soci (member-code.js) */
.tk-member-status { margin: 0; font-size: .875rem; font-weight: 600; }
.tk-member-status:empty { display: none; }
.tk-member-status.is-ok { color: var(--tk-ok); }
.tk-member-status.is-error { color: var(--tk-danger); }

/* Nota de mobilitat reduïda sota el mapa (panell) */
.tk-seat-map__note { margin-top: 12px; font-size: .875rem; }

/* ---------- Cistella i pagament ---------- */

.tk-checkout { display: grid; gap: 20px; }

@media (min-width: 64rem) {
    .tk-checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
    .tk-checkout__aside { position: sticky; top: calc(var(--tk-header-offset) + 16px); }
}

.tk-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tk-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--tk-line); font-size: .9375rem; }
.tk-line:last-child { border-bottom: 0; }
.tk-line__what { flex: 1; min-width: 0; color: var(--tk-ink-2); }
.tk-line__price { font-weight: 700; }
.tk-line form { flex-basis: 100%; }

.tk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--tk-line-strong); font-weight: 700; }
.tk-total strong { font-family: var(--tk-display); font-weight: 400; font-size: 1.75rem; }
.tk-total:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.tk-total + .tk-button, .tk-secure + .tk-button { margin-top: 16px; }

.tk-secure { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--tk-muted-bg); font-size: .875rem; line-height: 1.4; }
.tk-secure svg { width: 22px; height: 22px; flex: none; }

.tk-success { text-align: center; padding-top: 32px; }
.tk-success__icon { width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--tk-btn); color: var(--tk-on-btn); }
.tk-success__icon svg { width: 36px; height: 36px; }
.tk-success p { color: var(--tk-ink-2); }

.tk-spinner { width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 999px; border: 4px solid var(--tk-line); border-top-color: var(--tk-accent-ui); animation: tk-spin 1s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .tk-spinner { animation: none; }
    .tk-stage__track, .tk-grid--posters { scroll-behavior: auto; }
}

/* ---------- Compte ---------- */

.tk-account-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }

.tk-purchases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tk-purchase { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start; }
.tk-purchase ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--tk-ink-2); font-size: .9375rem; }
.tk-purchase > div:first-child { flex: 1 1 18rem; min-width: 0; }
.tk-purchase__side { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (min-width: 48rem) {
    .tk-purchase__side { flex: 0 0 auto; flex-direction: column; align-items: flex-end; }
}
.tk-purchase__side .tk-total { border: 0; padding: 0; margin: 0; gap: 8px; }

/* ---------- Calendari (calendar.js) ---------- */

[data-tk-calendar] table { width: 100%; table-layout: fixed; }
[data-tk-calendar] th { padding: 6px 0; color: var(--tk-ink-3); font-size: .75rem; font-weight: 600; text-align: center; }
[data-tk-calendar] td { padding: 2px; text-align: center; }
[data-tk-calendar] td button, [data-tk-calendar] td span { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--tk-ink-3); font-weight: 600; }
[data-tk-calendar] td button { background: var(--tk-muted-bg); color: var(--tk-ink); cursor: pointer; }
[data-tk-calendar] td button[aria-pressed="true"] { background: var(--tk-btn); color: var(--tk-on-btn); }

.tk-calendar__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.tk-calendar__nav h3 { margin: 0; font-size: 1.375rem; }
.tk-calendar__nav button { width: 44px; height: 44px; border: 1px solid var(--tk-line-strong); background: transparent; color: var(--tk-ink); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.tk-calendar__nav button:disabled { opacity: .4; cursor: not-allowed; }
[data-tk-calendar-fallback] { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
[data-tk-calendar-sessions]:not(:empty) { margin-top: 16px; }

@media print {
    .tk-header, .tk-footer, .tk-buybar, .tk-hero__controls { display: none; }
    .tk-stage, .tk-event-hero, .tk-event__intro { background: none; color: #000; box-shadow: none; }
}

/* ---------- Ajustos ---------- */

.tk-stack { display: flex; flex-direction: column; gap: 12px; }
.tk-link-center { align-self: center; font-weight: 700; }
.tk-error-page { padding: 56px 0 24px; }
.tk-error-page p { color: var(--tk-ink-2); font-size: 1.0625rem; }

/* Llistes de targetes just després d'una capçalera o dels filtres */
.tk-grid.tk-section { padding-top: 0; margin-top: 28px; }

/* Avís de la marca */
.tk-alert { background: var(--tk-btn-light); color: var(--tk-on-btn-light); padding: 12px 0; font-weight: 600; }
.tk-alert .tk-prose, .tk-alert a { color: inherit; }
.tk-alert p { margin: 0; }

/* Clàusula RGPD */
.tk-gdpr { margin: 0 0 12px; padding: 12px 14px; background: var(--tk-surface); font-size: .8125rem; line-height: 1.5; }
.tk-gdpr > :last-child { margin-bottom: 0; }

/* Bàner de galetes (partials/consent) */
.tk-consent { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--tk-raised); color: var(--tk-ink); border-top: 1px solid var(--tk-line-strong); box-shadow: 0 -8px 24px rgba(12, 12, 14, .18); padding: 16px 0; max-height: 85vh; overflow-y: auto; }
.tk-consent__inner { display: grid; gap: 12px; }
.tk-consent h2 { margin: 0 0 4px; font-size: 1.25rem; }
.tk-consent p { margin: 0; font-size: .875rem; line-height: 1.5; }
.tk-consent__choices { display: grid; gap: 10px; font-size: .875rem; }
.tk-consent__choices .tk-button { justify-self: start; }
.tk-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-consent__actions .tk-button { flex: 1 1 auto; }
@media (min-width: 48rem) {
    .tk-consent__inner { grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; }
    .tk-consent__choices { grid-column: 1 / -1; grid-row: 2; }
    .tk-consent__actions .tk-button { flex: 0 0 auto; }
}

/* Home d'un sol esdeveniment (home_template = single_event) */
.tk-grid--single { justify-content: center; margin-top: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
    .tk-grid--single { grid-template-columns: repeat(auto-fit, minmax(0, 360px)); }
}
@media (min-width: 48rem) {
    .tk-grid--one { grid-template-columns: minmax(0, 420px); }
}

/* Home "hub" (home_template = hub) */
.tk-hub { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 24px 0 0; padding: 0; list-style: none; }
.tk-hub__card { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 24px 16px; border: 1px solid var(--tk-line); background: var(--tk-raised); color: var(--tk-ink); text-align: center; text-decoration: none; }
.tk-hub__card:hover { border-color: var(--tk-accent-ui); }
.tk-hub__logo { display: flex; align-items: center; justify-content: center; height: 96px; }
.tk-hub__logo img { max-width: 100%; max-height: 96px; object-fit: contain; }
.tk-scheme-dark .tk-hub__logo img { padding: 6px 10px; background: #FFFFFF; }
.tk-hub__name { font-family: var(--tk-display); font-size: 1.25rem; text-transform: uppercase; }
.tk-hub__label { font-size: .8125rem; color: var(--tk-ink-2); }

/* Mapa de butaques en mòbil: el zoom en una fila a sobre del plànol, no damunt de les butaques. */
@media (max-width: 47.99rem) {
    /* .tk-design-escena: seat-map.css es carrega després i, amb la mateixa especificitat, guanyaria. */
    .tk-design-escena .tk-seat-map__zoom { position: static; flex-direction: row; justify-content: flex-end; margin: 0 0 8px; }
}
