/* Live touchdown feed shared by Touchdowns.live and the NFL hub. */

.td-live-shell {
    display: grid;
    gap: 0.75rem;
}

.td-live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.25rem 0;
}

.td-live-toolbar-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.td-live-toolbar-meta {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-live-week-select,
.td-live-view-toggle button,
.td-live-share {
    min-height: 44px;
    min-width: 44px;
    font-family: inherit;
    cursor: pointer;
}

.td-live-week-select {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-radius: 6px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.td-live-view-toggle {
    display: flex;
    gap: 0.375rem;
}

.td-live-view-toggle button {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border-radius: 6px;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.td-live-view-toggle button[aria-pressed="true"] {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border-color: hsl(var(--foreground));
}

.td-live-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 0.75rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.td-live-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    min-height: 44px;
    text-decoration: none;
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
}

.td-live-chip.is-live {
    border-color: hsl(var(--brand, 27 77% 52%));
}

.td-live-chip.is-final,
.td-live-chip.is-upcoming {
    color: hsl(var(--muted-foreground));
}

.td-live-chip-status {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-live-chip.is-live .td-live-chip-status {
    color: hsl(var(--error, 0 84% 60%));
}

.td-live-feed-label {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    padding: 0 0.15rem;
}

.td-live-feed-label .td-live-new {
    color: hsl(var(--brand, 27 77% 52%));
}

.td-live-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 960px) {
    .td-live-host.active,
    .td-tab-panel.active.td-live-host {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 1rem;
        align-items: start;
    }
    .td-live-host .td-live-fav { display: block; }
}

.td-live-main {
    min-width: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.td-live-fav {
    display: block;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 0.9rem;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 960px) {
    .td-live-layout.has-sidebar .td-live-fav {
        display: block;
    }
}

.td-live-fav h2 {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.45rem;
}

.td-live-leaders {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.td-live-leaders-note {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.35;
}

.td-live-leaders-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(var(--brand));
    text-decoration: none;
}

.td-live-leaders-link:hover { text-decoration: underline; }

.td-live-leader-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.25rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid hsl(var(--border));
}

.td-live-leader-row:last-child { border-bottom: none; }

.td-live-leader-row:hover .td-live-leader-name {
    color: hsl(var(--brand, 27 77% 52%));
}

.td-live-leader-rank,
.td-live-leader-stat {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-weight: 800;
    font-size: 0.75rem;
}

.td-live-leader-rank {
    color: hsl(var(--brand, 27 77% 52%));
    width: 1rem;
    flex-shrink: 0;
}

.td-live-leader-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.td-live-leader-name {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-live-leader-meta {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

.td-live-leader-stat {
    margin-left: auto;
    flex-shrink: 0;
}

.td-live-fav .td-live-photo-slot,
.td-live-fav .td-live-photo {
    width: 28px;
    height: 28px;
}

.td-live-fav a {
    color: hsl(var(--brand, 27 77% 52%));
}

.td-live-fav .td-live-leader-row {
    color: hsl(var(--foreground));
}

.td-live-fav-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.8125rem;
}

.td-live-fav-row:last-child { border-bottom: none; }

.td-live-fav-pct {
    margin-left: auto;
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-weight: 800;
}

.td-live-play {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
    align-items: flex-start;
}

.td-live-play:last-child { border-bottom: none; }

.td-live-photo-slot {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsl(var(--muted));
    flex-shrink: 0;
    overflow: hidden;
}

.td-live-photo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.td-live-play-body { flex: 1; min-width: 0; }

.td-live-play-name { font-weight: 700; }

.td-live-play-meta {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.2rem;
}

.td-live-play-share {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding-right: 0.75rem;
}

.td-live-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 0 0.75rem;
}

.td-live-share:hover,
.td-live-share:focus-visible {
    border-color: hsl(var(--brand, 27 77% 52%));
    color: hsl(var(--brand, 27 77% 52%));
}

.td-live-badge {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    vertical-align: middle;
}

.td-live-empty {
    padding: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.td-live-game {
    border-bottom: 1px solid hsl(var(--border));
}

.td-live-game:last-child { border-bottom: none; }

.td-live-game-head {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.td-live-game.is-final .td-live-game-head {
    color: hsl(var(--muted-foreground));
}

.td-live-matchup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.td-live-matchup img { width: 24px; height: 24px; object-fit: contain; }

.td-live-matchup-score {
    white-space: nowrap;
}

.td-live-game-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-family: var(--mono), ui-monospace, Menlo, monospace;
}

.td-live-game-grid {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
}

@media (min-width: 900px) {
    .td-live-game-grid { grid-template-columns: 1fr 1fr; }
}

.td-live-game-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
}

.td-live-game-card.is-final { opacity: 0.72; }

.td-live-game-card-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid hsl(var(--border));
}

.td-live-game-card-bar .td-live-game-head {
    flex: none;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.td-live-game-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0 1rem 0.7rem;
}

.td-live-game-share-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

.td-live-game-share-icons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.td-live-share-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
}

.td-live-share-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.td-shell-header {
    background: hsl(var(--card));
    flex-wrap: nowrap;
}

.td-shell-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.td-shell-nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.td-shell-nav a,
.td-shell-nav button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0.55rem 0;
    min-height: 44px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.td-shell-nav a.is-active,
.td-shell-nav button.is-active,
.td-shell-nav .td-tab.active {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--brand, 27 77% 52%));
}

.td-shell-nfl {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    text-decoration: none;
    color: inherit;
}

.td-shell-sport {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    display: none;
}

.td-shell-sport-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 5px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

@media (min-width: 800px) {
    .td-shell-sport { display: inline-flex; align-items: center; }
}

@media (max-width: 860px) {
    .sat-topbar.td-shell-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo domain"
            "menu menu";
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0;
    }

    .td-shell-header .sat-edgely-logo {
        grid-area: logo;
        justify-self: start;
        width: max-content;
    }

    .td-shell-header .sat-domain {
        grid-area: domain;
        justify-self: end;
    }

    .td-shell-menu {
        grid-area: menu;
        flex: none;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .td-shell-nav {
        flex: 0 0 auto;
        overflow: visible;
    }

    .td-shell-nfl { flex-shrink: 0; }
}

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

.td-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
    display: inline-block;
    background: hsl(var(--muted-foreground));
    transform: rotate(45deg);
    border-radius: 1px;
}

.td-status-dot.live {
    background: hsl(var(--brand, 27 77% 52%));
    box-shadow: 0 0 6px hsl(var(--brand, 27 77% 52%) / 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

.td-status-dot.offseason {
    background: hsl(45, 93%, 50%);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.td-season-summary {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.1rem 1.15rem 1.25rem;
    margin: 0.75rem 0 1.5rem;
}

.td-season-summary h2 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.td-season-lede,
.td-season-total {
    margin: 0 0 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.td-season-total strong {
    color: hsl(var(--foreground));
    font-size: 1.35rem;
    font-weight: 700;
}

.td-season-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.td-season-table th,
.td-season-table td {
    text-align: left;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid hsl(var(--border));
}

.td-season-table tbody th {
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .td-status-dot.live { animation: none; }
}

.td-status { display: grid; gap: 0.25rem; font-size: 0.8125rem; font-weight: 500; }
.td-status-line { display: flex; align-items: center; gap: 0.5rem; }

.td-page .td-tab-panel,
.td-hub-embed .td-tab-panel { display: none; }
.td-page .td-tab-panel.active,
.td-hub-embed .td-tab-panel.active { display: block; }

.td-hub-tabs {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    border-bottom: 1px solid hsl(var(--border));
}

.td-hub-tabs .td-tab {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0.55rem 0;
    min-height: 44px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.td-hub-tabs .td-tab.active {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--brand, 27 77% 52%));
}

.td-hub-proviso {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0.25rem 0 0;
}

@media (min-width: 960px) {
    .td-hub-embed .td-tab-panel.active.td-live-host {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 1rem;
        align-items: start;
    }
    .td-hub-embed .td-live-fav { display: block; }
}

/* Projected tab: full-week anytime board using live card/row chrome. */

.td-projected-shell {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.td-projected-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
    .td-projected-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.td-projected-edgely {
    display: inline-block;
    margin: 0 1rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
}

.td-projected-edgely:hover,
.td-projected-edgely:focus-visible {
    color: hsl(var(--brand, 27 77% 52%));
}

.td-live-play.is-muted,
.td-live-play.is-residual {
    opacity: 0.55;
}

.td-live-play-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    flex-shrink: 0;
    min-width: 0;
    max-width: 42%;
    text-align: right;
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

.td-live-play-stat-main {
    font-size: 0.9375rem;
    font-weight: 800;
    color: hsl(var(--foreground));
}

.td-live-play-stat-sub {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: hsl(var(--muted-foreground));
    line-height: 1.3;
    white-space: normal;
}

.td-live-play-name .td-live-badge + .td-live-badge {
    margin-left: 0.25rem;
}

@media (max-width: 420px) {
    .td-live-play {
        flex-wrap: wrap;
    }

    .td-live-play-stats {
        width: 100%;
        max-width: none;
        align-items: flex-start;
        text-align: left;
        padding-left: calc(40px + 0.75rem);
    }
}

/* ---- Promo tabs (KOTZ, Slatebreaker) ---- */

.promo-content {
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
}

.promo-content h2 {
    font-family: var(--cond), system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    color: hsl(var(--foreground));
}

.promo-content h3 {
    font-family: var(--cond), system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 1.75rem 0 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.promo-content h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.promo-content p {
    margin: 0 0 0.75rem;
    color: hsl(var(--muted-foreground));
}

.promo-content ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.promo-content li {
    margin-bottom: 0.4rem;
}

.promo-content strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.promo-tracker-wrap {
    border-top: 2px solid hsl(var(--brand));
    padding: 1.25rem 1.5rem;
}

.promo-tracker-header h3 {
    font-family: var(--cond), system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.25rem;
}

.promo-tracker-note {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1rem;
    line-height: 1.4;
}

.promo-tracker-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.promo-tracker-empty p { margin: 0 0 0.35rem; }

.promo-king-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--brand));
    border-radius: 0.5rem;
}

.promo-king-info { flex: 1; min-width: 0; }

.promo-king-name {
    font-size: 1rem;
    font-weight: 700;
}

.promo-king-team {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.promo-king-stat {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: hsl(var(--brand));
    font-variant-numeric: tabular-nums;
}

.promo-king-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.promo-tracker-list h4 {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.5rem;
}

.promo-tracker-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.8125rem;
}

.promo-tracker-row:last-child { border-bottom: none; }

.promo-tracker-rank {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-weight: 800;
    font-size: 0.75rem;
    color: hsl(var(--brand));
    width: 1rem;
    flex-shrink: 0;
    text-align: right;
}

.promo-tracker-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.promo-tracker-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-tracker-detail {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
}

.promo-tracker-yards {
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    font-weight: 800;
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.promo-muted {
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.promo-eligible {
    color: hsl(142, 71%, 45%);
    font-weight: 600;
}

.promo-ineligible {
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.promo-row-ineligible {
    opacity: 0.5;
}
