body {
    font-family: system-ui, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

/* Navigation Tabs */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #e7f1ff;
}

/* Active State */
.nav-btn.active {
    background: #007bff;
    color: white;
}

/* Helper to hide the search bar */
.hidden {
    display: none !important;
}

/* The Grid Container */
#movie-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* The Card */
.card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-poster {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.card-year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Blue "Add" Button */
.card-btn {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

/* Red "Remove" Button */
.btn-remove {
    background-color: #dc3545;
}
.btn-remove:hover {
    background-color: #c82333;
}

/* Accessibility */
button:focus, input:focus {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

/* Footer */
footer {
    margin-top: 50px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.attribution img {
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =========================================
   LANDING PAGE STYLES (The Pro Look)
   ========================================= */
.landing-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: -1px;
}

.landing-header nav a {
    text-decoration: none;
    color: #666;
    margin-left: 20px;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-cta-primary {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
}

.btn-cta-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    display: inline-block;
    color: #555;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.btn-cta-secondary:hover {
    color: #000;
    text-decoration: underline;
}

.btn-cta-small {
    background: #007bff;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
}

.feature-card h3 {
    margin-top: 0;
    color: #333;
}

.landing-footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
}
/* Utility: Hide elements visually and from screen readers */
.hidden {
    display: none !important;
    visibility: hidden;
}