/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #141414;
    color: #fff;
}

/* Navigation */
.top-nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 25px;
}

.logo {
    height: 25px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

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

.search-box {
    padding: 8px 15px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: #fff;
    margin-right: 20px;
    width: 250px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box:hover {
    border-color: rgba(255,255,255,0.5);
}

.search-box:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
    width: 300px;
}

.search-box::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Style for the clear (X) button */
.search-box::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6B6B'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat 50% 50%;
    cursor: pointer;
}

.profile-icon {
    height: 32px;
    border-radius: 4px;
}

/* Hero Banner */
.hero-banner {
    height: 80vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    background-size: cover;
    background-position: center;
    padding: 70px 4% 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.featured-content {
    max-width: 500px;
    margin-top: 100px;
}

.featured-title {
    font-size: 3em;
    margin-bottom: 20px;
}

.featured-description {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.featured-buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
}

.play-button {
    background-color: #fff;
    color: #000;
}

.more-info-button {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

/* Content Rows */
.content-container {
    padding: 20px 4%;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.content-row {
    margin-bottom: 40px;
    padding-top: 70px;
}

.content-row:first-child {
    padding-top: 0;
}

.content-row h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Slider Container and Arrows */
.slider-container {
    position: relative;
    margin: 0 -4%;
    padding: 0 4%;
}

.content-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}

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

.slider-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Desktop-only hover effects */
@media (min-width: 769px) {
    .slider-arrow {
        background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 100%);
        transition: opacity 0.3s ease, background 0.3s ease;
    }

    .slider-arrow-left {
        left: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    }

    .slider-arrow-right {
        right: 0;
        background: linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    }

    .slider-container:hover .slider-arrow {
        opacity: 1;
    }

    .slider-arrow:hover {
        background: linear-gradient(90deg, rgba(229,9,20,0.15) 0%, transparent 100%);
    }

    .slider-arrow-right:hover {
        background: linear-gradient(-90deg, rgba(229,9,20,0.15) 0%, transparent 100%);
    }

    .slider-arrow:hover .arrow {
        transform: scale(1.2);
    }
}

.arrow {
    color: #fff;
    font-size: 4em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 0;
    transition: transform 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .slider-arrow {
        width: 50px;
        opacity: 1;
        background: none;
    }
    
    .arrow {
        font-size: 3.5em;
    }
    
    .slider-arrow:hover {
        background: none;
    }
    
    .slider-arrow:hover .arrow {
        transform: none;
    }

    .slider-arrow-left {
        left: 0;
    }

    .slider-arrow-right {
        right: 0;
    }
}

.content-item {
    flex: 0 0 auto;
    width: 200px;
    transition: transform 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.content-item:hover {
    transform: scale(1.1);
    z-index: 2;
}

.content-item a {
    text-decoration: none;
    color: #fff;
}

.content-item img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.content-info {
    padding: 10px 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.content-item:hover .content-info {
    opacity: 1;
}

.content-info h3 {
    font-size: 0.95em;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.content-info .rating {
    font-size: 0.85em;
    color: #46d369;
    font-weight: 600;
    display: inline-block;
    padding: 2px 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 4px;
    background-color: #4d4d4d;
    margin-top: 10px;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background-color: #e50914;
    border-radius: 2px;
}

/* Video Player Page */
.video-player-container {
    padding-top: 70px;
    min-height: 100vh;
    background-color: #141414;
    position: relative;
    z-index: 0;
}

.video-player {
    width: 100%;
    background: #000;
    position: relative;
    aspect-ratio: 16/9;
}

.video-controls-top {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
}

.back-button {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(0,0,0,0.7);
}

.video-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.2em;
}

.volume-control {
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 100px;
}

.progress-container {
    width: 100%;
    max-width: 600px;
}

.time-display {
    font-size: 0.9em;
    margin-left: 10px;
}

.video-info {
    flex: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.video-info h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
}

.video-metadata {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-metadata span {
    color: #a1a1a1;
    font-size: 1.1em;
}

.video-metadata .rating {
    color: #46d369;
    font-weight: bold;
}

.description {
    font-size: 1.2em;
    line-height: 1.6;
    color: #a1a1a1;
    margin-top: 20px;
    flex-grow: 1;
    margin-bottom: 40px;
}

.footer-text {
    font-size: 0.9em;
    color: rgba(161, 161, 161, 0.7);
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 20px 0;
}

/* Video Details Section */
.video-details {
    display: flex;
    padding: 40px 4%;
    gap: 40px;
    min-height: calc(100vh - 60px - 56.25vw); /* Subtract navbar and video player height */
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.95));
    position: relative;
}

.poster-container {
    flex: 0 0 300px;
}

.movie-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.movie-poster:hover {
    transform: scale(1.02);
}

.trailer-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.trailer-container iframe {
    display: block;
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-details {
        flex-direction: column;
        padding: 20px 4%;
        min-height: auto;
    }

    .poster-container {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }

    .video-info h1 {
        font-size: 2em;
        text-align: center;
    }

    .video-metadata {
        justify-content: center;
    }

    .footer-text {
        position: relative;
        text-align: center;
        width: 100%;
        margin-top: 40px;
    }
}

/* Footer */
.footer {
    display: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .content-item {
        width: 150px;
    }
    
    .content-slider {
        gap: 8px;
        padding: 15px 0;
        cursor: default;
        scroll-snap-type: x mandatory;
    }
    
    .content-item {
        scroll-snap-align: start;
    }
    
    .slider-arrow {
        opacity: 1 !important;
        width: 40px !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .slider-container:hover .slider-arrow {
        display: flex !important;
    }
    
    .content-info h3 {
        font-size: 0.85em;
    }
    
    .content-info .rating {
        font-size: 0.75em;
    }
} 