﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #141414;
    color: white;
    overflow-x: hidden;
}

h3 {
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #4abed3;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 45px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: none;
	background: linear-gradient(to bottom, rgba(21,25,30,0.7) 0%, rgba(21,25,30,0) 100%);
}

.logo {
    width: 240px;
}

.logo-accedi {
    width: 350px;
}

/* Search Panel Styles */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-container {
    width: 80%;
    max-width: 600px;
    position: relative;
    height: 60px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    outline: none;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 6px;
    border-radius: 100%;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #d90000;
}

.search-submit:hover {background:#222;}

.search-submit > i, .search-submit:hover > i {line-height: 40px; color:#FFF;}

.search-close {
    position: fixed;
    right: 45px;
    top: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

/* When search panel is active */
.search-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Desktop Menu */
.desktop-nav-links {
    display: flex;
    gap: 25px;
    margin-left: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.desktop-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.desktop-nav-links a:hover {
    opacity: 0.8;
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.right-nav > a > i,.right-nav > div > a > i {color:#FFF;}

.box-search {width:100%; height: 100vh; background:rgba(0,0,0,0.8); position:fixed; top:0; left:0; z-index: 10;} 

.profile {
    width: 30px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #252c34;
    z-index: 1000;
    padding: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 10px 0;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.mobile-nav-links a:hover {
    opacity: 0.8;
}

/* User Menu */
.user-menu {
    display: block;
    position: absolute;
    right: 45px;
    top: 70px;
    background-color: #252c34;
    border-radius: 4px;
    padding: 10px;
    min-width: 150px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    z-index: 1000;
    padding: 50px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.overlay-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.overlay-player {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.player-video-wrapper {
    width: 100%;
    min-height: 460px;
    background: #000;
    position: relative;
}

.overlay.show .overlay-content {
    transform: translateY(0);
}


.bg-dettaglio {position: absolute;top:0;left:0; 
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#252c34+0,252c34+100&0+0,0+23,0.85+80 */height: 100%;width: 100%;background: linear-gradient(to bottom,  rgba(37,44,52,0) 10vh,rgba(37,44,52,0.5) 50vh,rgba(37,44,52,0.95) 56vh,rgba(37,44,52,1) 90vh); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */min-height: 100vh;pointer-events:none;z-index:0;}



#notifiche > a  {position:relative;}
#notifiche > a > span {
    background:#d90000;
    color:#FFF;
    border-radius: 100%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    position:absolute;
    top: -10px;
    right: -10px;
    font-size: 11px;
}


/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 45px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-gradient {
        position:absolute;
        width: 100%;
        height: 100%;
        top:0;
        left:0;
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#15191e+0,15191e+100&0+0,0+46,0.85+80 */
        background: radial-gradient(ellipse at center,  rgba(21,25,30,0.2) 0%,rgba(21,25,30,0.3) 46%,rgba(21,25,30,0.85) 80%,rgba(21,25,30,0.85) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
	margin: 10px 0;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #e50914;
    color: white;
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

/* Content Rows */
.content {
    padding: 20px 45px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#15191e+0,15191e+100&0+0,1+7 */
    background: -webkit-linear-gradient(rgba(21,25,30,0) 0%, rgba(21,25,30,0.78) 2%, rgba(21,25,30,0.95) 4%, rgba(21,25,30,1) 100%);
    background: -o-linear-gradient(rgba(21,25,30,0) 0%, rgba(21,25,30,0.78) 2%, rgba(21,25,30,0.95) 4%, rgba(21,25,30,1) 100%);
    background: linear-gradient(rgba(21,25,30,0) 0%, rgba(21,25,30,0.78) 2%, rgba(21,25,30,0.95) 4%, rgba(21,25,30,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.row {
    margin-bottom: 40px;
    position: relative;
}

.row h2 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #f6e204;
}

.row-flew {display:flex;justify-content: space-between;}
 
.h2correlati {
    margin: 10px 0;
    font-size: 1rem;
    color: #4abed3;
    overflow-wrap: anywhere;
}

.select-stagione {
    flex-shrink: 0;
    padding: 0px 10px;
    line-height: 1em;
    background: transparent;
    color: #FFF;
    height: 2.4em;
    border-radius: 4px;
}

.row-items-container {
    position: relative;
}

.row-items {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.row-items::-webkit-scrollbar {
    display: none;
}

.item {
    width: 250px;
    height: 330px;
    background-color: #333;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.item:hover {
    transform: scale(1.05);
    z-index: 20;
}

.item > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(74, 190, 211, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    border-radius: 100%;
    transition: opacity 0.3s, background-color 0.3s;
}

.scroll-btn:hover {
    background-color: rgba(74, 190, 211, 1);
}

.scroll-btn.left {
    left: 0;
    border-radius: 100%;
}

.scroll-btn.right {
    right: 0;
    border-radius: 100%;
}

.row-items-container:hover .scroll-btn {
    opacity: 1;
}

/* Movie Info Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21,25,30,0.9);
    z-index: 1000;
    padding: 20px;
    overflow-y: scroll;
    box-sizing: border-box;
}

.overlay-content {
    max-width: 720px;
    margin: 0 auto;
    display: table;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #252c34;
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
    position: relative;
}

#movieRating {color:#4abed3; font-weight:600;}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    margin-left:auto;
    transition: opacity 0.3s;
}

.close-btn:hover {opacity:0.7;}

.movie-details {
    gap: 30px;
    margin-top: 50%;
    position: relative;
    z-index: 2;
}

.movie-poster {
    width: 300px;
    border-radius: 4px;
}

.movie-info {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 30px;
}

.movie-correlati {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.movie-correlati > .item {min-width: inherit;}

.movie-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
}

.movie-rating {
    color: #46d369;
    font-weight: bold;
}

.movie-description {
    line-height: 1.5;
    margin-bottom: 20px;
}

.movie-cast {
    color: #efefef;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.movie-tag {
    color: #efefef;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.tag {
    padding:4px 6px; 
    border:1px solid #EFEFEF; 
    color:#EFEFEF; 
    font-size:0.8em; 
    line-height: 1em; 
    margin:0 4px 4px 0; 
    border-radius:4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 0 0 20px;
}

.desc-episodio {font-size:0.8em;padding: 0 0 0 15px;}

.btn-play {
    background-color: #8dbc23;
    color: #FFF;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: bold;
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-play:hover {
    opacity: 0.9;
}

.btn-add {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    padding: 5px;
    border: 0;
    height: 36px;
    cursor: pointer;
    border-radius: 100%;
    transition: background-color 0.3s;
    width: 36px;
    box-sizing: border-box;
}

.btn-add:hover {
    background-color: rgba(109, 109, 110, 0.9);
}

.added {
    background-color:#4abed3!important;
}

.btn-add > i:before {content: "\2b";} 
.btn-add.added > i:before {content: "\f00c";} 

.btn-share {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    padding: 5px;
    border: 0;
    height: 36px;
    cursor: pointer;
    border-radius: 100%;
    transition: background-color 0.3s;
    width: 36px;
    box-sizing: border-box;
}

.btn-share:hover {
    background-color: rgba(109, 109, 110, 0.9);
}


.lista-episodi {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 0 40px;
}

.item-episodio {display:flex;min-height: 7rem;padding: 1rem 0;border-bottom: 1px solid rgba(255,255,255,0.1);color:#FFF;width: 100%;cursor: pointer;}
.item-episodio > .img-episodio > i {transition: opacity 0.3s; opacity:0;position:absolute;top: 50%;width: 30px;height: 40px;line-height: 40px;margin-top: -20px;margin-left: -20px;left: 50%;font-size: 1.7em;text-align: center;z-index: 2;box-sizing: border-box;}


.item-episodio:hover > .img-episodio > i {opacity:1; color:#FFF;}
.item-episodio:hover > .img-episodio > img {opacity: 0.4}
.img-episodio {display:flex;border-radius: 4px;flex: 0 0 20%;position: relative;overflow: hidden;cursor: pointer;}

.num-episodio {display:flex;flex: 0 0 5%;align-items: center;}
.img-episodio > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.progress-bar {position:absolute;width:100%;height: 3px;bottom:0;background: rgba(0,0,0,0.8);}
.progress-bar > span {height: 3px;float:left;background: #8dbc23;}


.info-episodio {flex: 0 0 75%;}

.titolo-time-episodio {
    display: flex;
    justify-content: space-between;
    padding: 0em 0 .5em 15px;
}

.title-episodio {overflow-wrap: anywhere;font-weight: 600;}
.time-episodio {flex-shrink: 0;font-size: 0.9em;}

.interview-card {width: 30%;}

.live-card {width: 30%;}

/* Footer */
footer {
    padding: 20px 45px;
    color: #757575;
    font-size: 13px;
    background: #151A1E;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: #757575;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #aaa;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #757575;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #aaa;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .search-close {top:20px; right: 30px}
    
    .navbar {
        padding: 20px 30px;
    }
    
    .content, .hero {
        padding: 0 30px;
    }
    
    footer {
        padding: 20px 30px;
    }
    
    .item {
        min-width: 200px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .item {
        min-width: 180px;
        height: 270px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 0;
    }
    
    .right-nav {
        order: 2;
    }
    
    .logo {
        order: 1;
        width: 200px;
    }
    
    
    .item {
        min-width: 150px;
        height: 225px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-details {
        flex-direction: column;
    }
    
    .movie-poster {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-close {top:15px; right: 20px}
    .navbar {
        padding: 15px 20px;
    }
    
    .content, .hero {
        padding: 0 20px;
    }
    
    footer {
        padding: 15px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .item {
        min-width: 120px;
        height: 180px;
    }
    
    .user-menu {
        right: 20px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

body[data-route="home"] .site-header,
body[data-route="home"] .site-footer {
    display: none !important;
}
