*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: #ff6b6b; text-decoration: none; }
a:hover { color: #ff8e8e; }
header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
nav .logo { font-size: 1.5rem; font-weight: 700; color: #fff; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a { color: #e0e0e0; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #ff6b6b; }
.lang-switch { display: flex; gap: 0.4rem; font-size: 0.85rem; }
.lang-switch a { color: #888; padding: 0.15rem 0.4rem; border-radius: 3px; }
.lang-switch a.active { background: #ff6b6b; color: #fff; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    font-size: 0.9rem;
}
.search-form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #ff6b6b;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}
.search-form button:hover { background: #ff8e8e; }
main { padding: 2rem 0; }
footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: auto;
}
#age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#age-gate-box {
    max-width: 460px;
    width: 100%;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
#age-gate-box .ag-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
#age-gate-box .ag-badge {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
#age-gate-box h2 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
}
#age-gate-box p {
    color: #999;
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.ag-confirm {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    background: #ff6b6b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.75rem;
    font-family: inherit;
}
.ag-confirm:hover { background: #ff8e8e; }
.ag-leave {
    display: inline-block;
    color: #555;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0.25rem;
}
.ag-leave:hover { color: #888; }

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 2.2rem;
    text-align: center;
}
.pagination a { background: #333; color: #e0e0e0; }
.pagination a:hover { background: #444; }
.pagination .current-page { background: #ff6b6b; color: #fff; font-weight: 700; }
.pagination .ellipsis { color: #666; }

/* video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.video-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-2px); }
.video-card a { color: inherit; display: block; }
.thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    background: #222;
    overflow: hidden;
}
.thumb-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}
.thumb-duration {
    position: absolute;
    bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}
.video-card-info { padding: 0.75rem; }
.video-card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-info .meta { font-size: 0.8rem; color: #888; }

/* sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.sort-bar .sort-label { color: #888; font-size: 0.9rem; }
.sort-bar a {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
}
.sort-bar a:hover { background: #333; color: #fff; }
.sort-bar a.active { background: #ff6b6b; color: #fff; border-color: #ff6b6b; }

/* related */
.related-section { margin-top: 2rem; }
.related-section h2 { font-size: 1.1rem; margin-bottom: 1rem; color: #ccc; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.related-card {
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.15s;
}
.related-card:hover { transform: translateY(-2px); }
.related-card a { display: block; color: inherit; }
.related-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #222;
}
.related-thumb img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.related-thumb-duration {
    position: absolute; bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.8); color: #fff;
    padding: 1px 5px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 600;
}
.related-info { padding: 0.5rem 0.6rem; }
.related-info h3 {
    font-size: 0.85rem; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0.2rem;
}
.related-info .meta { font-size: 0.75rem; color: #888; }

/* tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.tag-cloud a {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.15s;
}
.tag-cloud a:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}
.empty { color: #888; padding: 1rem 0; }

/* categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.category-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.category-card:hover { transform: translateY(-2px); }
.category-card a { color: inherit; display: block; }
.category-thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    background: #222;
}
.category-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2.5rem;
    font-weight: 700;
}
.category-info {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
}
.category-info .count {
    font-size: 0.8rem;
    color: #888;
}

/* cookies */
.cookies-wrap { max-width: 800px; margin: 0 auto; }
.cookies-wrap h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.cookies-wrap .last-updated { color: #888; font-size: 0.85rem; margin-bottom: 2rem; }
.cookies-wrap h2 { font-size: 1.15rem; color: #e0e0e0; margin: 2rem 0 0.6rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.35rem; }
.cookies-wrap p { margin-bottom: 0.9rem; color: #ccc; line-height: 1.75; }
.cookies-wrap ul { margin: 0.4rem 0 0.9rem 1.4rem; color: #ccc; }
.cookies-wrap ul li { margin-bottom: 0.3rem; line-height: 1.7; }
.cookies-wrap strong { color: #e0e0e0; }
.cookies-wrap a { color: #ff6b6b; }
.cookies-wrap a:hover { color: #ff8e8e; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.88rem; }
.cookie-table th { text-align: left; padding: 0.5rem 0.75rem; background: #222; color: #bbb; font-weight: 600; border: 1px solid #333; }
.cookie-table td { padding: 0.5rem 0.75rem; border: 1px solid #2a2a2a; color: #ccc; vertical-align: top; }
.cookie-table tr:nth-child(even) td { background: #181818; }
.badge { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 3px; font-size: 0.78rem; font-weight: 600; }
.badge-required { background: #2a1a1a; color: #ff9999; }
.badge-analytics { background: #1a2030; color: #99bbff; }

/* privacy */
.privacy-wrap { max-width: 800px; margin: 0 auto; }
.privacy-wrap h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.privacy-wrap .last-updated { color: #888; font-size: 0.85rem; margin-bottom: 2rem; }
.privacy-wrap h2 { font-size: 1.15rem; color: #e0e0e0; margin: 2rem 0 0.6rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.35rem; }
.privacy-wrap p { margin-bottom: 0.9rem; color: #ccc; line-height: 1.75; }
.privacy-wrap ul { margin: 0.4rem 0 0.9rem 1.4rem; color: #ccc; }
.privacy-wrap ul li { margin-bottom: 0.3rem; line-height: 1.7; }
.privacy-wrap strong { color: #e0e0e0; }
.privacy-wrap a { color: #ff6b6b; }
.privacy-wrap a:hover { color: #ff8e8e; }
.privacy-wrap .sub-section { margin: 1rem 0; }
.privacy-wrap .sub-section h3 { font-size: 0.95rem; color: #ccc; margin-bottom: 0.4rem; }
.privacy-intro { color: #bbb; margin-bottom: 1.5rem; line-height: 1.75; }

/* terms */
.terms-wrap { max-width: 800px; margin: 0 auto; }
.terms-wrap h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.terms-wrap .last-updated { color: #888; font-size: 0.85rem; margin-bottom: 2rem; }
.terms-wrap h2 { font-size: 1.15rem; color: #e0e0e0; margin: 2rem 0 0.6rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.35rem; }
.terms-wrap p { margin-bottom: 0.9rem; color: #ccc; line-height: 1.75; }
.terms-wrap ul { margin: 0.4rem 0 0.9rem 1.4rem; color: #ccc; }
.terms-wrap ul li { margin-bottom: 0.3rem; line-height: 1.7; }
.terms-wrap strong { color: #e0e0e0; }
.terms-wrap a { color: #ff6b6b; }
.terms-wrap a:hover { color: #ff8e8e; }
.terms-intro { color: #bbb; margin-bottom: 1.5rem; line-height: 1.75; }

/* dmca request page */
.dmca-wrap { max-width: 700px; margin: 0 auto; }
.dmca-wrap h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.dmca-wrap .subtitle { color: #aaa; font-size: 0.9rem; margin-bottom: 2rem; line-height: 1.7; }
.dmca-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #bbb;
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid #ff6b6b; border-color: transparent; }
.required { color: #ff6b6b; }
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: #ff6b6b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}
.submit-btn:hover { background: #ff8e8e; }
.form-error {
    background: #2e1a1a;
    border: 1px solid #5a2222;
    color: #ff9999;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.success-box {
    background: #1a2e1a;
    border: 1px solid #2e5e2e;
    color: #7ecf7e;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.success-box h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.disclaimer {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* video page */
.player-wrap {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-height: 80vh;
}
.player-wrap .video-js.vjs-fluid {
    width: auto !important;
    height: 80vh !important;
    padding-top: 0 !important;
    max-width: 100%;
}
.player-wrap .video-js.vjs-fluid .vjs-tech {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.player-wrap.portrait .video-js.vjs-fluid {
    height: 80vh !important;
    width: auto !important;
    aspect-ratio: var(--video-ar);
}
.video-meta { margin-bottom: 1rem; }
.video-meta h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.video-stats { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
.video-description {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}
.video-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.video-tags a {
    background: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
}
.video-tags a:hover { background: #444; color: #fff; }

/* admin */
body.admin-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 2rem;
}
.admin-container { max-width: 1000px; margin: 0 auto; }
.admin-container h1 { margin-bottom: 1.5rem; }
.admin-container h2 { margin: 2rem 0 1rem; }
.upload-form {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    font-size: 0.95rem;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type="file"] { color: #ccc; }
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}
.btn-primary { background: #ff6b6b; color: #fff; }
.btn-primary:hover { background: #ff8e8e; }
.btn-danger { background: #dc3545; color: #fff; font-size: 0.8rem; padding: 0.3rem 0.8rem; }
.btn-danger:hover { background: #c82333; }
.btn-edit {
    background: #0d6efd;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}
.btn-edit:hover { background: #0b5ed7; color: #fff; }
.progress-wrap {
    display: none;
    margin-top: 1rem;
}
.progress-wrap.visible { display: block; }
progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    appearance: none;
}
progress::-webkit-progress-bar { background: #333; border-radius: 5px; }
progress::-webkit-progress-value { background: #ff6b6b; border-radius: 5px; }
progress::-moz-progress-bar { background: #ff6b6b; border-radius: 5px; }
.progress-label { font-size: 0.85rem; color: #888; margin-top: 0.3rem; }
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}
th { color: #aaa; font-size: 0.85rem; text-transform: uppercase; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.cat-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cat-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #0a0a0a;
}
.cat-thumb img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.cat-thumb-placeholder {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #444; font-size: 2.5rem; font-weight: 700; text-transform: uppercase;
}
.cat-body { padding: 0.75rem; }
.cat-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.6rem; text-transform: capitalize;
}
.cat-thumb-form { display: flex; gap: 0.4rem; }
.cat-thumb-form select {
    flex: 1; padding: 0.4rem; border: 1px solid #444; border-radius: 4px;
    background: #1a1a1a; color: #e0e0e0; font-size: 0.85rem; min-width: 0;
}
.cat-thumb-form .btn { font-size: 0.8rem; padding: 0.3rem 0.8rem; }
.cat-empty { color: #888; font-size: 0.8rem; margin-top: 0.5rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: #ff6b6b; text-decoration: none; }

/* admin edit */
.edit-form {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
}
.actions { display: flex; gap: 0.8rem; align-items: center; }
.btn-secondary { background: #333; color: #e0e0e0; }
.btn-secondary:hover { background: #444; }
.video-meta-info {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* admin analytics */
table { width: 100%; border-collapse: collapse; }
th {
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
th:hover { color: #ff6b6b; }
th .arrow { font-size: 0.7rem; margin-left: 0.3rem; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
tr:hover { background: #1a1a1a; }

/* admin dmca */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.5rem; }
.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}
.nav-links a:hover { color: #ff6b6b; }
.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.stat-chip {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.stat-chip span { font-weight: 700; color: #ff6b6b; }
.request-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #2a2a2a;
    gap: 1rem;
}
.card-meta { flex: 1; min-width: 0; }
.requester { font-weight: 600; font-size: 0.95rem; }
.requester-email { font-size: 0.82rem; color: #aaa; margin-top: 0.1rem; }
.submitted-at { font-size: 0.8rem; color: #666; margin-top: 0.2rem; }
.badge-pending  { background: #2e2a1a; color: #d4a800; border: 1px solid #5a4a00; }
.badge-reviewed { background: #1a2540; color: #6da8ff; border: 1px solid #2a4a80; }
.badge-resolved { background: #1a2e1a; color: #6ecf6e; border: 1px solid #2e5e2e; }
.badge-rejected { background: #2e1a1a; color: #ff7070; border: 1px solid #5a2222; }
.card-body { padding: 1rem 1.25rem; }
.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.field-value {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.9rem;
    word-break: break-all;
}
.field-value a { color: #ff6b6b; }
.field-value.reason-text {
    white-space: pre-wrap;
    word-break: break-word;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
}
.card-footer {
    border-top: 1px solid #2a2a2a;
    padding: 1rem 1.25rem;
}
.update-form { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.update-form .form-group { flex: 1; min-width: 160px; }
.update-form .notes-group { flex: 2; min-width: 240px; }
.update-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.3rem;
}
.update-form select,
.update-form textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    font-size: 0.88rem;
    font-family: inherit;
}
.update-form textarea { resize: vertical; min-height: 60px; }
.btn-actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }

/* admin logs */
.toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.btn {
    padding: 0.4rem 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    background: #1a1a1a;
    color: #aaa;
}
.btn:hover { background: #2a2a2a; color: #e0e0e0; }
.btn.active { background: #333; color: #fff; border-color: #888; }
.btn-info.active   { border-color: #4caf50; color: #4caf50; }
.btn-warn.active   { border-color: #ff9800; color: #ff9800; }
.btn-error.active  { border-color: #f44336; color: #f44336; }
.btn-debug.active  { border-color: #888;    color: #aaa;    }
.btn-refresh {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    margin-left: auto;
}
.btn-refresh:hover { background: #ff8e8e; }
.auto-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #aaa;
}
.meta {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.75rem;
}
.ts { color: #555; white-space: nowrap; font-family: monospace; }
.target { color: #555; font-family: monospace; font-size: 0.78rem; }
.msg { font-family: monospace; }
.extras {
    margin-top: 0.2rem;
    color: #666;
    font-size: 0.78rem;
    font-family: monospace;
}
.extras span { margin-right: 0.75rem; }
.extras em { color: #888; font-style: normal; }
#log-container { min-height: 4rem; }
.empty { color: #555; padding: 2rem 0; text-align: center; }

/* login */
.login-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
}
.login-card h1 { font-size: 1.4rem; margin-bottom: 1.5rem; text-align: center; }
.login-card label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; color: #aaa; }
.login-card input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.login-card button {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 4px;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.login-card button:hover { background: #ff8e8e; }
.error {
    background: #3a1a1a;
    border: 1px solid #5a2222;
    color: #ff8888;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* admin dmca */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
