/* Fixed bottom news wire and device-local league preferences. */

body {
    padding-bottom: 48px;
}

.sports-news-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    color: #f1eff4;
    font-family: var(--bt-mono, monospace);
}

.sports-news-bar {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 44px;
    border-top: 1px solid #3b3842;
    background: rgba(10,10,14,.97);
    box-shadow: 0 -12px 30px rgba(0,0,0,.34);
    backdrop-filter: blur(16px);
}

.sports-news-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid #302e37;
    background: #111117;
    color: #f3f1f5;
    font-family: inherit;
    font-size: 7px;
    letter-spacing: .12em;
    cursor: pointer;
}

.sports-news-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #eb565f;
    box-shadow: 0 0 0 4px rgba(235,86,95,.1);
    animation: news-pulse 2s ease-in-out infinite;
}

@keyframes news-pulse {
    50% { opacity: .45; transform: scale(.8); }
}

.sports-news-ticker {
    min-width: 0;
}

.sports-news-ticker a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    color: inherit;
    text-decoration: none;
}

.sports-news-ticker b {
    flex: 0 0 auto;
    padding: 3px 5px;
    font-size: 6px;
    font-weight: 600;
    letter-spacing: .07em;
}

.sports-news-ticker .sport.nba { background: #555ed7; color: #fff; }
.sports-news-ticker .sport.mlb { background: #a62d38; color: #fff; }
.sports-news-ticker .sport.nfl { background: #1768a7; color: #fff; }
.sports-news-ticker .breaking { color: #ff8b92; }
.sports-news-ticker .latest { color: #77727f; }

.sports-news-ticker span {
    overflow: hidden;
    color: #d8d4dc;
    font-family: var(--bt-display, sans-serif);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sports-news-ticker time {
    flex: 0 0 auto;
    color: #625e69;
    font-size: 6px;
}

.sports-news-controls {
    display: flex;
    border-left: 1px solid #302e37;
}

.sports-news-controls button {
    min-width: 38px;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid #26242c;
    background: #111117;
    color: #77727f;
    font-family: inherit;
    font-size: 7px;
    text-transform: uppercase;
    cursor: pointer;
}

.sports-news-controls button:hover,
.sports-news-live:hover {
    background: #191820;
    color: #fff;
}

.sports-news-drawer,
.sports-news-preferences {
    position: absolute;
    right: 0;
    bottom: 44px;
    border: 1px solid #393640;
    border-bottom: 0;
    background: rgba(14,14,19,.985);
    box-shadow: 0 -18px 50px rgba(0,0,0,.48);
    backdrop-filter: blur(18px);
}

.sports-news-drawer.hidden,
.sports-news-preferences.hidden {
    display: none;
}

.sports-news-drawer {
    left: 0;
    max-height: min(60vh, 540px);
    overflow: hidden;
}

.sports-news-drawer > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #302e37;
}

.sports-news-drawer > header div,
.sports-news-preferences > div {
    display: flex;
    flex-direction: column;
}

.sports-news-drawer > header span,
.sports-news-preferences > div span {
    color: #8b8fe9;
    font-size: 6px;
    letter-spacing: .12em;
}

.sports-news-drawer > header strong,
.sports-news-preferences > div strong {
    margin-top: 3px;
    font-family: var(--bt-display, sans-serif);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

.sports-news-drawer > header small {
    color: #625e69;
    font-size: 6px;
}

.sports-news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(52vh, 470px);
    overflow-y: auto;
    background: #282630;
    gap: 1px;
}

.sports-news-list > a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 83px;
    padding: 8px;
    background: #111117;
    color: #ddd9e2;
    text-decoration: none;
}

.sports-news-list > a:hover,
.sports-news-list > a.current {
    background: #18171e;
    box-shadow: inset 2px 0 #667eea;
}

.sports-news-list img,
.sports-news-list > a > i {
    width: 74px;
    height: 62px;
    object-fit: cover;
    background: linear-gradient(145deg, #242331, #15141b);
}

.sports-news-list > a > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sports-news-list b {
    color: #8b8fe9;
    font-size: 6px;
    font-weight: 500;
}

.sports-news-list strong {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0;
    font-family: var(--bt-display, sans-serif);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sports-news-list small {
    overflow: hidden;
    color: #65616c;
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sports-news-preferences {
    right: 10px;
    width: 270px;
    padding: 16px;
}

.sports-news-preferences > div {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #302e37;
}

.sports-news-preferences label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border-bottom: 1px solid #24222a;
    color: #aaa6b0;
    font-size: 8px;
    cursor: pointer;
}

.sports-news-preferences input {
    accent-color: #667eea;
}

.sports-news-preferences > small {
    display: block;
    margin-top: 10px;
    color: #625e69;
    font-size: 6px;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .sports-news-bar {
        grid-template-columns: 88px minmax(0, 1fr) auto;
    }

    .sports-news-live {
        padding: 0 8px;
    }

    .sports-news-controls button:not(:last-child) {
        display: none;
    }

    .sports-news-controls button:last-child {
        width: 40px;
        overflow: hidden;
        padding: 0;
        color: transparent;
    }

    .sports-news-controls button:last-child::after {
        content: '⚙';
        color: #8c8792;
        font-size: 14px;
    }

    .sports-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sports-news-ticker .latest,
    .sports-news-ticker time {
        display: none;
    }
}

@media (max-width: 520px) {
    .sports-news-bar {
        grid-template-columns: 72px minmax(0, 1fr) 40px;
    }

    .sports-news-live span {
        display: none;
    }

    .sports-news-ticker a {
        gap: 5px;
        padding: 0 8px;
    }

    .sports-news-ticker span {
        font-size: 10px;
    }

    .sports-news-list {
        grid-template-columns: 1fr;
    }
}
