#site-header{position:absolute; top:0; left:0; right:0; background:transparent; padding:5px 30px; z-index:999;}
.movie-hero{width:100%; height:90vh; background-size:cover; background-position:center; position:relative;}
.movie-hero::after{content: ""; position: absolute; inset: 0; background:linear-gradient(to top,rgba(0,0,0,1),rgba(0,0,0,0.5)); z-index: 1;}
.movie-container{max-width:1366px; margin-inline:max(5%,(100% - 1366px)/2); position:relative; margin-top:-100px; z-index:10; display:grid; grid-template-columns:300px 1fr; gap:20px;}
.container-left{background-color:#FFFFFF08; border-radius:8px; padding:20px;}
.movie-poster{text-align:center;}
.movie-poster img{width:250px; height:375px; border-radius:8px; object-fit:cover;}
.movie-title {font-size:24px; font-weight:800;}
.movie-meta{flex:1;}
.meta-row {font-size:14px;}
.movie-description-wrapper{position:relative;}
.movie-description {text-align:left; max-height:200px; overflow:hidden; position:relative; transition:max-height .4s ease;}
.movie-description:after{content:""; position:absolute; bottom:0; left:0; right:0; height:80px; background:linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events:none;}
.movie-description.expanded{max-height:none;}
.movie-description.expanded:after{display:none;}
.desc-toggle{position:absolute; bottom:10px; left:50%; transform:translateX(-50%); padding:6px 14px; font-size:13px; background:#ff3d00; color:#fff; border:none; border-radius:4px; cursor:pointer; z-index:10; transition:all .2s ease;}
.desc-toggle:hover{background:#e63600;}
.movie-tags {display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.movie-tags .tag{background:#2b2f3a; color:#fff; padding:6px 10px; border-radius:6px; font-size:13px; text-decoration:none; transition:0.2s;}
.movie-tags .tag:hover{background:#3b4150;}
.meta-label{font-weight:600; color:#f5c518; margin-right:6px; display:flex; align-items:center; gap:5px; width:100px;}
.container-right{background-color:#FFFFFF08; border-radius:8px; padding:20px;}
.movie-actions{width:100%; display:grid; grid-template-columns:180px 1fr 1fr 1fr 1fr 1fr; gap:10px; margin-bottom:20px;}
.watch-button{display:inline-flex; padding:.95rem 2rem; gap:1rem; background:linear-gradient(135deg, #ec4899, #f9a8d4); border-radius:8px; align-items:center; justify-content:center; font-size:18px; font-weight:600;}
.favorite-btn{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:transparent; border:none; cursor:pointer; color:#fff; padding:10px; border-radius:10px;}
.favorite-btn:hover{background-color:#ffffff05;}
.favorite-btn .fav-icon{font-size:22px; line-height:1;}
.favorite-btn .fav-text{font-size:13px;}
.btn-cm{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:transparent; border:none; cursor:pointer; color:#fff; padding:10px; border-radius:10px;}
.btn-cm:hover{background-color:#ffffff05;}
.btn-cm .fav-icon{font-size:22px; line-height:1;}
.btn-cm .fav-text{font-size:13px;}
.spinner{width: 1em; height: 1em; border: 2px solid rgba(255,165,0,0.3); border-top-color:#62ff00; border-radius: 50%; animation: spin 0.8s linear infinite;}
@keyframes spin{to{transform: rotate(360deg);}}
#rating-popup{position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); display:none; justify-content:center; align-items:center; z-index:9999;}
#rating-popup.show{display:flex;}
.rating-box{background:#2A314E; padding:30px; border-radius:10px; width:600px; max-width:95%; text-align:center; color:#fff;}
.rating-header h3{margin:0px 0px 10px 0px;}
.rating-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:20px; background-color:#0000004d; border-radius:10px; padding:10px;}
.rating-card{cursor:pointer; transition:all .25s ease;}
.rating-card img{width:60px; height:60px; margin:auto; display:block; margin-bottom:8px; filter:grayscale(100%); opacity:0.8; transition:all .25s ease;}
.rating-text{font-size:14px; margin-bottom:4px;}
.rating-number{font-weight:bold;}
.rating-card:hover img{filter:none; opacity:1; transform:scale(1.1);}
.rating-card.active{background:#ff4fa3;}
.rating-card.active img{filter:none; opacity:1;}
.rating-actions{margin-top:10px;}
#rating-submit{cursor:pointer; background-color:#ff2e63; color:#ffffff; font-size:14px; font-weight:600; border-radius:10px; padding:10px;}
#rating-close{cursor:pointer; font-size:14px; font-weight:600; border-radius:10px; padding:10px;}
.episode-list {max-width:100%; max-height:440px; background-color: #FFFFFF08; border:2px solid #FFFFFF08; border-radius:8px; padding:10px 20px; min-width:0; margin-bottom:10px;}
.episode-list legend {font-weight: bold; color: #f5c518; padding: 0 10px;}
.episode-tabs{display:grid; grid-template-columns:repeat(8,1fr); gap:10px; margin-bottom:15px; max-height:60px; overflow-y:auto;}
.episode-tabs::-webkit-scrollbar{width:6px;}
.episode-tabs::-webkit-scrollbar-thumb{background:#ffffff33; border-radius:10px;}
.episode-tab{background:#2b2f3a; border:none; color:#fff; padding:6px 12px; border-radius:6px; cursor:pointer;}
.episode-tab.active{background:#f5c518; color:#000;}
.episode-tab:hover{background:#2c3143;}
.episode-grid{display:grid; grid-template-columns:repeat(10,1fr); gap:10px;}
.episode-item{position:relative; display:flex; align-items:center; justify-content:center; background:#2b2f3a; padding:10px; text-align:center; border-radius:6px; text-decoration:none; color:#fff; font-weight:500;}
.episode-item:hover{background:#2c3143;}
.episode-item.active{background:#f5c518; color:#000; font-weight:600;}
.vip-badge{position:absolute; top:2px; left:2px; z-index:2; pointer-events:none;}
.vip-crown{fill:#ff0000; animation: vipGlow 1.2s infinite ease-in-out;}
@keyframes vipGlow{0%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.1);} 100%{opacity:1;transform:scale(1);}}
.hidden{display:none;}
.person-column-grid{display:grid; grid-template-columns:6fr 2fr 2fr; gap:10px;}
.person-column{max-width:100%; background-color:#FFFFFF08; border:2px solid #FFFFFF08; border-radius:8px; padding:10px 20px; min-width:0; text-align:center;}
.person-column legend{font-weight: bold; color: #f5c518; padding: 0 10px;}
.person-list{display:flex; gap:16px; margin-top:10px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%;}
.person-list::-webkit-scrollbar{height:6px;}
.person-list::-webkit-scrollbar-thumb{background:#ffffff33; border-radius:10px;}
.person-widget-avatar img{width:70px; height:70px; border-radius:10px; object-fit:cover;}
.person-widget-name {font-size:14px; margin:0; margin-left:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.person-widget-name a{text-decoration:none; color:inherit; display:block;}
.person-item{text-align:center; width:80px; flex:0 0 auto;}
.person-item a{text-decoration:none; color:inherit; display:block;}
.person-item img{width:70px; height:70px; border-radius:10px; object-fit:cover;}
.person-item span{font-size:12px; display:block; margin-top:6px;}
.person-empty, .comment-empty{color:#bbb; font-style:italic; font-size:14px; padding:10px 0;}
.episode-comments {max-width:100%; background-color:#FFFFFF08; border:2px solid #FFFFFF08; border-radius:8px; padding:10px 20px; min-width:0; margin-top:10px;}
.episode-comments legend {font-weight: bold; color: #f5c518; padding: 0 10px;}
.comment-list{display:flex; flex-direction:column; max-height:280px; overflow-y:auto;}
.comment-list::-webkit-scrollbar{width:6px;}
.comment-list::-webkit-scrollbar-thumb{background:#ffffff33; border-radius:10px;}
#ajax-comment-form textarea{width:calc(100% - 20px); min-height:80px; background:#111; border:1px solid #333; border-radius:8px; padding:10px; color:#fff;}
#ajax-comment-form button{margin-top:10px; background:#e50914; border:none; padding:8px 16px; color:#fff; border-radius:6px; cursor:pointer;}
.comment-item{display:block; padding-bottom:4px;}
.comment-main{display:flex; gap:12px;}
.comment-avatar img{border-radius:10px; width:40px; height:40px;}
.comment-body{background:#1c1c1c; padding:10px 12px; border-radius:10px; flex:1;}
.comment-author{font-weight:600; margin-bottom:4px;}
.comment-text{font-size:14px; line-height:1.6; color:#ddd;}
.comment-meta{margin-top:6px; font-size:12px; color:#aaa;}
.comment-reply-btn{background:none; border:none; color:#4a8cff; cursor:pointer; font-size:12px;}
.comment-item.reply .comment-avatar img{width:36px; height:36px;}
.comment-children{margin-left:60px; margin-top:12px; border-left:2px solid #2a2a2a; display:flex; flex-direction:column; gap:12px;}
.related-movies {max-width:1366px; margin-inline:max(5%,(100% - 1366px)/2); background-color:#FFFFFF08; border:2px solid #FFFFFF08; border-radius:8px; padding:20px; margin-top:20px; margin-bottom:20px; min-width:0;}
.related-movies legend {font-weight: bold; color: #f5c518; padding: 0 10px;}
#toast-container{position:fixed; top:20px; right:20px; z-index:99999; display:flex; flex-direction:column; gap:10px;}
.toast{min-width:260px; padding:14px 18px; border-radius:8px; color:#fff; font-size:14px; display:flex; align-items:center; gap:10px; box-shadow:0 4px 12px rgba(0,0,0,0.3); animation:toast-in .3s ease;}
.toast.success{background:#2ecc71;}
.toast.error{background:#e74c3c;}
.toast.info{background:#3498db;}
.toast-close{margin-left:auto; cursor:pointer; font-weight:bold;}
@keyframes toast-in{from{opacity:0; transform:translateX(50px);} to{opacity:1; transform:translateX(0);}}
/** MOBILE LAYOUT **/
@media (max-width:900px){
	.movie-hero{display:none;}
	.movie-container{display:block; margin-top:50px;}
	.movie-actions{display:none;}
	.episode-grid{grid-template-columns:repeat(5, 1fr);}
	.person-column-grid{display:none;}
	.related-movies{display:none;}
	#site-footer{display:none;}
}
