:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --header-height-desktop: 70px;
    --header-height-mobile: 60px;
    --nav-height-mobile: 60px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    padding-bottom: var(--nav-height-mobile);
}

/* Desktop Header */
.desktop-header {
    display: none;
    background: var(--bg-card);
    height: var(--header-height-desktop);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.desktop-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.search-form-desktop {
    position: relative;
}

.search-bar-desktop {
    background: #f1f5f9;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    width: 300px;
    font-family: inherit;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-mobile);
    background: var(--bg-card);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    width: 300px;
    align-items: center;
    gap: 0.5rem;
}

#mobile-search-bar {
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-search-input {
    background: var(--bg-main) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 0.5rem !important;
    padding-left: 2.5rem !important;
}

.mobile-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
}

/* Mobile Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height-mobile);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--primary);
}

/* Content Area */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 200px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

.search-modal-content {
    background: var(--bg-card);
    width: 100%;
    height: 100%;
    /* Full screen on mobile */
    padding: 2rem;
    border-radius: 0;
}

@media (min-width: 768px) {
    .search-modal-content {
        width: 600px;
        height: auto;
        margin: 100px auto;
        border-radius: 1rem;
    }
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.search-input-wrapper {
    position: relative;
}

.search-input-modal {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input-modal:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.genre-tags-container {
    margin-top: 1.5rem;
}

.genre-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.genre-tag {
    display: inline-block;
    background: var(--bg-main);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.genre-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Slider Button Styles */
.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    align-self: flex-start;
}

.btn-hero:hover {
    background: var(--primary-dark);
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .desktop-header {
        display: block;
    }

    .mobile-header,
    .bottom-nav {
        display: none;
    }

    .main-content {
        padding: 2rem;
    }
}

/* Mobile Slider Adjustments */
@media (max-width: 768px) {
    .btn-hero {
        align-self: center !important;
        width: auto;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
    }
}