:root {
    --bg: #0B0F17;
    --surface: #121826;
    --card: #1A2233;
    --hover: #232D43;
    --text: #FFFFFF;
    --text-muted: #9CA7B8;
    --accent: #32D583;
    --accent-soft: rgba(50, 213, 131, 0.12);
    --accent-border: rgba(50, 213, 131, 0.45);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --danger: #F97066;
    --warning: #FDB022;
    --info: #60A5FA;
    --live: #32D583;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.18);
    --font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --control-h: 40px;
    --logo-sport: 28px;
    --logo-league: 32px;
    --logo-team: 28px;
    --logo-channel-w: 44px;
    --logo-channel-h: 28px;
    --logo-league-lg: 56px;
    --ease: 160ms ease;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
}

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

.dtp-sports-app {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
}

.dtp-sports-app a {
    color: inherit;
    text-decoration: none;
}

.dtp-sports-app img {
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.dtp-sports-app button,
.dtp-sports-app input,
.dtp-sports-app select {
    font: inherit;
    color: inherit;
}

.text-clamp-1,
.text-clamp-2 {
    overflow: hidden;
    min-width: 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.text-clamp-1 { -webkit-line-clamp: 1; }
.text-clamp-2 { -webkit-line-clamp: 2; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Logos ── */
.logo-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    width: var(--logo-team);
    height: var(--logo-team);
    padding: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.logo-frame--sport {
    width: var(--logo-sport);
    height: var(--logo-sport);
    background: #0E1420;
    border-color: var(--border);
}

.logo-frame--league {
    width: var(--logo-league);
    height: var(--logo-league);
    border-radius: 8px;
    background: #0E1420;
}

.logo-frame--team {
    width: var(--logo-team);
    height: var(--logo-team);
    border-radius: 50%;
    background: #0E1420;
}

.logo-frame--channel {
    width: var(--logo-channel-w);
    height: var(--logo-channel-h);
    border-radius: 6px;
    background: #0E1420;
}

.logo-frame--league-lg {
    width: var(--logo-league-lg);
    height: var(--logo-league-lg);
    border-radius: 14px;
    background: #0E1420;
}

.logo-frame__img,
.logo-frame img,
.list-item__icon,
.list-item__badge,
.event-card img,
.tv-card img,
.team-block img,
.league-hero img,
.league-group__head img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
}

/* ── Skip / chrome ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 8px 14px;
    background: var(--accent);
    color: #04110A;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 650;
    letter-spacing: -0.01em;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline-offset: 4px;
}

.brand__logo {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.brand__text {
    white-space: nowrap;
    font-size: 15px;
    color: var(--text);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topnav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.topnav__link:hover {
    background: var(--hover);
    color: var(--text);
}

.topnav__link.is-active {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px 36px;
}

/* ── Page head ── */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.page-head > div:first-child,
.page-head__content {
    min-width: 0;
    flex: 1;
}

.product-kicker {
    margin: 0 0 4px;
    padding-left: 14px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
}

.page-title {
    position: relative;
    margin: 0 0 6px;
    padding-left: 14px;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 3px;
    border-radius: 999px;
    background: var(--accent);
}

.page-subtitle {
    margin: 0;
    max-width: 46rem;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn:hover {
    background: var(--hover);
}

.btn:not(.btn--ghost) {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn:not(.btn--ghost):hover {
    background: rgba(50, 213, 131, 0.18);
}

.btn--ghost {
    border-color: var(--border-strong);
    color: var(--text);
    background: transparent;
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--hover);
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: color var(--ease);
}

.back-link:hover {
    color: var(--text);
}

/* ── Search / fields ── */
.search-field,
.field {
    display: block;
    position: relative;
    min-width: 0;
}

.search-field::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    opacity: 0.45;
    pointer-events: none;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA7B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.3-4.3m1.8-5.2a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z'/%3E%3C/svg%3E");
}

.search-input,
.field__input {
    width: 100%;
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 38px 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0E1420;
    color: var(--text);
    font-size: 13.5px;
    transition: border-color var(--ease), background var(--ease);
}

.field__input {
    padding-right: 14px;
}

.search-input::placeholder,
.field__input::placeholder {
    color: #6B7688;
}

.search-input:focus,
.field__input:focus {
    outline: none;
    border-color: rgba(50, 213, 131, 0.35);
    background: #101826;
}

.search-input:disabled,
.field__input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.field__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.search-field--compact {
    min-width: 180px;
    max-width: 260px;
    flex: 1;
}

/* ── Guide columns ── */
.guide-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr) minmax(380px, 1.35fr);
    gap: 18px;
    height: calc(100vh - 168px);
    min-height: 520px;
    max-height: 860px;
}

.panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.panel__header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--border);
}

.panel__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.panel--leagues .panel__title {
    color: #F5C542;
}

.panel--sports .panel__title::before {
    content: "⚽";
    font-size: 13px;
}

.panel--leagues .panel__title::before {
    content: "🏆";
    font-size: 13px;
}

.panel--events .panel__title::before {
    content: "📅";
    font-size: 13px;
}

.panel__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.panel__body--cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel__body--empty {
    display: grid;
    place-items: center;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

.panel__body::-webkit-scrollbar {
    width: 5px;
}

.panel__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.panel__body::-webkit-scrollbar-track {
    background: transparent;
}

/* ── List items ── */
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 0 0 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}

.list-item:hover,
.list-item.is-focused {
    background: var(--hover);
}

.list-item.is-selected {
    background: rgba(50, 213, 131, 0.08);
    border-color: var(--accent-border);
}

.list-item__content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.list-item__meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.3;
}

.list-item__count {
    flex: 0 0 auto;
    min-width: 34px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.list-item__trail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--text-muted);
}

.list-item__flag {
    font-size: 14px;
    line-height: 1;
}

.list-item__chevron {
    font-size: 14px;
    opacity: 0.45;
}

/* ── Cards / events ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.event-card {
    display: block;
    padding: 14px 16px;
    margin: 0;
    min-width: 0;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.panel__body--cards .event-card,
.events-stack .event-card {
    margin-bottom: 0;
}

.event-card:hover,
.event-card.is-focused {
    background: var(--hover);
    border-color: var(--border-strong);
}

.event-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    min-width: 0;
}

.event-card__league-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: #0E1420;
}

.event-card__league-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

.event-card__league {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}

.event-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.event-card__teams-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.event-card__team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.event-card__team-row .logo-frame,
.event-card__team-row .logo-frame--team {
    width: 28px;
    height: 28px;
}

.event-card__team-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}

.event-card__meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    text-align: right;
}

.event-card__time {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}

.event-card__score {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.event-card__single {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.event-card__single-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card__title {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.event-card__foot {
    display: none;
}

/* Legacy PHP event cards → adapt toward stacked feel */
.event-card > .event-card__match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.event-card > .event-card__match .event-card__side:first-child,
.event-card > .event-card__match .event-card__side:last-child {
    display: contents;
}

.event-card > .event-card__match {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card > .event-card__match .event-card__side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.event-card > .event-card__match .event-card__side .logo-frame,
.event-card > .event-card__match .event-card__side .logo-frame--team,
.event-card > .event-card__match .event-card__side img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
}

.event-card > .event-card__match .event-card__center {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
}

.event-card:has(> .event-card__match) {
    position: relative;
    padding-right: 88px;
}

.event-card > .event-card__foot {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.badge--proximo,
.badge--próximo,
.badge--programado {
    background: rgba(50, 213, 131, 0.12);
    color: var(--accent);
}

.badge--en-vivo {
    background: rgba(50, 213, 131, 0.18);
    color: #6EE7A8;
}

.badge--finalizado {
    background: rgba(156, 167, 184, 0.12);
    color: #B5C0D0;
}

.badge--pospuesto {
    background: rgba(253, 176, 34, 0.14);
    color: #FDB022;
}

.score {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.skeleton {
    height: 64px;
    margin: 6px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-message,
.empty-state {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.empty-state.card {
    padding: 28px;
    text-align: center;
}

.alert {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.alert--error {
    background: rgba(249, 112, 102, 0.1);
    border: 1px solid rgba(249, 112, 102, 0.28);
    color: #FCA5A5;
}

/* ── Filters / calendar ── */
.filters-bar {
    display: grid;
    grid-template-columns: minmax(150px, 170px) minmax(180px, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
}

.calendar-results,
.tv-results,
.events-stack {
    display: grid;
    gap: 14px;
}

.league-group {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.league-group__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.league-group__head .logo-frame {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.league-group__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.league-group .events-stack {
    padding: 12px;
    gap: 10px;
}

/* ── League / event detail ── */
.league-hero {
    padding: 22px;
    margin-bottom: 24px;
}

.league-hero__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.league-hero__content {
    min-width: 0;
}

.league-hero__desc {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.league-hero__banner {
    margin-top: 18px;
    overflow: hidden;
    max-height: 180px;
    border-radius: 12px;
    background: #0E1420;
}

.league-hero__banner-img {
    width: 100%;
    height: 180px;
    object-fit: cover !important;
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-chips--detail {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.meta-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.meta-chip__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-chip__value {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

.section-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.section-block__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.event-detail {
    padding: 28px;
}

.event-detail__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 8px;
}

.event-detail__single {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.event-detail__single-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
}

.team-block .logo-frame,
.team-block .logo-frame--team {
    width: 56px;
    height: 56px;
}

.team-block__name {
    max-width: 100%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.event-detail__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.event-detail__score {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.event-detail__vs {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.event-detail__desc {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.event-detail__desc p {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Event media (proporción real, sin recorte) ── */
.event-media {
    margin-top: 24px;
}

.event-media[hidden] {
    display: none !important;
}

.event-media-frame {
    width: 100%;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    text-align: center;
}

.event-media-frame:focus-visible {
    outline: 2px solid rgba(50, 213, 131, 0.7);
    outline-offset: 2px;
}

.event-media-frame__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.event-media-frame.is-portrait .event-media-frame__img {
    max-width: min(100%, 420px);
    max-height: 520px;
}

.event-media-frame.is-square .event-media-frame__img {
    max-width: min(100%, 520px);
    max-height: 480px;
}

.event-media-frame.is-landscape .event-media-frame__img {
    width: 100%;
    max-width: 100%;
    max-height: 320px;
}

.event-media-frame__hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.event-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.88);
}

.event-media-lightbox[hidden] {
    display: none !important;
}

.event-media-lightbox__img {
    display: block;
    max-width: min(100%, 1100px);
    max-height: calc(100vh - 72px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.event-media-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.85);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.event-media-lightbox__close:focus-visible {
    outline: 2px solid rgba(50, 213, 131, 0.8);
    outline-offset: 2px;
}

body.event-media-open {
    overflow: hidden;
}

/* ── TV ── */
.tv-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    min-width: 0;
    transition: background var(--ease), border-color var(--ease);
}

.tv-card:hover,
.tv-card.is-focused {
    background: var(--hover);
    border-color: var(--border-strong);
}

.tv-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tv-card__channel {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.tv-card__event {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tv-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.tv-card__date {
    flex-shrink: 0;
    align-self: flex-start;
}

.footer {
    max-width: 1440px;
    margin: 28px auto 0;
    padding: 0 24px 32px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.mobile-step {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-step__label {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Broadcast / Dónde verlo ── */
.broadcast-section {
    margin-top: 22px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading span {
    font-size: 16px;
    line-height: 1;
}

.broadcast-status {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.broadcast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.broadcast-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background var(--ease), border-color var(--ease);
}

.broadcast-card:hover {
    background: var(--hover);
    border-color: var(--border-strong);
}

.broadcast-card .logo-frame--channel {
    width: 40px;
    height: 28px;
    border-radius: 6px;
    flex: 0 0 auto;
}

.broadcast-card__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.broadcast-card__name {
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text);
}

.broadcast-card__country {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Legacy meta-list still used by some pages */
.meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
}

.meta-list dt {
    color: var(--text-muted);
    font-size: 13px;
}

.meta-list--grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
