:root {
    --color-background: #0a0f1c;
    --color-surface: rgba(30, 41, 59, 0.8);
    --color-surface-solid: #1e293b;
    --color-primary: #3b82f6;
    --color-text: #f8fafc;
    --color-text-secondary: #94a3b8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)),
                      url('/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.5;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header--transparent {
    background-color: rgba(30, 41, 59, 0.5);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header__left, .header__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.search {
    position: relative;
    width: 300px;
}

.search input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.search__button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search__button:hover {
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav__link {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav__link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav__link.active {
    color: var(--color-text);
    background-color: var(--color-primary);
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.support-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Footer Styles */
.footer {
    background-color: var(--color-surface);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--color-text);
}

/* Main Content Styles */
.main {
    padding: 2rem 0;
}

.section {
    display: none;
    margin-bottom: 3rem;
}

.section.active {
    display: block;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section__filters {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Media Grid Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background-color: var(--color-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.media-card:hover .media-card__info {
    transform: translateY(0);
    opacity: 1;
}

.media-card__poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.media-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-card__poster img {
    transform: scale(1.05);
}

.media-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 60%,
        transparent 100%
    );
    transform: translateY(20px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.media-card__info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .header__content {
        flex-direction: column;
    }

    .header__left, .header__right {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .search {
        width: 100%;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .nav__link {
        white-space: nowrap;
    }

    .footer__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .media-card__info {
        padding: 1rem;
    }
}

.media-card__type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--color-text);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.error-message, .no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-surface);
    border-radius: 0.75rem;
    color: var(--color-text-secondary);
}

.error-message {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading Skeleton */
.media-card.skeleton {
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.media-card.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.media-grid {
    min-height: 400px;
    position: relative;
}

.media-grid.loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.media-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* Enhance hover effects */
.media-card:hover .media-card__type {
    background-color: var(--color-primary);
}

.media-card__info {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 60%,
        transparent 100%
    );
} 