/* Cau noi giao dien moi voi logic/template cu cua theme goc. */

html {
  scroll-behavior: smooth;
}

body.xmoviesforyou-theme {
  background: #09090b;
  color: #f5f5f5;
}

body.xmoviesforyou-theme a {
  text-decoration: none;
}

.xmf-container {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.xmf-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xmf-header .material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.xmf-header-menu,
.xmf-mobile-menu-list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.xmf-header-menu li,
.xmf-mobile-menu-list li {
  list-style: none;
}

.xmf-header-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.xmf-header-menu a:hover,
.xmf-header-menu .current-menu-item > a,
.xmf-header-menu .current_page_item > a {
  color: #f472b6;
}

.xmf-mobile-menu-list {
  display: block;
}

.xmf-mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  opacity: 0.9;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.xmf-search-modal {
  width: min(100%, 1100px);
}

.xmf-search-panel,
.xmf-mobile-panel {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 24, 0.98),
    rgba(10, 10, 12, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.xmf-mobile-panel {
  width: min(100%, 520px);
  margin: 48px auto 0;
  overflow: hidden;
}

.xmf-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
}

.xmf-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.xmf-search-initial,
.xmf-search-results {
  width: min(100%, 980px);
  margin: 16px auto 0;
  padding: 0 8px 24px;
}

.xmf-search-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.xmf-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
}

.xmf-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

body.xmoviesforyou-theme .main-content {
  width: 100%;
  display: block;
  padding-bottom: 0;
}

body.xmoviesforyou-theme .main-container {
  width: 100%;
}

body.xmoviesforyou-theme .content.content_mobile {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
  display: block;
}

.xmf-empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.02);
}

.xmf-home-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xmf-home-tab {
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.xmf-home-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.xmf-home-tab--active {
  color: #fff;
  border-bottom-color: #ec4899;
}

.xmf-top10-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.xmf-top10-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.xmf-top10-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.xmf-top10-item:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.xmf-top10-rank {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #f472b6;
  text-align: center;
}

.xmf-top10-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.xmf-top10-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xmf-top10-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xmf-top10-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.xmf-top10-tag {
  color: #f472b6;
  font-weight: 600;
}

/* Biet doi pagination cu sang giao dien moi. */
.xmf-pagination,
body.xmoviesforyou-theme .pagination {
  margin-top: 32px;
}

body.xmoviesforyou-theme .pagination-holder ul,
body.xmoviesforyou-theme .paginator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

body.xmoviesforyou-theme .pagination-holder li,
body.xmoviesforyou-theme .paginator__item {
  list-style: none;
}

body.xmoviesforyou-theme .pagination-holder a,
body.xmoviesforyou-theme .pagination-holder span,
body.xmoviesforyou-theme .paginator__item__link {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

body.xmoviesforyou-theme .pagination-holder .page-current a,
body.xmoviesforyou-theme .paginator__item--active .paginator__item__link {
  background: #ec4899;
  border-color: #ec4899;
  color: #fff;
}

/* Metadata duoi player: tags, genres, country, views */
.xmf-single-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xmf-single-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 2px 0;
}

.xmf-single-meta__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 110px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.xmf-single-meta__values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  flex: 1;
  min-width: 0;
}

.xmf-single-meta__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #f5f5f5;
  transition: color 0.2s ease;
}

.xmf-single-meta__link:hover {
  color: #ec4899;
}

.xmf-single-meta__views {
  font-size: 15px;
  font-weight: 700;
  color: #ef4444;
}

@media (min-width: 768px) {
  .xmf-single-meta {
    gap: 12px;
  }

  .xmf-single-meta__row {
    gap: 10px 20px;
  }

  .xmf-single-meta__values {
    gap: 8px 14px;
  }

  .xmf-single-meta__label,
  .xmf-single-meta__link,
  .xmf-single-meta__views {
    font-size: 17px;
  }
}

/* Restyle cho single va cac block ke thua theme cu. */
body.xmoviesforyou-theme .block-video,
body.xmoviesforyou-theme .related-videos,
body.xmoviesforyou-theme .group-film {
  width: 100%;
}

body.xmoviesforyou-theme .video-holder,
body.xmoviesforyou-theme .related-videos .box,
body.xmoviesforyou-theme .group-film,
body.xmoviesforyou-theme .footer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

body.xmoviesforyou-theme .player-holder,
body.xmoviesforyou-theme .player-wrap {
  border-radius: 18px;
  overflow: hidden;
}

body.xmoviesforyou-theme .headline h1,
body.xmoviesforyou-theme .headline h2,
body.xmoviesforyou-theme .group-film h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
}

body.xmoviesforyou-theme .video-info .item,
body.xmoviesforyou-theme .group-film .content {
  color: rgba(255, 255, 255, 0.75);
}

body.xmoviesforyou-theme .video-info .item a,
body.xmoviesforyou-theme .group-film .content a {
  color: #f472b6;
}

body.xmoviesforyou-theme .vote-wrapper a,
body.xmoviesforyou-theme .views,
body.xmoviesforyou-theme .rating {
  color: #fff;
}

body.xmoviesforyou-theme .item-info .wrap,
body.xmoviesforyou-theme .rating-container {
  gap: 12px;
}

/* Footer moi cho theme clone. */
.xmf-footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.xmf-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.xmf-footer-copy {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.xmf-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xmf-footer-links a {
  color: #fff;
  opacity: 0.82;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.xmf-footer-links a:hover {
  opacity: 1;
  color: #f472b6;
}

.xmf-footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
  .xmf-home-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .xmf-home-tab {
    padding: 12px 18px;
  }

  .xmf-top10-item {
    grid-template-columns: 52px 90px 1fr;
    gap: 10px;
  }

  .xmf-top10-rank {
    font-size: 24px;
  }

  .xmf-search-panel {
    padding: 20px 18px 18px;
  }

  .xmf-search-input {
    font-size: 15px;
  }

  body.xmoviesforyou-theme .video-holder,
  body.xmoviesforyou-theme .related-videos .box,
  body.xmoviesforyou-theme .group-film {
    padding: 16px;
    border-radius: 18px;
  }

  body.xmoviesforyou-theme .headline h1,
  body.xmoviesforyou-theme .headline h2,
  body.xmoviesforyou-theme .group-film h1 {
    font-size: 22px;
  }
}

@media (min-width: 900px) {
  .xmf-top10-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
