:root {
    --bg-color: #21150f;
    --glass-bg: rgba(24, 17, 13, 0.82);
    --glass-border: rgba(3, 3, 3, 0.42);
    --accent: #d59a52;
    --accent-secondary: #54c49a;
    --accent-hover: #efb86f;
    --text-primary: #fff8e9;
    --text-secondary: #d9c7ad;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden; /* Hide scrollbars for full 3D experience */
}

/* 3D Canvas Background */
#store-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
    cursor: crosshair;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* UI Overlay Layer */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to 3D canvas by default */
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(10, 5, 2, 0.42), inset 0 1px 0 rgba(255, 224, 177, 0.08);
    pointer-events: auto; /* Re-enable clicks for UI elements */
    cursor: default;
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff9e9, #d8b98c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-weight: 500;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.header-action-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
    border-color: rgba(213, 154, 82, 0.55);
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.28), rgba(84, 196, 154, 0.18));
}

.header-action-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}



/* Buttons */
.btn-primary {
    background: var(--accent);
    color: #21150f;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(213, 154, 82, 0.34);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Crosshair */
.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.pointer-locked .crosshair {
    opacity: 1;
}

/* Controls Hint */
.controls-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    user-select: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    cursor: default;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
}

.modal.hidden * {
    pointer-events: none !important;
}

.hidden,
#modal-details-view.hidden,
#modal-trailer-view.hidden,
.case-details.hidden {
    display: none !important;
}

.modal-content {
    width: 90%;
    max-width: 820px;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

.case-details {
    display: flex;
    gap: 2rem;
}

.case-image-placeholder {
    width: 250px;
    height: 375px;
    background: linear-gradient(135deg, #3b2418, #17100c);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}


.case-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#inspection-modal #movie-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tag {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-rating {
    background: rgba(213, 154, 82, 0.18);
    color: #efb86f;
    border: 1px solid rgba(213, 154, 82, 0.45);
    font-weight: 800;
}

.tag-runtime {
    background: rgba(84, 196, 154, 0.12);
    color: #79d8b5;
    border: 1px solid rgba(84, 196, 154, 0.3);
}

.tag-rerelease {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.4), rgba(255, 143, 0, 0.25));
    color: #ffd54f;
    border: 1px solid rgba(255, 179, 0, 0.65);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(255, 143, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.poster-rerelease-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.movie-credits {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.movie-credits p {
    margin: 0;
    color: var(--text-secondary);
}

.movie-credits strong {
    color: #fffaea;
}

#inspection-modal .description {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.social-notes {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--glass-border);
}

.social-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.social-notes-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-badge {
    background: rgba(213, 154, 82, 0.25);
    color: #efb86f;
    border: 1px solid rgba(213, 154, 82, 0.5);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: #efb86f;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    padding: 0;
}

.btn-text-link:hover {
    color: #fffaea;
}

.sticky-notes-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    min-height: 50px;
}

.sticky-note {
    background: #b8895a;
    color: #24170f;
    padding: 0.65rem 0.85rem;
    border-radius: 4px;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Segoe Print', cursive, sans-serif;
    font-size: 0.85rem;
    line-height: 1.35;
    box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.35);
    transform: rotate(var(--rot, -2deg));
    display: inline-block;
    max-width: 220px;
    position: relative;
    border-top: 3px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    word-break: break-word;
}

.sticky-note:hover {
    transform: scale(1.04) rotate(0deg);
    box-shadow: 4px 8px 18px rgba(0, 0, 0, 0.45);
    z-index: 5;
}

.sticky-note.sticker-pink { background: #a66f47; color: #24160f; }
.sticky-note.sticker-blue { background: #8b674c; color: #f8ead8; }
.sticky-note.sticker-green { background: #9a7957; color: #21170f; }
.sticky-note.sticker-orange { background: #c09262; color: #2e1c10; }
.sticky-note.sticker-purple { background: #76513d; color: #f9ead9; }

.sticky-note-author {
    display: block;
    text-align: right;
    font-weight: bold;
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.85;
}

.sticky-note-more-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(213, 154, 82, 0.6);
    color: #fffaea;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s;
    min-height: 70px;
    max-width: 130px;
}

.sticky-note-more-card:hover {
    background: rgba(213, 154, 82, 0.2);
    border-color: #efb86f;
    transform: translateY(-2px);
}

/* Comments Pop-up Modal */
.comments-modal-panel {
    max-width: 580px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 30px 35px;
}

.comments-modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.comments-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent);
}

.comments-modal-subtitle {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comments-modal-list {
    overflow-y: auto;
    max-height: 45vh;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comments-modal-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent);
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comments-modal-item-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fffaea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-modal-item-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.comments-modal-item-date {
    font-size: 0.75rem;
    color: #888;
    align-self: flex-end;
}

.comments-modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.play-btn {
    flex: 2;
}

.actions .btn-secondary {
    flex: 1;
}

@media (max-width: 768px) {
    .case-details {
        flex-direction: column;
    }
    .case-image-placeholder {
        width: 100%;
        height: 200px;
    }
    .social-sidebar, .staff-picks {
        display: none; /* Simplify on small screens */
    }
}

/* --- Loading Screen --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: opacity 0.8s ease-out;
}

.loading-overlay.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    width: 80%;
    max-width: 350px;
}
.loading-content .logo,
.loading-content .loading-text { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
body.home-active:has(.loading-overlay:not(.hidden)) .ui-layer { visibility: hidden; }

.loading-content .logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 5px;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(213, 154, 82, 0.5);
}

#loading-percentage {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Entrance: warm glass, framed genre signs and a wooden VHS shelf. */
body.home-active .ui-layer { overflow-y: auto; pointer-events: auto; padding-block: 36px; }
body.home-active .home-screen { flex-shrink: 0; margin-block: auto; }
body.home-active { background: #21150f; }
body.home-active::before { content: ''; position: fixed; inset: -4px; background: url('assets/home-store-background-current.png') center / cover no-repeat; filter: brightness(.37) blur(3px); pointer-events: none; }
body.home-active #store-canvas { visibility: hidden; }
body.home-active .controls-hint, body.home-active .crosshair { display: none; }
body.home-active .top-bar { display: none; }
body.home-active .top-bar .logo { font-size: 20px; }
.home-screen { width: min(810px, calc(100% - 56px)); margin: 24px auto 20px; pointer-events: auto; text-shadow: 0 2px 4px #180f09; }
.home-screen.hidden, #home-return.hidden, #home-reset.hidden { display: none; }
.contact-dialog { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100% - 32px)); max-height: 90vh; overflow-y: auto; padding: 38px 28px; border: 1px solid #947354; border-radius: 16px; background: linear-gradient(120deg, #493223, #281b14); color: #fff3e3; font-family: var(--font-body); box-shadow: 0 24px 80px #0009; }
.contact-dialog::backdrop { background: #180f09b3; backdrop-filter: blur(4px); }
.contact-dialog h2 { margin: 10px 0 18px; color: #e8c49a; font-family: var(--font-heading); }
.contact-dialog p { color: #d3bfaa; line-height: 1.6; }
.contact-dialog .contact-brand { color: #e5b777; font-size: 13px; letter-spacing: 2px; }
.contact-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff3e3; font-size: 28px; cursor: pointer; }
.contact-close:hover { background: #654b38; }
.contact-close:focus-visible { outline: 2px solid #e8c49a; outline-offset: 2px; }
.home-welcome { text-align: center; }
.home-welcome h2 { color: #ecc18d; font: 700 clamp(25px,3.5vw,36px)/1.2 var(--font-heading); letter-spacing: -.8px; }
.home-welcome p { margin-top: 7px; font-size: clamp(16px,2.2vw,22px); }
.home-features { display: block; margin-top: 32px; }
.home-screen h3 { font: 600 23px/1.3 var(--font-heading); margin-bottom: 9px; }
.daily-card { display: flex; align-items: center; gap: 17px; padding: 12px; border: 1px solid #a58a655c; border-radius: 18px; background: linear-gradient(120deg,#654b38ad,#30281ec9); backdrop-filter: blur(14px); box-shadow: 0 10px 22px #0006,inset 0 1px 1px #dfc6a333; }
.daily-card img { width: 100px; height: 126px; object-fit: cover; border-radius: 8px; }
.daily-card h4 { font: 600 23px/1.13 var(--font-heading); margin-bottom: 15px; }
.daily-card button { padding: 6px 20px; border-radius: 24px; font-size: 14px; }
.daily-pick .daily-card { position: relative; overflow: hidden; gap: 32px; padding: 26px 32px; background: radial-gradient(ellipse at right top, #97642c55, transparent 65%), linear-gradient(120deg, #281d16f0, #493425dd); border-color: #b48a5366; }
.daily-pick .daily-card > img { width: 135px; height: 195px; flex-shrink: 0; border: 1px solid #d6b07c70; box-shadow: 8px 12px 24px #0008; transform: rotate(-3deg); }
.daily-copy { max-width: 560px; }
.daily-eyebrow { display: block; color: #dfb77f; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; margin-bottom: 10px; }
.daily-copy h3 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; color: #fff0d6; }
.daily-meta { font-size: 12px; color: #cfbda7; }
.daily-description { margin: 14px 0 18px; line-height: 1.65; font-size: 14px; color: #e6d9c9; }
.daily-copy button { background: #ddba86; color: #2c1d11; font-weight: 700; text-shadow: none; }
.daily-copy button span { margin-left: 12px; }
.shelf-caption { color: #cdb79b; font-size: 12px; }
.home-movie-title { overflow-wrap: anywhere; }
@media (max-width: 680px) {
    .daily-pick .daily-card { padding: 20px 16px; gap: 20px; }
    .daily-pick .daily-card > img { width: 85px; height: 130px; }
    .daily-description { font-size: 12px; margin: 10px 0; }
    .daily-eyebrow { font-size: 9px; letter-spacing: 1px; }
    .daily-meta { font-size: 11px; }
    .shelf-caption { display: none; }
}
.category-signs { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding-top: 9px; }
.category-signs button { padding: 13px 9px; color: #fff0d3; border: 6px ridge #b28354; border-radius: 3px; background: repeating-linear-gradient(2deg,#683c2510 0px,#b88a5420 2px,#3f211d20 4px),linear-gradient(#78482e,#492718); outline: 2px solid #372115; box-shadow: 0 5px 10px #0008,inset 0 0 0 2px #d6a06b; font: 700 clamp(19px,2.6vw,27px)/1 var(--font-heading); text-shadow: 0 2px 2px #25140c; cursor: pointer; transition: transform .18s, filter .18s; }
.category-signs button:hover, .category-signs button[aria-pressed="true"] { filter: brightness(1.3); transform: translateY(-3px); }
.home-selection { margin-top: 28px; }
.selection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-movies { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 30px; padding: 7px 18px 0; isolation: isolate; }
.home-movies::before { content: ''; position: absolute; z-index: -1; left: -46px; right: -46px; top: 143px; height: 47px; background: repeating-linear-gradient(1deg,#3e251c30 0 2px,#98634420 3px 4px),linear-gradient(#78533e,#4e3024); border-bottom: 12px solid #392219; border-radius: 3px; box-shadow: 0 17px 20px #0007; transform: perspective(450px) rotateX(16deg); }
.home-movie { display: flex; align-items: flex-start; flex-direction: column; text-align: left; color: #fff9ed; font: inherit; background: none; border: 0; cursor: pointer; min-width: 0; }
.home-movie img { height: 140px; width: 98px; max-width: 100%; object-fit: cover; border: 2px solid #3e382e; border-left: 5px ridge #89867a; border-radius: 2px; box-shadow: 5px 7px 8px #0008; transition: transform .2s; }
.home-movie:hover img { transform: translateY(-8px) rotate(-2deg); }
.home-movie-title { margin-top: 14px; font-size: 14px; line-height: 1.3; }
.home-movie-rating { color: #e8be73; font-size: 13px; margin-top: 2px; }
.home-movie-rerelease-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.85), rgba(255, 143, 0, 0.85));
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 200, 100, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.home-empty { grid-column: 1 / -1; padding: 36px 0; }
.home-movies.filtered-shelf { row-gap: 26px; padding-bottom: 18px; }
.home-movies.filtered-shelf::before { display: none; }
.home-hero-actions {
    margin: 18px auto 6px;
    display: flex;
    justify-content: center;
}
.home-hero-explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 32px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #211206;
    background: linear-gradient(135deg, #f7d28c 0%, #e8a946 50%, #d48b26 100%);
    border: 1px solid #ffe8b5;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(212, 139, 38, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}
.home-hero-explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 139, 38, 0.65);
    filter: brightness(1.06);
}
.home-hero-explore-btn:active {
    transform: scale(0.96);
}
.home-hero-explore-btn .hero-explore-icon {
    font-size: 20px;
}
.home-hero-explore-btn .hero-explore-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}
.home-hero-explore-btn:hover .hero-explore-arrow {
    transform: translateX(4px);
}
.explore-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 16px;
    padding: 12px 28px;
    min-height: 48px;
    background: linear-gradient(135deg, rgba(46, 29, 18, 0.95), rgba(72, 45, 27, 0.92));
    border: 1px solid rgba(229, 183, 119, 0.55);
    border-radius: 24px;
    color: #fff2db;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}
.explore-store:hover {
    background: linear-gradient(135deg, rgba(62, 39, 24, 0.98), rgba(92, 58, 35, 0.95));
    border-color: #ffd285;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 183, 119, 0.35);
}
.explore-store:active {
    transform: scale(0.96);
}
.explore-store span { margin-left: 4px; }
.header-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
#home-return { pointer-events: auto; white-space: nowrap; }
.home-screen button:focus-visible { outline: 2px solid #ffd79d; outline-offset: 5px; }
@media (min-width: 1300px) { .home-screen { width: 960px; margin-top: 5vh; } .home-features { gap: 70px; } .home-selection { margin-top: 40px; } .home-movie img { height: 180px; width: 125px; } .home-movies::before { top: 183px; } }
@media (max-width: 680px) { body.home-active .top-bar { padding: 15px 12px; } body.home-active .top-bar .logo { font-size: 16px; max-width: 145px; } .user-status > div { display: none !important; } .user-status { gap: 6px !important; } .header-action-btn { padding: 7px; } .home-screen { width: calc(100% - 36px); margin-top: 20px; } .home-features { grid-template-columns: 1fr; gap: 24px; } .home-movies { gap: 20px; overflow-x: auto; grid-template-columns: repeat(5,110px); padding: 10px 5px 15px; } .home-movies::before { left: 0; right: auto; width: 650px; } .home-screen h3 { font-size: 21px; } .category-signs { gap: 16px; } .home-selection { margin-top: 25px; } .explore-store { margin-top: 16px; width: 100%; max-width: 280px; } .home-hero-explore-btn { width: 100%; max-width: 300px; } }

/* Hide main UI initially */
.ui-layer {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.ui-layer.visible {
    opacity: 1;
}

/* ==========================================================
   Trailer Player View (Inside Movie Details Modal)
   ========================================================== */
.trailer-view {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    animation: fadeInTrailer 0.3s ease;
}

@keyframes fadeInTrailer {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.trailer-view.hidden {
    display: none !important;
}

.trailer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

.trailer-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trailer-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    margin: 0;
    color: #fffaea;
    letter-spacing: 0.5px;
}

.btn-close-trailer {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fffaea;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-close-trailer:hover {
    background: rgba(213, 154, 82, 0.25);
    border-color: #efb86f;
    color: #fff;
    transform: translateY(-1px);
}

.trailer-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.trailer-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

.trailer-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b140e 0%, #0a0705 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #efb86f;
    font-family: var(--font-heading);
    font-size: 1rem;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.trailer-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.trailer-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(239, 184, 111, 0.2);
    border-top-color: #efb86f;
    border-radius: 50%;
    animation: trailerSpin 0.9s linear infinite;
    box-shadow: 0 0 15px rgba(213, 154, 82, 0.3);
}

@keyframes trailerSpin {
    to { transform: rotate(360deg); }
}

.trailer-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trailer-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trailer-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .trailer-actions {
        flex-direction: column;
    }
    .trailer-title-group h2 {
        font-size: 1.4rem;
    }
}

.trailer-not-found {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b140e 0%, #0a0705 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.5rem;
    text-align: center;
    color: #fffaea;
    z-index: 3;
}

.trailer-not-found p {
    margin: 0;
    font-size: 1rem;
    color: #d1b89d;
    max-width: 440px;
    line-height: 1.4;
}

.trailer-not-found.hidden {
    display: none !important;
}

/* =========================================================
   Catalog & Trailer Guard Modal Styles
   ========================================================= */
.guard-modal-panel {
    max-width: 780px;
    width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(18, 14, 11, 0.94);
    border: 1px solid rgba(213, 154, 82, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(213, 154, 82, 0.15);
    border-radius: 14px;
}

.guard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.guard-title-group h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.guard-subtitle {
    margin: 6px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.badge-healthy {
    background: rgba(0, 223, 137, 0.15);
    color: #00df89;
    border: 1px solid rgba(0, 223, 137, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.badge-warning {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.guard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .guard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guard-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guard-stat-card .stat-icon {
    font-size: 1.8rem;
}

.guard-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.guard-stat-card .stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.guard-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guard-stat-card .stat-sublabel {
    font-size: 0.72rem;
    color: #ffaa00;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.guard-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.guard-actions-bar button {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent {
    background: linear-gradient(135deg, #ff8c00, #e52d27);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 45, 39, 0.3);
}

.btn-accent:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-accent:disabled, .guard-actions-bar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.guard-progress-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guard-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.guard-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00df89, #00f0ff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#guard-progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.guard-console-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 180px;
    max-height: 250px;
}

.guard-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.guard-console-header h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guard-console-log {
    background: #0d0a08;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guard-console-log p {
    margin: 0;
    word-break: break-word;
}

.guard-console-log .log-info { color: #8cd4ff; }
.guard-console-log .log-success { color: #00df89; }
.guard-console-log .log-warn { color: #ffaa00; }
.guard-console-log .log-error { color: #ff4a6a; }
.guard-console-log .log-fixed { color: #d4a5ff; }

/* ==========================================================================
   FilmArşivi User Auth & Retro Video Club Membership System
   ========================================================================== */

/* Header Member Badge */
.btn-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.25) 0%, rgba(33, 21, 15, 0.8) 100%);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-member-badge:hover {
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.45) 0%, rgba(50, 30, 20, 0.9) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(213, 154, 82, 0.35);
}

.member-badge-chip {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.member-badge-name {
    color: #fff8e9;
    font-weight: 700;
}

.member-badge-no {
    color: var(--accent);
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(213, 154, 82, 0.4);
}

/* ==========================================================================
   Dedicated Personal Library Screen (Ayrı Kişisel Kütüphane Ekranı)
   ========================================================================== */

.library-screen {
    width: min(1080px, calc(100% - 48px));
    margin: 20px auto 40px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: libFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.library-screen.hidden {
    display: none !important;
}

@keyframes libFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Panel */
.library-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    gap: 16px;
    flex-wrap: wrap;
    border-color: rgba(213, 154, 82, 0.4);
    background: linear-gradient(135deg, rgba(35, 23, 18, 0.9) 0%, rgba(20, 13, 9, 0.95) 100%);
}

.library-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#btn-library-back {
    width: auto;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border-color: rgba(213, 154, 82, 0.5);
    background: rgba(213, 154, 82, 0.12);
    color: #fff8e9;
    transition: all 0.2s ease;
}

#btn-library-back:hover {
    background: rgba(213, 154, 82, 0.28);
    transform: translateX(-3px);
}

.library-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fffaea;
    margin: 0;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.library-subtitle {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.library-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(213, 154, 82, 0.35);
    padding: 6px 14px;
    border-radius: 24px;
}

.user-chip-avatar {
    font-size: 1.3rem;
}

.user-chip-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-chip-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff8e9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-chip-no {
    font-family: 'Consolas', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

/* Stats Cards Grid */
.library-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lib-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(24, 17, 13, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.lib-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(45, 30, 22, 0.85);
    box-shadow: 0 8px 20px rgba(213, 154, 82, 0.25);
}

.lib-stat-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.22) 0%, rgba(35, 23, 18, 0.85) 100%);
    box-shadow: 0 4px 16px rgba(213, 154, 82, 0.3);
}

.lib-stat-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lib-stat-info {
    display: flex;
    flex-direction: column;
}

.lib-stat-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fffaea;
    line-height: 1.1;
}

.lib-stat-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

/* Controls Bar: Tabs & Search */
.library-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    flex-wrap: wrap;
}

.library-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lib-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
}

.lib-tab-btn:hover {
    background: rgba(213, 154, 82, 0.15);
    border-color: var(--accent);
    color: #fff8e9;
    transform: translateY(-1px);
}

.lib-tab-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #b37833 100%);
    color: #1a0f08;
    border-color: #ffd285;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(213, 154, 82, 0.35);
}

.library-search-box {
    min-width: 260px;
    flex: 1;
    max-width: 380px;
}

.library-search-box input {
    width: 100%;
    padding: 9px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(213, 154, 82, 0.3);
    border-radius: 20px;
    color: #fff8e9;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.library-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(213, 154, 82, 0.3);
}

.library-search-box input::placeholder {
    color: rgba(255, 248, 233, 0.45);
}

/* Movie Grid */
.library-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 24px;
    width: 100%;
}

.lib-movie-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 13, 9, 0.75);
    border: 1px solid rgba(213, 154, 82, 0.22);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    position: relative;
}

.lib-movie-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(213, 154, 82, 0.3);
}

.lib-movie-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #0f0a07;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.lib-movie-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lib-movie-card:hover .lib-movie-poster-wrap img {
    transform: scale(1.04);
}

.lib-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(18, 11, 7, 0.9);
    border: 1px solid #ffd285;
    color: #ffd285;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-family: var(--font-heading);
}

.lib-status-tags {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lib-tag-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.lib-tag-pill.watchlist {
    background: rgba(213, 154, 82, 0.92);
    color: #1a0f08;
}

.lib-tag-pill.watched {
    background: rgba(84, 196, 154, 0.92);
    color: #0b241b;
}

.lib-tag-pill.favorite {
    background: rgba(255, 74, 106, 0.92);
    color: #fff;
}

.lib-movie-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lib-movie-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #fffaea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lib-movie-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lib-movie-user-note {
    background: #e4bc83;
    color: #24170f;
    font-family: 'Comic Sans MS', 'Segoe Print', cursive, sans-serif;
    font-size: 0.76rem;
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 1.3;
    margin-top: 4px;
    border-left: 3px solid #9e6f3b;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Empty State */
.library-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: rgba(24, 17, 13, 0.5);
    border: 1px dashed rgba(213, 154, 82, 0.35);
    border-radius: 16px;
    gap: 12px;
}

.library-empty-state.hidden {
    display: none !important;
}

.library-empty-state .empty-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.library-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fffaea;
    margin: 0;
}

.library-empty-state p {
    color: var(--text-secondary);
    max-width: 460px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

#btn-library-discover {
    width: auto;
    padding: 10px 24px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .library-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .library-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .library-search-box {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .library-screen {
        width: calc(100% - 24px);
    }
    .library-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lib-stat-card {
        padding: 10px 12px;
    }
    .lib-stat-icon {
        font-size: 1.4rem;
    }
    .lib-stat-val {
        font-size: 1.2rem;
    }
    .library-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Inspection Modal: Personal Library Actions */
.user-library-card {
    background: rgba(15, 10, 8, 0.6);
    border: 1px solid rgba(213, 154, 82, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-library-actions {
    display: flex;
    gap: 10px;
}

.btn-lib-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lib-action:hover {
    background: rgba(213, 154, 82, 0.15);
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-lib-action.active {
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.3) 0%, rgba(84, 196, 154, 0.2) 100%);
    border-color: var(--accent);
    color: #fff8e9;
    box-shadow: 0 0 10px rgba(213, 154, 82, 0.25);
}

.btn-lib-action.active#btn-lib-watchlist {
    border-color: #ffd285;
    background: rgba(213, 154, 82, 0.25);
}

.btn-lib-action.active#btn-lib-watched {
    border-color: var(--accent-secondary);
    background: rgba(84, 196, 154, 0.25);
}

.btn-lib-action.active#btn-lib-favorite {
    border-color: #ff4a6a;
    background: rgba(255, 74, 106, 0.25);
}

.btn-lib-action .lib-icon {
    font-size: 1rem;
}

/* User Rating & Personal Note */
.user-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.user-rating-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-rating-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.user-star-rating {
    display: inline-flex;
    gap: 2px;
    cursor: pointer;
}

.user-star-rating span {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.user-star-rating span.hover,
.user-star-rating span.active {
    color: #ffaa00;
    transform: scale(1.15);
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.5);
}

.user-rating-val {
    font-size: 0.85rem;
    font-family: 'Consolas', monospace;
    color: #ffaa00;
    font-weight: bold;
    min-width: 42px;
}

.user-personal-note-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.user-personal-note-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.user-personal-note-box input:focus {
    border-color: var(--accent);
}

.user-personal-note-box button {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Auth Modal Styles */
.auth-modal-panel {
    max-width: 450px;
    width: 90%;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(213, 154, 82, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(213, 154, 82, 0.15);
}

.auth-header {
    margin-bottom: 20px;
}

.auth-icon-badge {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--accent);
    color: #1a0f08;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(213, 154, 82, 0.4);
}

.auth-error-msg {
    background: rgba(213, 154, 82, 0.12);
    border: 1px solid rgba(213, 154, 82, 0.35);
    color: #f7dfbe;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(213, 154, 82, 0.08);
}

.auth-error-msg.is-error {
    background: rgba(213, 82, 82, 0.14);
    border: 1px solid rgba(213, 82, 82, 0.4);
    color: #ffb3b8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(213, 82, 82, 0.08);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(213, 154, 82, 0.25);
}

.auth-submit-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.auth-switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.auth-switch-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

/* Membership Card Modal & 90s Plastic Card Layout */
.card-modal-panel {
    max-width: 520px;
    width: 92%;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(213, 154, 82, 0.4);
}

.card-modal-header {
    margin-bottom: 20px;
}

.card-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-modal-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Realistic 90s Video Store Plastic Membership Card */
.retro-plastic-card {
    position: relative;
    background: linear-gradient(145deg, #1f1712 0%, #120c09 60%, #291a11 100%);
    border: 2px solid rgba(213, 154, 82, 0.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(213, 154, 82, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    text-align: left;
}

.card-magstripe {
    height: 38px;
    background: linear-gradient(180deg, #100a06 0%, #050302 50%, #150d09 100%);
    border-bottom: 1px solid rgba(213, 154, 82, 0.3);
    position: relative;
}

.card-magstripe::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.card-body {
    padding: 18px 22px;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-brand {
    display: flex;
    flex-direction: column;
}

.card-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff8e9;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.card-edition {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-hologram {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #00f0ff 0%, #ff2a6d 50%, #ffcc00 100%);
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: #1a0f08;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.card-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.card-embossed-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff8e9;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 1px #d59a52;
}

.card-embossed-no {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffd285;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(213, 154, 82, 0.4);
}

.card-stats-row {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.card-stat .stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff8e9;
    font-family: 'Outfit', sans-serif;
}

.card-stat .stat-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.card-since {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.card-barcode-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.card-barcode-lines {
    width: 130px;
    height: 22px;
    background: repeating-linear-gradient(
        90deg,
        #fff8e9,
        #fff8e9 2px,
        transparent 2px,
        transparent 4px,
        #fff8e9 4px,
        #fff8e9 5px,
        transparent 5px,
        transparent 7px,
        #fff8e9 7px,
        #fff8e9 10px,
        transparent 10px,
        transparent 12px
    );
    opacity: 0.85;
}

.card-barcode-text {
    font-family: 'Consolas', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 2px;
}

.card-actions-row {
    display: flex;
    gap: 12px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    background: rgba(24, 17, 13, 0.95);
    border: 1px solid var(--accent);
    color: #fff8e9;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(213, 154, 82, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    animation: toastSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast-message.toast-fade-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Coffee tones for the loading screen text. */
.loading-content .logo {
    background: linear-gradient(135deg, #cfad87, #a77b53);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loading-content .loading-text { color: #c3a180; }
.loading-content #loading-percentage { color: #b98d63; }
.recommendation-kiosk {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(760px, calc(100% - 32px));
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    color: #fff3e3;
    background: #3b291e;
    border: 1px solid #947354;
    border-radius: 16px;
    box-shadow: 0 24px 90px #0009;
    font-family: var(--font-body);
}
.recommendation-kiosk::backdrop { background: #0008; backdrop-filter: blur(4px); }
.kiosk-close { position: absolute; top: 10px; right: 16px; background: none; border: 0; color: #fff3e3; font-size: 30px; cursor: pointer; }
.kiosk-brand { color: #e5b777; margin-bottom: 12px; }
.recommendation-kiosk h2 { font: 700 26px var(--font-heading); margin-bottom: 24px; }
.recommendation-kiosk label { display: grid; gap: 8px; margin-bottom: 16px; }
.recommendation-kiosk select, .recommendation-kiosk textarea { width: 100%; padding: 12px; color: #fff3e3; background: #281b13; border: 1px solid #947354; border-radius: 8px; font: inherit; }
.recommendation-kiosk textarea { resize: vertical; }
.recommendation-kiosk :focus-visible { outline: 2px solid #e8c49a; outline-offset: 3px; }
.kiosk-summary { margin: 22px 0 14px; line-height: 1.5; color: #d3bfaa; }
.kiosk-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kiosk-movie { display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: left; background: #281b13; border: 1px solid #947354; border-radius: 10px; color: #fff3e3; cursor: pointer; font: inherit; }
.kiosk-movie:hover { border-color: #e8c49a; }
.kiosk-movie img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
.kiosk-movie span { color: #e5b777; font-size: 13px; }
.kiosk-movie small { color: #d3bfaa; line-height: 1.4; }
@media (max-width: 540px) { .recommendation-kiosk { padding: 28px 18px; } .kiosk-results { grid-template-columns: 1fr; } .kiosk-movie img { max-height: 210px; } }

.comment-composer { max-width: 520px; }
.comment-composer .comment-film { color: #e5b777; margin-bottom: 20px; }
.comment-composer input { width: 100%; padding: 12px; background: #0c141c; color: #fff; border: 1px solid #61717a; border-radius: 8px; font: inherit; }
.comment-composer .comment-author[hidden] { display: none; }
.comment-feedback { margin: 12px 0; color: #e5b777; }

/* Compact corner launcher for the store navigation. */
.store-menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: #396d94;
    color: #fff;
    box-shadow: 0 4px 16px #0004;
    cursor: pointer;
    pointer-events: auto;
}
.store-menu-toggle { left: 16px; right: auto; background: transparent; border: none; box-shadow: none; color: #795035; }
.store-menu-toggle:hover, .store-menu-toggle[aria-expanded="true"] { background: transparent; color: #583721; }
.store-menu-toggle:focus-visible { outline: 3px solid #efb86f; outline-offset: 3px; }
.store-random-movie {
    position: fixed;
    top: 16px;
    left: 72px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: transparent;
    border-color: transparent;
    pointer-events: auto;
}
.store-random-movie:hover { background: transparent; }
.store-random-movie { color: #795035; }
.store-random-movie > span { filter: sepia(1) saturate(1.8) brightness(0.6); transition: filter 0.2s ease; }
.store-random-movie:hover > span { filter: sepia(1) saturate(1.8) brightness(0.48); }
.store-random-movie:focus-visible { outline: 3px solid #efb86f; outline-offset: 3px; }
body.home-active .store-menu-toggle,
body.home-active .store-random-movie { display: none; }
#store-menu {
    display: none;
    position: fixed;
    inset: 76px auto auto 16px;
    width: min(200px, calc(100vw - 32px));
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    margin: 0;
    padding: 12px 6px;
    color: #e4d3bd;
    background: rgba(40, 26, 18, 0.97);
    border: 1px solid rgba(180, 145, 105, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: none;
}
#store-menu:popover-open { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
#store-menu .header-brand { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
#store-menu .logo { text-align: center; background: none; color: #d7b58c; -webkit-text-fill-color: #d7b58c; }
#store-menu .user-status { flex-direction: column; align-items: stretch !important; gap: 18px !important; }
#store-menu button { min-height: 60px; background: rgba(180, 145, 105, 0.1); color: #e4d3bd; box-shadow: none; border-color: transparent; text-shadow: none; }
#store-menu button:hover { background: rgba(180, 145, 105, 0.22); }
#store-menu .user-status > button { width: 100%; text-align: left; }
#store-menu #auth-status-container { display: flex !important; order: -1; padding-bottom: 14px; border-bottom: 1px solid rgba(180, 145, 105, 0.2); }
#store-menu .member-badge-name { color: #e4d3bd; }
#store-menu .member-badge-no { color: #d7b58c; background: rgba(180, 145, 105, 0.12); border-color: rgba(180, 145, 105, 0.25); }
#store-menu #auth-status-container > button,
#store-menu .user-badge-container,
#store-menu .btn-member-badge { width: 100%; }



/* ==========================================================================
   Home Screen Top Navigation (Library, Contact, Auth)
   ========================================================================== */
.home-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.home-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 26, 18, 0.85);
    border: 1px solid rgba(213, 154, 82, 0.35);
    color: #f5e8d5;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.home-nav-btn:hover {
    background: rgba(213, 154, 82, 0.25);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(213, 154, 82, 0.25);
}

.home-nav-btn-primary {
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.35) 0%, rgba(150, 90, 40, 0.45) 100%);
    border-color: #ffd285;
    color: #ffd285;
    font-weight: 700;
}

.home-nav-btn-primary:hover {
    background: linear-gradient(135deg, rgba(213, 154, 82, 0.6) 0%, rgba(150, 90, 40, 0.7) 100%);
    border-color: #fff1c5;
    color: #fff;
}





/* ==========================================================================
   Contact Dialog - Social Media & Email Styling
   ========================================================================== */
.contact-intro {
    font-size: 0.9rem;
    color: #d3bfaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-subheading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #ffd285;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 18px 0 10px 0;
    text-align: left;
}

/* Sosyal medya bölümü gizlendi (Tekrar açmak için aşağıdaki 'display: none !important;' satırını kaldırabilirsiniz) */
.contact-social-list {
    display: none !important;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.contact-social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: rgba(20, 13, 9, 0.65);
    border: 1px solid rgba(213, 154, 82, 0.25);
    border-radius: 12px;
    text-decoration: none;
    color: #fff3e3;
    transition: all 0.22s ease;
}

.contact-social-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    background: rgba(30, 20, 14, 0.9);
}

.contact-social-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-social-badge.yt {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.contact-social-badge.ig {
    background: linear-gradient(135deg, rgba(245, 133, 41, 0.2), rgba(221, 42, 123, 0.2));
    color: #ff6ba8;
    border: 1px solid rgba(221, 42, 123, 0.35);
}

.contact-social-badge.tt {
    background: rgba(37, 244, 238, 0.12);
    color: #25f4ee;
    border: 1px solid rgba(37, 244, 238, 0.3);
}

.contact-social-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.contact-social-text strong {
    font-size: 0.94rem;
    color: #fff8e9;
}

.contact-handle {
    font-size: 0.78rem;
    color: var(--accent);
    font-family: 'Consolas', monospace;
}

.contact-ext-icon {
    font-size: 1.1rem;
    color: #8e7c70;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-social-card:hover .contact-ext-icon {
    color: #ffd285;
    transform: translate(2px, -2px);
}

.contact-email-section {
    margin-top: 16px;
    text-align: left;
}

.contact-email-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(213, 154, 82, 0.1);
    border: 1px dashed rgba(213, 154, 82, 0.4);
    border-radius: 12px;
    text-decoration: none;
    color: #fff3e3;
    transition: all 0.22s ease;
}

.contact-email-box:hover {
    background: rgba(213, 154, 82, 0.18);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-email-icon {
    font-size: 1.5rem;
}

.contact-email-text {
    display: flex;
    flex-direction: column;
}

.contact-email-text strong {
    font-size: 0.94rem;
    color: #ffd285;
}

.contact-email-text span {
    font-size: 0.78rem;
    color: #bcaaa0;
}

/* ==========================================================================
   Mobile 3D Touch Navigation & Controls (BingeBrowse Style)
   ========================================================================== */

/* Quick Home Return Button (visible in 3D store view) */
.store-quick-home {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto !important;
    width: auto !important;
    max-width: max-content !important;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f3dfca;
    background: rgba(35, 22, 14, 0.92);
    border: 1px solid rgba(229, 183, 119, 0.4);
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    pointer-events: auto;
    z-index: 110;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.store-quick-home:hover {
    background: rgba(229, 183, 119, 0.2);
    border-color: #e5b777;
    color: #fff;
    transform: translateY(-1px);
}

.store-quick-home:active {
    transform: scale(0.96);
}

body.home-active .store-quick-home,
body:has(#library-screen:not(.hidden)) .store-quick-home {
    display: none !important;
}

/* Mobile 3D Navigation Bar */
.mobile-3d-bar {
    display: none;
}

@media (max-width: 900px), (pointer: coarse) {
    /* Hide desktop crosshair on touch screens */
    .crosshair {
        display: none !important;
    }

    /* Controls hint adjustments for mobile */
    .controls-hint {
        bottom: 110px;
        font-size: 0.76rem;
        padding: 0.5rem 1rem;
        width: min(92vw, 420px);
        text-align: center;
        border-radius: 20px;
        background: rgba(25, 16, 10, 0.88);
        border-color: rgba(229, 183, 119, 0.3);
    }

    .mobile-3d-bar {
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 20px);
        max-width: 520px;
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 8px;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* Automatically hide mobile 3D bar when modal, home, dialog, or library is active */
    body.home-active .mobile-3d-bar,
    body:has(.modal:not(.hidden)) .mobile-3d-bar,
    body:has(dialog[open]) .mobile-3d-bar,
    body:has(#library-screen:not(.hidden)) .mobile-3d-bar {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate(-50%, 25px) !important;
    }

    .mobile-shelf-container {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(26, 17, 11, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(229, 183, 119, 0.32);
        border-radius: 24px;
        padding: 5px 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        pointer-events: auto;
    }

    .mobile-shelf-title {
        font-size: 0.76rem;
        font-weight: 700;
        color: #e5b777;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-shelf-pills {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        padding: 2px 0;
    }

    .mobile-shelf-pills::-webkit-scrollbar {
        display: none;
    }

    .mobile-shelf-pill {
        background: rgba(229, 183, 119, 0.12);
        border: 1px solid rgba(229, 183, 119, 0.25);
        color: #f3dfca;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 5px 12px;
        border-radius: 16px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.15s ease;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-shelf-pill:active,
    .mobile-shelf-pill.active {
        background: #e5b777;
        color: #1a100a;
        border-color: #e5b777;
        transform: scale(0.96);
    }

    .mobile-control-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        pointer-events: none;
    }

    .btn-mobile-ctrl {
        pointer-events: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(26, 17, 11, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(229, 183, 119, 0.38);
        border-radius: 20px;
        padding: 7px 18px;
        color: #f3dfca;
        font-size: 0.84rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.15s ease;
    }

    .btn-mobile-ctrl:active {
        background: #e5b777;
        color: #1a100a;
        border-color: #e5b777;
        transform: scale(0.95);
    }

    .ctrl-icon {
        font-size: 1.05rem;
    }
}


