* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    background: #111;
    color: #eee;
    font-family: system-ui, sans-serif;
}

main {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin-top: 0;
}

.summary {
    margin-bottom: 20px;
    color: #aaa;
}

.recording {
    margin-bottom: 24px;
    padding: 20px;
    background: #1d1d1d;
    border-radius: 12px;
}

.recording h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.meta {
    margin-bottom: 16px;
    color: #aaa;
}

video {
    display: block;
    width: 100%;
    max-height: 600px;
    margin-bottom: 18px;
    background: #000;
    border-radius: 8px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
}

.keep {
    display: flex;
    align-items: center;
    gap: 8px;
}

textarea {
    width: 100%;
    padding: 10px;
    resize: vertical;
    background: #292929;
    color: #eee;
    border: 1px solid #444;
    border-radius: 6px;
    font: inherit;
}

button {
    width: fit-content;
    padding: 9px 16px;
    cursor: pointer;
    border: 0;
    border-radius: 6px;
    font: inherit;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 16px 0;
}

.pagination a,
.pagination .disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: #292929;
    color: #eee;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.pagination a:first-child,
.pagination .disabled:first-child {
    justify-self: start;
}

.pagination a:last-child,
.pagination .disabled:last-child {
    justify-self: end;
}

.pagination a:hover {
    background: #3a3a3a;
}

.pagination .disabled {
    color: #666;
    cursor: default;
}

.empty {
    color: #aaa;
}

.footer {
    margin-top: 32px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

.recording-card {
    margin-bottom: 24px;
    overflow: hidden;
    background: #1d1d1d;
    border-radius: 12px;
}

.recording-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.thumbnail {
    position: relative;
    background: #000;
}

.thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 65%);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.recording-info {
    padding: 12px 16px 14px;
}

.recording-info h2 {
    margin: 0 0 2px;
    font-size: 1.2rem;
}

.recording-info .meta {
    margin-bottom: 0;
}

.recording-notes {
    margin-top: 8px;
    color: #ccc;
    white-space: pre-wrap;
}

.back-navigation {
    margin-bottom: 20px;
}

.back-navigation.bottom {
    margin-top: 24px;
    margin-bottom: 0;
}

.back-navigation a {
    display: inline-block;
    padding: 10px 14px;
    background: #292929;
    color: #eee;
    border-radius: 8px;
    text-decoration: none;
}

.back-navigation a:hover {
    background: #3a3a3a;
}

.recording-detail h1 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.3rem;
}

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

.home-main {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 40px 0;
    text-align: center;
}

.home-logo {
    display: block;
    width: min(70vw, 320px);
    height: auto;
    margin: 0 auto 24px;
}

.home-main h1 {
    margin: 0 0 32px;
    font-size: 2rem;
}

.home-navigation {
    display: grid;
    gap: 14px;
    width: 100%;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 20px;
    background: #292929;
    color: #eee;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
}

.home-button:hover {
    background: #3a3a3a;
}

.home-button.live {
    background: #198754;
    color: #fff;
}

.home-button.live:hover {
    background: #20a566;
}

.home .footer {
    width: 100%;
    margin-top: 0;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .recording {
        padding: 14px;
    }

    .recording-info {
        padding: 10px 14px 12px;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        font-size: 0.9rem;
    }

    .pagination > span:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        min-height: auto;
        padding: 0;
        background: none;
    }

    .pagination > :first-child {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    .pagination > :last-child {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    .page-header {
        gap: 10px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .live-button {
        padding: 9px 13px;
        font-size: 0.85rem;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

.live-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 16px;
    background: #198754;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 12px rgb(0 0 0 / 25%);
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.live-button:hover {
    background: #20a566;
    transform: translateY(-1px);
}

.live-button:active {
    transform: translateY(0);
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 18%);
}

.home-link {
    color: inherit;
    text-decoration: none;
}
ckleiner@WILDCAMimatrixXX:/opt/python-wild-stream $

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.storage-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    background: #292929;
    color: #eee;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.storage-button:hover {
    background: #3a3a3a;
}

.cleanup-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 18px 0 24px;
    padding: 14px 16px;
    background: #392d13;
    border: 1px solid #7c6225;
    border-radius: 12px;
    text-align: left;
}

.home .cleanup-notice {
    margin-top: 20px;
}

.cleanup-notice-icon {
    font-size: 1.5rem;
}

.cleanup-notice-content {
    display: grid;
    gap: 3px;
}

.cleanup-notice-content span {
    color: #d7c79c;
    font-size: 0.9rem;
}

.cleanup-notice a {
    padding: 8px 10px;
    color: #f1d37c;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.storage-overview {
    margin-bottom: 24px;
    padding: 20px;
    background: #1d1d1d;
    border-radius: 12px;
}

.storage-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.storage-overview-head div {
    display: grid;
    gap: 3px;
}

.storage-overview-head span {
    color: #999;
    font-size: 0.9rem;
}

.storage-overview-head strong {
    font-size: 1.35rem;
}

.storage-free {
    text-align: right;
}

.storage-bar {
    display: flex;
    width: 100%;
    height: 22px;
    overflow: hidden;
    background: #2b2b2b;
    border-radius: 999px;
}

.storage-bar span {
    display: block;
    height: 100%;
}

.storage-bar-videos {
    background: #d39b3d;
}

.storage-bar-other {
    background: #666;
}

.storage-bar-free {
    background: #2b9b63;
}

.storage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    color: #bbb;
    font-size: 0.88rem;
}

.storage-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.storage-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.legend-videos {
    background: #d39b3d;
}

.legend-other {
    background: #666;
}

.legend-free {
    background: #2b9b63;
}

.storage-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.storage-rules div {
    display: grid;
    gap: 3px;
    padding: 12px;
    background: #252525;
    border-radius: 8px;
}

.storage-rules span {
    color: #999;
    font-size: 0.82rem;
}

.storage-rules strong {
    font-size: 0.95rem;
}

.storage-status {
    margin-bottom: 24px;
    padding: 20px;
    background: #1d1d1d;
    border-radius: 12px;
}

.storage-status h3 {
    margin: 0 0 6px;
}

.storage-status p {
    margin: 0;
    color: #aaa;
}

.storage-status.ok {
    border: 1px solid #275f44;
}

.storage-status.planned {
    border: 1px solid #7c6225;
}

.storage-plan-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.storage-plan-head small {
    display: block;
    margin-top: 4px;
    color: #d7c79c;
}

.storage-plan-count {
    display: grid;
    min-width: 90px;
    text-align: right;
}

.storage-plan-count strong {
    font-size: 1.8rem;
    line-height: 1;
}

.storage-plan-count span {
    margin-top: 4px;
    color: #999;
    font-size: 0.82rem;
}

.storage-plan-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0 12px;
}

.storage-plan-summary div {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: #252525;
    border-radius: 8px;
}

.storage-plan-summary span {
    color: #999;
    font-size: 0.82rem;
}

.storage-plan-summary strong {
    font-size: 1.05rem;
}

.cleanup-result {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 14px;
    background: #193426;
    border-radius: 8px;
}

.cleanup-result span {
    color: #a9c7b5;
}

.cleanup-result.warning {
    display: grid;
    background: #432424;
}

.cleanup-result.warning span {
    color: #e1abab;
}

.cleanup-list-title {
    margin-top: 28px !important;
}

.cleanup-list-help {
    margin-bottom: 14px !important;
}

.cleanup-candidate {
    display: grid;
    gap: 5px;
    padding: 13px 0;
    border-top: 1px solid #333;
}

.cleanup-candidate-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cleanup-candidate-main a {
    color: #eee;
    text-decoration: none;
    font-weight: 700;
}

.cleanup-candidate-main a:hover {
    text-decoration: underline;
}

.cleanup-badge {
    padding: 4px 7px;
    background: #6a4d16;
    color: #ffe4a0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cleanup-candidate-meta {
    color: #999;
    font-size: 0.88rem;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 6px;
    }

    .storage-button {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .cleanup-notice {
        grid-template-columns: auto 1fr;
    }

    .cleanup-notice a {
        grid-column: 2;
        padding: 2px 0;
    }

    .storage-rules,
    .storage-plan-summary {
        grid-template-columns: 1fr;
    }

    .storage-plan-head {
        align-items: center;
    }

    .cleanup-result {
        display: grid;
    }
}

.cleanup-candidate-note {
    margin-top: 6px;
    color: #ccc;
    font-size: 0.9rem;
    white-space: pre-wrap;
}
