/* =====================================
   Global
===================================== */

body {
    background-color: #0f1115;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


/* =====================================
   Navigation
===================================== */

nav {
    background-color: #171b22;
    border-bottom: 2px solid #1fc8ff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}
.site-logo:hover {

    transform: scale(1.05);
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

nav a:hover {
    color: #1fc8ff;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: #171b22;
    color: #f5f5f5;
    border: 1px solid #232833;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: bold;
    cursor: pointer;
}

.admin-dropdown-button {
    border-color: #1fc8ff;
    color: #1fc8ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #171b22;
    min-width: 190px;
    border: 1px solid #232833;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    z-index: 999;
    overflow: hidden;
}

.dropdown-content a {
    color: #f5f5f5;
    padding: 12px 14px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #1fc8ff;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.feedback-nav-button {
    background-color: #39ff14 !important;
    color: #000 !important;
    font-weight: bold;
}

/* =====================================
   Main Content
===================================== */

main {
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

body:has(.admin-page) main {
    max-width: 98%;
}


/* =====================================
   Flash Messages
===================================== */

.flash {
    background-color: #171b22;
    border-left: 4px solid #1fc8ff;
    padding: 12px;
    margin: 15px;
    border-radius: 8px;
}


/* =====================================
   Forms
===================================== */

form {
    margin-bottom: 20px;
}

input,
select,
button {
    background-color: #171b22;
    color: #f5f5f5;
    border: 1px solid #232833;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
}

button {
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: #1fc8ff;
    color: #000;
}

textarea {
    width: 100%;
    min-height: 90px;
    background-color: #171b22;
    color: #f5f5f5;
    border: 1px solid #232833;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
}


/* =====================================
   Video Cards
===================================== */

.video-card {
    max-width: 850px;
    margin: 30px auto;
    background-color: #171b22;
    border: 1px solid #232833;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}


/* =====================================
   Video Titles
===================================== */

.video-card h2 {
    padding: 15px;
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.watch-title {
    text-align: center;
    margin-bottom: 25px;
    color: #f5f5f5;
}


/* =====================================
   Timeline Thumbnails
===================================== */

.video-card img {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    transition: 0.2s;
}

.video-card img:hover {
    opacity: 0.92;
}


/* =====================================
   Profile Pictures
===================================== */

.profile-picture,
.video-card img.profile-picture {
    width: 180px;
    height: 180px;
    max-width: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1fc8ff;
    display: block;
    margin: 0 auto;
}


/* =====================================
   Metadata
===================================== */

.video-card p {
    padding-left: 15px;
    color: #9da3af;
}


/* =====================================
   Video Player
===================================== */

video {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    background-color: black;
}

.watch-video {
    display: block;
    max-width: 700px;
    width: 100%;
    max-height: 70vh;
    margin: 0 auto;
}


/* =====================================
   Pagination
===================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.pagination a {
    color: #1fc8ff;
    text-decoration: none;
    font-weight: bold;
}


/* =====================================
   Comments
===================================== */

.comment {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #232833;
}

.comment-pfp,
.comment-pfp-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #1fc8ff;
}

.comment-pfp-placeholder {
    background-color: #232833;
}


/* =====================================
   Admin Tables
===================================== */

.admin-page {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
}

.admin-table-wrapper {
    width: 100%;
    background-color: #171b22;
    border: 1px solid #232833;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #232833;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table th {
    color: #1fc8ff;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #1f2530;
}

.admin-user-pfp,
.admin-user-pfp-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1fc8ff;
}

.admin-user-pfp-placeholder {
    background-color: #232833;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #1f2530;
}


/* =====================================
   Subscribe / Notices
===================================== */

.subscribe-banner {
    background-color: #171b22;
    border: 1px solid #1fc8ff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.notice {
    background-color: #171b22;
    border-left: 4px solid #39ff14;
    padding: 12px;
    border-radius: 8px;
    color: #f5f5f5;
}


/* =====================================
   Dashboard
===================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 18px;
    margin: 25px 0;
}

.dashboard-card {
    background-color: #171b22;
    border: 1px solid #232833;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.dashboard-card h2 {
    color: #1fc8ff;
    font-size: 34px;
    margin: 0;
}

.dashboard-card p {
    color: #9da3af;
    margin-bottom: 0;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}


/* =====================================
   Responsive
===================================== */

@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .video-card h2 {
        font-size: 20px;
    }

    nav {
        flex-wrap: wrap;
    }

    .video-card img {
        max-width: 100%;
    }

    video,
    .watch-video {
        max-height: 65vh;
    }
}

.view-count {
    display: inline-block;
    margin-left: 10px;
    padding: 10px;
    border: 1px solid #232833;
    border-radius: 8px;
    color: #9da3af;
}

.admin-content-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #1fc8ff;
}

.admin-table {
    table-layout: fixed;
}

.admin-table td,
.admin-table th {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table td:nth-child(1),
.admin-table th:nth-child(1) {
    width: 50px;
}

.admin-table td:nth-child(2),
.admin-table th:nth-child(2) {
    width: 90px;
}

.admin-table td:nth-child(3),
.admin-table th:nth-child(3) {
    width: 280px;
}

.admin-table td:nth-child(4),
.admin-table th:nth-child(4),
.admin-table td:nth-child(5),
.admin-table th:nth-child(5) {
    width: 230px;
}

.admin-table td:nth-child(6),
.admin-table th:nth-child(6),
.admin-table td:nth-child(7),
.admin-table th:nth-child(7) {
    width: 70px;
}

.admin-table td:nth-child(8),
.admin-table th:nth-child(8) {
    width: 170px;
}

.admin-table td:nth-child(9),
.admin-table th:nth-child(9) {
    width: 70px;
}

.danger-button {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.danger-button:hover {
    background-color: #ff4d4d;
    color: #000;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 35px 0 15px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination-current {
    min-width: 36px;
    text-align: center;
    padding: 9px 12px;
    border: 1px solid #232833;
    border-radius: 8px;
    text-decoration: none;
    color: #f5f5f5;
    background-color: #171b22;
}

.pagination a:hover {
    background-color: #1fc8ff;
    color: #000;
}

.pagination-current {
    background-color: #1fc8ff;
    color: #000;
    font-weight: bold;
}

.page-jump-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0 40px 0;
    flex-wrap: wrap;
}

.page-jump-form input[type="number"] {
    width: 90px;
}

.feedback-nav-button {
    background-color: #39ff14;
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 8px;
}

.feedback-nav-button:hover {
    background-color: #1fc8ff;
    color: #000 !important;
}

.admin-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-search-form input {
    flex: 1;
    min-width: 280px;
}

.upload-progress-bar {
    width: 100%;
    height: 24px;
    background-color: #232833;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1fc8ff;
}

#upload-progress-fill {
    width: 0%;
    height: 100%;
    background-color: #1fc8ff;
    transition: width 0.2s;
}

#upload-percent {
    color: #1fc8ff;
    font-weight: bold;
}

#upload-note {
    color: #9da3af;
    font-size: 14px;
}

.video-card img.comment-pfp,
.comment-pfp {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    min-width: 45px !important;
    max-height: 45px !important;
    min-height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #1fc8ff;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 20px;
    margin-top: 25px;
}

.product-card {
    background-color: #171b22;
    border: 1px solid #232833;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.product-image,
.product-placeholder {
    width: 100%;
    max-width: 220px;
    height: 220px;
    margin: 0 auto 15px auto;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #1fc8ff;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9da3af;
    background-color: #232833;
}

.product-price {
    color: #39ff14;
    font-weight: bold;
    font-size: 20px;
}

.product-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-arrow {
    font-size: 22px;
    padding: 8px 12px;
}

.product-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 15px 0;
    flex-wrap: wrap;
}

.product-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #1fc8ff;
    cursor: pointer;
    opacity: 0.8;
}

.product-thumb:hover {
    opacity: 1;
}

.store-buy-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.store-buy-form input {
    width: 70px;
}

.product-price-breakdown {
    background-color: #0f1115;
    border: 1px solid #232833;
    border-radius: 10px;
    padding: 10px;
    margin: 12px 0;
}

.product-price-breakdown p {
    padding-left: 0 !important;
    margin: 5px 0;
    color: #9da3af;
}

.shipping-note {
    color: #9da3af;
    padding-left: 0 !important;
    text-align: center;
}