:root {
    --netflix-red: #E50914;
    --netflix-black: #FFFFFF;
    --netflix-dark-grey: #F3F3F3;
    --netflix-white: #141414;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Header */
.netflix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, transparent 100%);
    transition: var(--transition);
}

.netflix-header.scrolled {
    background-color: var(--netflix-black);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    color: var(--netflix-red);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--netflix-white);
    font-weight: 300;
}

.main-nav {
    display: flex;
    gap: 20px;
    margin-right: auto;
    margin-left: 50px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--netflix-red);
}

.secondary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #333;
}

.secondary-nav i {
    cursor: pointer;
}

.profile-icon {
    width: 32px;
    height: 32px;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

/* Tech Ticker */
.tech-ticker {
    background-color: #fafafa;
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ticker-wrapper {
    width: 100%;
}

.ticker-track {
    display: flex;
    width: calc(250px * 20);
    animation: scroll 40s linear infinite;
}

.ticker-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.ticker-item i {
    font-size: 2rem;
    color: var(--netflix-red);
}

.ticker-item:hover {
    color: var(--netflix-red);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); }
}

/* Hero Section */
.hero-section {
    height: 90vh;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0.9) 100%), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--netflix-white);
}

.hero-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-play {
    background-color: var(--netflix-red);
    color: white;
}

.btn-info {
    background-color: #e5e5e5;
    color: var(--netflix-white);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match {
    color: #27ae60;
    font-weight: bold;
}

.rating {
    border: 1px solid #aaa;
    padding: 0 5px;
    font-size: 12px;
    color: #666;
}

/* Rows */
.netflix-row {
    padding: 60px 4% 0;
}

.row-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--netflix-white);
}

.row-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.card {
    background-color: var(--netflix-dark-grey);
    border: 1px solid #eee;
    border-radius: 6px;
    width: 100%;
    min-height: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.45, 0.45, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.card.wide {
    min-height: 300px;
    justify-content: flex-start;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: #fff;
    border-color: var(--netflix-red);
}

.card-inner {
    width: 100%;
}

.card-inner h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--netflix-white);
}

.card-inner p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

.card-inner i {
    font-size: 3rem;
    color: var(--netflix-red);
    margin-bottom: 20px;
    display: block;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--netflix-red);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.card-inner ul {
    list-style: none;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #555;
}

.card-inner ul li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-inner ul li::before {
    content: "▸ ";
    color: var(--netflix-red);
    font-weight: bold;
}

.role {
    font-weight: 700;
    color: var(--netflix-red) !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Footer */
.netflix-footer {
    padding: 80px 15% 40px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--netflix-red);
}

.copyright {
    font-size: 11px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-content { max-width: 100%; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    border: 2px solid var(--netflix-red);
    transition: all 0.3s ease;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info i {
    color: var(--netflix-red);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.song-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #141414;
}

.artist {
    font-size: 0.75rem;
    color: #888;
}

.play-btn {
    background: var(--netflix-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
