*{
  box-sizing:border-box;
  font-family:"Vazirmatn", sans-serif;
}

body{
  margin:0;
  background:#0f172a;
  color:#fff;
}

header{
  background:#020617;
  padding:16px;
  font-size:18px;
  font-weight:700;
  border-bottom:1px solid #1e293b;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1000;
}

.main{
  max-width:900px;
  margin:16px auto;
  padding:0 12px;  
  margin-top: 60px;
}

.movie-card{
  display:flex;
  flex-direction:column;
  background:#020617;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #1e293b;
}

.movie-top{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:12px;
}

.poster{
  width:200px;
  height:300px;
  background-size:cover;
  background-position:center;
  border-radius:12px;
  flex-shrink:0;
}

.movie-info{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:6px;
}

.movie-title{
  font-size:20px;
  font-weight:700;
}

.movie-subtitle{
  font-size:14px;
  opacity:.7;
}

.movie-meta{
  display:flex;
  gap:12px;
  font-size:13px;
  align-items:center;
}

.movie-meta i{
  color:#facc15;
}

.movie-description{
  padding:0 12px 12px 12px;
  font-size:13px;
  line-height:1.6;
}

.sequences{
  padding:0 12px;
  margin-top:12px;
}
.sequences-title{
  font-weight:700;
  margin-bottom:6px;
}
.sequence-grid{
  display:flex;
  gap:10px;
}
.sequence-item{
  width:80px;
  height:80px;
  border-radius:10px;
  background-size:cover;
  background-position:center;
}
.sequence-more{
  display:flex;
  align-items:center;
  justify-content:center;
  width:80px;
  height:80px;
  background:#1e293b;
  border-radius:10px;
  cursor:pointer;
  font-size:12px;
  text-align:center;
}

.rating-section{
  margin:14px 12px;
  background:#020617;
  border:1px solid #1e293b;
  padding:12px;
  border-radius:14px;
}
.rating-section label{
  font-size:14px;
  margin-bottom:6px;
  display:block;
}
.rating-display-total{
  font-size:16px;
  font-weight:700;
  color:#22c55e;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:6px;
}
.rating-input-container{
  display:flex;
  align-items:center;
  gap:12px;
}
.rating-input{
  flex:1;
}
.rating-input input[type=range]{
  width:100%;
  -webkit-appearance: none;
  height:10px;
  background:#beaa3c;
  border-radius:5px;
  outline:none;
}
.rating-input input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#22c55e;
  cursor:pointer;
  border:2px solid #fff;
}
.rating-input input[type=range]::-moz-range-thumb {
  width:20px;
  height:20px;
  border-radius:50%;
  background:#22c55e;
  cursor:pointer;
  border:2px solid #fff;
}
.rating-current{
  width:40px;
  text-align:center;
  font-weight:700;
  font-size:14px;
}
.rating-user{
  font-size:13px;
  opacity:.8;
  margin-left:12px;
}
.rating-submit{
  margin-top:6px;
  padding:6px 12px;
  border:none;
  border-radius:8px;
  background:#22c55e;
  color:#000;
  cursor:pointer;
  font-weight:700;
}

.comments{
  margin:16px 12px;
}
.comment{
  display:flex;
  gap:10px;
  margin: 0px 5px 19px 5px;
  background:#1e293b;
  border-radius:12px;
  padding:8px;
}
.comment .avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  background:url('https://i.pravatar.cc/150?img=12') center/cover;
}
.comment .content{
  flex:1;
}
.comment .content .name{
  font-weight:700;
  font-size:13px;  
  text-decoration: none;
  color: #fff;
}
.comment .content .time{
  font-size:11px;
  opacity:.6;
  margin-top: 6px;
}
.comment .content .text{
  margin-top:4px;
  font-size:13px;
  line-height:1.5;
}
.comment .content .reply-btn{
  margin-top:6px;
  font-size:12px;
  color:#22c55e;
  cursor:pointer;
}
.reply{
  margin-top:6px;
  margin-right:30px;
  display:flex;
  gap:8px;
}
.reply .avatar{
  width:30px;
  height:30px;
}
.reply .content .name{
  font-size:12px;
}
.reply .content .time{
  font-size:10px;
}
.reply .content .text{
  font-size:12px;
}
.show-more{
  text-align:center;
  margin-top:6px;
  font-size:13px;
  color:#22c55e;
  cursor:pointer;
  padding: 8px;
}
.comment-box{
  margin:16px 12px;
  background:#020617;
  border:1px solid #1e293b;
  padding:12px;
  border-radius:14px;
}
.comment-box .rules{
  font-size:11px;
  opacity:.7;
  margin-bottom:6px;
}
.comment-box textarea{
  width:100%;
  padding:8px;
  border-radius:10px;
  border:none;
  resize:none;
  min-height:60px;
  background:#1e293b;
  color:#fff;
  margin-bottom:6px;
}
.comment-box .comment-actions{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
}
.comment-box .comment-actions input[type=checkbox]{
  transform:scale(1.2);
  margin-left:4px;
}
.comment-box .comment-actions label{
  cursor:pointer;
}
.comment-box .comment-actions button{
  padding:6px 12px;
  border-radius:8px;
  border:none;
  background:#22c55e;
  color:#000;
  cursor:pointer;
}

.spoiler {
  background-color: #222;
  color: transparent;        /* مخفی کردن متن */
  cursor: pointer;
  border-radius: 5px;
  padding: 5px 8px;
  display: inline-block;
  position: relative;
}

.spoiler::after {
  content: "⚠ در این نظر اسپویل صورت گرفته است جهت مشاهده نظر روی آن کلیک کنید";
  color: #aaa;
}

.spoiler.revealed {
  color: #fff;
}

.spoiler.revealed::after {
  content: "";
}


#loginModal{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.modal-box{
  background:#fff;
  padding:20px;
  border-radius:8px;
  text-align:center;
  width:300px;
  font-family:tahoma;
}
.modal-box button{
  margin:10px;
  padding:8px 15px;
  border:none;
  border-radius:5px;
  cursor:pointer;
}
.login-btn{ background:#28a745; color:#fff; }
.cancel-btn{ background:#dc3545; color:#fff; }


.action-buttons{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s ease;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-height: 44px;
    width: 46%;
}

.action-btn i{
    font-size: 15px;
}

.playlist-btn{
    background: #1e293b;
}

.share-btn{
    background: #1e293b;
}





@media(max-width:700px){
  .movie-top{ flex-direction:column; align-items:center; }
  .poster{ width:100%; height:350px; }
  .movie-info{ align-items:center; text-align:center; }
  .sequence-grid{ flex-wrap:wrap; justify-content:center; }
}  





.playlist-modal{
    position:fixed;
    left:0;
    right:0;
    top:0;
    bottom:0;
    background:rgba(0,0,0,.6);
    display:none;
    z-index:99999;
    align-items:flex-end;
}

.playlist-modal-content{
    width:100%;
    background:#111;
    border-radius:20px 20px 0 0;
    padding:15px;
    max-height:80vh;
    overflow:auto;
    transform:translateY(100%);
    animation:slideUp .25s forwards;
}

@keyframes slideUp{
    to{ transform:translateY(0); }
}

.playlist-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    margin-bottom:15px;
    font-size:18px;
}

.playlist-modal-header button{
    background:none;
    border:none;
    color:#fff;
    font-size:30px;
    line-height:1;
}

.playlist-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:12px;
}

.playlist-item{
    background:#1c1c1c;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    text-align:center;
    padding:8px;
    color:#fff;
}

.playlist-item img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:10px;
}

.playlist-title{
    margin-top:8px;
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


.movie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 18px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #ffd11d;
}
.ShowMoreATah{
    text-decoration: none;
  color: #22c55e;
  font-size: 15px;
}
.level {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  background: #1e293b;
}

.pro {
  background: #facc15;
  color: #000;
}

.pro-level {
  background: #22c55e;
}








/* container playlists */
.playlists{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
}

/* playlist item */
.playlist-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px;
    border-radius:14px;
    background:#020617;
    border:1px solid #1e293b;
    text-decoration:none;
    transition:all .25s ease;
    min-height:70px;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
}

.playlist-item:hover{
    transform:translateY(-2px);
    background:#0f172a;
    border-color:#334155;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

/* main section (icon + text) */
.playlist-main{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

/* playlist icon */
.playlist-item-icon{
    width:40px;
    height:40px;
    border-radius:10px;
    background:#0f172a;
    border:1px solid #1e293b;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#cbd5e1;
    flex:0 0 40px;
}

.playlist-item-icon svg{
    width:22px;
    height:22px;
}

/* text */
.playlist-item-text{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.playlist-item-title{
    color:#e2e8f0;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.playlist-item-sub{
    color:#94a3b8;
    font-size:12px;
}

/* action buttons */
.playlist-actions{
    display:flex;
    gap:6px;
}

/* buttons base */
.playlist-actions button{
    width:30px;
    height:30px;
    border-radius:8px;
    border:none;
    cursor:pointer;
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
}
.tab-content {
  padding: 12px;
}