body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;

    background:
        radial-gradient(circle at 20% 20%, #253047 0%, transparent 35%),
        radial-gradient(circle at 80% 80%, #34233f 0%, transparent 35%),
        #0d0f14;
}


/* TOP HEADER */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 40px;

    background: rgba(10, 12, 18, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

nav a:hover {
    color: white;
}


/* PAGE CONTENT */

.page-content {
    max-width: 1000px;
    margin: auto;
    padding: 60px 30px;
    text-align: center;
}

.page-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-content p {
    color: #bbb;
    font-size: 18px;
}


/* BUTTONS */

.button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 22px;

    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 10px;

    color: white;
    text-decoration: none;

    transition: 0.2s;
}

.button:hover {
    background: #292929;
    transform: translateY(-2px);
}
/* =========================
   REQUEST BOARD
   ========================= */

.request-list {
    max-width: 750px;
    margin: 40px auto;
}

.media-request {
    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;

    padding: 25px;
    margin-bottom: 20px;

    text-align: left;

    transition: 0.2s;
}

.media-request:hover {
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.media-type {
    color: #8190b4;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.media-request h2 {
    margin: 8px 0;
    font-size: 25px;
}

.requested-by {
    color: #888 !important;
    font-size: 14px !important;
}

.support-count {
    color: #bbb !important;
    font-size: 14px !important;
}


/* Comments */

.request-comments {
    margin-top: 20px;

    padding: 15px;

    background: rgba(0,0,0,0.2);

    border-radius: 10px;
}

.request-comments p {
    margin: 7px 0;

    color: #aaa !important;
    font-size: 14px !important;
}


/* Action buttons */

.request-actions {
    display: flex;
    gap: 10px;

    margin-top: 18px;
}

.request-actions button {
    padding: 10px 14px;

    background: #1b1e26;
    color: #ccc;

    border: 1px solid #3b3f49;
    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;
}

.request-actions button:hover {
    background: #2a3040;
    color: white;
}


/* New request */

.new-request-section {
    max-width: 700px;

    margin: 55px auto 20px;

    padding-top: 35px;

    border-top: 1px solid rgba(255,255,255,0.1);
}

.new-request-section h2 {
    margin-bottom: 5px;
}
/* =========================
   REQUEST DETAIL PAGE
   ========================= */

.back-link {
    display: inline-block;
    margin-bottom: 25px;

    color: #aaa;
    text-decoration: none;
}

.back-link:hover {
    color: white;
}


.request-detail-card {
    max-width: 700px;
    margin: 0 auto;

    padding: 35px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    text-align: left;
}


.request-detail-card h1 {
    margin: 10px 0;
}


.request-description {
    color: #bbb !important;

    margin-top: 20px;

    line-height: 1.6;
}


/* Stats */

.request-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin: 30px 0;
}


.request-stats div {
    padding: 18px;

    background: rgba(0,0,0,0.22);

    border-radius: 10px;

    text-align: center;
}


.request-stats strong {
    display: block;

    font-size: 20px;

    margin-bottom: 5px;
}


.request-stats span {
    color: #888;

    font-size: 13px;
}


/* Big support button */

.big-support-button {
    width: 100%;

    padding: 15px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 10px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;
}


.big-support-button:hover {
    background: #3c4861;

    transform: translateY(-2px);
}


/* Comments */

.comments-section {
    max-width: 700px;

    margin: 50px auto;

    text-align: left;
}


.comments-section h2 {
    margin-bottom: 20px;
}


.comment-card {
    padding: 18px 20px;

    margin-bottom: 12px;

    background: rgba(20, 22, 30, 0.75);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}


.comment-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;
}


.comment-header span {
    color: #666;

    font-size: 12px;
}


.comment-card p {
    margin: 0;

    color: #bbb !important;

    font-size: 15px !important;
}


/* Add Comment */

.add-comment-box {
    margin-top: 30px;

    padding: 25px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
}


.add-comment-box h3 {
    margin-top: 0;
}


.add-comment-box input,
.add-comment-box textarea {
    width: 100%;

    box-sizing: border-box;

    margin-bottom: 12px;
    padding: 13px;

    background: #101218;
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 8px;

    font-family: Arial, sans-serif;
}


.add-comment-box textarea {
    min-height: 90px;

    resize: vertical;
}


.add-comment-box button {
    padding: 12px 18px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 8px;

    cursor: pointer;
}
.request-form select {
    margin-bottom: 22px;
    padding: 14px;

    background: #101218;
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 8px;

    font-size: 15px;
}
/* =========================
   NEW REQUEST PAGE CLEANUP
   ========================= */

.request-box {
    max-width: 620px;
    margin: 35px auto;
    padding: 32px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-form label {
    text-align: left;
    margin-top: 10px;

    color: #ddd;
    font-size: 14px;
    font-weight: bold;
}

.request-form label span {
    color: #777;
    font-weight: normal;
}

.request-form input,
.request-form select,
.request-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 15px;

    background: #101218;
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 9px;

    font-family: Arial, sans-serif;
    font-size: 15px;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: #666;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    outline: none;
    border-color: #7180a3;
}

.request-form textarea {
    min-height: 110px;
    resize: vertical;
}

.submit-request {
    display: inline-block;

    margin-top: 18px;
    padding: 14px 22px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 10px;

    text-align: center;
    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.submit-request:hover {
    background: #3c4861;
    transform: translateY(-2px);
}

.back-link {
    color: #aaa;
    text-decoration: none;
}

.back-link:hover {
    color: white;
}

/* =========================
   FAMILY COMMENTS PAGE
   ========================= */

.family-comments {
    max-width: 620px;
    margin: 55px auto 0;

    text-align: left;
}

.family-comments h2 {
    text-align: center;
    margin-bottom: 25px;
}
/* =========================
   FAMILY ARCHIVE
   ========================= */

.archive-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 22px;

    max-width: 950px;

    margin: 40px auto;
}


.archive-card {
    padding: 32px 25px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;

    color: white;
    text-decoration: none;

    text-align: left;

    transition: 0.2s;
}


.archive-card:hover {
    transform: translateY(-4px);

    background: rgba(28, 31, 42, 0.95);

    border-color: rgba(255,255,255,0.25);
}


.archive-icon {
    font-size: 38px;

    margin-bottom: 15px;
}


.archive-card h2 {
    margin: 0 0 10px;
}


.archive-card p {
    margin: 0;

    color: #aaa !important;

    font-size: 15px !important;

    line-height: 1.5;
}

/* =========================
   FAMILY RECIPES
   ========================= */

.recipe-search {
    max-width: 700px;
    margin: 30px auto 40px;
}

.recipe-search input {
    width: 100%;
    box-sizing: border-box;

    padding: 15px 18px;

    background: rgba(16, 18, 24, 0.9);
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 10px;

    font-size: 16px;
}

.recipe-search input:focus {
    outline: none;
    border-color: #7180a3;
}


.recipe-grid {
    max-width: 800px;
    margin: 0 auto;
}


.recipe-card {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 22px;

    margin-bottom: 16px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;

    color: white;
    text-decoration: none;

    text-align: left;

    transition: 0.2s;
}


.recipe-card:hover {
    transform: translateY(-3px);

    background: rgba(28, 31, 42, 0.95);

    border-color: rgba(255,255,255,0.25);
}


.recipe-emoji {
    font-size: 38px;

    width: 55px;

    text-align: center;
}


.recipe-info {
    flex: 1;
}


.recipe-info h2 {
    margin: 5px 0 8px;
}


.recipe-info p {
    margin: 0;

    color: #aaa !important;

    font-size: 14px !important;

    line-height: 1.5;
}


.recipe-tag {
    color: #8190b4;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.4px;
}


.recipe-arrow {
    color: #777;

    font-size: 25px;

    padding-left: 10px;
}


.recipe-card:hover .recipe-arrow {
    color: white;
}


.recipe-add-section {
    max-width: 700px;

    margin: 55px auto 20px;

    padding-top: 35px;

    border-top: 1px solid rgba(255,255,255,0.1);
}
/* =========================
   RECIPE HERO IMAGE
   ========================= */

.recipe-hero-image {
    display: flex;
    justify-content: center;
    margin: 20px 0 25px;
}

.recipe-hero-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #333;
}

/* =========================
   SITE FOOTER
========================= */

.site-footer {
    margin-top: 60px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    color: #777;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.site-footer span {
    margin: 0 8px;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* =====================================================
   K MEDIA LIBRARY - ADMIN
===================================================== */

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #1a2130 0%, #111318 38%, #0d0e11 100%);
}


/* -------------------------
   ADMIN LOGIN
------------------------- */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 430px;

    background: rgba(25, 27, 33, 0.96);

    border: 1px solid #30343d;
    border-radius: 18px;

    padding: 45px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45);

    text-align: center;
}

.admin-lock {
    font-size: 32px;
    margin-bottom: 15px;
}

.admin-eyebrow {
    margin: 0 0 8px;

    color: #7f8da8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.admin-login-card h1 {
    margin: 0;

    font-size: 32px;
    color: #fff;
}

.admin-login-subtitle {
    color: #9298a3;

    margin: 10px 0 30px;

    line-height: 1.5;
}

.admin-login-form {
    display: flex;
    flex-direction: column;

    text-align: left;
}

.admin-login-form label {
    color: #c7cad0;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 7px;
}

.admin-login-form input {
    width: 100%;

    box-sizing: border-box;

    background: #111318;
    color: #fff;

    border: 1px solid #343944;
    border-radius: 9px;

    padding: 13px 14px;

    margin-bottom: 18px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-login-form input:focus {
    border-color: #68758d;

    box-shadow:
        0 0 0 3px rgba(104, 117, 141, 0.15);
}

.admin-login-button {
    border: none;
    border-radius: 9px;

    padding: 13px;

    background: #e9e9ec;
    color: #111;

    font-weight: 700;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.admin-login-button:hover {
    background: #fff;
    transform: translateY(-1px);
}

.admin-error {
    background: rgba(190, 65, 65, 0.12);

    border: 1px solid rgba(220, 80, 80, 0.35);

    color: #e68a8a;

    padding: 11px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 13px;
}

.admin-back-link {
    display: inline-block;

    margin-top: 25px;

    color: #777f8c;

    text-decoration: none;

    font-size: 13px;
}

.admin-back-link:hover {
    color: #fff;
}


/* -------------------------
   ADMIN DASHBOARD
------------------------- */

.admin-page {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    padding: 55px 0 80px;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 30px;
}

.admin-heading h1 {
    color: #fff;

    font-size: 38px;

    margin: 0;
}

.admin-description {
    color: #8d939d;

    margin: 8px 0 0;
}

.admin-heading-actions {
    display: flex;

    gap: 10px;
}

.admin-secondary-button,
.admin-logout-button {
    padding: 10px 15px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.admin-secondary-button {
    color: #ddd;

    background: #1c1f25;

    border: 1px solid #343841;
}

.admin-secondary-button:hover {
    background: #272a31;
}

.admin-logout-button {
    color: #d88989;

    background: rgba(165, 60, 60, 0.08);

    border: 1px solid rgba(180, 70, 70, 0.25);
}

.admin-logout-button:hover {
    background: rgba(180, 60, 60, 0.16);
}


/* -------------------------
   STATS
------------------------- */

.admin-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 25px;
}

.admin-stat-card {
    background: rgba(27, 30, 36, 0.85);

    border: 1px solid #2e323a;
    border-radius: 12px;

    padding: 20px;
}

.admin-stat-card span {
    display: block;

    color: #858c97;

    font-size: 12px;

    margin-bottom: 7px;
}

.admin-stat-card strong {
    color: #fff;

    font-size: 28px;
}


/* -------------------------
   REQUEST CARDS
------------------------- */

.admin-request-list {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.admin-request-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 280px;

    gap: 30px;

    background: rgba(26, 29, 34, 0.92);

    border: 1px solid #30343c;
    border-radius: 13px;

    padding: 24px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.admin-request-card:hover {
    transform: translateY(-2px);

    border-color: #424752;
}

.admin-request-top {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 9px;
}

.admin-media-type {
    color: #8993a3;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.admin-status {
    padding: 4px 8px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.status-pending {
    background: rgba(210, 165, 65, 0.12);
    color: #d9b35e;
}

.status-approved {
    background: rgba(75, 125, 205, 0.13);
    color: #7fa3df;
}

.status-downloading {
    background: rgba(140, 90, 200, 0.13);
    color: #aa86d9;
}

.status-added {
    background: rgba(70, 165, 105, 0.13);
    color: #72c38e;
}

.status-denied {
    background: rgba(195, 70, 70, 0.13);
    color: #d97979;
}

.admin-request-main h2 {
    color: #fff;

    margin: 0 0 7px;

    font-size: 21px;
}

.admin-year {
    color: #777e89;

    font-size: 16px;

    font-weight: 400;
}

.admin-requested-by {
    color: #888f99;

    font-size: 13px;

    margin: 0;
}

.admin-requested-by strong {
    color: #c6c9ce;
}

.admin-request-notes {
    color: #a5aab2;

    font-size: 14px;

    line-height: 1.5;

    margin: 15px 0;
}

.admin-request-meta {
    display: flex;

    gap: 20px;

    margin-top: 15px;

    color: #6f7681;

    font-size: 12px;
}


/* -------------------------
   ADMIN CONTROLS
------------------------- */

.admin-request-controls {
    display: flex;

    align-items: center;

    border-left: 1px solid #30343c;

    padding-left: 25px;
}

.admin-request-controls form {
    width: 100%;
}

.admin-request-controls label {
    display: block;

    color: #888f99;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 8px;
}

.admin-status-controls {
    display: flex;

    gap: 8px;
}

.admin-status-controls select {
    flex: 1;

    min-width: 0;

    background: #111318;
    color: #ddd;

    border: 1px solid #363b45;
    border-radius: 7px;

    padding: 9px;

    cursor: pointer;
}

.admin-status-controls button {
    background: #e8e8ea;
    color: #111;

    border: none;
    border-radius: 7px;

    padding: 9px 14px;

    font-weight: 700;

    cursor: pointer;
}

.admin-status-controls button:hover {
    background: #fff;
}


/* -------------------------
   EMPTY STATE
------------------------- */

.admin-empty {
    text-align: center;

    background: #191b20;

    border: 1px solid #30333a;
    border-radius: 12px;

    padding: 50px;
}

.admin-empty h2 {
    color: #fff;
}

.admin-empty p {
    color: #888;
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 750px) {

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-request-card {
        grid-template-columns: 1fr;
    }

    .admin-request-controls {
        border-left: none;

        border-top: 1px solid #30343c;

        padding-left: 0;
        padding-top: 20px;
    }

    .admin-login-card {
        padding: 35px 25px;
    }

}

/* =====================================================
   FAMILY MEDIA
===================================================== */

.media-page {
    max-width: 1050px;
}


/* HERO */

.media-hero {
    text-align: center;
    margin-bottom: 45px;
}

.media-eyebrow {
    margin: 0 0 8px;

    color: #8190b4 !important;

    font-size: 11px !important;
    font-weight: bold;

    letter-spacing: 2px;
}

.media-hero h1 {
    margin: 0 0 10px;
}

.media-upload-button {
    display: inline-block;

    margin-top: 22px;

    padding: 13px 20px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 10px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.2s;
}

.media-upload-button:hover {
    background: #3c4861;

    transform: translateY(-2px);
}


/* MAIN PHOTO / VIDEO CARDS */

.media-main-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 55px;
}

.media-main-card {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 28px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;

    color: white;
    text-decoration: none;

    text-align: left;

    transition: 0.2s;
}

.media-main-card:hover {
    transform: translateY(-3px);

    background: rgba(28, 31, 42, 0.95);

    border-color: rgba(255,255,255,0.25);
}

.media-main-icon {
    font-size: 38px;
}

.media-main-card h2 {
    margin: 0 0 6px;
}

.media-main-card p {
    margin: 0;

    color: #999 !important;

    font-size: 14px !important;
}

.media-card-arrow {
    margin-left: auto;

    color: #777;

    font-size: 25px;
}

.media-main-card:hover .media-card-arrow {
    color: white;
}


/* SECTIONS */

.media-section {
    margin-top: 50px;
}

.media-section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 18px;

    text-align: left;
}

.media-section-heading h2 {
    margin: 0;

    font-size: 25px;
}


/* COLLECTIONS */

.collection-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 17px;
}

.collection-card {
    overflow: hidden;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;

    text-align: left;

    color: inherit;
    text-decoration: none;

    transition: 0.2s;
}

.collection-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255,255,255,0.25);
}

.collection-placeholder {
    height: 145px;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at top, #29334a, #171a21);

    font-size: 42px;
}

.collection-info {
    padding: 17px;
}

.collection-info h3 {
    margin: 0 0 5px;
}

.collection-info p {
    margin: 0;

    color: #888 !important;

    font-size: 13px !important;
}


/* RECENT MEMORIES */

.recent-memory-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.memory-placeholder {
    min-height: 175px;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    background: rgba(20, 22, 30, 0.72);

    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 14px;
}

.memory-placeholder span {
    font-size: 30px;
}

.memory-placeholder p {
    color: #6f7580 !important;

    font-size: 13px !important;
}


/* =====================================================
   MEMORY UPLOAD
===================================================== */

.memory-upload-box {
    max-width: 620px;

    margin: 15px auto;

    padding: 35px;

    background: rgba(20, 22, 30, 0.9);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.25);

    text-align: left;
}

.memory-upload-box h1 {
    margin: 3px 0 8px;
}

.memory-upload-description {
    margin: 0 0 28px;

    color: #999 !important;

    font-size: 15px !important;
}

.memory-upload-form {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.memory-upload-form label {
    margin-top: 11px;

    color: #ddd;

    font-size: 13px;
    font-weight: bold;
}

.memory-upload-form label span {
    color: #777;

    font-weight: normal;
}

.memory-upload-form input[type="text"],
.memory-upload-form textarea,
.memory-upload-form select {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    background: #101218;
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 9px;

    font-family: Arial, sans-serif;
}

.memory-upload-form textarea {
    min-height: 100px;

    resize: vertical;
}

.memory-upload-form input:focus,
.memory-upload-form textarea:focus,
.memory-upload-form select:focus {
    outline: none;

    border-color: #7180a3;
}


/* FILE PICKER */

.memory-file-box {
    position: relative;

    padding: 30px;

    background: rgba(10, 12, 18, 0.45);

    border: 1px dashed #454b58;
    border-radius: 12px;

    text-align: center;
}

.memory-file-icon {
    margin-bottom: 10px;

    font-size: 35px;
}

.memory-file-box strong {
    display: block;
}

.memory-file-box p {
    margin: 6px 0 15px;

    color: #777 !important;

    font-size: 13px !important;
}

.memory-file-box input[type="file"] {
    max-width: 100%;

    color: #aaa;
}


/* SUBMIT */

.memory-submit-button {
    margin-top: 18px;

    padding: 14px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 10px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.memory-submit-button:hover {
    background: #3c4861;

    transform: translateY(-2px);
}


/* MOBILE */

@media (max-width: 750px) {

    .media-main-grid,
    .collection-grid,
    .recent-memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-upload-box {
        padding: 25px;
    }

}


/* =====================================================
   REAL MEMORY CARDS
===================================================== */

.memory-card {
    overflow: hidden;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    text-align: left;

    transition: 0.2s;
}

.memory-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.25);
}

.memory-card img,
.memory-card video {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;

    background: #090a0d;
}

.memory-info {
    padding: 15px;
}

.memory-info h3 {
    margin: 0 0 7px;

    color: white;

    font-size: 16px;
}

.memory-info p {
    margin: 0;

    color: #858b95 !important;

    font-size: 12px !important;
}

/* =====================================================
   MEMORY DETAIL PAGE
===================================================== */

.memory-detail-page {
    max-width: 950px;
}

.memory-detail-card {
    max-width: 850px;
    margin: 0 auto;

    overflow: hidden;

    background: rgba(20, 22, 30, 0.9);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    text-align: left;
}

.memory-detail-media {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background: #090a0d;
}

.memory-detail-media img,
.memory-detail-media video {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 520px;

    object-fit: contain;

    border-radius: 10px;
}

.memory-detail-info {
    padding: 30px;
}

.memory-detail-info h1 {
    margin: 5px 0 25px;
}

.memory-detail-meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.memory-detail-meta p {
    padding: 15px;

    margin: 0;

    background: rgba(0,0,0,0.18);

    border-radius: 10px;

    color: #999 !important;

    font-size: 13px !important;
}

.memory-detail-meta strong {
    color: #ddd;
}

@media (max-width: 700px) {

    .memory-detail-meta {
        grid-template-columns: 1fr;
    }
    

}
.memory-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* =====================================================
   MEMORY DETAIL VISUAL UPGRADE
===================================================== */

.memory-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 20px;
}

.memory-detail-topbar .back-link {
    margin-bottom: 0;
}

.memory-nav-buttons {
    display: flex;
    gap: 8px;
}

.memory-nav-button {
    padding: 9px 13px;

    background: rgba(20, 22, 30, 0.8);
    color: #777;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;

    cursor: pointer;
}


/* ACTION BUTTONS */

.memory-action-row {
    display: flex;
    gap: 10px;

    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.memory-action-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    padding: 11px 16px;

    border-radius: 9px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    text-decoration: none;

    cursor: pointer;

    transition: 0.2s;
}

.memory-like-button {
    background: rgba(153, 67, 82, 0.12);
    color: #e2a0ac;

    border: 1px solid rgba(206, 102, 121, 0.25);
}

.memory-like-button:hover {
    background: rgba(180, 70, 90, 0.2);
}

.memory-download-button {
    background: #30394d;
    color: white;

    border: 1px solid #596783;
}

.memory-download-button:hover {
    background: #3c4861;

    transform: translateY(-1px);
}


/* COMMENTS */

.memory-comments-section {
    max-width: 850px;

    margin: 45px auto 0;

    text-align: left;
}

.memory-comments-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 18px;
}

.memory-comments-heading h2 {
    margin: 0;

    font-size: 26px;
}

.memory-comment-count {
    color: #777;

    font-size: 12px;
}


/* EMPTY COMMENTS */

.memory-comment-empty {
    padding: 35px;

    background: rgba(20, 22, 30, 0.65);

    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 12px;

    text-align: center;
}

.memory-comment-empty span {
    font-size: 28px;
}

.memory-comment-empty h3 {
    margin: 10px 0 5px;
}

.memory-comment-empty p {
    margin: 0;

    color: #777 !important;

    font-size: 13px !important;
}


/* COMMENT FORM */

.memory-comment-form-box {
    margin-top: 20px;

    padding: 25px;

    background: rgba(20, 22, 30, 0.88);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
}

.memory-comment-form-box h3 {
    margin-top: 0;
}

.memory-comment-form {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.memory-comment-form label {
    margin-top: 8px;

    color: #ddd;

    font-size: 13px;
    font-weight: bold;
}

.memory-comment-form input,
.memory-comment-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    background: #101218;
    color: white;

    border: 1px solid #3a3d46;
    border-radius: 9px;

    font-family: Arial, sans-serif;
}

.memory-comment-form textarea {
    min-height: 100px;

    resize: vertical;
}

.memory-comment-form input:focus,
.memory-comment-form textarea:focus {
    outline: none;

    border-color: #7180a3;
}

.memory-comment-submit {
    align-self: flex-end;

    margin-top: 10px;

    padding: 11px 18px;

    background: #30394d;
    color: white;

    border: 1px solid #596783;
    border-radius: 9px;

    font-weight: bold;

    cursor: pointer;
}

.memory-comment-submit:hover {
    background: #3c4861;
}


/* MOBILE */

@media (max-width: 700px) {

    .memory-detail-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .memory-action-row {
        flex-direction: column;
    }

    .memory-action-button {
        width: 100%;
        box-sizing: border-box;
    }

    .memory-comments-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

}

@media (max-width: 750px) {

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px 20px;
    }

    nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        font-size: 14px;
    }

}
