/* Heavy Rotation - custom styles */

article > :last-child {
    margin-bottom: 0;
}

tbody tr:hover td {
    background-color: rgba(128, 128, 128, 0.1);
}

@media (prefers-color-scheme: dark) {
    tbody tr:hover td {
        background-color: rgba(128, 128, 128, 0.06);
    }
}

html[data-theme="dark"] tbody tr:hover td {
    background-color: rgba(128, 128, 128, 0.06);
}

.theme-toggle-li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle-li input[type="checkbox"] {
    margin: 0;
}

.survivor-row td {
    background-color: rgba(76, 175, 80, 0.15);
}

.countdown {
    font-variant-numeric: tabular-nums;
}

#vote-count {
    font-variant-numeric: tabular-nums;
}

nav ul li a.nav-admin {
    font-weight: bold;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.song-row input {
    flex: 1;
    margin-bottom: 0;
}

.search-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    color: var(--pico-muted-color);
    text-decoration: none;
    white-space: nowrap;
}

.search-btn:hover {
    color: var(--pico-primary);
    border-color: var(--pico-primary);
}

.edit-btn,
.propose-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    margin: 0;
    width: auto;
}

@keyframes slow-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.slow-blink {
    animation: slow-blink 2s ease-in-out infinite;
}

[data-tooltip]::after {
    font-size: 1.35rem;
}

.track-name {
    display: block;
    max-width: min(28rem, 60vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.round-bar-cell {
    width: 4.5rem;
    padding-left: 0;
    text-align: right;
}

.round-bar {
    min-width: max-content;
    height: 1.2em;
    line-height: 1.2em;
    background: hsl(0, 60%, 65%);
    color: #fff;
    border-radius: 2px;
    font-size: 0.75rem;
    text-align: left;
    padding: 0 0.3rem;
    white-space: nowrap;
    margin-left: auto;
}

.vote-bar-cell {
    width: 4.5rem;
    padding-right: 0;
}

.vote-bar {
    min-width: max-content;
    height: 1.2em;
    line-height: 1.2em;
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
    border-radius: 2px;
    font-size: 0.75rem;
    text-align: right;
    padding: 0 0.3rem;
    white-space: nowrap;
}

.vote-zero {
    min-width: max-content;
    background: var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}
