.ticker-page {
    --thf-ultimate-width: min(1420px, calc(100vw - clamp(88px, 8vw, 160px)));
    min-height: 100vh;
    padding-top: 68px;
    scroll-margin-top: 140px;
    background:
        linear-gradient(180deg, rgba(59,130,246,0.06), rgba(5,5,5,0) 260px),
        var(--bg-app, #050505);
}

.ticker-shell {
    width: 100%;
    max-width: var(--max-w, 1600px);
    margin: 0 auto;
    padding: 34px 24px 64px;
}

.ticker-shell.content-wrapper {
    width: var(--thf-ultimate-width) !important;
    max-width: var(--thf-ultimate-width) !important;
    padding: 34px 0 64px !important;
}

.ticker-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ticker-copy {
    align-self: center;
    min-width: 0;
}

.ticker-hero-cover {
    position: relative;
    width: 100%;
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.ticker-hero-cover a,
.ticker-hero-cover img {
    display: block;
    width: 100%;
}

.ticker-hero-cover img {
    aspect-ratio: 16 / 8;
    height: auto;
    object-fit: cover;
}

.ticker-hero-cover span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(8,8,10,0.72);
    color: #fff;
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.ticker-kicker {
    display: inline-flex;
    width: max-content;
    min-height: 24px;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(59,130,246,0.16);
    color: #bfdbfe;
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ticker-title {
    margin: 12px 0 6px;
    color: var(--text-main, #f0f0f0);
    font: 850 1.75rem/1.14 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-matchline {
    margin: 0 0 9px;
    color: #fff;
    font: 850 1.08rem/1.32 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-intro {
    max-width: 620px;
    margin: 0;
    color: var(--text-sub, #a1a1aa);
    font-size: 0.94rem;
    line-height: 1.55;
}

.ticker-gallery-note {
    width: min(100%, 620px);
    min-height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(90,150,255,0.24);
    border-radius: 8px;
    background: rgba(59,130,246,0.08);
    color: #fff;
    text-decoration: none;
}

.ticker-gallery-note span,
.ticker-gallery-note em {
    color: rgba(255,255,255,0.62);
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
    font-style: normal;
    white-space: nowrap;
}

.ticker-gallery-note strong {
    min-width: 0;
    color: #fff;
    font: 850 0.78rem/1.25 Montserrat, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-gallery-note:hover,
.ticker-gallery-note:focus-visible {
    border-color: rgba(90,150,255,0.48);
    background: rgba(59,130,246,0.14);
    outline: none;
}

.match-panel {
    width: 100%;
    max-width: none;
    justify-self: end;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    overflow: hidden;
}

.event-panel {
    width: 100%;
    justify-self: end;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(59,130,246,0.12), rgba(255,255,255,0.035)),
        rgba(255,255,255,0.03);
}

.event-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.event-panel-head span {
    color: rgba(255,255,255,0.58);
    font: 850 0.68rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.event-panel-head strong {
    color: #dbeafe;
    font: 900 1.05rem/1.2 Montserrat, sans-serif;
    text-align: right;
}

.event-panel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
}

.event-panel-list span {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
    line-height: 1.35;
}

.event-panel-list strong {
    color: rgba(255,255,255,0.50);
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.match-meta span {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.70);
    font-size: 0.74rem;
}

.scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 17px 0 16px;
}

.score-team {
    min-width: 0;
}

.score-team.is-away {
    text-align: right;
}

.score-team-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.46);
    font: 800 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.score-team strong {
    display: block;
    color: #fff;
    font: 850 1rem/1.2 Montserrat, sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.score-team-short {
    display: none;
}

.score-main {
    min-width: 106px;
    text-align: center;
}

.score-main strong {
    display: block;
    color: #fff;
    font: 900 2.25rem/0.95 Montserrat, sans-serif;
    letter-spacing: 0;
}

.score-main span {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    margin-top: 8px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(34,197,94,0.13);
    color: #bbf7d0;
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.match-clock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: transparent;
}

.match-clock {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.match-clock span {
    color: rgba(255,255,255,0.54);
    font-size: 0.78rem;
}

.match-clock strong {
    color: #fff;
    font: 900 1.02rem/1 Montserrat, sans-serif;
    letter-spacing: 0;
}

.match-live-indicator {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
    font: 800 0.64rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.match-live-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.42);
}

.match-live-indicator.is-live {
    color: #bbf7d0;
    background: rgba(34,197,94,0.13);
}

.match-live-indicator.is-live span {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.13);
}

.ticker-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.ticker-board--event {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.ticker-board--event .ticker-timeline::before {
    background: linear-gradient(180deg, rgba(96,165,250,0.72), rgba(255,255,255,0.10));
}

.ticker-board--event .ticker-event-icon {
    background: #2563eb;
}

.ticker-board--event .ticker-card.has-image {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.ticker-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.ticker-timeline::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 125px;
    width: 2px;
    background: linear-gradient(180deg, rgba(59,130,246,0.82), rgba(255,255,255,0.10));
}

.ticker-entry {
    position: relative;
    display: grid;
    grid-template-columns: 98px 52px minmax(0, 1fr);
    align-items: start;
    padding-bottom: 16px;
}

.ticker-entry:last-child {
    padding-bottom: 0;
}

.ticker-minute {
    padding-top: 7px;
    color: rgba(255,255,255,0.56);
    text-align: right;
}

.ticker-minute strong {
    display: block;
    color: #fff;
    font: 900 0.95rem/1.1 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-minute time {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
}

.ticker-event-icon {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin: 3px auto 0;
    border: 2px solid #050505;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font: 900 0.78rem/1 Montserrat, sans-serif;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.14);
}

.ticker-entry.is-goal .ticker-event-icon {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.17);
}

.ticker-entry.is-card .ticker-event-icon {
    background: #f59e0b;
    color: #161616;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.17);
}

.ticker-entry.is-whistle .ticker-event-icon,
.ticker-entry.is-halftime .ticker-event-icon {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.15);
}

.ticker-entry.is-new .ticker-card {
    animation: tickerEntryNew 5.8s ease both;
}

.ticker-entry.is-new .ticker-event-icon {
    animation: tickerIconPulse 1.25s ease 3;
}

.ticker-entry.is-goal.is-new .ticker-card {
    animation-name: tickerGoalNew;
}

.ticker-entry.is-goal.is-new .ticker-event-icon {
    animation: tickerGoalPulse 1.1s ease 4;
}

.ticker-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.ticker-card.has-image {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ticker-image {
    margin: 0;
    background: #111;
}

.ticker-card.has-image .ticker-card-main {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.ticker-media-button {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    padding: 0;
    border: 0;
    background: #111;
    color: #fff;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 7px;
}

.ticker-image.is-video .ticker-media-button {
    cursor: pointer;
}

.ticker-image img,
.ticker-image video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.ticker-media-button:hover img,
.ticker-media-button:focus-visible img,
.ticker-media-button:hover video,
.ticker-media-button:focus-visible video {
    filter: brightness(0.82);
    transform: scale(1.025);
}

.ticker-media-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(0,0,0,0.58);
    color: #fff;
    font: 900 1rem/1 Montserrat, sans-serif;
    backdrop-filter: blur(10px);
}

.ticker-card-main {
    padding: 14px 15px 15px;
}

.ticker-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ticker-card-head > div {
    min-width: 0;
    flex: 1 1 auto;
}

.ticker-share-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.72);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ticker-share-btn svg {
    width: 16px;
    height: 16px;
}

.ticker-share-btn:hover,
.ticker-share-btn:focus-visible {
    color: #fff;
    border-color: rgba(90,150,255,0.46);
    background: rgba(59,130,246,0.14);
    outline: none;
}

.ticker-share-btn.is-copied {
    color: #bbf7d0;
    border-color: rgba(34,197,94,0.42);
    background: rgba(34,197,94,0.13);
}

.ticker-card h2 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font: 850 0.98rem/1.3 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ticker-entry-meta span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.72);
    font: 800 0.62rem/1 Montserrat, sans-serif;
}

.ticker-entry.is-goal .ticker-entry-meta span:first-child {
    background: rgba(34,197,94,0.14);
    color: #bbf7d0;
}

.ticker-body {
    margin: 0;
    color: rgba(255,255,255,0.73);
    font-size: 0.9rem;
    line-height: 1.52;
    white-space: pre-line;
}

.ticker-link {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 0 11px;
    border: 1px solid rgba(90,150,255,0.48);
    border-radius: 999px;
    background: rgba(59,130,246,0.12);
    color: #fff;
    font: 850 0.66rem/1 Montserrat, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ticker-link:hover,
.ticker-link:focus-visible {
    border-color: rgba(90,150,255,0.78);
    background: rgba(59,130,246,0.24);
    transform: translateY(-1px);
}

.ticker-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
}

.ticker-side-panel {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
}

.ticker-side-panel h2 {
    margin: 0 0 9px;
    color: #fff;
    font: 850 0.95rem/1.25 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-side-panel p {
    margin: 0;
    color: rgba(255,255,255,0.66);
    font-size: 0.84rem;
    line-height: 1.55;
}

.ticker-side-list {
    display: grid;
    gap: 8px;
}

.ticker-side-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
}

.ticker-side-list strong {
    color: #fff;
    font-weight: 800;
}

.ticker-standby {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 16px;
    align-items: stretch;
}

.ticker-standby-main,
.ticker-standby-panel,
.ticker-standby-strip {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
}

.ticker-standby-main {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(59,130,246,0.12), rgba(255,255,255,0.032) 48%, rgba(34,197,94,0.07)),
        rgba(255,255,255,0.035);
}

.ticker-standby-kicker {
    width: max-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(59,130,246,0.16);
    color: #bfdbfe;
    font: 850 0.62rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.ticker-standby-main h2,
.ticker-standby-panel h2 {
    margin: 0;
    color: #fff;
    font: 850 1.25rem/1.22 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-standby-main h2 {
    margin-top: 14px;
    max-width: 680px;
}

.ticker-standby-main p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255,255,255,0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ticker-standby-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.ticker-standby-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    text-decoration: none;
    font: 850 0.68rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.ticker-standby-actions a:first-child {
    border-color: rgba(90,150,255,0.42);
    background: rgba(59,130,246,0.18);
    color: #dbeafe;
}

.ticker-standby-panel {
    padding: 22px;
}

.ticker-next-event {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.ticker-next-event strong {
    color: #fff;
    font: 850 0.98rem/1.3 Montserrat, sans-serif;
}

.ticker-next-event span {
    color: rgba(255,255,255,0.64);
    font-size: 0.84rem;
    line-height: 1.45;
}

.ticker-standby-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.ticker-standby-strip span {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.58);
    font-size: 0.82rem;
}

.ticker-standby-strip span:last-child {
    border-right: 0;
}

.ticker-standby-strip strong {
    color: #fff;
    font: 850 0.72rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.ticker-empty {
    padding: 22px;
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 8px;
    color: rgba(255,255,255,0.66);
    text-align: center;
}

.ticker-albums {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.ticker-albums-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.ticker-albums-head h2 {
    margin: 10px 0 0;
    color: #fff;
    font: 850 1.2rem/1.22 Montserrat, sans-serif;
    letter-spacing: 0;
}

.ticker-albums-head p {
    max-width: 680px;
    margin: 7px 0 0;
    color: rgba(255,255,255,0.64);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ticker-albums-head > a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    text-decoration: none;
    font: 850 0.64rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.ticker-album-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ticker-album-card:hover {
    transform: translateY(-2px);
    border-color: rgba(90,150,255,0.36);
    background: rgba(59,130,246,0.07);
}

.ticker-album-card figure {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: #111;
}

.ticker-album-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ticker-album-card:hover img {
    transform: scale(1.035);
}

.ticker-album-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.ticker-album-badges span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(10,10,12,0.68);
    color: #fff;
    font: 850 0.62rem/1 Montserrat, sans-serif;
    backdrop-filter: blur(10px);
}

.ticker-album-badges .ticker-album-topic {
    border-color: rgba(96,165,250,0.30);
    background: rgba(24,52,96,0.72);
    color: #dbeafe;
}

.ticker-album-card > div {
    min-width: 0;
    padding: 13px 14px 14px;
}

.ticker-album-card h3 {
    margin: 0;
    color: #fff;
    font: 850 0.95rem/1.3 Montserrat, sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ticker-album-card p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 9px 0 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.78rem;
    line-height: 1.35;
}

.ticker-media-modal {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: grid;
    place-items: center;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.ticker-media-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ticker-media-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(14px);
}

.ticker-media-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(820px, calc(100vh - 56px));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: #090909;
    box-shadow: 0 26px 90px rgba(0,0,0,0.55);
    overflow: hidden;
    transform: translateY(8px) scale(0.985);
    transition: transform 0.18s ease;
}

.ticker-media-modal.is-open .ticker-media-dialog {
    transform: translateY(0) scale(1);
}

.ticker-media-stage {
    min-height: 220px;
    display: grid;
    place-items: center;
    background: #000;
    overflow: hidden;
}

.ticker-media-stage img,
.ticker-media-stage video {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    display: block;
}

.ticker-media-stage video {
    width: 100%;
}

.ticker-media-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 50%;
    background: rgba(0,0,0,0.56);
    color: #fff;
    font: 900 1.35rem/1 Montserrat, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.ticker-media-caption {
    min-height: 42px;
    margin: 0;
    padding: 11px 14px;
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
    line-height: 1.45;
}

body.ticker-modal-open {
    overflow: hidden;
}

.ticker-toast-region {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 4300;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.ticker-toast {
    padding: 13px 14px;
    border: 1px solid rgba(90,150,255,0.28);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    background: rgba(16,16,18,0.94);
    color: #fff;
    box-shadow: 0 16px 46px rgba(0,0,0,0.35);
    animation: tickerToastIn 0.22s ease both;
    backdrop-filter: blur(14px);
}

.ticker-toast.is-goal {
    border-color: rgba(34,197,94,0.36);
    border-left-color: #22c55e;
}

.ticker-toast.is-hiding {
    animation: tickerToastOut 0.22s ease both;
}

.ticker-toast strong {
    display: block;
    margin-bottom: 4px;
    font: 900 0.72rem/1 Montserrat, sans-serif;
    text-transform: uppercase;
}

.ticker-toast span {
    display: block;
    color: rgba(255,255,255,0.76);
    font-size: 0.86rem;
    line-height: 1.38;
}

@keyframes tickerEntryNew {
    0% { border-color: rgba(90,150,255,0.92); background: rgba(59,130,246,0.16); transform: translateY(-2px); }
    18% { border-color: rgba(90,150,255,0.56); background: rgba(59,130,246,0.10); }
    100% { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); transform: translateY(0); }
}

@keyframes tickerGoalNew {
    0% { border-color: rgba(34,197,94,0.92); background: rgba(34,197,94,0.18); transform: translateY(-2px); }
    18% { border-color: rgba(34,197,94,0.58); background: rgba(34,197,94,0.11); }
    100% { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); transform: translateY(0); }
}

@keyframes tickerIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes tickerGoalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(34,197,94,0.17); }
    50% { transform: scale(1.16); box-shadow: 0 0 0 9px rgba(34,197,94,0.08); }
}

@keyframes tickerToastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tickerToastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}

[data-theme="light"] .ticker-page {
    background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(255,255,255,0) 330px), #fff;
}

[data-theme="light"] .match-panel,
[data-theme="light"] .event-panel,
[data-theme="light"] .ticker-hero-cover,
[data-theme="light"] .ticker-gallery-note,
[data-theme="light"] .ticker-card,
[data-theme="light"] .ticker-card.has-image .ticker-card-main,
[data-theme="light"] .ticker-side-panel,
[data-theme="light"] .ticker-standby-main,
[data-theme="light"] .ticker-standby-panel,
[data-theme="light"] .ticker-standby-strip,
[data-theme="light"] .ticker-album-card {
    border-color: rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.035);
    box-shadow: none;
}

[data-theme="light"] .ticker-title,
[data-theme="light"] .ticker-matchline,
[data-theme="light"] .ticker-gallery-note strong,
[data-theme="light"] .score-team strong,
[data-theme="light"] .score-main strong,
[data-theme="light"] .event-panel-head strong,
[data-theme="light"] .match-clock strong,
[data-theme="light"] .ticker-card h2,
[data-theme="light"] .ticker-minute strong,
[data-theme="light"] .ticker-side-panel h2,
[data-theme="light"] .ticker-side-list strong,
[data-theme="light"] .ticker-standby-main h2,
[data-theme="light"] .ticker-standby-panel h2,
[data-theme="light"] .ticker-next-event strong,
[data-theme="light"] .ticker-standby-strip strong,
[data-theme="light"] .ticker-albums-head h2,
[data-theme="light"] .ticker-album-card h3 {
    color: #111827;
}

[data-theme="light"] .ticker-intro,
[data-theme="light"] .match-meta span,
[data-theme="light"] .event-panel-head span,
[data-theme="light"] .event-panel-list span,
[data-theme="light"] .event-panel-list strong,
[data-theme="light"] .match-clock span,
[data-theme="light"] .ticker-minute,
[data-theme="light"] .ticker-body,
[data-theme="light"] .ticker-side-panel p,
[data-theme="light"] .ticker-side-list span,
[data-theme="light"] .ticker-empty,
[data-theme="light"] .ticker-standby-main p,
[data-theme="light"] .ticker-next-event span,
[data-theme="light"] .ticker-standby-strip span,
[data-theme="light"] .ticker-albums-head p,
[data-theme="light"] .ticker-album-card p {
    color: #4b5563;
}

[data-theme="light"] .ticker-event-icon {
    border-color: #fff;
}

@media (max-width: 1040px) {
    .ticker-hero,
    .ticker-board,
    .ticker-standby {
        grid-template-columns: 1fr;
    }

    .ticker-standby-strip {
        grid-template-columns: 1fr;
    }

    .ticker-standby-strip span {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .ticker-standby-strip span:last-child {
        border-bottom: 0;
    }

    .ticker-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticker-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-panel {
        max-width: none;
        justify-self: stretch;
    }

    .event-panel {
        justify-self: stretch;
    }

    .ticker-board--event .ticker-card.has-image {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ticker-page {
        --thf-ultimate-width: calc(100vw - 28px);
        padding-top: 30px;
    }

    .ticker-shell {
        width: 100%;
        padding: 26px 14px 64px;
    }

    .ticker-shell.content-wrapper {
        width: var(--thf-ultimate-width) !important;
        max-width: var(--thf-ultimate-width) !important;
        padding: 26px 0 64px !important;
    }

    .ticker-hero {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .match-panel {
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.045);
    }

    .event-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .event-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .event-panel-head strong {
        text-align: left;
    }

    .event-panel-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
    }

    .ticker-title {
        margin-top: 10px;
        font-size: 1.38rem;
    }

    .ticker-hero-cover {
        width: 100%;
        margin-bottom: 10px;
    }

    .ticker-hero-cover img {
        aspect-ratio: 16 / 6;
    }

    .ticker-hero-cover span {
        min-height: 22px;
        left: 8px;
        bottom: 8px;
        padding: 0 8px;
        font-size: 0.56rem;
    }

    .ticker-matchline {
        margin-bottom: 7px;
        font-size: 0.92rem;
        line-height: 1.28;
    }

    .ticker-intro {
        display: -webkit-box;
        max-width: none;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .ticker-gallery-note {
        min-height: 34px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
        margin-top: 9px;
        padding: 7px 9px;
    }

    .ticker-gallery-note span {
        display: none;
    }

    .ticker-gallery-note strong {
        font-size: 0.72rem;
    }

    .ticker-gallery-note em {
        font-size: 0.56rem;
    }

    .match-panel {
        border-radius: 10px;
    }

    .match-meta {
        gap: 6px;
        padding: 9px 10px;
        border-bottom: 0;
    }

    .match-meta span {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    .match-meta span:nth-child(n+3) {
        display: none;
    }

    .scoreboard {
        grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
        gap: 8px;
        padding: 9px 10px 11px;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .score-team {
        align-self: center;
    }

    .score-team.is-away {
        text-align: right;
    }

    .score-team-label {
        margin-bottom: 4px;
        font-size: 0.54rem;
    }

    .score-team strong {
        font-size: 0.78rem;
        line-height: 1.22;
    }

    .score-team-full {
        display: none;
    }

    .score-team-short {
        display: inline;
        white-space: nowrap;
    }

    .score-main {
        order: 0;
        min-width: 0;
    }

    .score-main strong {
        font-size: 1.72rem;
        line-height: 0.95;
    }

    .score-main span {
        min-height: 20px;
        margin-top: 5px;
        padding: 0 7px;
        font-size: 0.52rem;
        white-space: nowrap;
    }

    .match-clock-row,
    .match-clock {
        align-items: center;
        flex-direction: row;
    }

    .match-clock-row {
        gap: 10px;
        padding: 8px 10px;
        background: rgba(0,0,0,0.18);
    }

    .match-clock {
        gap: 7px;
        min-width: 0;
    }

    .match-clock span {
        font-size: 0.68rem;
    }

    .match-clock strong {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .match-live-indicator {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.56rem;
        flex: 0 0 auto;
    }

    .ticker-side {
        grid-template-columns: 1fr;
    }

    .ticker-albums-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticker-album-grid {
        grid-template-columns: 1fr;
    }

    .ticker-timeline::before {
        left: 17px;
    }

    .ticker-entry {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .ticker-minute {
        grid-column: 2;
        grid-row: 1;
        padding: 0 0 7px;
        text-align: left;
    }

    .ticker-event-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: 0;
    }

    .ticker-card {
        grid-column: 2;
        grid-row: 2;
    }

    .ticker-card.has-image {
        grid-template-columns: 1fr;
    }

    .ticker-image {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }

    .ticker-media-button {
        min-height: 0;
        height: auto;
    }

    .ticker-image img,
    .ticker-image video {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        display: block;
    }

    .ticker-media-modal {
        padding: 14px;
    }

    .ticker-media-dialog {
        max-height: calc(100vh - 28px);
    }

    .ticker-toast-region {
        right: 14px;
        bottom: 14px;
    }

    .ticker-card-main {
        padding: 15px;
    }

    .ticker-card-head {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .ticker-share-btn {
        width: 38px;
        height: 38px;
        margin-top: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-entry.is-new .ticker-card,
    .ticker-entry.is-new .ticker-event-icon,
    .ticker-toast,
    .ticker-toast.is-hiding,
    .ticker-media-modal,
    .ticker-media-dialog,
    .ticker-media-button img,
    .ticker-media-button video {
        animation: none !important;
        transition: none !important;
    }
}
