/*
Theme Name:   Mixi Movie
Description:  Một theme con của Flatsome dành cho website phim.
Author:       Anh em mình
Template:     flatsome
Version:      1.0.0
*/

/* --- VIEWPORT 2: THƯ VIỆN PHIM 3D --- */
.new-movies-section {
    background-color: #000; /* Nền đen tuyền */
    color: #fff;
    height: auto;
    position: relative;
    overflow: hidden;
    padding: 50px;
    /* Các thuộc tính viewport khác đã có sẵn */
}

#threejs-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nằm dưới nội dung */
}

#threejs-canvas-container canvas {
    display: block; /* Loại bỏ khoảng trống thừa bên dưới canvas */
}

.new-movies-section .section-content {
    position: relative;
    z-index: 2; /* Nằm trên canvas */
    text-align: center;
    /* Đẩy tiêu đề lên trên cùng */
    width: 100%;
    align-self: flex-start;
    max-width: 90%;
}

#robot-container {
    position: absolute;
    height: 600px;
    left: 0;
    top: 0;
}
#snow-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.server-group {
    max-height: 500px !important;
    overflow: scroll;
}
.embed-player-container {
    height: 100%;
}
embed, iframe, object {
    width: 100%;
    height: 100%;
}


.animated-button1 {
  background: linear-gradient(-30deg, #3d0b0b 50%, #2b0808 50%);
  padding: 20px 5rem;
  margin: 12px;
  display: inline-block;
  -webkit-transform: translate(0%, 0%);
          transform: translate(0%, 0%);
  overflow: hidden;
  color: #f7d4d4;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
          box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.animated-button1::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: #ad8585;
  opacity: 0;
  -webkit-transition: .2s opacity ease-in-out;
  transition: .2s opacity ease-in-out;
}

.animated-button1:hover::before {
  opacity: 0.2;
}

.animated-button1 span {
  position: absolute;
}

.animated-button1 span:nth-child(2) {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 2px;
  background: -webkit-gradient(linear, right top, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #d92626);
  -webkit-animation: 2s animateTop linear infinite;
          animation: 2s animateTop linear infinite;
}

@keyframes animateTop {
  0% {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}

.animated-button1 span:nth-child(3) {
  top: 0px;
  right: 0px;
  height: 100%;
  width: 2px;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
  background: linear-gradient(to top, rgba(43, 8, 8, 0), #d92626);
  -webkit-animation: 2s animateRight linear -1s infinite;
          animation: 2s animateRight linear -1s infinite;
}

@keyframes animateRight {
  0% {
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
  }
  100% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
}

.animated-button1 span:nth-child(4) {
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 2px;
  background: -webkit-gradient(linear, left top, right top, from(rgba(43, 8, 8, 0)), to(#d92626));
  background: linear-gradient(to right, rgba(43, 8, 8, 0), #d92626);
  -webkit-animation: 2s animateBottom linear infinite;
          animation: 2s animateBottom linear infinite;
}

@keyframes animateBottom {
  0% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
}

.animated-button1 span:nth-child(5) {
  top: 0px;
  left: 0px;
  height: 100%;
  width: 2px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(43, 8, 8, 0)), to(#d92626));
  background: linear-gradient(to bottom, rgba(43, 8, 8, 0), #d92626);
  -webkit-animation: 2s animateLeft linear -1s infinite;
          animation: 2s animateLeft linear -1s infinite;
}

@keyframes animateLeft {
  0% {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
  }
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}
.archive-movie-page .row.container {
    padding-top: 50px;
    max-width: 95%;
}
.archive-movie-page .row {
    max-width: 100%;
}

/* ================================================================= */
/* MOVIE CARD VERTICAL (CHO TRANG ARCHIVE)                           */
/* ================================================================= */

/* Grid Layout cho Archive (đảm bảo cột đều) */
#movie-archive-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Cân bằng padding của col */
}

.movie-card-vertical-col {
    padding: 0 10px;
    margin-bottom: 30px;
    /* Mặc định mobile 2 cột (small-columns-2) -> width 50% */
    /* Theme Flatsome thường tự xử lý col width, nhưng thêm vào cho chắc */
}

.movie-card-vertical {
    position: relative;
    transition: transform 0.3s ease;
}

.movie-card-vertical:hover {
    transform: translateY(-5px);
}

.movie-card-vertical a {
    text-decoration: none;
    color: inherit;
}

/* Phần Ảnh (Quan trọng: Tỉ lệ 2:3) */
.movie-card-vertical .card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* Tỉ lệ chuẩn poster */
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.movie-card-vertical .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-vertical:hover .card-image img {
    transform: scale(1.1); /* Zoom ảnh khi hover */
}

/* Badges */
.movie-card-vertical .badge-quality {
    position: absolute;
    top: 10px; left: 10px;
    background: #E50914; /* Đỏ Netflix */
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.movie-card-vertical .badge-ep {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Play Icon Hover */
.movie-card-vertical .play-hover {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    transition: transform 0.3s;
}
.movie-card-vertical .play-hover i { font-size: 20px; color: #fff; margin-left: 4px; }
.movie-card-vertical:hover .play-hover { transform: translate(-50%, -50%) scale(1); }

/* Phần Nội dung text */
.movie-card-vertical .card-content {
    padding-top: 10px;
}

.movie-card-vertical .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Cắt chữ nếu quá dài */
}

.movie-card-vertical .card-title:hover {
    color: #00C4FF;
}

.movie-card-vertical .card-meta {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.movie-card-vertical .org-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wrap .button {
  min-width: 300px;
  min-height: 60px;
  display: inline-flex;
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #313133;
  background: #4FD1C5;
  background: linear-gradient(90deg, rgba(129,230,217,1) 0%, rgba(79,209,197,1) 100%);
  border: none;
  border-radius: 1000px;
  box-shadow: 12px 12px 24px rgba(79,209,197,.64);
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
  outline: none;
  position: relative;
  padding: 10px;
  margin-bottom: 0px;
  }

.wrap .button::before {
content: '';
  border-radius: 1000px;
  min-width: calc(300px + 12px);
  min-height: calc(60px + 12px);
  border: 6px solid #00FFCB;
  box-shadow: 0 0 60px rgba(0,255,203,.64);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all .3s ease-in-out 0s;
}

.wrap .button:hover, 
.wrap .button:focus {
  color: #313133;
  transform: translateY(-6px);
}

.wrap .button:hover::before, 
.wrap .button:focus::before {
  opacity: 1;
}

.wrap .button::after {
  content: '';
  width: 30px; height: 30px;
  border-radius: 100%;
  border: 6px solid #00FFCB;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

.wrap .button:hover::after, 
.wrap .button:focus::after {
  animation: none;
  display: none;
}
@media (max-width: 480px) {
    .wrap .button, .button.white {
        min-width: 155px;
        font-size: 15px;
        min-height: 50px;
        
    }
    .button.white {
        background: red !important;
        border: 2px solid darkred;
        border-radius: 10px;
        display: flex;
        align-items: center;
    }
}



@keyframes ring {
  0% {
    width: 30px;
    height: 30px;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}