:root {
    --dashboard-bg: #050505;
    --dashboard-bg-2: #0a0a0b;
    --dashboard-panel: #0f1012;
    --dashboard-panel-2: #17191d;
    --dashboard-border: rgba(255, 255, 255, 0.08);
    --dashboard-text: #f4f7fb;
    --dashboard-muted: #aab2bd;
    --dashboard-soft: #7f8790;
    --dashboard-accent: #d9a11a;
    --dashboard-accent-2: #ffd064;
    --dashboard-good: #34d399;
    --dashboard-bad: #fb7185;
    --dashboard-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

body {
    min-height: 100vh;
    color: var(--dashboard-text);
    background:
        radial-gradient(circle at top right, rgba(217, 161, 26, 0.15), transparent 28%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, var(--dashboard-bg), var(--dashboard-bg-2));
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 24px 0 0;
}

.site-header-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        linear-gradient(120deg, rgba(217, 161, 26, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--dashboard-shadow);
    backdrop-filter: blur(10px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--dashboard-text);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--dashboard-text);
}

.site-brand-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(217, 161, 26, 0.9), rgba(255, 208, 100, 0.55));
    color: #18120a;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(217, 161, 26, 0.18);
}

.site-brand-kicker,
.site-brand-title {
    display: block;
}

.site-brand-kicker {
    color: var(--dashboard-accent-2);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-header-tagline {
    max-width: 34rem;
    color: var(--dashboard-muted);
    font-size: 0.95rem;
}

.site-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-nav form {
    margin: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--dashboard-muted);
    text-decoration: none;
    transition: 0.18s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--dashboard-text);
    border-color: rgba(217, 161, 26, 0.35);
    background: rgba(217, 161, 26, 0.1);
}

.site-nav-button {
    font: inherit;
    cursor: pointer;
}

.site-footer {
    margin-top: auto;
    padding: 0 0 32px;
}

.site-footer-copy {
    padding-top: 24px;
    text-align: center;
    color: var(--dashboard-muted);
    font-size: 0.88rem;
}

.site-footer-link {
    color: var(--dashboard-text);
    text-decoration: none;
}

.site-footer-link:hover {
    color: var(--dashboard-accent-2);
}

.auth-card {
    max-width: 100%;
}

.auth-provider-list {
    display: grid;
    gap: 12px;
}

.auth-provider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    font-weight: 700;
}

.auth-plex-button {
    color: #fff;
    border-color: rgba(229, 160, 13, 0.4);
    background: linear-gradient(180deg, rgba(229, 160, 13, 0.28), rgba(229, 160, 13, 0.18));
}

.auth-plex-button:hover,
.auth-plex-button:focus {
    color: #fff;
    border-color: rgba(255, 188, 57, 0.6);
    background: linear-gradient(180deg, rgba(255, 188, 57, 0.34), rgba(229, 160, 13, 0.2));
}

.admin-reply-form {
    min-width: 260px;
}

.dashboard-message-banner {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: var(--dashboard-shadow);
    overflow: hidden;
}

.dashboard-message-banner-inner {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px 22px;
}

.dashboard-message-kicker {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dashboard-message-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    white-space: nowrap;
}

.dashboard-message-banner-general {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.08));
    border-color: rgba(52, 211, 153, 0.3);
}

.dashboard-message-banner-info {
    background: linear-gradient(135deg, rgba(79, 179, 255, 0.2), rgba(79, 179, 255, 0.08));
    border-color: rgba(79, 179, 255, 0.28);
}

.dashboard-message-banner-warning {
    background: linear-gradient(135deg, rgba(255, 208, 100, 0.22), rgba(217, 161, 26, 0.1));
    border-color: rgba(255, 208, 100, 0.3);
}

.dashboard-message-banner-error {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.22), rgba(251, 113, 133, 0.08));
    border-color: rgba(251, 113, 133, 0.28);
}

.admin-header-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1.2;
    border-radius: 0.375rem;
}

.dashboard-card {
    color: var(--dashboard-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    box-shadow: var(--dashboard-shadow);
    border: 1px solid var(--dashboard-border);
    backdrop-filter: blur(8px);
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(217, 161, 26, 0.18), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    color: var(--dashboard-accent-2);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--dashboard-muted);
    display: inline-flex;
    font-size: 0.92rem;
    gap: 8px;
    padding: 10px 14px;
}

.hero-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-pill strong,
.dashboard-pill .pill-value-strong {
    color: var(--dashboard-text);
    font-weight: 800;
}

.dashboard-pill.is-live {
    color: #dffaf0;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.1), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-pill.is-live .pill-value-strong {
    color: var(--dashboard-good);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hero-metric {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.hero-metric-label {
    color: var(--dashboard-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-metric-value {
    margin-top: 8px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-metric-value.is-live {
    color: var(--dashboard-good);
    text-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
}

.hero-metric-note {
    margin-top: 8px;
    color: var(--dashboard-soft);
    font-size: 0.86rem;
}

.hero-metric-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
}

.hero-metric-breakdown-item {
    color: var(--dashboard-text);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-pill-button {
    gap: 8px;
    cursor: pointer;
    transition: 0.18s ease;
}

.dashboard-pill-button:hover,
.dashboard-pill-button:focus {
    border-color: rgba(217, 161, 26, 0.35);
    background: rgba(217, 161, 26, 0.12);
    color: var(--dashboard-text);
}

.dashboard-pill-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dashboard-bad);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.status-dot.good {
    background: var(--dashboard-good);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.quick-link {
    align-items: center;
    background: var(--dashboard-panel-2);
    border: 1px solid var(--dashboard-border);
    border-radius: 14px;
    color: var(--dashboard-text);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.18s ease;
}

.quick-link:hover {
    background: #1b1d22;
    border-color: rgba(217, 161, 26, 0.35);
    transform: translateY(-1px);
}

.quick-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(217, 161, 26, 0.12);
    color: var(--dashboard-accent-2);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card.is-live {
    border-color: rgba(52, 211, 153, 0.26);
    background:
        linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.stat-card.is-live .stat-value {
    color: var(--dashboard-good);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
}

.type-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--dashboard-muted);
    font-size: 0.82rem;
}

.dashboard-type-chip-general {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.28);
    color: #dffaf0;
}

.dashboard-type-chip-info {
    background: rgba(79, 179, 255, 0.14);
    border-color: rgba(79, 179, 255, 0.24);
    color: #ddecff;
}

.dashboard-type-chip-warning {
    background: rgba(255, 208, 100, 0.16);
    border-color: rgba(255, 208, 100, 0.28);
    color: #fff0bf;
}

.dashboard-type-chip-error {
    background: rgba(251, 113, 133, 0.16);
    border-color: rgba(251, 113, 133, 0.28);
    color: #ffd9e1;
}

.dashboard-type-chip-muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--dashboard-muted);
}

.media-card {
    color: var(--dashboard-text);
}

.media-poster {
    background-color: #111;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.media-poster-title {
    aspect-ratio: 2 / 3;
    background-position: center top;
    background-size: contain;
}

.media-poster-episode {
    aspect-ratio: 16 / 9;
    background-size: cover;
}

.media-poster-fallback {
    display: grid;
    place-items: center;
    color: var(--dashboard-soft);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(217, 161, 26, 0.1), rgba(255, 255, 255, 0.03)), #111;
}

.media-type {
    color: var(--dashboard-accent-2);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.media-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--dashboard-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.media-link:hover {
    color: var(--dashboard-text);
    border-color: rgba(217, 161, 26, 0.35);
    background: rgba(217, 161, 26, 0.08);
}

.media-link-badge {
    cursor: default;
}

.badge-icon {
    display: inline-block;
    margin-right: 4px;
}

.rt-tomato {
    border-color: rgba(255, 99, 71, 0.35);
    background: rgba(255, 99, 71, 0.1);
    color: #ffd9d1;
}

.rt-splat {
    border-color: rgba(255, 140, 0, 0.35);
    background: rgba(255, 140, 0, 0.1);
    color: #ffe1bf;
}

.rt-popcorn {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.1);
    color: #fff0b3;
}

.rating-imdb {
    border-color: rgba(245, 197, 24, 0.35);
    background: rgba(245, 197, 24, 0.1);
    color: #ffefae;
}

.rating-tmdb {
    border-color: rgba(1, 180, 228, 0.35);
    background: rgba(1, 180, 228, 0.1);
    color: #ccefff;
}

.rating-tvdb {
    border-color: rgba(120, 190, 32, 0.35);
    background: rgba(120, 190, 32, 0.1);
    color: #e0f6c8;
}

.rating-generic {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-muted);
}

.empty-state {
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--dashboard-muted);
    background: rgba(255, 255, 255, 0.02);
}

.chart-wrap {
    position: relative;
    min-height: 300px;
}

.chart-wrap-tall {
    min-height: 340px;
}

.usage-total-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(217, 161, 26, 0.08), rgba(79, 179, 255, 0.05));
}

.usage-total-value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.usage-range-control {
    min-width: min(100%, 280px);
}

.usage-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dashboard-muted);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.usage-loading-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.usage-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffd064;
    box-shadow: 0 0 0 rgba(255, 208, 100, 0.45);
    animation: usage-loading-pulse 1s ease-in-out infinite;
}

.usage-range-slider {
    width: 150px;
    margin: 0;
    transition: opacity 0.18s ease;
}

.usage-range-input {
    width: 88px;
    flex: 0 0 88px;
    text-align: center;
}

.usage-range-pill {
    min-width: 84px;
    justify-content: center;
}

body.usage-loading .usage-range-slider,
body.usage-loading .usage-range-input {
    opacity: 0.65;
}

@media (max-width: 575.98px) {
    .usage-range-slider {
        width: 100%;
    }

    .usage-range-input {
        width: 72px;
        flex-basis: 72px;
    }
}

body.usage-loading #daily-play-duration-chart,
body.usage-loading #weekday-play-duration-chart,
body.usage-loading .usage-total-card {
    opacity: 0.55;
}

body.usage-loading .chart-wrap,
body.usage-loading .usage-total-card {
    animation: usage-panel-pulse 0.95s ease-in-out infinite alternate;
}

.most-watched-grid {
    display: grid;
    gap: 16px;
}

.now-playing-grid {
    display: grid;
    gap: 16px;
}

.now-playing-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(6, 7, 8, 0.82), rgba(6, 7, 8, 0.94)),
        linear-gradient(135deg, rgba(217, 161, 26, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--dashboard-shadow);
}

.now-playing-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    filter: blur(0);
    transform: scale(1.04);
}

.now-playing-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 5, 6, 0.96) 0%, rgba(4, 5, 6, 0.82) 44%, rgba(4, 5, 6, 0.94) 100%);
}

.now-playing-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.now-playing-poster {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background-color: #111;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.now-playing-poster-fallback {
    display: grid;
    place-items: center;
    color: var(--dashboard-soft);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(217, 161, 26, 0.12), rgba(255, 255, 255, 0.04)), #111;
}

.now-playing-copy {
    min-width: 0;
}

.now-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 208, 100, 0.14);
    border: 1px solid rgba(255, 208, 100, 0.24);
    color: var(--dashboard-accent-2);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.now-playing-subtitle {
    color: var(--dashboard-muted);
    margin-bottom: 8px;
}

.now-playing-meta,
.now-playing-progress-meta,
.now-playing-progress-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--dashboard-muted);
    font-size: 0.92rem;
}

.now-playing-meta {
    margin-bottom: 14px;
}

.now-playing-progress-block {
    display: grid;
    gap: 8px;
}

.now-playing-progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.now-playing-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dashboard-accent), var(--dashboard-accent-2));
    box-shadow: 0 0 24px rgba(255, 208, 100, 0.28);
}

.now-playing-progress-foot {
    justify-content: space-between;
}

.now-playing-summary {
    margin-top: 14px;
    color: var(--dashboard-muted);
    max-width: 70ch;
}

.most-watched-feature {
    display: grid;
    grid-template-columns: minmax(120px, 150px) 1fr;
    gap: 16px;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.most-watched-poster {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background-color: #111;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.most-watched-poster-fallback {
    display: grid;
    place-items: center;
    color: var(--dashboard-soft);
    background: linear-gradient(135deg, rgba(217, 161, 26, 0.1), rgba(255, 255, 255, 0.03)), #111;
}

.most-watched-poster-fallback::before {
    content: "No Poster";
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.most-watched-list {
    display: grid;
    gap: 8px;
}

.most-watched-item {
    width: 100%;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--dashboard-text);
    text-align: left;
    transition: 0.18s ease;
}

.most-watched-item:hover,
.most-watched-item:focus,
.most-watched-item.active {
    border-color: rgba(217, 161, 26, 0.35);
    background: rgba(217, 161, 26, 0.08);
    outline: none;
}

.most-watched-rank {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dashboard-accent-2);
    font-size: 0.88rem;
    font-weight: 700;
}

.most-watched-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.most-watched-title {
    font-weight: 600;
}

.most-watched-meta {
    color: var(--dashboard-muted);
    font-size: 0.88rem;
}

.most-watched-watchers-list {
    display: grid;
    gap: 10px;
}

.most-watched-viewer {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.most-watched-viewer:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.most-watched-viewer-name {
    font-weight: 700;
}

.most-watched-viewer-meta {
    color: var(--dashboard-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.most-watched-modal-open {
    overflow: hidden;
}

.most-watched-modal[hidden] {
    display: none;
}

.most-watched-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
}

.most-watched-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(6px);
}

.most-watched-modal-dialog {
    position: relative;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(15, 16, 18, 0.98), rgba(10, 10, 11, 0.98)),
        linear-gradient(135deg, rgba(217, 161, 26, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--dashboard-shadow);
}

.most-watched-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dashboard-text);
}

.most-watched-modal-header {
    margin-bottom: 18px;
    padding-right: 48px;
}

.most-watched-modal-body {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 767.98px) {
    .site-header {
        padding-top: 16px;
    }

    .site-header-card {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 18px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .now-playing-content,
    .most-watched-feature {
        grid-template-columns: 1fr;
    }

    .now-playing-poster,
    .most-watched-poster {
        max-width: 180px;
    }

    .now-playing-progress-foot {
        justify-content: flex-start;
    }

    .dashboard-message-banner-inner {
        flex-direction: column;
    }

    .dashboard-message-meta {
        white-space: normal;
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.9);
    z-index: 1055;
}

@keyframes usage-loading-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 208, 100, 0.4);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(255, 208, 100, 0);
    }
}

@keyframes usage-panel-pulse {
    0% {
        filter: saturate(0.95);
    }
    100% {
        filter: saturate(1.08) brightness(1.04);
    }
}

.dashboard-spinner {
    width: 56px;
    height: 56px;
    border-width: 4px;
    color: var(--dashboard-accent);
}

.form-control,
.form-control:focus,
.form-check-input,
.form-check-input:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--dashboard-text);
}

.form-control::placeholder {
    color: rgba(244, 247, 251, 0.45);
}

.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(217, 161, 26, 0.15);
}

.form-check-input:checked {
    background-color: var(--dashboard-accent);
    border-color: var(--dashboard-accent);
}

.form-text,
.form-label,
.form-check-label {
    color: var(--dashboard-muted);
}
