/*base style..*/
body {
    margin: 0;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
}


/* HEADER */

header {
    background: #1c1c1c;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 30px;
}


/* LOGO */

.logo {
    flex-shrink: 0;

    color: white;
    text-decoration: none;

    font-size: 26px;
    font-weight: bold;
}


/* NAVIGATION */

header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    color: #ccc;
}


.header-account {
    flex: 0 0 auto;
}

.search-autocomplete {
    position: relative;
    min-width: 0;
    flex: 1;
}

.search-autocomplete-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 20;
    overflow: hidden;
    border: 1px solid #383838;
    border-radius: 6px;
    background: #1c1c1c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.search-autocomplete-results[hidden] {
    display: none;
}

.search-autocomplete-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 5px 10px;
    color: white;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.search-autocomplete-option + .search-autocomplete-option {
    border-top: 1px solid #303030;
}

.search-autocomplete-option:hover,
.search-autocomplete-option.active {
    background: #303030;
}

.search-autocomplete-option img {
    width: 88px;
    height: 50px;
    flex: 0 0 88px;
    border-radius: 3px;
    object-fit: cover;
}

.search-autocomplete-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.search-autocomplete-details strong,
.search-autocomplete-details small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-autocomplete-details strong {
    font-size: 14px;
}

.search-autocomplete-details small {
    color: #999;
    font-size: 12px;
}

.admin-comment-edit button {
    padding: 10px 15px;
    border: 1px solid #e00000;
    border-radius: 6px;
    background: #e00000;
    color: white;
    font: inherit;
    cursor: pointer;
}

.search-suggestions {
    margin: 36px auto 24px;
}

.search-suggestions h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.search-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-suggestion-list a {
    padding: 7px 11px;
    border: 1px solid #353535;
    border-radius: 16px;
    color: #ddd;
    background: #1c1c1c;
    font-size: 13px;
    text-decoration: none;
}

.search-suggestion-list a:hover {
    border-color: #666;
    color: white;
}

.search-popular-categories {
    margin: 24px auto 36px;
}

.search-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-category-button {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #353535;
    border-radius: 6px;
    background: #1c1c1c;
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-category-button:hover,
.search-category-button:focus-visible {
    border-color: #e00000;
    background: #292020;
    color: white;
}

.search-load-more {
    display: block;
    width: fit-content;
    margin: 24px auto;
    padding: 11px 18px;
    border: 1px solid #a92c2c;
    border-radius: 6px;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.search-load-more:hover,
.search-load-more:focus-visible {
    background: #292020;
}

.search-load-more[aria-busy="true"] {
    cursor: wait;
    opacity: .7;
}

.search-load-more-error,
.related-search-note {
    color: #aaa;
    font-size: 13px;
}


/* MAIN */

main {
    min-height: 70vh;
}


/* CONTAINER */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}


/* VIDEO GRID */

.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.compact-videos {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.content-section {
    margin-bottom: 36px;
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header-inline h3 {
    margin: 0;
    font-size: 1.35rem;
}

.section-link {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
}

.section-link:hover {
    text-decoration: underline;
}


/* VIDEO CARD */

.card {
    background: #1d1d1d;
    border-radius: 10px;
    overflow: hidden;
}

.thumbnail {
    position: relative;
    height: 160px;
    background: #333;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 50px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-container {
    position: relative;
}

.video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    background: #000;
    transition: opacity 0.2s ease;
}

.preview-active .video-preview {
    opacity: 1;
}

.video-duration-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.card h3 {
    padding: 15px;
    margin: 0;
}

.card a {
    text-decoration: none;
    color: white;
}


/* VIDEO PAGE */

iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}


/* FOOTER */

footer {
    margin-top: 60px;
    padding: 30px 20px;

    background: #1c1c1c;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer p {
    margin: 0;
    color: #aaa;
}


/* MOBILE */

@media (max-width: 700px) {

    header {
        flex-wrap: wrap;
        padding: 15px;
        gap: 15px;
    }

    nav {
        gap: 15px;
    }

    .header-search {
        width: 100%;
        order: 3;
    }

    .container {
        padding: 20px 15px;
    }

    iframe {
        height: 250px;
    }

}

/* HOMEPAGE */

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    margin-bottom: 5px;
}

.section-header p {
    margin: 0;
    color: #999;
}


/* VIDEO LINK */

.video-link {
    text-decoration: none;
    color: white;
    display: block;
}


/* CARD */

.card {
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}


/* CARD CONTENT */

.card-content {
    padding: 15px;
}

.card-content h3 {
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 17px;
}

.category {
    margin: 0;
    color: #999;
    font-size: 13px;
}

 /* VIDEO PAGE ....*/

.video-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}


/* VIDEO PLAYER */

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* VIDEO INFORMATION */

.video-category {
    display: inline-block;
    padding: 6px 12px;
    background: #2a2a2a;
    border-radius: 15px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

.video-category:hover {
    background: #333;
    color: #fff;
    text-decoration: underline;
}

/* MOBILE VIDEO PAGE */

@media (max-width: 700px) {

    .video-page {
        margin: 20px auto;
        padding: 0 15px;
    }

}

/* CATEGORY PAGE.... */

.category-card:hover {
    transform: translateY(-4px);
}

/* SEARCH RESULTS ...*/

.no-results {
    text-align: center;

    padding: 80px 20px;

    color: #aaa;
}

.no-results h3 {
    color: white;

    margin-bottom: 10px;
}

.no-results p {
    margin: 0;

    line-height: 1.6;
}

/* ADD VIDEO FORM.... */

.form-container {
    max-width: 650px;

    margin: 40px auto;

    padding: 30px;

    background: #1d1d1d;

    border-radius: 12px;
}


.form-container h2 {
    margin-top: 0;
    margin-bottom: 8px;
}


.form-subtitle {
    color: #999;

    margin-bottom: 30px;
}


.form-container form {
    display: flex;

    flex-direction: column;
}


.form-container label {
    margin-bottom: 8px;

    font-size: 14px;

    font-weight: bold;
}


.form-container input,
.form-container textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 12px 14px;

    margin-bottom: 20px;

    background: #111;

    color: white;

    border: 1px solid #333;

    border-radius: 7px;

    font-size: 15px;

    outline: none;
}


.form-container textarea {
    resize: vertical;
}


.form-container input:focus,
.form-container textarea:focus {
    border-color: #666;
}


.form-container button {
    padding: 13px;

    border: none;

    border-radius: 7px;

    background: white;

    color: #111;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}


.form-container button:hover {
    background: #ddd;
}

/* RELATED VIDEOS */

.related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}


.related-section .section-header {
    margin-bottom: 20px;
}


.related-section .section-header h2 {
    margin-bottom: 5px;
}


.related-section .section-header p {
    margin: 0;
    color: #999;
}


/* MOBILE RELATED VIDEOS */

@media (max-width: 700px) {

    .related-section {
        margin-top: 30px;
        padding-top: 25px;
    }

}

/* VIDEO TAGS ....*/

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}


.tag-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    background: #222;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}


.tag-link:hover {
    background: #333;
    color: #fff;
}
.video-stats {
    color: #777;
    font-size: 14px;
    margin-top: 8px;
}

/* =========================================
   SIDEBAR
========================================= */

.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;
    color: white;

    font-size: 25px;
    cursor: pointer;

    flex-shrink: 0;
}

.menu-button:hover {
    background: #2a2a2a;
    border-radius: 6px;
}


/* SIDEBAR OVERLAY */

.sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease;

    z-index: 999;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* SIDEBAR */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 320px;
    max-width: 85vw;
    height: 100vh;

    background: #181818;

    overflow-y: auto;

    transform: translateX(-100%);

    transition: transform 0.25s ease;

    z-index: 1000;

    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
}

.sidebar.open {
    transform: translateX(0);
}


/* SIDEBAR HEADER */

.sidebar-header {
    height: 65px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #2a2a2a;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: bold;
}

.sidebar-header button {
    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    color: white;

    font-size: 22px;

    cursor: pointer;
}

.sidebar-header button:hover {
    background: #2a2a2a;
    border-radius: 6px;
}


/* ACCOUNT */

.sidebar-account {
    padding: 20px;

    border-bottom: 1px solid #2a2a2a;
}

.account-user {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}

.account-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #333;

    font-size: 18px;
    font-weight: bold;
}

.account-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.account-info strong {
    font-size: 15px;
}

.account-info small {
    color: #888;

    font-size: 12px;

    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-account-link {
    display: block;

    padding: 10px 12px;

    background: #222;

    border-radius: 6px;

    color: white;

    text-decoration: none;

    font-size: 14px;
}

.sidebar-account-link:hover {
    background: #2d2d2d;
}


/* GUEST ACCOUNT */

.guest-account {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.guest-account span {
    color: #888;
    font-size: 13px;
}

.account-buttons {
    display: flex;
    gap: 8px;

    margin-top: 8px;
}

.account-buttons a {
    flex: 1;

    padding: 9px;

    background: #292929;

    border-radius: 6px;

    color: white;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
}

.account-buttons a:hover {
    background: #353535;
}


/* SIDEBAR NAVIGATION */

.sidebar-nav {
    display: flex;

    flex-direction: column;

    gap: 2px;

    padding: 12px;
}

.sidebar-nav > a,
.sidebar-nav summary,
.sidebar-section a,
.sidebar-bottom a {
    display: block;

    padding: 11px 12px;

    border-radius: 6px;

    color: #ddd;

    text-decoration: none;

    font-size: 14px;

    cursor: pointer;
}

.sidebar-nav > a:hover,
.sidebar-nav summary:hover,
.sidebar-section a:hover,
.sidebar-bottom a:hover {
    background: #252525;
    color: white;
}


/* DETAILS / SUBMENUS */

.sidebar-nav details {
    margin: 0;
}

.sidebar-nav summary {
    list-style: none;
}

.sidebar-nav summary::-webkit-details-marker {
    display: none;
}

.sidebar-nav summary::after {
    content: "›";

    float: right;

    color: #777;

    font-size: 18px;

    transition: transform 0.2s ease;
}

.sidebar-nav details[open] summary::after {
    transform: rotate(90deg);
}

.submenu {
    display: flex;

    flex-direction: column;

    padding-left: 15px;
}

.submenu a {
    display: block;

    padding: 9px 12px;

    color: #999;

    text-decoration: none;

    font-size: 13px;

    border-radius: 5px;
}

.submenu a:hover {
    background: #222;
    color: white;
}


/* MY LALA */

.sidebar-section {
    padding: 12px;

    border-top: 1px solid #2a2a2a;
}

.sidebar-section-title {
    padding: 10px 12px;

    color: #777;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1px;
}


/* BOTTOM */

.sidebar-bottom {
    padding: 12px;

    margin-top: 10px;

    border-top: 1px solid #2a2a2a;
}

.logout-link {
    margin-top: 8px;

    color: #ff7777 !important;
}

.logout-link:hover {
    background: #302020 !important;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: relative;

    z-index: 900;

    background: #1c1c1c;

    padding: 10px 20px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.header-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-header .logo {
    color: white;

    text-decoration: none;

    font-size: 26px;
    font-weight: bold;
}

.header-account {
    flex-shrink: 0;
    margin-left: auto;
}

.header-account a {
    display: inline-flex;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #e00000;
    border-radius: 5px;
    background: #e00000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.header-account a:hover {
    border-color: #f22;
    background: #f22;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 60px;
    padding: 30px 20px;

    background: #1c1c1c;

    color: #777;

    font-size: 13px;
}

.site-footer a {
    color: #aaa;

    text-decoration: none;
}

.site-footer a:hover {
    color: white;
}


/* =========================================
   MOBILE SIDEBAR
========================================= */

@media (max-width: 700px) {

    .sidebar {
        width: 290px;
    }

    .site-header {
        padding: 10px 12px;
    }

    .site-header .logo {
        font-size: 23px;
    }

    .header-account {
        margin-left: auto;
    }

}
/*thumbnail...*/
.video-preview-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.video-thumbnail,
.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.preview-active .video-preview {
    opacity: 1;
}

.video-context-menu {
    position: fixed;
    z-index: 3000;
    width: min(220px, calc(100vw - 16px));
    max-height: min(260px, calc(100vh - 16px));
    box-sizing: border-box;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #454545;
    border-radius: 8px;
    background: #1b1b1b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.video-context-menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #eee;
    font: inherit;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.video-context-menu-item:hover,
.video-context-menu-item:focus-visible {
    outline: none;
    background: #303030;
    color: #fff;
}

.video-context-menu-status:not(:empty) {
    padding: 6px 10px;
    color: #aaa;
    font-size: 12px;
}

.video-duration-badge {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.video-duration-text {
    margin: 0 0 10px;
    color: #aaa;
    font-size: 13px;
}

.thumbnail > span,
.category-thumbnail > span,
.category-card-thumbnail > span {
    font-size: 16px;
    color: #888;
}

/* =========================================
   AUTHENTICATION
========================================= */

.auth-page {
    position: fixed;
    inset: 0;
    z-index: 1000;
    box-sizing: border-box;
    overflow-y: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.auth-overlay {
    width: 100%;
    display: flex;
    justify-content: center;
}


.auth-box {
    width: 100%;
    max-width: 390px;
    box-sizing: border-box;

    padding: 34px 32px 28px;

    background: #151515;

    border: 1px solid #e00000;
    border-radius: 14px;

    box-shadow:
        0 0 0 1px rgba(255, 0, 0, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.65);

    text-align: center;
}


.auth-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e00000;
    border-radius: 50%;

    font-size: 25px;

    background: #101010;
}


.auth-box h1 {
    margin: 0;

    font-size: 27px;
    letter-spacing: 2px;
}


.auth-subtitle {
    margin: 7px 0 22px;

    color: #888;
    font-size: 13px;
}


/* LOGIN / REGISTER */

.auth-toggle {
    display: flex;

    margin-bottom: 24px;

    border: 1px solid #e00000;
    border-radius: 8px;

    overflow: hidden;
}


.auth-toggle a {
    flex: 1;

    padding: 10px;

    color: #888;
    text-decoration: none;

    font-size: 14px;

    transition: 0.2s ease;
}


.auth-toggle a.active {
    color: white;
    background: #e00000;
}


.auth-toggle a:hover {
    color: white;
}


/* ERROR */

.auth-error {
    margin-bottom: 17px;
    padding: 10px;

    border: 1px solid #8b0000;
    border-radius: 6px;

    background: rgba(150, 0, 0, 0.15);

    color: #ff7070;

    font-size: 13px;
}


/* FORM */

.auth-form {
    text-align: left;
}


.auth-field {
    margin-bottom: 17px;
}


.auth-field label {
    display: block;

    margin-bottom: 7px;

    color: #aaa;

    font-size: 13px;
}


.auth-field input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid #333;
    border-radius: 7px;

    outline: none;

    background: #090909;
    color: white;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-field input::placeholder {
    color: #555;
}


.auth-field input:focus {
    border-color: #e00000;

    box-shadow:
        0 0 0 2px rgba(224, 0, 0, 0.12);
}


/* SUBMIT */

.auth-submit {
    width: 100%;

    margin-top: 5px;
    padding: 12px;

    border: 1px solid #e00000;
    border-radius: 7px;

    background: #e00000;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}


.auth-submit:hover {
    background: #c80000;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px;
}

.social-button {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-button:hover {
    transform: translateY(-1px);
    border-color: #e00000;
}

.social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 12px;
}

.social-google {
    background: #ffffff;
    color: #111;
    border-color: #e7e7e7;
}

.auth-divider {
    position: relative;
    margin: 18px 0 16px;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #272727;
}

.auth-divider span {
    position: relative;
    background: #151515;
    padding: 0 12px;
}

.secondary-btn {
    background: #222;
    border-color: #444;
}

.verification-page .verification-message {
    margin-bottom: 18px;
    color: #d9d9d9;
    line-height: 1.6;
    font-size: 14px;
}

.verification-link-box {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    color: #d0d0d0;
    font-size: 12px;
    word-break: break-word;
}

.verification-link-box a {
    color: #fff;
    text-decoration: underline;
}

.inline-link-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.small-form {
    margin-top: 8px;
}


/* BACK */

.auth-back {
    display: inline-block;

    margin-top: 20px;

    color: #777;

    font-size: 12px;
    text-decoration: none;
}


.auth-back:hover {
    color: white;
}

.forgot-password-link {
    display: block;
    margin-top: 12px;
    color: #aaa;
    font-size: 12px;
    text-align: right;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 480px) {

    .auth-page {
        padding: 15px;
    }

    .auth-box {
        padding: 28px 22px 24px;
    }

}

/* ==========================================
ACCOUNT PAGE
========================================== */

.account-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 18px 60px;
}

.card-panel {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 22px;
    margin-bottom: 22px;
}

.account-avatar-large {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d70000, #6c0000);
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.account-header-info h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
}

.account-header-info p {
    margin: 0;
    color: #b0b0b0;
    font-size: 14px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.account-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    padding: 20px 14px;
    text-decoration: none;
    color: #fff;
}

.account-stat strong {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
}

.account-stat span {
    font-size: 13px;
    color: #b4b4b4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    margin-bottom: 24px;
}

.account-actions a,
.account-actions form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-actions a {
    min-height: 48px;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.account-actions form {
    width: 100%;
}

.logout-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: #1f1f1f;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.account-section {
    padding: 18px 16px 20px;
    margin-bottom: 20px;
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.account-section-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.account-section-header a {
    color: #d9d9d9;
    text-decoration: none;
    font-size: 13px;
}

.empty-message {
    margin: 10px 0 0;
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 700px) {
    .account-stats,
    .account-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
LALAVIDEOS LOGO
========================================== */

.logo,
.sidebar-logo {
font-weight: 800;
letter-spacing: 1.5px;
text-decoration: none;
white-space: nowrap;
}

.logo {
font-size: 22px;
}

.sidebar-logo {
font-size: 20px;
}

.logo-lala {
color: #ffffff;
}

.logo-videos {
color: #e00000;
}

/* ==========================================
COOKIE CONSENT
========================================== */

.cookie-banner {
position: fixed;
left: 20px;
right: 20px;
bottom: 20px;
z-index: 2000;
background: #151515;
border: 1px solid #333;
border-radius: 12px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.65);
}

.cookie-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
padding: 18px 20px;
}

.cookie-text {
flex: 1;
}

.cookie-text strong {
display: block;
margin-bottom: 6px;
color: #ffffff;
font-size: 15px;
}

.cookie-text p {
margin: 0;
color: #999;
font-size: 12px;
line-height: 1.5;
}

.cookie-actions {
display: flex;
gap: 10px;
flex-shrink: 0;
}

.cookie-button {
padding: 10px 15px;
border-radius: 7px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
}

.cookie-necessary {
background: transparent;
border: 1px solid #444;
color: #bbb;
}

.cookie-necessary:hover {
border-color: #777;
color: #ffffff;
}

.cookie-accept {
background: #e00000;
border: 1px solid #e00000;
color: #ffffff;
}

.cookie-accept:hover {
background: #c80000;
border-color: #c80000;
}

@media (max-width: 700px) {

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-button {
        flex: 1;
    }
}

@media (max-width: 480px) {

    .logo {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .sidebar-logo {
        font-size: 18px;
    }
}
/* ==========================================
SIDEBAR LOGIN
========================================== */

.sidebar-login {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 7px 18px;
border: 1px solid #e00000;
border-radius: 6px;
background: transparent;
color: #ffffff;
font-size: 12px;
font-weight: 500;
text-decoration: none;
transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-login:hover {
background: #e00000;
border-color: #e00000;
color: #ffffff;
}


/* ==================================================
   VIDEO REACTIONS
   ================================================== */

.video-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #333;
    border-radius: 7px;
    background: #151515;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-button:hover {
    border-color: #555;
    color: #fff;
    background: #1d1d1d;
}

.reaction-button.active {
    border-color: #e00000;
    background: rgba(224, 0, 0, 0.12);
    color: #fff;

}

.reaction-button span {
    font-size: 13px;
    font-weight: 600;
}

/* ==================================================
   COMMENTS
   ================================================== */

.comments-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #222;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    padding: 13px;
    resize: vertical;
    border: 1px solid #333;
    border-radius: 8px;
    outline: none;
    background: #101010;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.comment-form textarea::placeholder {
    color: #666;
}

.comment-form textarea:focus {
    border-color: #e00000;
    box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.1);
}

.comment-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

#comment-counter {
    color: #666;
    font-size: 12px;
}

.comment-submit {
    padding: 9px 16px;
    border: 1px solid #e00000;
    border-radius: 7px;
    background: #e00000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-submit:hover {
    background: #c80000;
    border-color: #c80000;
}

.comment-message {
    margin-top: 12px;
    font-size: 13px;
}

.comment-message.success {
    color: #7fd88a;
}

.comment-message.error {
    color: #ff7070;
}

.comments-list {
    margin-top: 28px;
}

.comment {
    padding: 16px 0;
    border-bottom: 1px solid #222;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.comment-header strong {
    color: #fff;
    font-size: 14px;
}

.comment-header span {
    color: #666;
    font-size: 11px;
}

.comment-text {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.no-comments {
    color: #666;
    font-size: 13px;
}

@media (max-width: 600px) {

    .comment-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .comment-submit {
        padding: 9px 13px;
    }
} 

/* ==================================================
   ADMIN DASHBOARD
   ================================================== */

.admin-page {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-section {
    margin-top: 30px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #222;
}

.admin-section-header h3 {
    margin: 0;
    font-size: 16px;
}

.admin-count {
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e00000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.admin-comment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.admin-comment:last-child {
    border-bottom: none;
}

.admin-comment-info {
    min-width: 0;
    flex: 1;
}

.admin-comment-status {
    margin-left: 8px;
    color: #aaa;
    font-size: 12px;
    text-transform: capitalize;
}

.admin-comment-edit textarea {
    display: block;
    width: 100%;
    min-height: 80px;
    box-sizing: border-box;
    margin: 10px 0 8px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #161616;
    color: white;
    font: inherit;
    resize: vertical;
}

.admin-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-comment-meta strong {
    color: #fff;
    font-size: 14px;
}

.admin-comment-meta span {
    color: #666;
    font-size: 11px;
}

.admin-video-title {
    display: inline-block;
    margin-bottom: 9px;
    color: #e00000;
    font-size: 13px;
    text-decoration: none;
}

.admin-video-title:hover {
    text-decoration: underline;
}

.admin-comment-text {
    margin: 0;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.admin-comment-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-comment-actions form {
    margin: 0;
}

.admin-comment-actions button {
    padding: 8px 13px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-approve {
    border: 1px solid #3d8f4d;
    background: transparent;
    color: #7fd88a;
}

.admin-approve:hover {
    background: #3d8f4d;
    color: #fff;
}

.admin-delete {
    border: 1px solid #8b0000;
    background: transparent;
    color: #ff7070;
}

.admin-delete:hover {
    background: #8b0000;
    color: #fff;
}

.admin-empty {
    padding: 60px 20px;
    text-align: center;
}

.admin-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
    color: #7fd88a;
    font-size: 20px;
}

.admin-empty h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.admin-empty p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

@media (max-width: 700px) {

    .admin-comment {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .admin-comment-actions {
        width: 100%;
    }

    .admin-comment-actions form {
        flex: 1;
    }

    .admin-comment-actions button {
        width: 100%;
    }

}
.video-favorite {
    margin-top: 12px;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #333;
    border-radius: 7px;
    background: #151515;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-button:hover {
    border-color: #555;
    color: #fff;
    background: #1d1d1d;
}

.favorite-button.active {
    border-color: #e00000;
    background: rgba(224, 0, 0, 0.12);
    color: #fff;
}

.favorite-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

#favorite-icon {
    font-size: 18px;
}

#favorite-count {
    font-size: 13px;
    font-weight: 600;
}

#comment-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 14px;
    outline: none;
}

#comment-input:focus {
    border-color: #e50914;
}
/* =========================================
   LIKED VIDEOS
========================================= */

.listing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
}

.page-header p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.liked-video-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 1fr)
    );
    gap: 22px;
}

.liked-video-card {
    display: block;
    overflow: hidden;
    background: #1d1d1d;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, background 0.2s ease;
}

.liked-video-card:hover {
    transform: translateY(-4px);
    background: #222;
}

.liked-video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #333;
    overflow: hidden;
}

.liked-video-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.liked-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 38px;
}

.liked-video-info {
    padding: 12px 13px 14px;
}

.liked-video-info h3 {
    margin: 0 0 7px 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;

    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liked-video-category {
    color: #888;
    font-size: 12px;
}

/* MOBILE */

@media (max-width: 700px) {

    .listing-page {
        padding: 20px 12px;
    }

    .page-header {
        margin-bottom: 18px;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .liked-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .liked-video-info {
        padding: 9px 9px 11px;
    }

    .liked-video-info h3 {
        font-size: 13px;
        line-height: 1.3;
    }

    .liked-video-category {
        font-size: 11px;
    }

}

/* =========================================
   DENSE MOBILE VIDEO GRID
========================================= */

@media (max-width: 700px) {

    /* Use almost the entire screen */
    .container {
        max-width: none;
        padding: 15px 3px 25px;
    }

    /* Remove unnecessary section spacing */
    .section-header {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .section-header h2 {
        font-size: 19px;
        margin-bottom: 4px;
    }

    .section-header p {
        font-size: 12px;
    }

    /* Dense two-column wall */
    .videos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3px;
        row-gap: 8px;
    }

    /* Remove rounded card feel */
    .card {
        border-radius: 3px;
        overflow: hidden;
        min-width: 0;
    }

    /* Thumbnail */
    .thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 0;
    }

    /* Video title */
    .card-content {
        padding: 5px 5px 2px;
    }

    .card-content h3 {
        margin: 0;
        padding: 0;

        font-size: 11px;
        line-height: 1.25;
        font-weight: 600;

        color: #fff;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        -webkit-line-clamp: 2;

        overflow: hidden;
    }

    /* Category */
    .card-category {
        padding: 0 5px 5px;
        line-height: 1;
    }

    .category-link {
        font-size: 10px;
        line-height: 1.1;
        color: #888;
    }

}
/* ==================================================
   VIDEO PAGE - NEW LAYOUT
   ================================================== */

.video-info-top {
    margin-bottom: 14px;
}

.video-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #fff;
}

.video-models {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
}

.video-model-label {
    color: #777;
    font-size: 13px;
}

.model-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.model-name:hover,
.model-name:focus-visible {
    color: #e85d5d;
    text-decoration: underline;
}

.video-category-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.home-discovery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    align-items: center;
}

.model-directory {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.home-discovery-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #303030;
    border-radius: 999px;
    background: #171717;
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
}

.model-directory-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
    color: #ddd;
    text-decoration: none;
}

.model-directory-thumbnail {
    display: flex;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #292929;
}

.model-directory-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-directory-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
    font-size: 13px;
}

.home-discovery-links a:hover,
.model-directory-card:hover {
    border-color: #a92c2c;
    color: #fff;
}

.model-directory-card small {
    color: #888;
}

.category-label {
    color: #777;
    font-size: 13px;
}

.video-action-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.video-action-row::-webkit-scrollbar {
    display: none;
}

.video-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #333;
    border-radius: 7px;
    background: #1b1b1b;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.video-action:hover {
    border-color: #555;
    color: #fff;
}

.video-action.active {
    border-color: #e00000;
    color: #fff;
    background: rgba(224, 0, 0, 0.12);
}

.video-action:disabled {
    opacity: .6;
    cursor: default;
}

.video-section {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #252525;
}

.video-section .section-header {
    margin-bottom: 14px;
}

.video-section .section-header h2 {
    margin: 0 0 4px 0;
    font-size: 19px;
}

.video-section .section-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
}


/* ==================================================
   VIDEO PAGE CARD GRID
   ================================================== */

.video-grid-mobile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.video-grid-mobile .card {
    border-radius: 7px;
}

.video-grid-mobile .thumbnail {
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-grid-mobile .card-content {
    padding: 8px 9px 10px;
}

.video-grid-mobile .card-content h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.video-grid-mobile .category {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #777;
}


/* ==================================================
   CATEGORY GRID
   ================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    overflow: hidden;
    padding: 0;
    background: #1b1b1b;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #292929;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card-copy {
    padding: 8px 10px 9px;
}

.category-card-name {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
}


/* ==================================================
   HIDDEN COMMENTS
   ================================================== */

.comments-section[hidden] {
    display: none;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 700px) {

    .model-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .video-title {
        font-size: 19px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .video-models {
        margin-bottom: 7px;
    }

    .model-name {
        font-size: 13px;
    }

    .video-tags {
        gap: 5px;
        margin-top: 7px;
    }

    .tag-link {
        font-size: 11px;
        padding: 4px 7px;
    }

    .video-action-row {
        gap: 5px;
        margin-top: 9px;
    }

    .video-action {
        min-height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .video-action span:first-child {
        font-size: 13px;
    }

    .video-section {
        margin-top: 26px;
        padding-top: 18px;
    }

    .video-section .section-header h2 {
        font-size: 17px;
    }

    .video-grid-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .video-grid-mobile .card {
        border-radius: 6px;
    }

    .video-grid-mobile .card-content {
        padding: 6px 7px 8px;
    }

    .video-grid-mobile .card-content h3 {
        font-size: 11px;
        line-height: 1.25;
    }

    .video-grid-mobile .category {
        margin-top: 3px;
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .category-card-name {
        font-size: 11px;
    }

    .category-card-copy {
        padding: 7px 8px;
    }

}
/* ==================================================
   VIDEO PAGE FULL WIDTH SECTIONS
   ================================================== */

.video-page .suggested-section,
.video-page .related-section,
.video-page .video-categories-section {
    width: 100%;
    max-width: 100%;
    clear: both;
}

.video-page .suggested-section .videos,
.video-page .related-section .videos {
    width: 100%;
}

/* Prevent old sidebar/grid rules from squeezing these sections */
.video-page .video-section {
    display: block;
    width: 100%;
}

/* Mobile */
@media (max-width: 700px) {
    .video-page .suggested-section,
    .video-page .related-section,
    .video-page .video-categories-section {
        width: 100%;
    }
}

/* ADMIN WORKSPACE */
.admin-page {
    max-width: 1120px;
    padding-top: 34px;
    padding-bottom: 56px;
}

.admin-dashboard > h1,
.admin-page-heading h1 {
    margin: 0;
    font-size: 30px;
}

.admin-dashboard-intro,
.admin-page-heading > div > p:last-child {
    margin: 8px 0 0;
    color: #999;
    line-height: 1.5;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.admin-stat {
    padding: 18px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #191919;
}

.admin-stat h2 {
    margin: 0;
    font-size: 25px;
}

.admin-stat p {
    margin: 6px 0 0;
    color: #999;
    font-size: 13px;
}

.admin-management-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-management-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #191919;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-management-link:hover {
    border-color: #5a5a5a;
    background: #202020;
}

.admin-management-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 6px;
    background: #302020;
    color: #ff7777;
    font-size: 20px;
}

.admin-management-link > span:nth-child(2),
.admin-user-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.admin-management-link small {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.admin-management-count {
    color: #ddd;
    font-size: 18px;
    font-weight: 700;
}

.admin-dashboard-note {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 3px solid #b82b2b;
    background: #191919;
}

.admin-dashboard-note span {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-eyebrow {
    margin: 0 0 7px;
    color: #e66;
    font-size: 11px;
    font-weight: 700;
}

.admin-back-link {
    padding: 9px 13px;
    border: 1px solid #383838;
    border-radius: 6px;
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
}

.admin-list-panel {
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
}

.admin-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #303030;
}

.admin-list-heading h2 {
    margin: 0;
    font-size: 16px;
}

.admin-list-heading span,
.admin-comment-byline time {
    color: #888;
    font-size: 12px;
}

.admin-comment-row,
.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid #292929;
}

.admin-comment-row:last-child,
.admin-user-row:last-child {
    border-bottom: 0;
}

.admin-comment-content {
    min-width: 0;
}

.admin-comment-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.admin-comment-content p {
    margin: 8px 0;
    color: #ccc;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.admin-comment-content > a,
.admin-user-details > a {
    color: #e77;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.admin-comment-content > a:hover,
.admin-user-details > a:hover {
    text-decoration: underline;
}

.admin-danger-button {
    padding: 8px 12px;
    border: 1px solid #703838;
    border-radius: 5px;
    background: transparent;
    color: #ff8585;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.admin-danger-button:hover {
    border-color: #a44;
    background: #321d1d;
}

.admin-user-row {
    justify-content: flex-start;
}

.admin-user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #303030;
    color: #fff;
    font-weight: 700;
}

.admin-user-details {
    flex: 1;
}

.admin-user-details small {
    color: #888;
    font-size: 11px;
}

.admin-role-badge {
    padding: 5px 9px;
    border: 1px solid #493a20;
    border-radius: 12px;
    color: #e9c578;
    font-size: 11px;
}

.admin-empty-state {
    margin: 0;
    padding: 28px 18px;
    color: #999;
    text-align: center;
}

.site-footer-description {
    flex-basis: 100%;
    max-width: 600px;
    margin: 0;
    color: #999;
    line-height: 1.5;
    text-align: center;
}

.site-footer-description a {
    color: #ddd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 760px) {
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-management-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-heading {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .admin-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .admin-page-heading {
        flex-direction: column;
    }

    .admin-dashboard > h1,
    .admin-page-heading h1 {
        font-size: 25px;
    }

    .admin-comment-row,
    .admin-user-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-comment-row > form,
    .admin-user-row > form {
        margin-left: auto;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px auto 12px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
}

.pagination a:hover {
    border-color: #a92727;
    color: #fff;
}

.pagination .current {
    border-color: #b52d2d;
    background: #8f2222;
    color: white;
    font-weight: 700;
}

.pagination .disabled {
    color: #666;
}

.pagination .pagination-ellipsis {
    min-width: 18px;
    padding: 0;
    border: 0;
    color: #777;
}

.video-page .video-section {
    border-top-color: rgba(224, 0, 0, 0.38);
}

.video-page .video-section .section-header h2 {
    padding-left: 11px;
    border-left: 3px solid #d53333;
    color: #ef6464;
}

.video-page .video-section .section-header p {
    padding-left: 14px;
}

@media (max-width: 700px) {
    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 7px;
    }

    .pagination .pagination-step {
        min-width: auto;
    }

    .header-search-form {
        width: min(190px, 38vw);
    }
}

.social-google .social-icon {
    background: transparent;
    color: #4285f4;
    font-size: 20px;
    font-weight: 700;
}

.social-google:hover {
    border-color: #4285f4;
}

.admin-video-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0 12px;
    padding: 16px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
}

.admin-video-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-video-actions form {
    margin: 0;
}

.admin-import-upload {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
}

.admin-import-upload > div {
    display: grid;
    flex: 1;
    gap: 7px;
    min-width: 0;
}

.admin-import-upload label {
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
}

.admin-import-upload input[type="file"] {
    min-width: 0;
    color: #ddd;
    font: inherit;
}

.admin-import-upload small {
    color: #999;
    font-size: 12px;
}

.admin-video-id-search {
    width: min(100%, 420px);
}

.admin-video-id-search label {
    display: block;
    margin-bottom: 7px;
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
}

.admin-video-id-search > div {
    display: flex;
    gap: 8px;
}

.admin-video-id-search input {
    min-width: 0;
    flex: 1;
    padding: 10px 11px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    background: #101010;
    color: #fff;
    font: inherit;
}

.admin-video-id-search button,
.admin-primary-link {
    display: inline-flex;
    min-height: 38px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #a92c2c;
    border-radius: 5px;
    background: #9f2929;
    color: white;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.admin-results-summary {
    margin: 0 0 10px;
    color: #999;
    font-size: 12px;
}

.admin-video-list {
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
}

.admin-video-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #292929;
}

.admin-video-row:last-child {
    border-bottom: 0;
}

.admin-video-thumbnail {
    display: block;
    width: 112px;
    height: 63px;
    border-radius: 4px;
    background: #252525;
    object-fit: cover;
}

.admin-video-placeholder {
    display: grid;
    place-items: center;
    color: #777;
    font-size: 10px;
    font-weight: 700;
}

.admin-video-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.admin-video-info strong {
    color: #eee;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-video-info span,
.admin-video-info small {
    color: #999;
    font-size: 12px;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-row-actions > a,
.admin-inline-edit-form button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #383838;
    border-radius: 5px;
    background: #202020;
    color: #ddd;
    font: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.admin-row-actions > a:hover,
.admin-inline-edit-form button:hover {
    border-color: #666;
    color: #fff;
}

.admin-row-actions form {
    margin: 0;
}

.admin-inline-edit-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-inline-edit-form textarea {
    width: min(270px, 28vw);
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 9px;
    border: 1px solid #383838;
    border-radius: 5px;
    background: #101010;
    color: #eee;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.admin-comment-content {
    flex: 1;
}

.admin-comment-body {
    max-width: 760px;
    white-space: pre-wrap;
}

.admin-comment-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-comment-context > span:not(.admin-role-badge) {
    color: #888;
    font-size: 11px;
}

.admin-edit-page > form {
    max-width: 900px;
    padding: 20px;
    border: 1px solid #303030;
    border-radius: 7px;
    background: #171717;
}

.admin-edit-page > form p {
    margin: 0 0 16px;
}

.admin-edit-page > form label {
    display: inline-block;
    margin-bottom: 5px;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
}

.admin-edit-page > form input,
.admin-edit-page > form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    background: #101010;
    color: #eee;
    font: inherit;
}

.admin-edit-page > form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-edit-page > form button[type="submit"] {
    min-height: 38px;
    margin-right: 8px;
    padding: 0 15px;
    border: 1px solid #a92c2c;
    border-radius: 5px;
    background: #9f2929;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.admin-edit-page > form > a {
    color: #bbb;
    font-size: 13px;
}

.admin-video-comments {
    margin-top: 28px;
}

.admin-video-comment-actions {
    flex-wrap: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 760px) {
    .admin-video-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .admin-video-thumbnail {
        width: 88px;
        height: 50px;
    }

    .admin-video-row .admin-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 100px;
    }

    .admin-comment-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-comment-row > .admin-row-actions {
        justify-content: flex-start;
    }

    .admin-inline-edit-form {
        min-width: 0;
        flex: 1;
    }

    .admin-inline-edit-form textarea {
        width: 100%;
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 520px) {
    .admin-video-tools {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .admin-video-id-search {
        width: 100%;
    }

    .admin-import-upload {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .admin-video-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }

    .admin-video-thumbnail {
        width: 72px;
        height: 41px;
    }

    .admin-video-row .admin-row-actions {
        padding-left: 82px;
    }

    .admin-video-comment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-video-comment-actions .admin-inline-edit-form {
        width: 100%;
    }
}
/* ==================================================
   HEADER SEARCH
   The icon opens a separate search row below the header controls.
================================================== */

.header-search-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible,
.header-search-toggle[aria-expanded="true"] {
    background: #333;
}

.header-search-toggle svg,
.header-search-submit svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(640px, 100%);
    margin: 0 auto 2px;
    gap: 0;
    z-index: 20;
}

.header-search-form[hidden] {
    display: none;
}

.header-search-form .search-autocomplete {
    position: relative;
    flex: 1;
    min-width: 0;
}

.header-search-form .site-search-input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #3d3d3d;
    border-radius: 7px 0 0 7px;
    background: #111;
    color: #fff;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search-form .site-search-input::placeholder {
    color: #999;
}

.header-search-form .site-search-input:focus {
    border-color: #777;
    box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.16);
}


.header-search-submit {
    display: inline-flex;
    width: 46px;
    height: 42px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #3d3d3d;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    background: #252525;
    color: #fff;
    cursor: pointer;
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
    background: #333;
}


/* AUTOCOMPLETE */

.header-search-form .search-autocomplete-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;

    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;

    overflow: hidden;
    z-index: 50;
    max-height: min(180px, 35vh);
    overflow-y: auto;
}

.header-search-form .search-autocomplete-option {
    color: #fff;
}

.header-search-form .search-autocomplete-option:hover,
.header-search-form .search-autocomplete-option.active {
    background: #292929;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .site-header {
        gap: 8px;
    }

    .header-main-row {
        gap: 8px;
    }

    .site-header .logo {
        font-size: 20px;
    }

    .header-search-form .site-search-input {
        height: 40px;
        padding-left: 12px;
        font-size: 13px;
    }

    .header-search-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

}