@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&family=Bebas+Neue&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#000;
    color:white;
    overflow:hidden;
}

/* Shared Header Container */
.header-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* Landing Page */
.container{
    position:relative;
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.background{
    position:absolute;
    width:100%;
    height:100%;
    background: linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.9)),
                url("https://assets.nflxext.com/ffe/siteui/vlv3/42f3cd9f-c9a8-4cae-8c03-3e7aa13e0154/web/ID-id-20260727-TRIFECTA-perspective_6fefacf3-cbc8-499b-b412-8e41e36284bb_small.jpg");
    background-size:cover;
    background-position:center;
    filter:brightness(1.5);
}

.content{
    position:relative;
    z-index:2;
    animation:fadeIn 2s;
}

.logo{
    color:#E50914;
    font-size:70px;
    font-weight:bold;
    letter-spacing:4px;
}

.tag{
    font-size:24px;
    margin-top:10px;
    color:#ddd;
}

button{
    margin-top:40px;
    padding:16px 45px;
    border:none;
    background:#E50914;
    color:white;
    font-size:20px;
    cursor:pointer;
    border-radius:5px;
    transition:.3s;
}

button:hover{
    background:#ff2532;
    transform:scale(1.05);
}

/* --- Desain Tombol Silang (Close Button) --- */
button.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 101;    
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;    
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

button.close-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #141414;
    transform: scale(1.1);
}

/* Profiles & PIN Overlay Pages */
.profile-page,
.pin-page{
    position:absolute;
    inset:0;
    background:#141414;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
    opacity:0;
    visibility:hidden;
    transition:opacity .8s ease;
}

.profile-page.show,
.pin-page.show{
    opacity:1;
    visibility:visible;
}

.profile-page h1{
    font-size:55px;
    margin-bottom:60px;
}

.profiles{
    display:flex;
    gap:40px;
    justify-content:center;
    align-items:center;
    margin-top:40px;
    flex-wrap:wrap;
}

.profile{
    cursor:pointer;
    transition:.3s;
}

.profile:hover{
    transform:scale(1.08);
}

.profile img{
    width:180px;
    border-radius:10px;
    border:4px solid transparent;
}

.profile img:hover{
    border-color:white;
}

.profile p{
    margin-top:15px;
    font-size:24px;
    color:#ddd;
}

.profile:hover p{
    color:white;
}

.add-icon{
    width:140px;
    height:140px;
    background:#2b2b2b;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:70px;
    border-radius:8px;
    transition:.3s;
}

.add-profile:hover .add-icon{
    background:#fff;
    color:#111;
}

.manage-profile-btn {
    cursor:pointer;
    text-decoration: none; 
    color: #808080;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    border: 1px solid #808080;
    padding: 10px 30px;
    background-color: transparent;
    margin-top: 50px;
}

.manage-profile-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* PIN Page Elements */
.subtitle {
    color: #a3a3a3;
    font-size: 16px;
    margin-bottom: 5px;
}

.title {
    font-size: 32px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 30px;
}

.pin-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.pin-box {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid #ffffff;
    color: white;
    font-size: 32px;
    text-align: center;
    outline: none;
}

.error-msg {
    color: #e50914;
    font-size: 16px;
    min-height: 20px;
    margin-bottom: 40px;
}

.forgot-link {
    cursor: pointer;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 16px;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* --- BROWSE / MAIN MENU PAGE --- */
.browse-page {
    position: absolute;
    inset: 0;
    background: #141414;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
    z-index: 15;
}

.browse-page.show {
    opacity: 1;
    visibility: visible;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    box-sizing: border-box;
    z-index: 1000; 
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
    transition: background-color 0.4s ease;
}

.navbar.nav-black {
    background-color: #141414;
    background-image: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    height: 30px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b3b3b3;
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 700;
}

.nav-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
}

.nav-avatar {
    position: relative;
    padding: 10px 0;
}

.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.avatar-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
}

.nav-avatar:hover .avatar-dropdown {
    display: block;
}

.avatar-dropdown a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    font-size: 13px;
    white-space: nowrap;
}

.avatar-dropdown a:hover {
    text-decoration: underline;
}

/* --- Hero Banner --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, #141414, transparent 50%),
                linear-gradient(to right, rgba(0,0,0,0.8), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: 55px;
    font-weight: 700;
    margin: 10px 0;
}

.hero-desc {
    font-size: 16px;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-play {
    margin-top: 0;
    background: white;
    color: black;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 4px;
}

.btn-play:hover {
    background: #e6e6e6;
    transform: scale(1.03);
}

.btn-info {
    margin-top: 0;
    background: rgba(109, 109, 110, 0.7);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 4px;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.4);
    transform: scale(1.03);
}

.hero-banner button.volume-btn {
    position: absolute;
    right: 50px;
    bottom: 40px;
    z-index: 10;    
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1 / 1;    
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-banner button.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: scale(1.08);
}

.hero-banner button.volume-btn img,
.volume-btn i {
    width: 20px !;
    height: 20px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

/* --- ROW KATALOG --- */
.row {
    padding: 20px 50px;
    color: white;
}

.row-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

.row-wrapper {
    position: relative;
    width: 100%;
}

.row-container {
    width: 100%;
    overflow: hidden;
}

.row-posters {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: transform;
}

.row-posters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.movie-card {
    flex: 0 0 calc((100% - (5 * 12px)) / 6);
    max-width: calc((100% - (5 * 12px)) / 6);
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.movie-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    z-index: 2;
}

/* --- Desain Tombol Lingkaran --- */
.circle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    padding: 0 !important;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.circle-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

/* --- Movie Detail Section --- */
.movie {
    position: fixed;
    inset: 0;
    background: #000000;
    overflow-y: auto;
    padding: 60px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
    z-index: 100;
}

.movie.show{
    opacity:1;
    visibility:visible;
}

.movie-bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.movie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.poster {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: auto;
    text-align: center;
}
.poster h1{
    color:#FFFFFF;
    font-size:55px;
    margin-bottom:20px;
}

.badge{
    display:inline-block;
    border:1px solid #999;
    padding:5px 10px;
    margin:20px;
}

.desc{
    font-size:20px;
    line-height:1.8;
    color:#ddd;
    margin-top:20px;
}

.footer{
    margin-top:40px;
    color:#999;
}

/* --- Animations --- */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.typewriter{
    overflow:hidden;
    border-right:3px solid red;
    white-space:nowrap;
    animation:typing 5s steps(35),blink .8s infinite;
}

@keyframes typing{
    from{width:0}
    to{width:100%}
}

@keyframes blink{
    50%{border-color:transparent}
}