@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-primary: #ededed;
    --text-secondary: #aaaaaa;
    --accent: #e50914; /* Netflix Red-ish style */
    --hover-accent: #b20710;
    --border-color: #333;
    --radius: 8px;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, ol {
    list-style: none;
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.highlight {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn.primary:hover {
    background: var(--hover-accent);
}

/* Header */
.main-header {
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.main-header nav a {
    margin-left: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.main-header nav a:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.movie-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: block;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    background: #000;
    overflow: hidden;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.movie-card:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #666;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px black;
}

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Detail Page */
.movie-detail {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.movie-detail .poster-large {
    flex: 0 0 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.movie-detail .poster-large img {
    width: 100%;
    display: block;
}

.movie-detail .content {
    flex: 1;
}

.movie-detail h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.year {
    color: var(--text-secondary);
    font-weight: 400;
}

.overview {
    margin-bottom: 2rem;
}

.overview h2, .streaming-options h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.status-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.status-box h3 {
    margin-bottom: 1rem;
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.provider-btn {
    display: flex;
    align-items: center;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.2s;
}

.provider-btn:hover {
    transform: scale(1.05);
}

.provider-btn .quality {
    background: #000;
    color: #fff;
    font-size: 0.7em;
    padding: 2px 4px;
    border-radius: 2px;
    margin-left: 0.5rem;
}

/* Warnings */
.status-box.unavailable {
    border-color: #666;
}

.amazon-btn {
    display: inline-block;
    background: #ff9900;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 1rem;
}

.status-box.warning {
    border-color: orange;
    background: rgba(255, 165, 0, 0.1);
}

.status-box.warning h3 {
    color: orange;
}

.vpn-upsell {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vpn-link {
    color: #4facfe;
    text-decoration: underline;
}

.provider-badge {
    background: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .movie-detail {
        flex-direction: column;
    }
    
    .movie-detail .poster-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
