:root {
    --canevi-primary: #FC8EAC;
    --canevi-primary-dark: #e86f92;
    --canevi-primary-soft: #fff0f4;
    --canevi-bg: #F8F8FA;
    --canevi-card: #FFFFFF;
    --canevi-text: #111827;
    --canevi-muted: #6B7280;
    --canevi-border: #E5E7EB;
    --canevi-live: #DC2626;
    --canevi-radius: 16px;
    --canevi-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
    --canevi-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --canevi-max: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--canevi-font);
    background: var(--canevi-bg);
    color: var(--canevi-text);
}

a {
    color: inherit;
}

.tx-page {
    max-width: var(--canevi-max);
    margin: 0 auto;
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
}

.tx-hero {
    background: linear-gradient(145deg, #fff 0%, var(--canevi-primary-soft) 100%);
    border: 1px solid rgba(252, 142, 172, 0.25);
    border-radius: calc(var(--canevi-radius) + 4px);
    padding: 28px 22px;
    margin-bottom: 24px;
    box-shadow: var(--canevi-shadow);
}

.tx-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--canevi-primary-dark);
    margin-bottom: 10px;
}

.tx-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.tx-hero p {
    margin: 12px 0 0;
    color: var(--canevi-muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 52ch;
}

.tx-loading,
.tx-error {
    text-align: center;
    padding: 40px 16px;
    color: var(--canevi-muted);
}

.tx-error {
    color: #B91C1C;
}

.tx-section {
    margin-bottom: 28px;
}

.tx-section__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
}

.tx-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 720px) {
    .tx-page {
        padding: 28px 24px 48px;
    }

    .tx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .tx-grid--live {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 960px) {
    .tx-grid:not(.tx-grid--live) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tx-card {
    background: var(--canevi-card);
    border: 1px solid var(--canevi-border);
    border-radius: var(--canevi-radius);
    padding: 18px;
    box-shadow: var(--canevi-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.tx-card--live {
    border-color: rgba(220, 38, 38, 0.25);
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
}

.tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 10px;
}

.tx-badge--live {
    background: rgba(220, 38, 38, 0.12);
    color: var(--canevi-live);
}

.tx-badge--live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--canevi-live);
    animation: tx-pulse 1.4s ease-in-out infinite;
}

@keyframes tx-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.tx-badge--upcoming {
    background: rgba(252, 142, 172, 0.18);
    color: var(--canevi-primary-dark);
}

.tx-badge--replay {
    background: #EEF2FF;
    color: #4338CA;
}

.tx-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
}

.tx-card__meta {
    margin: 0;
    color: var(--canevi-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.tx-card__host {
    margin: 0;
    font-size: 0.9rem;
    color: var(--canevi-text);
}

.tx-card__host strong {
    font-weight: 700;
}

.tx-card__actions {
    margin-top: auto;
    padding-top: 6px;
}

.tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tx-btn:active {
    transform: scale(0.98);
}

.tx-btn--primary {
    background: var(--canevi-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(252, 142, 172, 0.45);
}

.tx-btn--primary:hover {
    background: var(--canevi-primary-dark);
}

.tx-btn--secondary {
    background: #fff;
    color: var(--canevi-text);
    border: 1px solid var(--canevi-border);
}

.tx-btn--ghost {
    background: transparent;
    color: var(--canevi-muted);
    border: 1px dashed var(--canevi-border);
    cursor: default;
}

.tx-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--canevi-border);
    border-radius: var(--canevi-radius);
    padding: 36px 20px;
    box-shadow: var(--canevi-shadow);
}

.tx-empty p {
    margin: 0 0 18px;
    color: var(--canevi-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.tx-empty .tx-btn {
    max-width: 280px;
    margin: 0 auto;
}

.tx-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--canevi-muted);
}

.tx-footer a {
    color: var(--canevi-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.tx-footer a:hover {
    text-decoration: underline;
}

[hidden] {
    display: none !important;
}
