/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --buttflix-red: #e50914;
    --buttflix-dark: #141414;
    --buttflix-gray: #181818;
    --buttflix-light-gray: #2f2f2f;
    --buttflix-text: #ffffff;
    --buttflix-text-muted: #b3b3b3;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--buttflix-dark);
    color: var(--buttflix-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 68px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--buttflix-dark);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--buttflix-text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.search-btn,
.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    filter: grayscale(100%) brightness(2);
    transition: transform 0.2s ease;
}

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

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--buttflix-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--buttflix-red);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--buttflix-text);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 100%),
                url('6.png') center 20%/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-top: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--buttflix-text-muted);
    margin-bottom: 15px;
}

.hero-badge::before {
    content: '🍑';
    font-size: 20px;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
    color: var(--buttflix-text);
    letter-spacing: 4px;
}

.hero-subtitle {
    color: #5fd4f4;
    font-size: 4rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--buttflix-text-muted);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-play {
    background-color: var(--buttflix-text);
    color: var(--buttflix-dark);
}

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

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--buttflix-text);
}

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

.hero-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.maturity-rating {
    padding: 2px 8px;
    border: 1px solid var(--buttflix-text-muted);
    font-size: 14px;
}

.content-warning {
    font-size: 14px;
    color: var(--buttflix-text-muted);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--buttflix-dark) 0%, transparent 100%);
}

/* Content Rows */
.content {
    position: relative;
    margin-top: -100px;
    padding: 0 60px 60px;
    z-index: 10;
}

.content-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.row-content {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--buttflix-light-gray) transparent;
}

.row-content::-webkit-scrollbar {
    height: 6px;
}

.row-content::-webkit-scrollbar-track {
    background: transparent;
}

.row-content::-webkit-scrollbar-thumb {
    background-color: var(--buttflix-light-gray);
    border-radius: 3px;
}

/* Cards */
.card {
    flex-shrink: 0;
    width: 180px;
    height: 270px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Square card for 1:1 images */
.card.card-square {
    width: 270px;
    height: 270px;
}

.card-content.card-square {
    width: 200px;
    height: 200px;
}

.card-content.card-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-overlay h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.card-overlay p {
    font-size: 0.8rem;
    color: var(--buttflix-text-muted);
}

/* Placeholder Cards */
.placeholder-card {
    background: linear-gradient(135deg, var(--buttflix-gray) 0%, var(--buttflix-light-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    padding: 15px;
}

.placeholder-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.placeholder-content h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.placeholder-content p {
    font-size: 0.7rem;
    color: var(--buttflix-text-muted);
    line-height: 1.3;
}

/* Top 10 Cards */
.top-10 {
    gap: 5px;
}

.top-10-card {
    display: flex;
    align-items: center;
    width: auto;
    background: transparent;
    height: auto;
}

.top-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 10rem;
    font-weight: 700;
    color: var(--buttflix-dark);
    -webkit-text-stroke: 3px var(--buttflix-text-muted);
    margin-right: -35px;
    z-index: 1;
}

.top-10-card .card-content {
    width: 180px;
    height: 270px;
    border-radius: 4px;
    overflow: hidden;
}

.top-10-card .card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-10-card .placeholder-card {
    width: 100%;
    height: 100%;
}

/* Watching Cards with Progress */
.watching-card {
    display: flex;
    flex-direction: column;
}

.watching-card .placeholder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-bar {
    height: 4px;
    background-color: var(--buttflix-light-gray);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.progress {
    height: 100%;
    background-color: var(--buttflix-red);
}

/* Buttflix Originals - Larger cards */
.originals .card-original {
    width: 220px;
    height: 330px;
}

/* New badge */
.new-badge {
    position: relative;
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--buttflix-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    z-index: 5;
}

/* Footer */
.footer {
    background-color: var(--buttflix-dark);
    padding: 60px;
    border-top: 1px solid var(--buttflix-light-gray);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.social-links a:hover {
    filter: grayscale(0%);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.footer-column a {
    font-size: 13px;
    color: var(--buttflix-text-muted);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--buttflix-text);
}

.service-code {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid var(--buttflix-text-muted);
    color: var(--buttflix-text-muted);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-code:hover {
    color: var(--buttflix-text);
    border-color: var(--buttflix-text);
}

.copyright {
    font-size: 12px;
    color: var(--buttflix-text-muted);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 11px;
    color: var(--buttflix-text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 40px;
    }
    
    .hero {
        padding: 0 40px;
    }
    
    .content {
        padding: 0 40px 60px;
    }
    
    .footer {
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 20px;
    }
    
    .hero {
        padding: 0 20px;
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .content {
        padding: 0 20px 40px;
    }
    
    .card {
        width: 120px;
        height: 180px;
    }
    
    .top-number {
        font-size: 6rem;
    }
    
    .top-10-card .card-content {
        width: 120px;
        height: 180px;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-row {
    animation: fadeIn 0.6s ease forwards;
}

.content-row:nth-child(2) { animation-delay: 0.1s; }
.content-row:nth-child(3) { animation-delay: 0.2s; }
.content-row:nth-child(4) { animation-delay: 0.3s; }
.content-row:nth-child(5) { animation-delay: 0.4s; }
.content-row:nth-child(6) { animation-delay: 0.5s; }

/* Hover Effects */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

/* Netflix-style card expand on hover */
.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
