/* Reset and Base Styles */

/* View Controls */
.view-controls {
    display: flex;
    gap: 1rem;
    margin-right: 1rem;
}

.theme-toggle-btn,
.view-toggle-btn {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.theme-toggle-btn:hover,
.view-toggle-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.view-toggle-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transform: translateX(-100%);
    animation: buttonScan 5s linear infinite;
}

.view-toggle-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from 0deg,
        rgba(0, 255, 0, 0.1),
        rgba(0, 255, 0, 0.3) 45deg,
        rgba(0, 255, 0, 0.4) 90deg,
        rgba(0, 255, 0, 0.3) 135deg,
        rgba(0, 255, 0, 0.1) 180deg,
        rgba(0, 255, 0, 0.1)
    );
    animation: borderFlow 3s linear infinite;
    z-index: -1;
    border-radius: 12px;
}

@keyframes buttonScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes borderFlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.view-toggle-btn i {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.view-toggle-btn:hover i {
    transform: rotateY(180deg);
}

/* Thumbnail Wall View Styles */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.movie-grid.wall-view {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
}

.movie-grid.wall-view .movie-card {
    aspect-ratio: 2/3;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-grid.wall-view .movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}

.movie-grid.wall-view .movie-info-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.movie-grid.wall-view .movie-card:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.movie-grid.wall-view .movie-card:hover .movie-poster {
    filter: brightness(0.3) contrast(1.2);
}

.movie-grid.wall-view .movie-card:hover .movie-info-overlay {
    opacity: 1;
}

.movie-grid.wall-view .movie-info-overlay h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--accent-color);
}

.movie-grid.wall-view .movie-meta {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.movie-grid.wall-view .wall-view-meta {
    font-size: 0.85em;
    margin-top: 0.4rem;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.movie-grid.wall-view .wall-year,
.movie-grid.wall-view .wall-genre {
    padding: 6px 10px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 2px;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Broken Console Bold', monospace;
    font-weight: normal;
}

.movie-grid .wall-view-meta {
    display: none;
}

.movie-grid.wall-view .movie-thoughts {
    display: none;
}

/* Enhanced Movie Card Hover Effects */
.movie-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.movie-card:hover::before {
    opacity: 0.3;
}

/* Radio indicator styles */
.radio-input {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.radio-input .input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin: 10px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: hsla(0,0%,100%,.15) 0 1px 1px, inset hsla(0,0%,0%,.5) 0 0 0 1px;
  background-color: hsla(0,0%,0%,.6);
  background-image: -webkit-radial-gradient( hsla(200,100%,90%,1) 0%, hsla(200,100%,70%,1) 15%, hsla(200,100%,60%,.5) 28%, hsla(200,100%,30%,.2) 70% );
  background-repeat: no-repeat;
  -webkit-transition: background-position .15s cubic-bezier(.8, 0, 1, 1),
    -webkit-transform .25s cubic-bezier(.8, 0, 1, 1);
  transition: background-position .15s cubic-bezier(.8, 0, 1, 1),
    transform .25s cubic-bezier(.8, 0, 1, 1);
  outline: none;
}

.radio-input .input:checked {
  -webkit-transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1),
    -webkit-transform .25s cubic-bezier(0, 0, .2, 1);
  transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1),
    transform .25s cubic-bezier(0, 0, .2, 1);
}

.radio-input .input:active {
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
  -webkit-transition: -webkit-transform .1s cubic-bezier(0, 0, .2, 1);
  transition: transform .1s cubic-bezier(0, 0, .2, 1);
}

.radio-input .input,
.radio-input .input:active {
  background-position: 0 24px;
}

.radio-input .input:checked {
  background-position: 0 0;
}

.radio-input .input:checked ~ .input,
.radio-input .input:checked ~ .input:active {
  background-position: 0 -24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove old tooltip styles */

/* Lazy Loading Styles */
.movie-poster.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
    transform: scale(0.95);
    filter: blur(5px);
}

.movie-poster.lazy.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}


body {
    font-family: 'Broken Console Bold', 'Courier New', monospace;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('images/realredcur.png'), auto;
    /* Base background styles */
    background: 
        radial-gradient(circle, #B22222 1px, transparent 1px),
        radial-gradient(circle, #B22222 1px, transparent 1px) 10px 10px,
        linear-gradient(90deg, rgba(178, 34, 34, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(178, 34, 34, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #0a0a0a;
    background-attachment: fixed;
    position: relative;}

/* Yellow background dots for favorites section */
body[data-section="favorites"] {
    background: 
        radial-gradient(circle, #FFD700 1px, transparent 1px),
        radial-gradient(circle, #FFD700 1px, transparent 1px) 10px 10px,
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #0a0a0a;
    background-attachment: fixed;
}

/* Blue background dots for thoughts section */
body[data-section="thoughts"] {
    background: 
        radial-gradient(circle, #0066cc 1px, transparent 1px),
        radial-gradient(circle, #0066cc 1px, transparent 1px) 10px 10px,
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #0a0a0a;
    background-attachment: fixed;
    background-attachment: fixed;
    background-size: 20px 20px;
    background-color: #0a0a0a;
    background-attachment: fixed;
}

/* Scanline effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(178, 34, 34, 0.4) 50%,
        rgba(178, 34, 34, 0.4) 51%,
        transparent 51%,
        transparent 100%
    );
    background-size: 100% 8px;
    animation: scanline-move 10s linear infinite;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Glitch effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(178, 34, 34, 0.2),
        transparent
    );
    opacity: 0;
    animation: glitch-effect 3s infinite;
    pointer-events: none;
    z-index: -1;
}

/* Animation for scanlines */
@keyframes scanline-move {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(8px);
    }
}

/* Animation for glitch sweeps */
@keyframes glitch-effect {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        transform: translateX(100%) skewX(5deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}


/* Navigation dropdown styles */
.nav-dropdown {
    position: absolute;
    left: 1rem;
    z-index: 1000;
}

.nav-dropdown-btn {
    background: rgba(0, 0, 0, 0.85);
    color: #B22222;
    border: 1px solid #B22222;
    padding: 0.7rem 1.2rem;
    font-family: 'Broken Console Bold', monospace;
    font-size: 1.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.nav-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, #B22222 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.nav-dropdown-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B22222, transparent);
    animation: scanline 2s linear infinite;
}

.nav-dropdown-btn:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #B22222, 0 0 15px #B22222;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5),
                inset 0 0 15px rgba(178, 34, 34, 0.3);
    transform: perspective(500px) translateZ(10px);
    animation: buttonGlitch 0.3s ease-out;
    cursor: url('images/redrighthand.png'), pointer;
}

.nav-dropdown-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
}

.nav-dropdown-btn i {
    transition: all 0.3s ease;
    position: relative;
}

.nav-dropdown-btn:hover i {
    transform: scale(1.2);
    color: #fff;
    animation: iconPulse 1.5s infinite;
}

/* Cyberpunk animations */
@keyframes scanline {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes buttonGlitch {
    0% { transform: perspective(500px) translateZ(10px) skew(0deg); }
    20% { transform: perspective(500px) translateZ(10px) skew(-4deg); }
    40% { transform: perspective(500px) translateZ(10px) skew(4deg); }
    60% { transform: perspective(500px) translateZ(10px) skew(-2deg); }
    80% { transform: perspective(500px) translateZ(10px) skew(2deg); }
    100% { transform: perspective(500px) translateZ(10px) skew(0deg); }
}

@keyframes iconPulse {
    0% { text-shadow: 0 0 5px #B22222; }
    50% { text-shadow: 0 0 20px #B22222, 0 0 30px #fff; }
    100% { text-shadow: 0 0 5px #B22222; }
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(19, 19, 19, 0.95);
    min-width: 160px;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.3),
                inset 0 0 20px rgba(178, 34, 34, 0.1);
    z-index: 1000;
    border: 1px solid #B22222;
    backdrop-filter: blur(5px);
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: dropdownReveal 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.dropdown-link {
    color: #fff;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-family: 'Broken Console Bold', monospace;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(178, 34, 34, 0.2);
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.1), transparent);
}

.dropdown-link::before {
    content: '>';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    color: #B22222;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.dropdown-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

@keyframes dropdownReveal {
    0% {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.9);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    }
}

.dropdown-link:hover {
    background: rgba(178, 34, 34, 0.2);
    color: #B22222;
    text-shadow: 0 0 5px #B22222;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sort controls and back button styles */
.sort-controls {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 1rem 4rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    justify-content: center;
}

/* Sort dropdown styles */
.sort-dropdown {
    position: relative;
    margin: 0 1rem;
    z-index: 1000;
}

.sort-dropdown-btn {
    background: rgba(0, 0, 0, 0.85);
    color: #B22222;
    border: 1px solid #B22222;
    padding: 0.7rem 1.2rem;
    font-family: 'Broken Console Bold', monospace;
    font-size: 1.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.sort-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, #B22222 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.sort-dropdown-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B22222, transparent);
    animation: scanline 2s linear infinite;
}

.sort-dropdown-btn:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #B22222, 0 0 15px #B22222;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5),
                inset 0 0 15px rgba(178, 34, 34, 0.3);
    transform: perspective(500px) translateZ(10px);
    animation: buttonGlitch 0.3s ease-out;
}

.sort-dropdown-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
}

.sort-dropdown-btn i {
    transition: all 0.3s ease;
    position: relative;
}

.sort-dropdown-btn:hover i {
    transform: scale(1.2);
    color: #fff;
    animation: iconPulse 1.5s infinite;
}

.sort-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(19, 19, 19, 0.95);
    min-width: 160px;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.3),
                inset 0 0 20px rgba(178, 34, 34, 0.1);
    z-index: 1000;
    border: 1px solid #B22222;
    backdrop-filter: blur(5px);
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.sort-dropdown:hover .sort-dropdown-content {
    display: block;
    animation: dropdownReveal 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.dropdown-item {
    background: none;
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-family: 'Broken Console Bold', monospace;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(178, 34, 34, 0.2);
    position: relative;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.1), transparent);
}

.dropdown-item::before {
    content: '>';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    color: #B22222;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.dropdown-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:hover {
    background: rgba(178, 34, 34, 0.2);
    color: #B22222;
    text-shadow: 0 0 5px #B22222;
}

/* Center group for sort controls */
.sort-controls .center-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-right-button {
    position: absolute;
    right: 1rem;
    text-decoration: none;
    display: block;
}

/* Interactive Elements Hover with Red Right Hand */
.nav-btn:hover,
.radio-input .input:hover,
.search-btn:hover,
.sort-dropdown-btn:hover,
.sort-dropdown-content:hover,
.dropdown-item:hover,
.dropdown-link:hover,
.top-right-button:hover,
.search-input:hover,
.filter-btn:hover,
.apply-btn:hover,
.admin-toggle-btn:hover,
.btn:hover,
.back-button:hover,
.reset-btn:hover,
.modal-content:hover,
select:hover,
.stat-card:hover,
.close:hover {
    cursor: url('images/redrighthand.png'), auto;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    font-family: 'space armor';
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #B22222;
    /* border-radius: 1em; */
    box-shadow: 0 0 20px #B22222, inset 0 0 20px rgba(178, 34, 34, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent 30%, rgba(178, 34, 34, 0.1) 70%);
    /* animation: pulseHeader 8s ease-in-out infinite; */
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        rgba(178, 34, 34, 0.1) 1%,
        transparent 2%
    );
    /* animation: scanlineHeader 10s linear infinite; */
    pointer-events: none;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #ffffff;
    letter-spacing: 0.5em;
    animation: textFlicker 5s linear infinite;
}

@keyframes textFlicker {
    0% {
        text-shadow: 0.4389924193300864px 0 1px rgba(255, 0, 64, 0.5), -0.4389924193300864px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    5% {
        text-shadow: 2.7928974010788217px 0 1px rgba(255, 0, 64, 0.5), -2.7928974010788217px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    10% {
        text-shadow: 0.02956275843481219px 0 1px rgba(255, 0, 64, 0.5), -0.02956275843481219px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    15% {
        text-shadow: 0.40218538552878136px 0 1px rgba(255, 0, 64, 0.5), -0.40218538552878136px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    20% {
        text-shadow: 3.4794037899852017px 0 1px rgba(255, 0, 64, 0.5), -3.4794037899852017px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    25% {
        text-shadow: 1.6125630401149584px 0 1px rgba(255, 0, 64, 0.5), -1.6125630401149584px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    30% {
        text-shadow: 0.7015590085143956px 0 1px rgba(255, 0, 64, 0.5), -0.7015590085143956px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    35% {
        text-shadow: 3.896914047650351px 0 1px rgba(255, 0, 64, 0.5), -3.896914047650351px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    40% {
        text-shadow: 3.870905614848819px 0 1px rgba(255, 0, 64, 0.5), -3.870905614848819px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    45% {
        text-shadow: 2.231056963361899px 0 1px rgba(255, 0, 64, 0.5), -2.231056963361899px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    50% {
        text-shadow: 0.08084290417898504px 0 1px rgba(255, 0, 64, 0.5), -0.08084290417898504px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    55% {
        text-shadow: 2.3758461067427543px 0 1px rgba(255, 0, 64, 0.5), -2.3758461067427543px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    60% {
        text-shadow: 2.202193051050636px 0 1px rgba(255, 0, 64, 0.5), -2.202193051050636px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    65% {
        text-shadow: 2.8638780614874975px 0 1px rgba(255, 0, 64, 0.5), -2.8638780614874975px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    70% {
        text-shadow: 0.48874025155497314px 0 1px rgba(255, 0, 64, 0.5), -0.48874025155497314px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    75% {
        text-shadow: 1.8948491305757957px 0 1px rgba(255, 0, 64, 0.5), -1.8948491305757957px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    80% {
        text-shadow: 0.0833037308038857px 0 1px rgba(255, 0, 64, 0.5), -0.0833037308038857px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    85% {
        text-shadow: 0.09769827255241735px 0 1px rgba(255, 0, 64, 0.5), -0.09769827255241735px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    90% {
        text-shadow: 3.443339761481782px 0 1px rgba(255, 0, 64, 0.5), -3.443339761481782px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    95% {
        text-shadow: 2.1841838852799786px 0 1px rgba(255, 0, 64, 0.5), -2.1841838852799786px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
    100% {
        text-shadow: 2.6208764473832513px 0 1px rgba(255, 0, 64, 0.5), -2.6208764473832513px 0 1px rgba(178, 34, 34, 0.3), 0 0 3px;
    }
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: -1px 0 #ff0040;
    top: 0;
    color: #fff;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-before 3s infinite linear alternate-reverse;
    opacity: 0.5;
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -1px 0 #B22222;
    top: 0;
    color: #fff;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-after 2s infinite linear alternate-reverse;
    opacity: 0.5;
}

@keyframes noise-before {
    0% {
        clip: rect(61px, 9999px, 52px, 0);
    }
    5% {
        clip: rect(33px, 9999px, 144px, 0);
    }
    10% {
        clip: rect(121px, 9999px, 115px, 0);
    }
    15% {
        clip: rect(144px, 9999px, 162px, 0);
    }
    20% {
        clip: rect(62px, 9999px, 180px, 0);
    }
    25% {
        clip: rect(34px, 9999px, 42px, 0);
    }
    30% {
        clip: rect(147px, 9999px, 179px, 0);
    }
    35% {
        clip: rect(99px, 9999px, 63px, 0);
    }
    40% {
        clip: rect(188px, 9999px, 122px, 0);
    }
    45% {
        clip: rect(154px, 9999px, 14px, 0);
    }
    50% {
        clip: rect(63px, 9999px, 37px, 0);
    }
    55% {
        clip: rect(161px, 9999px, 147px, 0);
    }
    60% {
        clip: rect(109px, 9999px, 175px, 0);
    }
    65% {
        clip: rect(157px, 9999px, 88px, 0);
    }
    70% {
        clip: rect(173px, 9999px, 131px, 0);
    }
    75% {
        clip: rect(62px, 9999px, 70px, 0);
    }
    80% {
        clip: rect(24px, 9999px, 153px, 0);
    }
    85% {
        clip: rect(138px, 9999px, 40px, 0);
    }
    90% {
        clip: rect(79px, 9999px, 136px, 0);
    }
    95% {
        clip: rect(25px, 9999px, 34px, 0);
    }
    100% {
        clip: rect(173px, 9999px, 166px, 0);
    }
}

@keyframes noise-after {
    0% {
        clip: rect(26px, 9999px, 33px, 0);
    }
    5% {
        clip: rect(140px, 9999px, 198px, 0);
    }
    10% {
        clip: rect(184px, 9999px, 89px, 0);
    }
    15% {
        clip: rect(121px, 9999px, 6px, 0);
    }
    20% {
        clip: rect(181px, 9999px, 99px, 0);
    }
    25% {
        clip: rect(154px, 9999px, 133px, 0);
    }
    30% {
        clip: rect(134px, 9999px, 169px, 0);
    }
    35% {
        clip: rect(26px, 9999px, 187px, 0);
    }
    40% {
        clip: rect(147px, 9999px, 137px, 0);
    }
    45% {
        clip: rect(31px, 9999px, 52px, 0);
    }
    50% {
        clip: rect(191px, 9999px, 109px, 0);
    }
    55% {
        clip: rect(74px, 9999px, 54px, 0);
    }
    60% {
        clip: rect(145px, 9999px, 75px, 0);
    }
    65% {
        clip: rect(153px, 9999px, 198px, 0);
    }
    70% {
        clip: rect(99px, 9999px, 136px, 0);
    }
    75% {
        clip: rect(118px, 9999px, 192px, 0);
    }
    80% {
        clip: rect(1px, 9999px, 83px, 0);
    }
    85% {
        clip: rect(145px, 9999px, 98px, 0);
    }
    90% {
        clip: rect(121px, 9999px, 154px, 0);
    }
    95% {
        clip: rect(156px, 9999px, 44px, 0);
    }
    100% {
        clip: rect(67px, 9999px, 122px, 0);
    }
}

.glitch-text::before {
    animation: glitchTop 2s infinite;
    color: #ff0040;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
}

.glitch-text::after {
    animation: glitchBottom 2.5s infinite;
    color: #B22222;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 5px #B22222, 0 0 10px #B22222, 0 0 20px #B22222, 0 0 40px #B22222;
    }
    25% {
        text-shadow: -2px 0 #ff0040, 2px 2px #B22222;
    }
    50% {
        text-shadow: 2px 0 #ff0040, -2px -2px #B22222;
    }
    75% {
        text-shadow: 0 0 5px #B22222, 0 0 10px #B22222, 0 0 20px #B22222, 0 0 40px #B22222;
    }
}

.subtitle {
    font-size: 3.0rem;
    color: #fcd704;
    margin-top: 25px;
    font-style: '';
    text-shadow: 0 0 5px #a11414;
    font-family: 'ghettomarquee', monospace;
    letter-spacing: 0.05em;
    overflow: hidden;
    white-space: nowrap;
}


.nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 350px;
    flex-wrap: wrap;
}

.nav-buttons a {
    padding: 12px 24px;
    font-size: 1.1em;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(178, 34, 34, 0.1);
    border: 2px solid #B22222;
    color: #B22222;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Techpulse', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(178, 34, 34, 0.2),
        transparent
    );
    transition: all 0.6s;
}

.nav-btn:hover {
    background: #B22222;
    color: #0a0a0a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.6),
                0 0 20px rgba(178, 34, 34, 0.4),
                inset 0 0 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2em;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    background: #B22222;
    color: #0a0a0a;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #B22222;
    border-radius: 10px;
}

.sort-controls label {
    color: #cccccc;
    font-family: 'Broken Console Bold', monospace;
}

.sort-controls select {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #B22222;
    color: #ffffff;
    font-family: 'Broken Console Bold', monospace;
}

.filter-btn, .search-btn {
    padding: 8px 15px;
    background: rgba(178, 34, 34, 0.1);
    border: 1px solid #B22222;
    color: #B22222;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Broken Console Bold', monospace;
    position: relative;
    overflow: hidden;
}

.filter-btn::before, .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(178, 34, 34, 0.2),
        transparent
    );
    transition: all 0.6s;
}

.filter-btn:hover, .search-btn:hover {
    background: rgba(178, 34, 34, 0.8);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.4),
                inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.filter-btn:hover::before, .search-btn:hover::before {
    left: 100%;
}

.filter-btn i, .search-btn i {
    transition: transform 0.3s ease;
}

.filter-btn:hover i, .search-btn:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 2px solid #B22222;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Remove scanline animation from movie grid */
.movie-grid::before {
    content: none !important;
}

.movie-grid::after {
    content: none !important;
}

/* Apply scanline animation to entire body background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 0, 0, 0.03) 1px,
        rgba(255, 0, 0, 0.03) 2px
    );
    animation: scanlineMove 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 0, 0, 0.08) 50%,
        transparent 100%
    );
    animation: scanlineSweep 2.5s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.movie-card {
    position: relative;
    z-index: 2;
}

.movie-grid::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 0, 0, 0.08) 50%,
        transparent 100%
    );
    animation: scanlineSweep 2.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(2px);
    }
}

@keyframes scanlineSweep {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.movie-card {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    cursor: url(images/realredcur.png);
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #111;
    border: 3px solid #B22222;
     will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes subtlePulse {
    0%, 100% {
        border-color: #B22222;
        box-shadow: 0 0 8px rgba(178, 34, 34, 0.2);
        transform: translateX(0);
    }
    50% {
        border-color: #FFD700;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
        transform: translateX(0);
    }
}

/* Change border color when in favorites section */
.movie-grid[data-section="favorites"] .movie-card {
    border-color: #B22222;
    box-shadow: 0 4px 10px rgba(178, 34, 34, 0.2);
    animation: subtlePulse 3s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}

/* Corner Ribbon */
.movie-grid[data-section="favorites"] .movie-card::before {
    content: 'FAVORITE';
    position: absolute;
    top: 25px;
    right: -60px;
    width: 200px;
    background: #FFD700;
    color: #B22222;
    padding: 5px 0;
    transform: rotate(45deg);
    font-family: 'Broken Console Bold', monospace;
    font-size: 0.8em;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 2px rgba(178, 34, 34, 0.5);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Animated Favorite Badge */
.movie-grid[data-section="favorites"] .movie-card::after {
    content: '★';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2em;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: starPulse 2s ease-in-out infinite;
    z-index: 2;
    background: linear-gradient(145deg, #B22222, #800000);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 15px rgba(255, 215, 0, 0.3),
        2px 2px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.movie-grid[data-section="favorites"] .movie-card:hover {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
    z-index: 1;
}

.movie-grid[data-section="favorites"] .movie-card:hover::after {
    animation: starPulse 1s ease-in-out infinite;
}

/* Special styling for favorite movies */
.movie-card.favorite {
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.movie-card.favorite:hover {
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.6);
}

/* Remove scanline effect from individual movie cards */
.movie-card::before {
    content: none !important;
}

@keyframes subtleScanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(1px);
    }
}

.movie-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
    filter: brightness(0.7) contrast(1.2) blur(1px);
}

.movie-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #B22222;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Broken Console Bold', monospace;
}

.movie-card:hover .movie-info-overlay {
    opacity: 1;
    transform: translateY(0);
}

.movie-info-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'blue screen', monospace;
    letter-spacing: 0.15em;
}

.movie-info-overlay .movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.movie-info-overlay .movie-meta span {
    background: rgba(178, 34, 34, 0.2);
    padding: 4px 8px;
}


.movie-info-overlay .movie-thoughts {
    font-style: italic;
    font-size: 0.9rem;
    color: #cccccc;
    max-height: 150px;
    overflow-y: hidden; /* Change from auto to hidden */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.movie-info-overlay .movie-thoughts::-webkit-scrollbar {
    display: none;
}

/* Typewriter Animation Styles */
.typewriter-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.typewriter-text {
    font-family: 'Broken Console Bold', monospace;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Typewriter animation trigger */
.typewriter-text[data-text] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .typewriter-text[data-text] {
    opacity: 1;
}

/* Rich overlay styles for My Thoughts section */
.thoughts-overlay {
    background: rgba(20, 0, 0, 0.95);
    border: 2px solid #ff0040;
    box-shadow: 0 0 15px #ff0040, inset 0 0 20px rgba(255, 0, 64, 0.6);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #ff3366;
    font-family: 'Broken Console Bold', monospace;
}

.overlay-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #ff6699;
    text-shadow: 0 0 5px #ff0040;
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 1rem;
    color: #ff6699;
}

.year-badge,
.rating-badge,
.genre-badge {
    background: #330011;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ff0040;
}

.thoughts-rich-overlay {
    background: #220022;
    border: 1px solid #ff0040;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    flex-grow: 1;
    overflow-y: auto;
    box-shadow: inset 0 0 10px #ff0040;
}

.thoughts-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ff6699;
    font-size: 1.2rem;
    font-weight: bold;
}

.thoughts-header i {
    color: #ff0040;
}

.thought-text-rich {
    font-size: 1rem;
    line-height: 1.5;
    color: #ff99bb;
    white-space: pre-wrap;
}

.thought-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #ff6699;
    display: flex;
    justify-content: space-between;
}

.movie-details-expanded {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #ff6699;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.detail-item i {
    color: #ff0040;
}

.favorite-badge {
    color: #ff3366;
    font-weight: bold;
}

.movie-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Broken Console Bold', monospace;
    background: transparent;
    border: 1px solid #ff0040;
    color: #ff6699;
    border-radius: 4px;
}

.btn:hover {
    background: #ff0040;
    color: #0a0a0a;
}

.btn-favorite.active {
    background: #ff0040;
    color: #0a0a0a;
}

.movie-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Broken Console Bold', monospace;
}

.btn-favorite {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.btn-favorite:hover {
    background: #ffd700;
    color: #0a0a0a;
}

.btn-favorite.active {
    background: #ffd700;
    color: #0a0a0a;
}

.btn-remove {
    background: rgba(178, 34, 34, 0.2);
    color: #B22222;
    border: 1px solid #B22222;
}

.btn-remove:hover {
    background: #B22222;
    color: #ffffff;
}

/* Stats Section */
.stats-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #B22222;
    padding: 30px;
    border-radius: 1em;
}

.stats-section h2 {
    color: #B22222;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Broken Console Bold', monospace;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    border: 1px solid #B22222;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #ff0040;
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.3),
                inset 0 0 15px rgba(178, 34, 34, 0.2);
    background: rgba(20, 0, 0, 0.7);
}

.stat-card i {
    transition: transform 0.4s ease;
}

.stat-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #ff0040;
}

.stat-card span {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-card:hover span {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.6);
    color: #ff0040;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 64, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.stat-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(178, 34, 34, 0.2),
        transparent
    );
    transition: 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card i {
    font-size: 2rem;
    color: #B22222;
}

.stat-card span {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-card p {
    color: #cccccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #B22222;
    width: 90%;
    max-width: 500px;
    position: relative;
    font-family: 'Broken Console Bold', monospace;
    box-shadow: 0 0 20px #B22222, inset 0 0 20px rgba(178, 34, 34, 0.3);
}

.close {
    color: #B22222;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #B22222;
    font-family: 'Broken Console Bold', monospace;
}

/* Filter dropdown styles */
.filter-dropdown {
    position: relative;
    margin: 0.5rem 0;
    z-index: 1000;
}

/* Custom styling for range inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #B22222;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #B22222;
    border: 2px solid #ff0040;
    border-radius: 50%;
    cursor: url('images/redrighthand.png'), pointer;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #B22222;
    border: 2px solid #ff0040;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5);
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #240808 0%, #240808 100%);
    border-radius: 4px;
    border: 1px solid #B22222;
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #B22222 0%, #ff0040 100%);
    border-radius: 4px;
    border: 1px solid #B22222;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.7);
}

input[type="range"]:hover::-moz-range-thumb {
    background: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.7);
}

.filter-dropdown-btn {
    background: rgba(24, 24, 24, 0.85);
    color: #B22222;
    border: 1px solid #B22222;
    padding: 0.5rem 1rem;
    font-family: 'Broken Console Bold', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    width: 100%;
}

.filter-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, #B22222 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.filter-dropdown-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B22222, transparent);
    animation: scanline 2s linear infinite;
}

.filter-dropdown-btn:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #B22222, 0 0 15px #B22222;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5),
                inset 0 0 15px rgba(178, 34, 34, 0.3);
    transform: perspective(500px) translateZ(10px);
    animation: buttonGlitch 0.3s ease-out;
}

.filter-dropdown-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
}

.filter-dropdown-btn i {
    transition: all 0.3s ease;
    position: relative;
}

.filter-dropdown-btn:hover i {
    transform: scale(1.2);
    color: #fff;
    animation: iconPulse 1.5s infinite;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(19, 19, 19, 0.95);
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.3),
                inset 0 0 20px rgba(178, 34, 34, 0.1);
    z-index: 1000;
    border: 1px solid #B22222;
    backdrop-filter: blur(5px);
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.filter-dropdown:hover .filter-dropdown-content {
    display: block;
    animation: dropdownReveal 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.filter-group input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #B22222;
    color: #ffffff;
    font-family: 'Broken Console Bold', monospace;
    transition: border-color 0.3s ease;
}

.filter-group input:focus {
    outline: none;
    border-color: #ff0040;
    box-shadow: 0 0 5px #B22222;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.apply-btn, .reset-btn {
    padding: 12px;
    border: none;
    cursor: pointer;
    font-family: 'Broken Console Bold', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-btn {
    background: #B22222;
    color: #ffffff;
    position: relative;
    border: 2px solid transparent;
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.7);
    overflow: hidden;
    flex: 2;
}

/* Cyberpunk border effect */
.apply-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0040, #00ffff, #ff0040);
    background-size: 400% 400%;
    z-index: -1;
    animation: border-flow 3s ease infinite;
}

/* Scan lines effect */
.apply-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 64, 0.1) 3px,
        rgba(255, 0, 64, 0.1) 3px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-btn {
    background: #333;
    color: #ffffff;
    flex: 1;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
}

.apply-btn:hover {
    background: #ff0040;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 5px 15px rgba(178, 34, 34, 0.6),
        0 0 20px rgba(255, 0, 64, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #ff0040;
    animation: glitch-text 0.2s infinite;
}

.apply-btn:hover::after {
    opacity: 1;
    animation: scanline-flicker 2s linear infinite;
}

@keyframes glitch-text {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    2% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-2px, 2px);
    }
    4% {
        clip-path: inset(70% 0 20% 0);
        transform: translate(2px, -2px);
    }
    6% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(2px, 2px);
    }
    8% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, -2px);
    }
    10%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
}

@keyframes scanline-flicker {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes border-flow {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    60% { opacity: 0.9; }
}

@keyframes scanline-flicker {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glitch-text {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    2% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-2px, 2px);
    }
    4% {
        clip-path: inset(70% 0 20% 0);
        transform: translate(2px, -2px);
    }
    6% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(2px, 2px);
    }
    8% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, -2px);
    }
    10% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
}

/* Add neon flicker effect */
.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 64, 0.2);
    animation: neon-flicker 2s infinite;
    pointer-events: none;
}

@keyframes neon-flicker {
    0% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 1; }
    59% { opacity: 1; }
    60% { opacity: 0.9; }
    61% { opacity: 1; }
    100% { opacity: 1; }
}

.reset-btn:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.reset-btn i {
    margin-right: 8px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Glitch effect on hover */
.reset-btn:hover i {
    animation: glitch-spin 0.3s infinite;
}

@keyframes glitch-spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-30deg); }
    75% { transform: rotate(30deg); }
    100% { transform: rotate(0deg); }
}

/* Cyberpunk-style scan line effect */
.reset-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2)
    );
    transform: rotate(45deg);
    animation: scan-line 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-btn:hover::after {
    opacity: 1;
}

@keyframes scan-line {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .movie-grid {
        grid-template-columns: 1fr;
    }
    
    .sort-controls {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(178, 34, 34, 0.3);
    border-radius: 50%;
    border-top-color: #B22222;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
}

.empty-state i {
    font-size: 4rem;
    color: #B22222;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Admin Toggle Button Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #B22222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0040;
}

/* Hide scrollbar for terminal */
.terminal::-webkit-scrollbar,
.terminal-output::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.terminal,
.terminal-output {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header Animations */
@keyframes glitchAnim1 {
    0% {
        clip: rect(32px, 9999px, 15px, 0);
    }
    10% {
        clip: rect(120px, 9999px, 76px, 0);
    }
    20% {
        clip: rect(25px, 9999px, 57px, 0);
    }
    30% {
        clip: rect(83px, 9999px, 91px, 0);
    }
    40% {
        clip: rect(74px, 9999px, 25px, 0);
    }
    50% {
        clip: rect(80px, 9999px, 92px, 0);
    }
    60% {
        clip: rect(32px, 9999px, 49px, 0);
    }
    70% {
        clip: rect(27px, 9999px, 46px, 0);
    }
    80% {
        clip: rect(65px, 9999px, 91px, 0);
    }
    90% {
        clip: rect(138px, 9999px, 80px, 0);
    }
    100% {
        clip: rect(32px, 9999px, 15px, 0);
    }
}

@keyframes glitchAnim2 {
    0% {
        clip: rect(12px, 9999px, 52px, 0);
    }
    10% {
        clip: rect(60px, 9999px, 92px, 0);
    }
    20% {
        clip: rect(82px, 9999px, 43px,  0);
    }
    30% {
        clip: rect(15px, 9999px, 67px, 0);
    }
    40% {
        clip: rect(45px, 9999px, 55px, 0);
    }
    50% {
        clip: rect(12px, 9999px, 62px, 0);
    }
    60% {
        clip: rect(94px, 9999px, 32px, 0);
    }
    70% {
        clip: rect(23px, 9999px, 86px, 0);
    }
    80% {
        clip: rect(126px, 9999px, 32px, 0);
    }
    90% {
        clip: rect(24px, 9999px, 73px, 0);
    }
    100% {
        clip: rect(12px, 9999px, 52px, 0);
    }
}

@keyframes pulseHeader {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(5.5);
        opacity: 0.5;
    }
}

@keyframes scanlineHeader {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.favorite-star {
    color: #ffd700; /* Yellow color */
    margin-right: 6px;
    font-size: 14px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    height: 1em;
}

.trailer-section {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.trailer-btn, .imdb-btn {
    right: 0%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.7em;
    font-weight: normal;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Broken Console Bold', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: url(images/redrighthand.png), pointer;
}

.trailer-btn {
    background: rgba(178, 34, 34, 0.2);
    color: #B22222;
    border: 1px solid rgba(178, 34, 34, 0.4);
}

.imdb-btn {
    background: rgba(245, 197, 24, 0.2);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.4);
}

.trailer-btn:hover {
    background: rgba(178, 34, 34, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(178, 34, 34, 0.3);
    border-color: #B22222;
}

.imdb-btn:hover {
    background: rgba(245, 197, 24, 0.4);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(245, 197, 24, 0.3);
    border-color: #f5c518;
}

.trailer-btn i, .imdb-btn i {
    font-size: 1rem;
    padding: 2px 2px;
}

.thoughts-trailer .trailer-btn,
.thoughts-trailer .imdb-btn {
    background: rgba(139, 0, 0, 0.3);
    color: #cccccc;
    margin-top: 25px;
    border-color: rgba(139, 0, 0, 0.5);
}

.thoughts-trailer .trailer-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    color: #ffffff;
    border-color: #8b0000;
}

.thoughts-trailer .imdb-btn:hover {
    background: rgba(245, 197, 24, 0.5);
    color: #000000;
    border-color: #f5c518;
}

/* Optional: Trailer indicator on movie cards */
.movie-card[data-trailer="true"] .movie-poster {
    position: relative;
}

.movie-card[data-trailer="true"]::after {
    content: "\f144";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 0px;
    color: #ff0040;
    font-size: 1.5em;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 5px;
}


#terminal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    background-color: #1e1e1e;
    border-radius: 10px;
    border: #8b0000 3px solid;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.terminal-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: #fff;
    font-weight: bold;
    font-family: 'space armor', monospace;
    letter-spacing: 0.3em;
}


.close-terminal {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: url(images/redrighthand.png), pointer;
    transition: color 0.3s ease;
}

.close-terminal:hover {
    color: #1a5f7a; /* Darker shade of blue */
    cursor: url(images/redrighthand.png), pointer;
}

.terminal-content {
    height: calc(98% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-content iframe {
    width: 100%;
    height: 100%;
}


/* Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip {
  visibility: hidden;
  width: 180px;
  background-color: #980101;
  color: #ebb55f;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -0px;
  opacity: 0;
  transition: opacity ease-in-out 2s;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -0px;
  border-width: 5px;
  border-style: solid;
  border-color: #050321 transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip .monitor {
  width: 180px;
  height: 22px;
  background-color: #000000;
  margin: 2px auto;
  overflow: hidden;
  white-space: nowrap;
}

.tooltip::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent #980101;
}

.tooltip .monitor p {
  font-family: "DS-DIGIB", monospace;
  font-size: 18px;
  color: #ebb55f;
  animation: move 12s infinite linear;
  display: inline-block;
}

.tooltip .monitor .key-highlight {
  background: #B22222;
  color: #000;
  padding: 0 4px;
  margin: 0 2px;
  border: 1px solid #ff4444;
  box-shadow: 0 0 5px #B22222, inset 0 0 2px #ff4444;
  text-shadow: none;
  font-weight: bold;
  animation: keyPulse 2s infinite;
}

@keyframes keyPulse {
  0%, 100% { 
    box-shadow: 0 0 5px #B22222, inset 0 0 2px #ff4444;
    border-color: #ff4444;
  }
  50% { 
    box-shadow: 0 0 10px #ff4444, inset 0 0 4px #ff6666;
    border-color: #ff6666;
  }
}

/* Position context for tooltip container */
.tooltip-container {
    position: relative;
    z-index: 100;
}

/* Base tooltip styles */
.hud-tooltip {
    position: absolute;
    bottom: 155%;  /* Consistent height for all tooltips */
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(178, 34, 34, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    padding: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.2);
    min-width: 180px;
}

/* Force absolute consistent positioning for all tooltips */
.search-btn ~ .hud-tooltip,
.filter-btn ~ .hud-tooltip,
.tag-filter-dropdown ~ .hud-tooltip,
.hud-tooltip {
    position: absolute;
    bottom: 45px !important; /* Use !important to override any other positioning */
    left: 50%;
    transform: translateX(-50%) scale(0.95);
}

/* Special adjustment for tag tooltip */
.tag-filter-dropdown ~ .hud-tooltip {
    bottom: 50px !important; /* Slightly higher to align with others */
}

/* Add tooltip arrows */
.hud-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Position arrow at bottom */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: rgba(178, 34, 34, 0.3) transparent transparent transparent;
}

/* Hover effect for all tooltips */
.tooltip-container:hover .hud-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.hud-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #B22222;
    opacity: 0.8;
}

.hud-corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.hud-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #B22222 20%, 
        #B22222 80%, 
        transparent 100%);
    width: 100%;
    left: 0;
}

.hud-line.top { top: -1px; }
.hud-line.bottom { bottom: -1px; }

.hud-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-icon {
    color: #B22222;
    font-size: 1.2em;
    animation: pulseIcon 2s infinite;
}

.hud-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-key {
    background: #B22222;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-family: 'Broken Console Bold', monospace;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5);
    animation: glowKey 2s infinite;
}

.command-text {
    color: #ff4444;
    font-family: 'Broken Console Bold', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: flickerText 5s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes glowKey {
    0%, 100% { box-shadow: 0 0 10px rgba(178, 34, 34, 0.5); }
    50% { box-shadow: 0 0 20px rgba(178, 34, 34, 0.8); }
}

@keyframes flickerText {
    0%, 100% { opacity: 1; }
    95% { opacity: 1; }
    96% { opacity: 0.5; }
    97% { opacity: 1; }
    98% { opacity: 0.2; }
    99% { opacity: 0.8; }
}

@keyframes move {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Theme and Mood Tag System */
.year-badge,
.rating-badge,
.genre-badge,
.theme-badge,
.mood-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin: 0.2rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: 'Broken Console Bold', monospace;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid;
    transition: all 0.3s ease;
        cursor: url(images/redrighthand.png), pointer;
}

.year-badge { border-color: #4CAF50; color: #4CAF50; }
.rating-badge { border-color: #FFC107; color: #FFC107; }
.genre-badge { border-color: #2196F3; color: #2196F3; }
.theme-badge { border-color: #2196F3; color: #2196F3; }
.mood-badge { border-color: #9C27B0; color: #9C27B0; }

/* Badge hover effects */
.year-badge:hover { background: #4CAF50; color: rgb(255, 255, 255); }
.rating-badge:hover { background: #FFC107; color: rgb(255, 255, 255); }
.genre-badge:hover { background: #2196F3; color: rgb(255, 255, 255); }
.theme-badge:hover { background: #E91E63; color: rgb(255, 255, 255); }
.mood-badge:hover { background: #9C27B0; color: rgb(255, 255, 255); }

/* Tag cloud styles */
.tag-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
        cursor: url(images/redrighthand.png), pointer;
}

.tag-cloud .theme-badge,
.tag-cloud .mood-badge {
    cursor: url(images/redrighthand.png), pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    min-width: 100px;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 32px;
}

.tag-cloud .theme-badge::before,
.tag-cloud .mood-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: tagScanline 2s linear infinite;
        cursor: url(images/redrighthand.png), pointer;
}

@keyframes tagScanline {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Tag selection styles */
.tag-cloud .theme-badge.selected,
.tag-cloud .mood-badge.selected {
    background: currentColor;
    color: black;
    box-shadow: 0 0 10px currentColor;
    transform: scale(1.1);
}

/* Tag filter dropdown */
.tag-filter-dropdown {
    position: relative;
    display: inline-block;
        cursor: url(images/redrighthand.png), pointer;
}

.tag-filter-btn {
    background: rgba(0, 0, 0, 0.85);
    color: #E91E63;
    border: 1px solid #E91E63;
    padding: 0.7rem 1.2rem;
    font-family: 'Broken Console Bold', monospace;
    font-size: 1.05em;
    cursor: url(images/redrighthand.png), pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tag-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E91E63);
    animation: buttonGlitch 3s linear infinite;
}

.tag-filter-btn:hover {
    background: rgba(233, 30, 99, 0.2);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
    transform: translateY(-2px);
}

.tag-filter-btn:hover::before {
    animation: buttonGlitch 1.5s linear infinite;
}

.tag-filter-btn i {
    transition: transform 0.3s ease;
}

.tag-filter-btn:hover i {
    animation: iconPulse 1s ease-in-out infinite;
}

.tag-filter-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 200px;
    border: 1px solid #E91E63;
    z-index: 1000;
    padding: 0.5rem;
}

.tag-filter-content.active {
    display: block;
    animation: tagDropdownReveal 0.3s ease-out;
}

/* Hide tooltip only when tag filter is active */
.tag-filter-dropdown:has(.tag-filter-content.active) ~ .hud-tooltip {
    display: none !important;
}

/* Show tooltip when hovering and respective features are not active */
.tooltip-container:hover .hud-tooltip {
    display: flex;
}

/* Override display none when features are not active */
.tag-filter-dropdown:not(:has(.tag-filter-content.active)) ~ .hud-tooltip,
#search-btn:not(.active) ~ .hud-tooltip {
    display: flex;
}

/* Hide tooltip when terminal is open */
body.terminal-active .search-btn ~ .hud-tooltip {
    display: none !important;
}

@keyframes tagDropdownReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag categories */
.tag-category {
    margin-bottom: 1rem;
}

.tag-category-title {
    color: #fcd704;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #fcd704;
    padding-bottom: 0.2rem;
}

/* Tag count badge */
.tag-count {
    background: rgba(233, 30, 99, 0.2);
    color: #E91E63;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.8em;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

/* Enhanced tag hover effects */
.tag-cloud .theme-badge:hover,
.tag-cloud .mood-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* Selected tag styling */
.tag-cloud .theme-badge.selected,
.tag-cloud .mood-badge.selected {
    background: rgba(233, 30, 99, 0.2);
    border-color: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* Tag filter container styling */
.tag-filter-content {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

/* Hide tooltip when interacting with tags */
.tag-cloud:hover ~ .hud-tooltip,
.tag-cloud:focus-within ~ .hud-tooltip,
.tag-filter-content:hover .hud-tooltip,
.tag-filter-content:focus-within .hud-tooltip {
    display: none !important;
}

/* Tag categories styling */
.tag-category {
    margin-bottom: 1.5rem;
}

.tag-category:last-child {
    margin-bottom: 0;
}

.tag-category-title {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(233, 30, 99, 0.1);
    border-left: 3px solid #fcd704;
}

/* Movie card tag section */
.tag-section {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-tags, .mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.movie-card .theme-badge,
.movie-card .mood-badge {
    font-size: 0.7em;
    padding: 0.1rem 0.4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.movie-card .theme-badge:hover,
.movie-card .mood-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Duration Badge Styles */
.duration-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.duration-badge i {
    margin-right: 4px;
    animation: clockPulse 2s infinite;
}

.duration-badge:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes clockPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Wall View Styles */
.movie-grid.wall-view {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
}

.wall-view .movie-card {
    aspect-ratio: 2/3;
    margin: 0;
    border-radius: 0;
}

.wall-view .movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.wall-view .movie-card:hover .movie-poster {
    filter: brightness(0.3);
}

.wall-view .movie-info-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.wall-view .movie-info-overlay h3 {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    color: var(--accent-color);
}

.wall-view .trailer-btn {
    background: rgba(178, 34, 34, 0.2);
    border: 1px solid darkred;
    color: #B22222;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.wall-view .trailer-btn:hover {
    background: #B22222;
    color: black;
}

/* Hide all other elements in wall view */
.wall-view .movie-meta,
.wall-view .tag-section,
.wall-view .thoughts-rich-overlay,
.wall-view .movie-details-expanded,
.wall-view .movie-actions {
    display: none;
}

/* Custom font for numbers in movie titles */
.number-font {
    font-family: 'DS-DIGIB', monospace;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700;
}
