/* StreamBox - Streaming Platform Theme */
:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --bg-dark: #141414;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: background 0.3s;
}

.header.scrolled {
    background: var(--bg-darker);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 800;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-play {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 12px 28px;
    font-size: 1.1rem;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
    padding: 12px 28px;
    font-size: 1.1rem;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%),
                linear-gradient(0deg, var(--bg-dark) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 4%;
}

.content-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content .meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.hero-content .description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

/* Content Row */
.content-row {
    padding: 20px 0;
    position: relative;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4%;
}

.row-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.see-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.see-all:hover {
    color: var(--text-primary);
}

/* Content Slider */
.content-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 4%;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.content-slider::-webkit-scrollbar {
    display: none;
}

/* Content Card */
.content-card {
    flex: 0 0 auto;
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s, z-index 0s 0.3s;
}

.content-card:hover {
    transform: scale(1.1);
    z-index: 10;
    transition: transform 0.3s, z-index 0s;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Poster title overlay for realistic look */
.card-image::before {
    content: attr(data-title);
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--bg-dark);
    transition: transform 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.card-info {
    padding: 12px 4px;
}

.card-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Progress Card */
.progress-card .progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: -3px;
    position: relative;
    z-index: 1;
}

.progress-card .progress {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

/* Rank Card */
.rank-card {
    position: relative;
    width: 140px;
}

.rank-card .card-image {
    margin-left: 30px;
    width: calc(100% - 30px);
}

.rank-number {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 7rem;
    font-weight: 800;
    line-height: 0.8;
    color: var(--bg-dark);
    -webkit-text-stroke: 3px var(--text-muted);
    z-index: 1;
}

/* Episode Badge */
.episode-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 3px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-darker);
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    gap: 100px;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
                linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px;
}

.login-card {
    background: rgba(0, 0, 0, 0.75);
    padding: 60px 68px;
    border-radius: 4px;
    width: 100%;
    max-width: 450px;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: #8c8c8c;
}

.form-group input:focus {
    outline: none;
    background: #454545;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-card {
        width: 160px;
    }

    .rank-card {
        width: 120px;
    }

    .rank-number {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .content-card {
        width: 140px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }

    .login-card {
        padding: 40px 30px;
    }
}
