@import url("./config/ui-theme.css");

/* =========================================================================
   NextReq v0.0.69 — Arr Cache Results Display Repair
   Main visual owner: public/style.css
   Theme/config owner: public/config/ui-theme.css
   ========================================================================= */

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 8% -10%, rgba(79, 195, 255, 0.22), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(244, 179, 71, 0.18), transparent 30rem),
        linear-gradient(145deg, #070a10 0%, #0c1220 55%, #090d14 100%);
    color: var(--text);
    overflow: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 78%);
    z-index: -1;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.support-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: var(--page-pad);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 19, 29, 0.98), rgba(11, 15, 23, 0.92));
    box-shadow: 18px 0 70px rgba(0,0,0,0.24);
}

.main-stage {
    min-width: 0;
    height: 100vh;
    padding: var(--page-pad);
    overflow-y: auto;
}

.brand-lockup {
    display: flex;
    gap: 13px;
    align-items: center;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,0.50), transparent 22%),
        linear-gradient(135deg, var(--gold), var(--blue));
    color: #08111c;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(79,195,255,0.22);
}

.brand-lockup h2,
.brand-lockup p,
.hero-panel h1,
.hero-panel p,
.section-heading h2,
.card h3,
.admin-title,
.stat-card p,
.stat-card strong {
    margin: 0;
}

.brand-lockup h2 {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-lockup p,
.hero-subtitle,
.hint-text,
.muted,
.mini-status,
.stat-card p,
.queue-meta,
.chat-bubble time,
.media-meta {
    color: var(--muted);
}


.app-version {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.mode-card,
.coffee-banner,
.chat-box,
.search-panel,
.content-card,
.hero-panel,
.card,
.admin-chat-layout,
.empty-card,
.media-card,
.stat-card,
.ledger-row {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.mode-card {
    border-radius: var(--radius-md);
    padding: 14px;
    display: grid;
    gap: 9px;
}

.mode-card span {
    color: var(--gold-2);
    font-weight: 850;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mode-card strong {
    font-size: 14px;
}

.rail-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.rail-title h3 { margin: 0; }

.presence-badge,
.pill,
.media-type,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.presence-badge { padding: 8px 11px; }
.pill, .media-type, .status-chip { padding: 6px 10px; }

.online {
    background: rgba(72, 213, 151, 0.14);
    color: #9ff1ca;
    border-color: rgba(72, 213, 151, 0.35);
}

.offline {
    background: rgba(255, 159, 67, 0.14);
    color: #ffd3a1;
    border-color: rgba(255, 159, 67, 0.35);
}

.coffee-banner {
    color: #140e05;
    padding: 14px 15px;
    border-radius: var(--radius-md);
    font-weight: 950;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    border-color: rgba(255, 209, 102, 0.70);
    box-shadow: 0 18px 45px rgba(244, 179, 71, 0.22);
}

.chat-box,
.admin-chat-layout {
    flex: 1;
    min-height: 260px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    font-size: 14px;
}

.admin-messages { min-height: 320px; }

.chat-bubble {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 11px 12px;
    margin-bottom: 10px;
    max-width: 92%;
    line-height: 1.35;
}

.user-bubble { background: rgba(255, 255, 255, 0.035); }
.admin-bubble {
    background: rgba(79, 195, 255, 0.13);
    border-color: rgba(79, 195, 255, 0.25);
    margin-left: auto;
}

.chat-bubble time {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: rgba(8, 12, 19, 0.55);
}

.chat-input-area input { min-width: 0; }

.hero-panel,
.admin-header {
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    background:
        linear-gradient(135deg, rgba(79,195,255,0.18), rgba(244,179,71,0.11)),
        rgba(18, 25, 38, 0.78);
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--gold-2);
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.18em;
    font-size: 12px;
    margin: 0 0 10px;
}

.hero-panel h1,
.admin-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    max-width: 920px;
}

.hero-subtitle {
    margin-top: 16px;
    max-width: 780px;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.5;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-link,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    color: #07111c;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, 0.55);
    cursor: pointer;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(244,179,71,0.18);
}

.btn-secondary {
    color: #07111c;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    border-color: rgba(125, 211, 252, 0.50);
    box-shadow: 0 12px 28px rgba(79,195,255,0.16);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255,255,255,0.05);
    border-color: var(--line);
    box-shadow: none;
}

.dashboard-stats,
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 15px;
    background: rgba(18, 25, 38, 0.66);
}

.stat-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.04em;
}

.stat-card p {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-panel,
.content-card,
.card {
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 18px;
}

.search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.search-bar,
input[type="text"],
input[type="password"],
select {
    width: 100%;
    min-height: 44px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(7, 11, 18, 0.76);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.search-bar {
    min-height: 54px;
    font-size: 17px;
    padding-left: 18px;
}

input:focus,
select:focus,
.search-bar:focus {
    border-color: rgba(79,195,255,0.65);
    box-shadow: 0 0 0 4px rgba(79,195,255,0.11);
}

.hint-text { margin-top: 9px; font-size: 13px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: var(--gap);
    align-items: start;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 2px;
}

.section-heading h2 {
    font-size: 21px;
    letter-spacing: -0.03em;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.media-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79,195,255,0.36);
    box-shadow: 0 22px 60px rgba(0,0,0,0.32);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 40% 25%, rgba(79,195,255,0.34), transparent 36%),
        linear-gradient(145deg, #202c3f, #101724 70%);
    background-size: cover;
    background-position: center;
    font-size: 40px;
}

.poster::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(9,13,20,0.84), transparent);
}

.media-card-body {
    padding: 14px;
}

.media-card h4 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.22;
}

.media-card p {
    margin: 0 0 12px;
    min-height: 58px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.38;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.media-type {
    color: #dff6ff;
    background: rgba(79,195,255,0.14);
    border-color: rgba(79,195,255,0.25);
    text-transform: uppercase;
}

.empty-card {
    border-radius: var(--radius-md);
    padding: 18px;
    color: var(--muted);
    white-space: pre-line;
}

.queue-panel {
    position: sticky;
    top: var(--page-pad);
}

.request-preview {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.ledger-row {
    border-radius: 16px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.ledger-row span,
.queue-meta {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.ledger-row em,
.status-chip {
    color: #b7f7d4;
    font-style: normal;
    background: rgba(72,213,151,0.12);
    border-color: rgba(72,213,151,0.26);
}


.scan-summary-card {
    margin-bottom: 18px;
}

.scan-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.scan-metric {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(7, 11, 18, 0.42);
}

.scan-metric strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.scan-metric span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scan-footer-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.scan-footer-line span,
.scan-library-row span,
.scan-history-row span {
    color: var(--muted);
    font-size: 12px;
}

.scan-library-list,
.scan-history-list {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.scan-library-row,
.scan-history-row,
.scan-plan-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.scan-library-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.scan-library-row strong,
.scan-history-row strong {
    display: block;
    margin-bottom: 5px;
}

.scan-row-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.scan-row-metrics em {
    font-style: normal;
    color: #dff6ff;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(79,195,255,0.12);
    border: 1px solid rgba(79,195,255,0.22);
    font-size: 12px;
    white-space: nowrap;
}

.scan-planner-card .card-actions {
    margin-top: 14px;
}

.admin-scan-grid {
    margin-bottom: 0;
}

.scan-plan-box {
    margin-top: 13px;
}

.scan-plan-box h4 {
    margin: 0 0 10px;
    color: var(--gold-2);
}

.scan-plan-box ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.admin-container {
    overflow-y: auto;
    padding: var(--page-pad);
}

.admin-page {
    max-width: 1320px;
    margin: 0 auto;
}

.admin-title { color: var(--text); }

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: var(--gap);
    align-items: start;
}

.card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    color: var(--blue-2);
    letter-spacing: -0.02em;
}

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

.form-group { margin-bottom: 14px; }

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 850;
    font-size: 13px;
    color: #dce6f3;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    background: rgba(8, 12, 19, 0.36);
}

th, td {
    text-align: left;
    padding: 11px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tr:last-child td { border-bottom: none; }

.row-delete {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 92, 122, 0.15);
    border-color: rgba(255, 92, 122, 0.35);
    box-shadow: none;
}

.request-ledger {
    display: grid;
    gap: 10px;
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(12, 18, 30, 0.92);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.bottom-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bottom-nav a.active { color: var(--blue-2); }

body.local-mode::before {
    content: 'Local file mode';
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 110;
    padding: 8px 12px;
    border: 1px solid rgba(255, 214, 102, 0.35);
    border-radius: 999px;
    background: rgba(18, 24, 38, 0.88);
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 300px minmax(0, 1fr); }
    .dashboard-grid,
    .admin-layout { grid-template-columns: 1fr; }
    .queue-panel { position: static; }
}

@media (max-width: 820px) {
    body { overflow-y: auto; }
    .app-shell { display: block; }
    .support-rail {
        position: static;
        width: 100%;
        height: auto;
        min-height: 390px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .main-stage { height: auto; padding-bottom: 90px; overflow: visible; }
    .hero-panel,
    .admin-header,
    .search-shell { grid-template-columns: 1fr; }
    .dashboard-stats,
    .admin-stats,
    .settings-grid,
    .scan-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scan-library-row { grid-template-columns: 1fr; }
    .scan-row-metrics { justify-content: flex-start; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bottom-nav { display: flex; }
    body.local-mode::before { bottom: 78px; }
    .admin-container { padding-bottom: 90px; }
}

@media (max-width: 500px) {
    .media-grid,
    .scan-summary-grid { grid-template-columns: 1fr; }
    .hero-panel h1,
    .admin-title { font-size: 38px; }
}

.arr-test-card {
    border-color: rgba(68, 207, 255, 0.22);
}

.arr-test-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.arr-test-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 12, 19, 0.34);
}

.arr-test-box strong,
.arr-test-box span {
    display: block;
}

.arr-test-box span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.connection-result {
    min-height: 74px;
    white-space: pre-line;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.connection-result.good {
    border-color: rgba(84, 255, 169, 0.35);
    color: #bfffe0;
    background: rgba(31, 180, 105, 0.11);
}

.connection-result.warn,
.connection-result.pending {
    border-color: rgba(255, 214, 102, 0.35);
    color: var(--gold-2);
    background: rgba(255, 191, 69, 0.10);
}

.connection-result.bad {
    border-color: rgba(255, 92, 122, 0.38);
    color: #ffc2ce;
    background: rgba(255, 92, 122, 0.11);
}

@media (max-width: 820px) {
    .arr-test-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   NextReq v0.0.69 — Arr Cache Results Display Repair
   Owner: public/style.css
   ========================================================================= */
.scan-summary-card,
.scan-planner-card {
    border-color: rgba(125, 211, 252, 0.24);
}

.scan-summary-card .muted,
.scan-planner-card .muted {
    max-width: 820px;
    line-height: 1.45;
}

.scan-summary-grid.admin-scan-grid,
.scan-summary-grid {
    gap: 10px;
}

.scan-metric {
    min-height: 76px;
    display: grid;
    align-content: center;
}

.scan-metric strong {
    font-size: clamp(26px, 3vw, 34px);
}

.scan-footer-line.scan-last-run {
    align-items: center;
    border-color: rgba(255, 209, 102, 0.20);
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(79, 195, 255, 0.04));
}

.scan-footer-line.scan-last-run strong {
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--text);
    text-align: right;
}

.scan-library-row-clean {
    grid-template-columns: minmax(180px, 1fr) minmax(360px, auto);
    padding: 15px;
}

.scan-library-main strong {
    font-size: 16px;
    margin-bottom: 4px;
}

.scan-library-main span {
    display: block;
    overflow-wrap: anywhere;
}

.scan-row-metrics {
    gap: 8px;
}

.scan-row-metrics em {
    min-width: 82px;
    text-align: center;
    font-weight: 850;
}

.scan-row-metrics .metric-total {
    color: #e8f4ff;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.24);
}

.scan-row-metrics .metric-available {
    color: #c6f7dd;
    background: rgba(72, 213, 151, 0.13);
    border-color: rgba(72, 213, 151, 0.28);
}

.scan-row-metrics .metric-missing {
    color: #ffe2a8;
    background: rgba(244, 179, 71, 0.14);
    border-color: rgba(244, 179, 71, 0.30);
}

.scan-row-metrics .metric-queued {
    color: #d9d0ff;
    background: rgba(167, 139, 250, 0.13);
    border-color: rgba(167, 139, 250, 0.28);
}

.scan-history-row {
    display: grid;
    gap: 5px;
}

.admin-container {
    min-height: 100vh;
}

@media (max-width: 900px) {
    .scan-library-row-clean {
        grid-template-columns: 1fr;
    }

    .scan-row-metrics {
        justify-content: flex-start;
    }
}


/* v0.0.69 — Arr cache search availability chips */
.availability-badge {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin: 2px 0 8px;
    padding: 5px 9px;
    text-transform: uppercase;
}

.availability-available {
    background: rgba(41, 217, 145, 0.16);
    border-color: rgba(41, 217, 145, 0.42);
    color: #a7f3d0;
}

.availability-partial {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fde68a;
}

.availability-missing {
    background: rgba(56, 189, 248, 0.13);
    border-color: rgba(56, 189, 248, 0.38);
    color: #bae6fd;
}

.availability-unknown {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}

.request-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.65;
}

/* v0.0.69 — Arr cache results display repair */
.search-action {
    min-height: 54px;
    padding-inline: 18px;
    white-space: nowrap;
}

.search-action:active {
    transform: translateY(1px);
}

/* v0.0.69 — make live Arr cache search results obvious */
.search-panel .media-grid {
    margin-top: 14px;
}

.search-results-active {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.empty-card-search {
    display: grid;
    gap: 5px;
    min-height: 54px;
    padding: 14px 16px;
    width: 100%;
}

.empty-card-search strong {
    color: var(--text);
    font-size: 14px;
}

.empty-card-search span {
    color: var(--muted);
    font-size: 13px;
}

.app-version.version-ok {
    color: #b7f7d4;
    border-color: rgba(72,213,151,0.38);
    background: rgba(72,213,151,0.10);
}

.app-version.version-mismatch {
    color: var(--gold-1);
    border-color: rgba(255,199,71,0.48);
    background: rgba(255,199,71,0.14);
}

.server-version-alert {
    margin: 0 0 18px;
    border: 1px solid rgba(255,199,71,0.35);
    border-radius: var(--radius-lg);
    background: rgba(255,199,71,0.10);
    color: var(--text);
    padding: 14px 16px;
    display: grid;
    gap: 5px;
}

.server-version-alert strong {
    color: var(--gold-1);
}

.server-version-alert span {
    color: var(--muted);
    font-size: 13px;
}

.server-version-alert.server-version-ok {
    border-color: rgba(91, 255, 180, 0.3);
    background: rgba(28, 90, 60, 0.18);
}

.server-version-alert.server-version-ok strong {
    color: #9cffc7;
}

/* v0.0.69 — polished Arr cache result cards */
.media-card-polished {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(25, 35, 53, 0.92), rgba(12, 18, 29, 0.94));
}

.media-card-polished .poster-polished {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
}

.media-card-polished .poster-has-image .poster-fallback {
    opacity: 0;
}

.poster-fallback {
    z-index: 1;
    font-size: 42px;
    opacity: 0.7;
}

.poster-source {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.70);
    color: #eef6ff;
    font-size: 11px;
    font-weight: 850;
    padding: 5px 8px;
    backdrop-filter: blur(10px);
}

.media-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.media-chip-row .media-type,
.media-year {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    min-height: 25px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.03em;
    line-height: 1;
}

.media-year {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.media-card-polished h4 {
    font-size: 16px;
    line-height: 1.18;
    margin-bottom: 8px;
}

.media-facts,
.genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.media-facts span,
.genre-row span {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    padding: 5px 7px;
}

.media-facts span:first-child {
    color: #dff6ff;
    border-color: rgba(79, 195, 255, 0.22);
    background: rgba(79, 195, 255, 0.08);
}

.genre-row span {
    color: #f8e4ad;
    border-color: rgba(255, 209, 102, 0.20);
    background: rgba(255, 209, 102, 0.07);
}

.media-card-polished p {
    min-height: 70px;
}

.media-card-polished .request-btn {
    width: 100%;
}

.media-card-available {
    border-color: rgba(72, 213, 151, 0.28);
}

.media-card-partial {
    border-color: rgba(251, 191, 36, 0.30);
}

.media-card-missing {
    border-color: rgba(56, 189, 248, 0.26);
}

/* v0.0.69 — request queue preview */
.queue-action-row {
    display: grid;
    gap: 7px;
    margin-top: auto;
}

.queue-action-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}

.media-card-queued {
    border-color: rgba(91, 255, 180, 0.38);
    box-shadow: 0 18px 45px rgba(19, 147, 92, 0.12);
}

.media-card-queued .request-btn,
.media-card-queued .request-btn:disabled {
    border-color: rgba(91, 255, 180, 0.30);
    background: rgba(38, 121, 82, 0.28);
    color: #baffd5;
    cursor: default;
    opacity: 1;
}

.request-queue-row {
    align-items: start;
    border-color: rgba(255, 199, 71, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.request-queue-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.request-queue-row em {
    border: 1px solid rgba(255, 199, 71, 0.24);
    border-radius: 999px;
    background: rgba(255, 199, 71, 0.10);
    color: var(--gold-1);
    font-style: normal;
    font-size: 11px;
    font-weight: 850;
    padding: 5px 8px;
    white-space: nowrap;
}

/* v0.0.69 — queue management */
.btn-small {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
}

.btn-danger {
    color: #ffe7e7;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.82), rgba(127, 29, 29, 0.72));
    border-color: rgba(248, 113, 113, 0.46);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.btn:disabled,
.btn[disabled] {
    cursor: default;
    opacity: 0.48;
    box-shadow: none;
}

.queue-heading {
    align-items: center;
    gap: 12px;
}

.queue-heading-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.request-queue-row-managed,
.request-ledger-row-managed {
    align-items: center;
}

.request-queue-row-managed > div:first-child,
.request-ledger-row-managed > div:first-child {
    min-width: 0;
}

.queue-row-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: center;
    flex: 0 0 auto;
}

.status-chip.status-queued {
    border: 1px solid rgba(255, 199, 71, 0.24);
    background: rgba(255, 199, 71, 0.10);
    color: var(--gold-1);
}

.request-ledger-row-managed small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 720px) {
    .request-queue-row-managed,
    .request-ledger-row-managed {
        align-items: stretch;
        flex-direction: column;
    }

    .queue-row-actions {
        display: flex;
        justify-content: space-between;
        justify-items: stretch;
        width: 100%;
    }
}

/* v0.0.69 — dry-run request send preview */
.send-preview-shell {
    margin-top: 14px;
}

.send-preview-card {
    border: 1px solid rgba(245, 197, 99, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 197, 99, 0.10), rgba(15, 23, 42, 0.78));
    padding: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.send-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.send-preview-header strong {
    display: block;
    color: #fff7df;
    font-size: 1rem;
}

.send-preview-header span,
.send-preview-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.send-preview-header em {
    border: 1px solid rgba(245, 197, 99, 0.34);
    border-radius: 999px;
    color: #f8d47d;
    font-style: normal;
    padding: 5px 9px;
    white-space: nowrap;
}

.send-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.send-preview-grid span {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.78);
    padding: 9px 10px;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.send-preview-grid b {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.send-preview-match,
.send-preview-safe,
.send-preview-warnings span {
    display: block;
    border-radius: 12px;
    padding: 9px 10px;
    margin-top: 7px;
    font-size: 0.78rem;
}

.send-preview-match,
.send-preview-safe {
    background: rgba(59, 130, 246, 0.13);
    color: #cfe4ff;
}

.send-preview-warnings span {
    background: rgba(245, 158, 11, 0.12);
    color: #ffe2a6;
}

@media (max-width: 760px) {
    .send-preview-grid { grid-template-columns: 1fr; }
    .send-preview-header { flex-direction: column; }
}

/* v0.0.69 user/admin view split */
body:not(.admin) #sendPreview,
body:not(.admin) .admin-only { display:none !important; }


/* v0.0.69 simple user navigation foundation */
.user-layout-v031 {
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.user-left-panel {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 24px 18px;
    background: rgba(9, 13, 22, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.user-logo-block {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-nav {
    display: grid;
    gap: 10px;
}

.user-nav-button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-nav-button:hover,
.user-nav-button.active {
    background: rgba(245, 196, 81, 0.16);
    border-color: rgba(245, 196, 81, 0.45);
    color: #ffe4a3;
}

.compact-mode-card {
    margin-top: auto;
}

.user-main-stage {
    min-width: 0;
}

.user-view-panel {
    display: none;
}

.user-view-panel.active {
    display: block;
}

.compact-hero {
    margin-bottom: 18px;
}

.empty-feature-card,
.chat-view-card {
    min-height: 360px;
}

.chat-box-large {
    min-height: 420px;
}

.chat-box-large .chat-messages {
    min-height: 320px;
}

body:not(.admin) #sendPreview,
body:not(.admin) .admin-only {
    display: none !important;
}

@media (max-width: 860px) {
    .user-layout-v031 {
        grid-template-columns: 1fr;
    }
    .user-left-panel {
        position: relative;
        height: auto;
    }
}


/* v0.0.69 — Admin Newsletter Creator foundation */
.newsletter-creator-card textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(3, 7, 18, 0.62);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.newsletter-editor,
.newsletter-preview {
    min-width: 0;
}

.tiny-note {
    font-size: 0.8rem;
    margin-top: 6px;
}

.newsletter-status {
    display: inline-flex;
    margin-top: 12px;
}

.newsletter-preview-box {
    min-height: 300px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    border-radius: 22px;
    padding: 16px;
}

.newsletter-login-card {
    background: radial-gradient(circle at top, rgba(245,196,81,0.12), rgba(15,23,42,0.92));
    border: 1px solid rgba(245,196,81,0.20);
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 14px;
}

.newsletter-login-card img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(0,0,0,0.25);
}

.newsletter-login-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.newsletter-login-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.newsletter-template-row {
    margin-top: 18px;
}

.newsletter-template-list {
    display: grid;
    gap: 10px;
}

.newsletter-template-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.newsletter-template-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

@media (max-width: 980px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.0.69 — Admin layout match */
.admin-layout-match-v034 {
    min-height: 100vh;
}

.admin-app-shell {
    min-height: 100vh;
}

.admin-left-panel {
    min-height: 100vh;
}

.admin-main-stage {
    min-height: 100vh;
    width: 100%;
}

.admin-view-panel {
    display: none;
    width: 100%;
}

.admin-view-panel.active {
    display: block;
}

.admin-view-panel[hidden] {
    display: none !important;
}

.admin-back-link {
    display: inline-flex;
    margin-top: auto;
    justify-content: center;
}

.admin-nav .user-nav-button {
    text-align: left;
}

.admin-view-panel .card,
.admin-view-panel .content-card,
.admin-view-panel .newsletter-creator-card {
    width: 100%;
}

.admin-view-panel .admin-stats {
    margin: 0 0 18px;
}

.admin-view-panel .arr-test-card,
.admin-view-panel .scan-planner-card {
    margin-top: 18px;
}

/* =========================================================================
   NextReq v0.0.69 — Newsletter Workspace Foundation
   Admin-only visual workspace. Medium-grey page and basic swatches only.
   ========================================================================= */
.newsletter-workspace-card {
    display: grid;
    gap: 16px;
}

.newsletter-workspace-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(5, 10, 18, 0.55);
}

.newsletter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.11);
}

.tool-group:last-child { border-right: 0; }

.tool-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.tool-button,
.tool-select,
.tool-number {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: var(--text);
    min-height: 34px;
    padding: 7px 10px;
    font-weight: 850;
}

.tool-button.active {
    color: #140e05;
    border-color: rgba(255, 209, 102, 0.7);
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.tool-select { min-width: 136px; }
.tool-number { width: 70px; }

.color-tool-group {
    flex-wrap: wrap;
}

.basic-swatch {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid rgba(255,255,255,0.55);
    display: inline-block;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.newsletter-workspace-area {
    min-height: 560px;
    padding: 24px;
    display: grid;
    place-items: start center;
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        rgba(8, 13, 22, 0.7);
    background-size: 34px 34px;
}

.newsletter-page {
    width: min(900px, 100%);
    min-height: 500px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    padding: 36px;
}

.newsletter-page-medium-grey {
    background: #8f949c;
    color: #101722;
}

.newsletter-page-guide {
    min-height: 420px;
    border: 2px dashed rgba(16, 23, 34, 0.35);
    border-radius: 18px;
    padding: 28px;
}

.newsletter-page-guide h2 {
    margin: 0 0 10px;
    font-size: 36px;
    letter-spacing: -0.04em;
}

.newsletter-page-guide p {
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 750;
}

.newsletter-placeholder-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.newsletter-placeholder-box {
    min-height: 170px;
    border: 2px dashed rgba(16, 23, 34, 0.28);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(255,255,255,0.12);
}

.newsletter-placeholder-box.small { min-height: 170px; }

.newsletter-save-strip {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 2px;
}

.compact-newsletter-field {
    min-width: 220px;
    margin: 0;
}

.newsletter-hidden-body { display: none; }

@media (max-width: 1100px) {
    .newsletter-placeholder-row { grid-template-columns: 1fr; }
    .newsletter-workspace-area { padding: 14px; }
    .newsletter-page { padding: 22px; }
}

/* v0.0.69 — usable newsletter workspace objects */
.newsletter-page {
    position: relative;
    overflow: hidden;
}

.newsletter-page-guide {
    pointer-events: none;
    color: rgba(16, 23, 34, 0.72);
}

.newsletter-page-guide.is-hidden {
    display: none;
}

.newsletter-object {
    position: absolute;
    left: 48px;
    top: 48px;
    min-width: 120px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px dashed transparent;
    border-radius: 8px;
    outline: none;
    cursor: text;
    color: #111827;
}

.newsletter-object:focus,
.newsletter-object.selected {
    border-color: rgba(17, 24, 39, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35);
    background: rgba(255,255,255,0.08);
}

.newsletter-text-object {
    font-weight: 700;
    line-height: 1.18;
    white-space: pre-wrap;
}

.newsletter-shape-object {
    min-width: 150px;
    min-height: 90px;
    background: rgba(244, 179, 71, 0.85);
    border: 3px solid #111827;
    cursor: pointer;
}

.newsletter-image-object {
    padding: 0;
    cursor: pointer;
    border-style: solid;
}

.newsletter-image-object img {
    display: block;
    max-width: 280px;
    max-height: 220px;
    border-radius: 8px;
}


/* v0.0.69 Jellyfin login foundation */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.15), transparent 36%), #0b1020;
}
.login-shell { width: min(94vw, 520px); }
.login-card {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.login-brand { margin-bottom: 24px; }
.login-brand h1 { margin: 0; }
.login-form { display: grid; gap: 10px; }
.login-form label { color: #cbd5e1; font-size: 0.86rem; font-weight: 700; }
.login-form input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
    padding: 12px 14px;
    font-size: 1rem;
}
.login-links { display: flex; gap: 14px; margin-top: 16px; }
.login-links a { color: #fbbf24; text-decoration: none; font-weight: 800; }
.small-note { font-size: 0.82rem; }
.settings-actions { margin-top: 14px; }


/* v0.0.69 — User registration/admin approval foundation */
.admin-user-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}
.admin-user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}
.admin-user-table th,
.admin-user-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: middle;
}
.admin-user-table th {
    color: var(--muted, #9ca3af);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.admin-user-role,
.admin-user-date {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.16);
    color: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
}
.admin-user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.user-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.78rem;
}
.status-approved { background: rgba(34,197,94,0.18); color: #86efac; }
.status-pending { background: rgba(245,158,11,0.18); color: #fcd34d; }
.status-denied, .status-blocked { background: rgba(239,68,68,0.18); color: #fca5a5; }
.login-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.login-links a {
    color: #facc15;
    text-decoration: none;
    font-weight: 700;
}

/* v0.0.69 admin local user form */
.admin-user-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    align-items: end;
}
.admin-user-form input {
    min-height: 38px;
}
@media (max-width: 900px) {
    .admin-user-form { grid-template-columns: 1fr; }
}


/* v0.0.69 request board foundation */
.request-form {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 0.75fr 1fr;
    gap: 10px;
}
.request-form textarea {
    grid-column: 1 / -1;
    min-height: 76px;
}
.request-form button {
    grid-column: 1 / -1;
    justify-self: start;
}
.request-board {
    display: grid;
    gap: 12px;
}
.request-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.045);
    border-radius: 12px;
}
.request-status {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    font-size: 12px;
    font-weight: 700;
}
.status-approved .request-status { background: rgba(90, 170, 255, 0.22); }
.status-denied .request-status { background: rgba(255, 90, 90, 0.22); }
.status-available .request-status { background: rgba(90, 220, 140, 0.22); }
.admin-request-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
@media (max-width: 900px) {
    .request-form {
        grid-template-columns: 1fr;
    }
    .request-card {
        flex-direction: column;
    }
}


/* v0.0.69 request board display fix */
.request-form {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 0.75fr 1fr;
    gap: 10px;
}
.request-form textarea {
    grid-column: 1 / -1;
    min-height: 76px;
}
.request-form button {
    grid-column: 1 / -1;
    justify-self: start;
}
.request-board {
    display: grid;
    gap: 12px;
}
.request-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.045);
    border-radius: 12px;
}
.request-card-main {
    min-width: 0;
}
.request-status {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    font-size: 12px;
    font-weight: 700;
}
.status-approved .request-status { background: rgba(90, 170, 255, 0.22); }
.status-denied .request-status { background: rgba(255, 90, 90, 0.22); }
.status-available .request-status { background: rgba(90, 220, 140, 0.22); }
.admin-request-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
@media (max-width: 900px) {
    .request-form {
        grid-template-columns: 1fr;
    }
    .request-card {
        flex-direction: column;
    }
}


/* v0.0.69 proper user request cleanup */
.nextreq-requests-placeholder {
    min-height: 260px;
    display: grid;
    align-content: center;
    text-align: center;
}
.nextreq-requests-placeholder h2 {
    margin-bottom: 8px;
}


/* v0.0.69 tmdb search foundation */
.tmdb-search-card {
    display: grid;
    gap: 18px;
}
.tmdb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}
.tmdb-result-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);
}
.tmdb-poster-frame {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    display: grid;
    place-items: center;
}
.tmdb-poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tmdb-poster-missing {
    color: var(--muted, #9ca3af);
    font-weight: 700;
}
.tmdb-request-btn {
    width: 100%;
}
.tmdb-result-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}
.tmdb-result-card h3 span {
    color: var(--muted, #9ca3af);
    font-weight: 500;
}
.tmdb-result-card p {
    margin: 0;
    color: var(--muted, #9ca3af);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* v0.0.69 smart result states */
.tmdb-state-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255,255,255,0.11);
}
.tmdb-state-available .tmdb-state-badge {
    background: rgba(76, 217, 137, 0.22);
}
.tmdb-state-requested .tmdb-state-badge {
    background: rgba(255, 196, 87, 0.22);
}
.tmdb-state-requestable .tmdb-state-badge {
    background: rgba(92, 160, 255, 0.22);
}
.tmdb-request-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}
.tmdb-state-available .tmdb-request-btn {
    background: rgba(76, 217, 137, 0.25);
}
.tmdb-state-requested .tmdb-request-btn {
    background: rgba(255, 196, 87, 0.18);
}


/* v0.0.69 login profile foundation */
.hidden {
    display: none !important;
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
}
.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 24px;
    background: rgba(255,255,255,0.12);
    background-size: cover;
    background-position: center;
}
.admin-user-table input,
.admin-user-table select {
    width: 100%;
    min-width: 92px;
}
.admin-user-table th,
.admin-user-table td {
    vertical-align: middle;
}
