@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;800&family=Michroma&display=swap');

:root {
    --bg-color: #050505;
    --neon-primary: #FFD000;    /* Industrial Yellow */
    --neon-secondary: #ffffff;  /* White */
    --neon-alert: #ff3333;      /* Red */
    --card-width: 160px;
    --card-height: 240px;
    --font-tech: 'Michroma', sans-serif;
    --font-main: 'Barlow', sans-serif;
    --tech-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* BRAND COLORS */
    --trakt-red: #ED1C24;
    --lb-green: #00E054;
    --lb-dark: #14181C;
}

body {
    margin: 0; background-color: var(--bg-color); color: white;
    font-family: var(--font-main); overflow: hidden;
    height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center;
    letter-spacing: 0.5px;
}

.background-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #111 0%, #000 90%); z-index: -10;
}

.ui-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 100;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

#main-header { position: absolute; top: 3vh; transition: opacity 0.5s; }
h1 { 
    font-family: var(--font-tech); font-size: 1.8rem; margin: 0; 
    text-transform: uppercase; letter-spacing: 2px; color: white;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.2); 
}
.neon-text { color: var(--neon-primary); text-shadow: 0 0 15px var(--neon-primary); }

/* --- INITIAL LOADER --- */
.initial-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 10000; /* Highest priority */
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.initial-loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }

.loader-status {
    font-family: var(--font-tech);
    color: #666; font-size: 0.7rem; letter-spacing: 2px;
    margin-top: 10px;
    animation: blink 1s infinite;
}

.tech-loader-line {
    width: 0%; height: 2px;
    background: var(--neon-primary);
    margin: 10px auto;
    box-shadow: 0 0 10px var(--neon-primary);
    animation: loadLine 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loadLine { 0% { width: 0%; } 100% { width: 100px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- LEFT SIDEBAR (WEEKLY MOVIE) --- */
.weekly-panel {
    position: fixed; left: 30px; top: 50%; transform: translateY(-50%);
    width: 200px; pointer-events: auto; z-index: 50;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
}

.tech-label-centered {
    font-family: var(--font-tech); color: var(--neon-primary); font-size: 0.9rem;
    text-transform: uppercase; border-bottom: 2px solid var(--neon-primary);
    padding-bottom: 8px; margin-bottom: 15px; text-align: center; width: 100%;
    letter-spacing: 1px;
}

.weekly-poster-frame {
    width: 160px; height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; position: relative;
    overflow: hidden;
}
.weekly-poster { width: 100%; height: 100%; object-fit: cover; }

/* ANIMATIONS */
.weekly-poster.animate-reveal { animation: hologramIn 1s ease-out forwards; }
@keyframes hologramIn {
    0% { opacity: 0; transform: scale(1.1); filter: blur(10px) brightness(2) hue-rotate(180deg); }
    100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1) hue-rotate(0deg); }
}

.weekly-poster.animate-destroy { animation: destroyGlitch 0.6s steps(5) forwards; }
@keyframes destroyGlitch {
    0% { transform: translate(0); filter: none; }
    20% { transform: translate(-5px, 5px); filter: sepia(1) saturate(5) hue-rotate(-50deg); opacity: 0.8;}
    40% { transform: translate(5px, -5px); filter: invert(1); opacity: 0.6; }
    60% { opacity: 0.4; transform: scale(1.1) skewX(20deg); }
    100% { opacity: 0; transform: scale(0); }
}

.weekly-placeholder {
    color: #555; font-family: var(--font-tech); font-size: 0.7rem; text-align: center;
    position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 2px, transparent 2px, transparent 4px);
    animation: scanlineMove 10s linear infinite;
}
@keyframes scanlineMove { from { background-position: 0 0; } to { background-position: 0 100%; } }

#weekly-title {
    font-family: var(--font-tech); font-size: 1.1rem; color: var(--neon-primary);
    text-transform: uppercase; line-height: 1.2; margin-top: 5px; text-align: center;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
}

.btn-override {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--neon-alert); color: var(--neon-alert);
    font-family: var(--font-tech); font-size: 0.6rem; padding: 8px 12px; cursor: pointer;
    text-transform: uppercase; transition: 0.2s var(--tech-ease); margin-top: 5px;
    letter-spacing: 1px;
}
.btn-override:hover { background: var(--neon-alert); color: black; box-shadow: 0 0 15px var(--neon-alert); }

/* --- SIDEBARS --- */
.history-sidebar, .sidebar, .movie-list-sidebar {
    position: fixed; top: 0; height: 100vh;
    background: rgba(10, 10, 10, 0.98); 
    transition: transform 0.4s var(--tech-ease), opacity 0.3s ease;
    z-index: 600; display: flex; flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Left Sidebars */
.history-sidebar, .movie-list-sidebar {
    left: 0; width: 320px;
    border-right: 2px solid var(--neon-primary);
    transform: translateX(-110%); opacity: 0;
}
/* Right Sidebar */
.sidebar {
    right: 0; width: 320px;
    border-left: 2px solid var(--neon-primary);
    transform: translateX(110%); opacity: 0;
}

.history-sidebar.active, .sidebar.active, .movie-list-sidebar.active { transform: translateX(0); opacity: 1; }

/* Content Areas */
.history-content, .sidebar-content, .movie-list-content {
    padding: 2rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}

.history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #222; font-size: 0.8rem; color: #aaa;
    transition: 0.2s;
}
.history-item:hover { color: #fff; padding-left: 5px; }
.history-item.weekly-highlight { color: var(--neon-primary); font-weight: bold; }

/* MOVIE FULL LIST STYLES */
.movie-list-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 10px; 
    border-bottom: 1px solid #222; 
    font-size: 0.85rem; 
    color: #aaa;
    transition: 0.2s; 
    position: relative;
}
.movie-list-item:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: white; 
}

/* Movie Title & Year Group */
.movie-info-group { 
    display: flex; 
    flex-direction: column; 
    gap: 2px;
    max-width: 60%; 
}

.movie-list-title {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.movie-list-year { 
    font-size: 0.7rem; 
    color: #666; 
    font-family: var(--font-tech);
}

/* Icons Container */
.movie-link-icons { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

/* The Icons */
.link-icon-img {
    width: 20px; 
    height: 20px; 
    object-fit: contain;
    opacity: 0.6;
    transition: 0.2s;
    filter: grayscale(100%);
}

.movie-list-item:hover .link-icon-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Footer Close Button */
.close-btn-footer {
    height: 70px; width: 100%; flex-shrink: 0;
    background: rgba(255, 208, 0, 0.05); border: none; 
    border-top: 2px solid var(--neon-primary); color: var(--neon-primary); 
    font-family: var(--font-tech); font-size: 2.5rem; line-height: 1;
    cursor: pointer; transition: 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.close-btn-footer:hover { background: var(--neon-primary); color: black; text-shadow: none; }

/* --- TECH BUTTONS (Unified) --- */
.tech-border-btn {
    position: relative; border: none;
    background: rgba(0,0,0,0.8); color: var(--neon-primary);
    font-family: var(--font-tech); text-transform: uppercase; cursor: pointer;
    transition: all 0.2s var(--tech-ease); backdrop-filter: blur(10px);
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.tech-border-btn::before, .tech-border-btn::after {
    content: ''; position: absolute; left: 50%;
    width: 70%; height: 2px; background: var(--neon-primary);
    transform: translateX(-50%); transition: width 0.3s var(--tech-ease), box-shadow 0.3s ease;
}
.tech-border-btn::before { top: 0; }
.tech-border-btn::after { bottom: 0; }

.tech-border-btn:hover { 
    background: rgba(255, 208, 0, 0.05); color: white; text-shadow: 0 0 10px var(--neon-primary); 
}
.tech-border-btn:hover::before, .tech-border-btn:hover::after { width: 100%; box-shadow: 0 0 15px var(--neon-primary); }

/* --- THEMED BUTTONS (Trakt & LB) --- */
.btn-trakt, .btn-lb {
    display: block; position: relative; border: none;
    background: rgba(0,0,0,0.8); 
    font-family: var(--font-tech); text-transform: uppercase; cursor: pointer;
    transition: all 0.2s var(--tech-ease); backdrop-filter: blur(10px);
    letter-spacing: 1px; text-decoration: none; text-align: center;
    padding: 12px; font-size: 0.75rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    margin-bottom: 10px;
}
/* Trakt Theme */
.btn-trakt { color: var(--trakt-red); }
.btn-trakt::before, .btn-trakt::after {
    content: ''; position: absolute; left: 50%;
    width: 70%; height: 2px; background: var(--trakt-red);
    transform: translateX(-50%); transition: width 0.3s var(--tech-ease), box-shadow 0.3s ease;
}
.btn-trakt::before { top: 0; }
.btn-trakt::after { bottom: 0; }
.btn-trakt:hover { background: rgba(237, 28, 36, 0.1); color: white; text-shadow: 0 0 10px var(--trakt-red); }
.btn-trakt:hover::before, .btn-trakt:hover::after { width: 100%; box-shadow: 0 0 15px var(--trakt-red); }

/* LB Theme */
.btn-lb { color: var(--lb-green); }
.btn-lb::before, .btn-lb::after {
    content: ''; position: absolute; left: 50%;
    width: 70%; height: 2px; background: var(--lb-green);
    transform: translateX(-50%); transition: width 0.3s var(--tech-ease), box-shadow 0.3s ease;
}
.btn-lb::before { top: 0; }
.btn-lb::after { bottom: 0; }
.btn-lb:hover { background: rgba(0, 224, 84, 0.1); color: white; text-shadow: 0 0 10px var(--lb-green); }
.btn-lb:hover::before, .btn-lb:hover::after { width: 100%; box-shadow: 0 0 15px var(--lb-green); }


/* --- BUTTON POSITIONS --- */
.bottom-left-controls {
    position: fixed; bottom: 30px; left: 30px;
    display: flex; gap: 10px; z-index: 60; pointer-events: auto;
}
.bottom-left-controls button { padding: 12px 20px; font-size: 0.7rem; }

.top-left-controls {
    position: fixed; top: 30px; left: 30px;
    z-index: 60; pointer-events: auto;
}

.btn-result-toggle {
    position: fixed; bottom: 30px; right: 30px;
    padding: 12px 20px; font-size: 0.7rem; z-index: 60; pointer-events: auto;
    animation: techReveal 0.6s var(--tech-ease) forwards;
}
@keyframes techReveal { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- START / AGANE BUTTON --- */
#controls { 
    pointer-events: auto; position: absolute; 
    top: 50%; transform: translateY(-50%);
    left: calc(50% + 140px); right: auto;
    transition: opacity 0.5s var(--tech-ease);
    z-index: 9999; /* Ensure Clickable */
}

button.start-btn {
    padding: 1.5rem 2.5rem; font-size: 1.2rem; font-weight: 900;
    width: 220px; text-align: center;
}

/* --- LOADING BAR --- */
.loading-wrapper { margin-top: 45vh; width: 200px; text-align: center; pointer-events: auto; }
.loading-text { font-family: var(--font-tech); color: var(--neon-primary); font-size: 0.6rem; margin-bottom: 8px; letter-spacing: 2px; }
.progress-bar-container { width: 100%; height: 3px; background: rgba(255, 255, 255, 0.1); }
.progress-bar { width: 0%; height: 100%; background: var(--neon-primary); box-shadow: 0 0 8px var(--neon-primary); transition: width 0.2s ease-out; }

.error-msg { color: var(--neon-alert); margin-top: 1rem; font-family: var(--font-main); font-weight: 600; font-size: 0.7rem; }

/* --- REEL & STAGE --- */
.stage { position: relative; width: 100%; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.reel-container {
    height: 100vh; width: var(--card-width); position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.reel { display: flex; flex-direction: column; align-items: center; will-change: transform; }
.movie-card {
    height: var(--card-height); width: var(--card-width); margin: 8px 0;
    background-size: cover; background-repeat: no-repeat; background-position: center;
    background-color: #111; border-radius: 2px; position: relative;
    transition: transform 0.3s, filter 0.3s; filter: brightness(0.4) grayscale(0.8);
    border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.movie-card span { display: none; }
.movie-card.no-poster {
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
    filter: brightness(0.5) grayscale(1);
}
.movie-card.no-poster span { display: block; font-family: var(--font-tech); font-size: 0.7rem; }
.movie-card.near-miss { filter: brightness(0.7) grayscale(0.5); transform: scale(0.98); }
.movie-card.winner {
    filter: brightness(1.2) grayscale(0); transform: scale(1.03);
    border: 2px solid var(--neon-primary); box-shadow: 0 0 30px rgba(255, 208, 0, 0.5); z-index: 20;
    animation: winnerPulse 2s infinite;
}
@keyframes winnerPulse {
    0% { box-shadow: 0 0 20px rgba(255, 208, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(255, 208, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(255, 208, 0, 0.5); }
}

/* --- THE POINTER ARROW --- */
.selection-arrow {
    position: absolute; top: 50%; left: calc(50% - 120px); 
    transform: translateY(-50%); width: 0; height: 0;
    border-top: 20px solid transparent; border-bottom: 20px solid transparent;
    border-left: 30px solid var(--neon-primary); filter: drop-shadow(0 0 10px var(--neon-primary));
    z-index: 100;
}
.selection-arrow.flash { animation: arrowFlash 0.5s ease-out; }
@keyframes arrowFlash {
    0% { transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 10px var(--neon-primary)); }
    50% { transform: translateY(-50%) scale(1.5); filter: drop-shadow(0 0 30px white); border-left-color: white; }
    100% { transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 10px var(--neon-primary)); }
}

/* Sidebar Specifics */
/* FORCE IMAGE SIZING FIX */
.sb-poster-container {
    width: 140px !important; height: 210px !important; max-width: 140px; 
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); flex-shrink: 0;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.sb-poster { width: 100%; height: 100%; object-fit: cover; max-width: 100%; max-height: 100%; }

.movie-meta { text-align: center; }
.movie-meta h1 { font-family: var(--font-tech); font-size: 1.3rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.badges { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 1rem; }
.badge {
    background: rgba(255, 208, 0, 0.05); padding: 0.2rem 0.5rem; border-radius: 2px;
    font-size: 0.65rem; font-weight: 600; color: var(--neon-primary);
    border: 1px solid rgba(255, 208, 0, 0.2); text-transform: uppercase;
}
.separator {
    width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
    margin: 1rem auto 1.5rem auto; opacity: 0.5;
}
.overview-text { font-size: 0.8rem; line-height: 1.6; color: #bbb; margin-bottom: 1.5rem; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }

.particle { position: absolute; background: var(--neon-primary); border-radius: 50%; pointer-events: none; z-index: 9999; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* --- MOBILE LAYOUT OVERRIDES --- */
@media (max-width: 768px) {
    :root { --card-width: 120px; --card-height: 180px; }
    #main-header { top: 2vh; width: 100%; text-align: center; }
    h1 { font-size: 1.2rem; }
    .selection-arrow { left: calc(50% - 85px); border-top-width: 15px; border-bottom-width: 15px; border-left-width: 20px; }
    #controls { top: auto; bottom: 120px; left: 50%; right: auto; transform: translateX(-50%); width: 100%; display: flex; justify-content: center; }
    button.start-btn { width: 180px; padding: 1.2rem; font-size: 1rem; background: rgba(0,0,0,0.95); }
    .weekly-panel { top: 80px; left: 10px; transform: none; width: 100px; gap: 5px; }
    .weekly-poster-frame { width: 90px; height: 135px; }
    .weekly-label, .tech-label-centered { font-size: 0.6rem; margin-bottom: 5px; }
    #weekly-title { font-size: 0.7rem; }
    .btn-override { font-size: 0.5rem; padding: 4px 8px; }
    .history-sidebar, .sidebar, .movie-list-sidebar { width: 100%; z-index: 5000; }
    .sidebar { transform: translateX(100%); right: 0; left: auto; }
    .history-sidebar, .movie-list-sidebar { transform: translateX(-100%); left: 0; }
    .bottom-left-controls { bottom: 20px; left: 10px; width: calc(100% - 20px); justify-content: space-between; }
    .top-left-controls { display: none; } 
    .tech-border-btn, .btn-history-toggle, .btn-result-toggle { padding: 10px 15px !important; font-size: 0.65rem !important; }
    .btn-result-toggle { bottom: 70px; right: 50%; transform: translateX(50%); }
    .loading-wrapper { margin-top: 35vh; }
}

/* --- HOVER TITLES FOR REEL --- */
.movie-hover-title {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    padding: 8px 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Let clicks pass through */
    z-index: 5;
    box-sizing: border-box;
    text-transform: uppercase;
}

/* Show on hover */
.movie-card:hover .movie-hover-title {
    opacity: 1;
}

/* DISABLE HOVER DURING SPIN */
/* When this class is present, cards ignore mouse events */
.reel-container.spinning .movie-card {
    pointer-events: none;
}

/* --- CONTROLS LAYOUT --- */
.control-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between Start and Refresh */
}

/* --- REFRESH BUTTON --- */
.refresh-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tech-icon-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-primary);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s ease;
}

.tech-icon-btn:hover {
    background: rgba(255, 208, 0, 0.1);
    box-shadow: 0 0 15px var(--neon-primary);
}

/* Icon Styling */
.refresh-icon {
    width: 24px; height: 24px;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg); /* Make it white-ish */
    transition: transform 0.5s ease;
}

/* Disabled State */
.tech-icon-btn:disabled {
    border-color: #444;
    cursor: not-allowed;
    opacity: 0.5;
}
.tech-icon-btn:disabled:hover {
    box-shadow: none;
    background: transparent;
}

/* ANIMATION: Spin */
@keyframes spin { 100% { transform: rotate(360deg); } }

.refresh-icon.spinning {
    animation: spin 1s linear infinite;
    filter: brightness(2) drop-shadow(0 0 5px var(--neon-primary));
}

/* --- TIMER --- */
.refresh-timer {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    color: var(--neon-primary);
    margin-top: 5px;
    position: absolute;
    bottom: -20px; /* Place directly underneath */
    width: 100%;
    text-align: center;
    animation: blink 1s infinite;
}

/* --- FLOATING CHANGE NOTIFICATIONS --- */
.notification-area {
    position: absolute;
    top: -20px; /* Start slightly above button */
    left: 0; 
    width: 100%;
    pointer-events: none; /* Let clicks pass through */
    z-index: 20;
}

.change-notification {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    animation: floatUpAndAway 4s ease-out forwards;
}

.change-plus { color: #00E054; text-shadow: 0 0 10px rgba(0, 224, 84, 0.6); } /* Green */
.change-minus { color: #ff3333; text-shadow: 0 0 10px rgba(255, 51, 51, 0.6); } /* Red */
.change-neutral { color: #aaa; }

@keyframes floatUpAndAway {
    0% { 
        opacity: 0; 
        top: 0px; 
        transform: translateX(-50%) scale(0.8); 
    }
    10% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1.1); 
    }
    20% { 
        transform: translateX(-50%) scale(1); 
    }
    100% { 
        opacity: 0; 
        top: -300px; /* Float way up */
    }
}

/* --- SECRET TRIGGER FIXES --- */
#secret-trigger {
    cursor: pointer !important;       /* Show hand cursor */
    user-select: none;                /* Prevent text highlighting */
    -webkit-user-select: none;        /* Safari support */
    pointer-events: auto;             /* Force it to accept clicks */
    position: relative;               /* Help with z-index */
    z-index: 1000;                    /* Sit above other text/glows */
}

/* Ensure hidden button appears on top of EVERYTHING when revealed */
#admin-link-btn {
    z-index: 10000 !important;
    display: flex; /* Ensure it has layout when .hidden is removed */
}

/* Make sure the header allows clicks on its children */
#main-header {
    pointer-events: none; /* Let clicks pass through empty space */
}
#main-header h1 {
    pointer-events: auto; /* Re-enable clicks on the text */
}

/* --- MOVIE LIST SEARCH & COUNT --- */
.movie-search-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 208, 0, 0.3);
    color: var(--neon-primary);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 1px;
    outline: none;
    margin-top: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.movie-search-input:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 8px rgba(255, 208, 0, 0.2);
}
.movie-search-input::placeholder {
    color: #555;
}
.movie-list-count {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    color: #555;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 5px;
}

/* --- MOBILE LIST BUTTON (hidden on desktop) --- */
.btn-mobile-list {
    display: none;
}
@media (max-width: 768px) {
    .btn-mobile-list { display: block; }
}
