* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: local;
    color: #ffffff;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    overflow-anchor: none;
}

html {
    height: 100%;
    overflow-y: auto;
    background: #0f0f23;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
}

/* Fixed sticky behavior when results are shown */
.left-column.sticky {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 10;
    background: rgba(15, 15, 35, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.right-column {
    flex: 1;
    max-width: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 2rem;
}

.right-column.visible {
    display: flex;
}

@keyframes backgroundShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: none;
}

.particle:nth-child(1) { width: 8px; height: 8px; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; left: 40%; animation-delay: -2s; }
.particle:nth-child(3) { width: 6px; height: 6px; left: 60%; animation-delay: -4s; }
.particle:nth-child(4) { width: 10px; height: 10px; left: 80%; animation-delay: -1s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 10%; animation-delay: -3s; }

.logo-container {
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out both;
    width: 100%;
    text-align: center;
}

.logo-image {
    max-height: 120px;
    max-width: 400px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
    transform: translateY(-2px);
}

.logo-text {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    animation: slideUp 1s ease-out 0.5s both;
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 1s both;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.search-wrapper:focus-within {
    border-color: #4ecdc4;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(78, 205, 196, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.search-input {
    width: calc(100% - 60px);
    height: 60px;
    background: transparent;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0 25px;
    font-size: 1.1rem;
    color: #ffffff;
    caret-color: #ffffff;
    font-family: inherit;
}

.search-input:focus {
    background: transparent;
    background-color: transparent !important;
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 9999s ease-out;
}

.search-input:autofill {
    background: transparent;
    color: #ffffff;
}

.search-input:-moz-autofill,
.search-input:-moz-autofill:focus {
    box-shadow: 0 0 0 1000px transparent inset;
    -moz-text-fill-color: #ffffff;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.search-filters {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.search-filters:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.year-input, .region-select, .language-select {
    height: 40px;
    padding: 0 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.year-input:focus, .region-select:focus, .language-select:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.year-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.region-select option, .language-select option {
    background: #1a1a2e;
    color: white;
}

.adult-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #4ecdc4;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.clear-filters-btn, .advanced-toggle-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: inherit;
}

.clear-filters-btn:hover, .advanced-toggle-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-1px);
}

.advanced-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
    width: 100%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-container {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.movie-result {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.movie-result:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.movie-info {
    flex: 1;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.movie-details {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.movie-overview {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-1px);
}

.action-icon {
    width: 18px;
    height: 18px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.modal-box {
    width: min(900px, 95vw);
    max-height: 80vh;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0.25rem;
}

.modal-body {
    padding: 1rem;
    overflow: auto;
}

.code-block {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    color: #e6e6e6;
}

.copyright-status {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    display: none;
    width: 100%;
    max-width: 600px;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-public {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-copyrighted {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

.auth-card {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
}

.auth-card--compact {
    max-width: 600px;
}

.glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
    animation: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .left-column, .right-column {
        max-width: 100%;
        width: 100%;
    }

    .left-column.sticky {
        position: static !important;
        max-width: 100% !important;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0;
        transform: none !important;
        width: 100% !important;
        left: auto !important;
    }

    .right-column {
        margin-top: 2rem;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .search-container {
        padding: 0 1rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        max-width: 250px;
        align-items: center;
    }

    .movie-result {
        flex-direction: column;
        text-align: center;
    }

    .movie-poster {
        align-self: center;
    }
}

header nav a:link,
header nav a:visited {
    color: #ffffff;
    text-decoration: none;
}

.auth-card a:link,
.auth-card a:visited {
    color: #ffffff;
}

.btn-login {
    color: #ffffff;
}

.modal-action-btn {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.4);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modal-action-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-1px);
}

.modal-close {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ffffff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-1px);
}

.code-block.readable-format {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.code-block.readable-format div {
    margin-bottom: 0.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
