/* ============================================================
   1Movies.style — Premium Dark Movie Streaming Theme
   Inspired by FlixHQ design language
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg-body: #020916;
  --bg-header: #0a1220;
  --bg-card: #141e2d;
  --bg-card-alt: #1f2837;
  --bg-input: rgba(255, 255, 255, 0.2);
  --bg-input-focus: rgba(255, 255, 255, 0.9);
  --bg-sidebar: #141e2d;
  --bg-footer: #0a1220;
  --bg-submenu: #141e2d;
  --bg-submenu-hover: #202b3a;
  --bg-table-odd: #121c2f;

  --brand: #24c1d2;
  --brand-dark: #1a9aa8;
  --brand-glow: rgba(36, 193, 210, 0.25);

  --text-white: #fcfcfc;
  --text-light: #e9ecef;
  --text-muted: #6d7583;
  --text-dim: #adb5bd;
  --text-dark: #495057;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 15px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --shadow-card: 0 2px 10px #020916;
  --shadow-glow: 0 0 11px #020916;

  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-size: 15px;
  --line-height: 1.42857;

  --header-h: 88px;
  --slider-ratio: 40%;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--text-muted);
  background: var(--bg-body);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

a {
  color: var(--brand);
  text-decoration: none !important;
  outline: 0;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1660px) {
  .container { max-width: 1660px; }
}

@media (max-width: 1659px) {
  .container { max-width: 96%; }
}

.clearfix::after {
  display: block;
  clear: both;
  content: '';
}

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.float-left { float: left !important; }
.float-right { float: right !important; }

.mr-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mr-4 { margin-right: 1.5rem !important; }

.hid-mobile {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  margin: 3px 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.btn:focus,
.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.65;
}

.btn-radius {
  border-radius: var(--radius-xl);
}

.btn-primary {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

.btn-secondary {
  background: #232a37 !important;
  border-color: #232a37 !important;
  color: #f0f0f0 !important;
}

.btn-secondary:hover {
  color: #fff !important;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* ---------- CTA (for static content) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 52px;
  margin: 16px auto;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 20px var(--brand-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--brand-glow);
  color: #fff;
}

/* ---------- Header ---------- */
#wrapper {
  width: 100%;
  position: relative;
}

#header {
  height: var(--header-h);
  position: relative;
  z-index: 90;
  background: var(--bg-header);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
}

#header .container {
  position: relative;
}

#header #logo {
  display: inline-block;
  height: 48px;
  margin: 20px 30px 20px 0;
  float: left;
  position: relative;
}

#header #logo img {
  height: 100%;
  width: auto;
}

#header #logo .text-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 48px;
  user-select: none;
}

#header #logo .text-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  font-size: 20px;
  color: #081114;
  line-height: 1;
}

#header #logo .text-logo .name {
  font-size: 26px;
  color: #fff;
}

/* ---------- Header Menu ---------- */
#header_menu {
  height: 38px;
  margin: 25px 0;
  margin-right: 60px;
  float: left;
  position: relative;
}

#header_menu ul.header_menu-list {
  list-style: none;
  padding: 0;
  display: block;
}

#header_menu ul.header_menu-list .nav-item {
  display: inline-block;
  margin: 0 5px;
  position: relative;
}

#header_menu ul.header_menu-list .nav-item > a {
  height: 38px;
  line-height: 38px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 0;
  padding: 0 13px;
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-white);
}

#header_menu ul.header_menu-list .nav-item:hover > a {
  color: var(--brand);
}

#header_menu .header_menu-sub {
  position: absolute;
  top: 38px;
  left: 0;
  width: 450px;
  z-index: 102;
}

#header_menu .header_menu-sub ul.sub-menu {
  padding: 10px 15px;
  text-align: left;
  border-radius: 10px;
  list-style: none;
  overflow: hidden;
  background: var(--bg-sidebar);
  box-shadow: var(--shadow-card);
}

#header_menu .header_menu-sub ul.sub-menu li {
  width: 33.33%;
  float: left;
}

#header_menu .header_menu-sub ul.sub-menu li a {
  font-weight: 400;
  border-radius: 4px;
  color: var(--text-muted);
  padding: 5px 10px;
  display: block;
  font-size: 14px;
  line-height: 1.4em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header_menu .header_menu-sub ul.sub-menu li:hover a {
  background: var(--bg-submenu-hover);
  color: var(--brand);
}

/* ---------- Header Right & Search ---------- */
#header_right {
  position: absolute;
  top: 22px;
  right: 10px;
}

#user-slot {
  display: inline-block;
  height: 44px;
  position: relative;
  float: right;
}

#header .btn-login {
  background: transparent !important;
  color: var(--text-light) !important;
  padding-right: 0;
  position: relative;
  height: 36px;
  margin: 4px 0;
  padding-left: 40px;
  font-size: 15px;
  border-radius: 0;
}

#header .btn-login:hover {
  color: #fff;
}

#header .btn-login i {
  font-size: 28px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#search {
  width: 400px;
  margin: 22px 0;
  color: #111;
  position: relative;
  float: left;
}

.search-content {
  position: relative;
}

.search-content input.search-input {
  height: 44px;
  color: #fff;
  padding-right: 20px;
  padding-left: 55px;
  font-size: 15px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: none !important;
  width: 100%;
  display: block;
  transition: all 0.5s ease;
}

.search-content input.form-control::placeholder {
  color: var(--text-dim);
}

.search-content .search-submit {
  width: 55px;
  height: 44px;
  cursor: pointer;
  line-height: 44px;
  display: inline-block;
  color: var(--brand);
  font-size: 18px;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  color: #fff;
  background: transparent;
  border: none;
}

#search:hover .search-content .search-submit {
  color: #000;
}

#search:hover .search-content input.search-input {
  background: rgba(255, 255, 255, 0.9);
  color: #343a40;
  box-shadow: var(--shadow-glow);
}

.search-content .search-result-pop {
  background: var(--bg-sidebar);
  color: var(--text-dark);
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 6;
  list-style: none;
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.search-content .search-result-pop .nav-item {
  display: block;
  text-align: left;
  padding: 12px 15px;
  width: 100%;
  cursor: pointer;
}

.search-content .search-result-pop .nav-item:nth-of-type(2n) {
  background: var(--bg-card-alt);
}

.search-content .search-result-pop .nav-item .film-poster {
  float: left;
  width: 50px;
  padding-bottom: 60px;
  border-radius: var(--radius-sm);
}

.search-content .search-result-pop .nav-item .srp-detail {
  margin-left: 65px;
  padding-top: 6px;
  font-size: 13px;
  color: var(--text-dark);
}

.search-content .search-result-pop .nav-item:hover .srp-detail {
  color: #f0f0f0;
}

.search-content .search-result-pop .nav-item .srp-detail .film-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2em;
  max-width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}

.search-content .search-result-pop .nav-item:hover .srp-detail .film-name {
  color: var(--brand);
}

.search-content .search-result-pop .nav-bottom {
  padding: 8px;
  background: #0c121b !important;
  font-weight: 400;
  font-size: 14px;
  color: #f0f0f0;
  text-align: center;
  border-bottom: none;
}

.search-content .search-result-pop .nav-bottom:hover {
  background: #111926;
  color: #ced4da;
}

/* ---------- Mobile Button ---------- */
.mobile-button {
  padding: 0;
  color: #111;
  cursor: pointer;
  position: absolute;
  z-index: 4;
  display: none;
  top: 20px;
  width: 40px;
  height: 40px;
  text-align: center;
  left: 5px;
  color: var(--text-white);
  background: transparent;
  border: none;
}

.mobile-button i {
  font-size: 24px;
  line-height: 40px;
  height: 40px;
}

.mobile-button.active i {
  color: var(--brand);
}

/* ---------- Hero Slider ---------- */
#slider {
  background: #111;
  overflow: hidden;
  z-index: 3;
  position: relative;
  font-weight: 400;
  font-size: 13px;
  display: block;
  padding-right: 0;
  width: 100%;
  padding-bottom: var(--slider-ratio);
  margin-top: 0;
  margin-bottom: 30px;
}

#slider .swiper-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  right: 0;
  bottom: 0;
  display: flex;
}

#slider .swiper-slide {
  position: relative;
  overflow: hidden;
  background: #000;
  background-position: center top;
  background-size: cover;
  cursor: grab;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

#slider .swiper-slide .slide-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  background: rgba(17, 17, 17, 0.2);
}

#slider .swiper-slide .container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#slider .swiper-slide::before {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 150px;
  content: '';
  background: var(--bg-body);
  background: linear-gradient(0deg, var(--bg-body) 0%, rgba(2, 9, 22, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

#slider .swiper-slide::after {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  content: '';
  background: var(--bg-body);
  background: radial-gradient(circle, rgba(2, 9, 22, 0) 0%, var(--bg-body) 100%);
  pointer-events: none;
}

#slider .slide-caption {
  color: #fff;
  z-index: 10;
  top: auto;
  position: absolute;
  bottom: 90px;
  left: 15px;
  max-width: 650px;
  z-index: 4;
  text-shadow: 0 1px 10px #111;
}

#slider .slide-caption .sc-detail {
  font-size: 1em;
  margin-bottom: 10px;
}

#slider .slide-caption .sc-detail .scd-item {
  margin-bottom: 5px;
  display: inline-block;
  margin-right: 15px;
}

#slider .slide-caption .sc-detail .scd-item strong {
  font-weight: 400;
  margin-left: 5px;
}

#slider .slide-caption .film-title {
  margin: 0 0 10px;
  font-size: 2.6em;
  color: #fff;
  line-height: 1.3em;
  font-weight: 500;
  text-shadow: 0 1px 10px #111;
}

#slider .slide-caption .film-title a {
  color: #fff;
}

#slider .slide-caption p.sc-desc {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.5em;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#slider .slide-caption .sc-buttons .btn-sc-action {
  font-size: 13px;
  text-shadow: none;
  line-height: 32px;
  height: 34px;
  color: var(--text-white);
  padding: 0 1.7em;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 15px;
  float: left;
  box-shadow: none !important;
  display: inline-block;
  border-radius: 0.25rem;
  text-decoration: none;
}

#slider .slide-caption .sc-buttons .btn-sc-action i {
  font-size: 12px;
}

#slider .slide-caption .sc-buttons .btn-sc-play {
  border-color: var(--brand);
  color: var(--brand);
}

#slider .slide-caption .sc-buttons .btn-sc-play:hover {
  background: var(--brand);
  color: #fff;
}

#slider .quality {
  padding: 3px 12px;
  top: -1px;
  line-height: 1.2em;
  position: relative;
  font-size: 12px;
  text-shadow: none;
  background: var(--brand);
  font-weight: 400;
  color: #fff;
  border-radius: var(--radius-xl);
  display: inline-block;
}

.container-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 9;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 40px;
  height: 4px;
  margin: 3px 6px;
  display: inline-block;
  border-radius: 4px;
  opacity: 0.3;
  background: #fff;
  vertical-align: middle;
  cursor: pointer;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--brand);
  width: 40px;
  height: 4px;
}

/* ---------- Main Content ---------- */
#main-wrapper {
  margin-bottom: 40px;
  margin-top: 30px;
  min-height: calc(100vh - 420px);
}

.block_area {
  display: block;
  margin-bottom: 20px;
}

.block_area .block_area-header {
  margin-bottom: 30px;
  display: block;
  width: 100%;
}

.block_area .block_area-header .cat-heading {
  font-size: 1.8em !important;
  line-height: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 300;
  position: relative;
}

.block_area .block_area-header .cat-heading::before {
  content: '';
  position: absolute;
  top: 120%;
  width: 80%;
  background: #343a40;
  height: 1px;
}

.block_area .block_area-header .viewmore .btn {
  height: 34px;
  padding-left: 0;
  padding-right: 0;
  color: var(--brand);
}

.block_area .block_area-header .viewmore .btn::before {
  display: none;
}

.block_area .block_area-header-tabs {
  margin-bottom: 30px;
}

.block_area .block_area-header-tabs .bah-heading {
  margin-right: 40px;
}

/* ---------- Tabs ---------- */
.pre-tabs {
  border-bottom: 2px solid var(--brand);
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.pre-tabs .nav-item {
  margin-top: 2px;
  margin-bottom: 0 !important;
  margin-right: 8px;
}

.pre-tabs .nav-item .nav-link {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  line-height: 1em;
  font-size: 14px;
  font-weight: 400;
  color: #f0f0f0;
  background: #212529;
  border: none;
  display: block;
  text-decoration: none;
}

.pre-tabs .nav-item .nav-link i {
  font-size: 12px;
  position: relative;
  top: -1px;
}

.pre-tabs .nav-item .nav-link:hover {
  color: var(--text-dim);
  background: #2c3237;
}

.pre-tabs .nav-item .nav-link.active {
  color: #fff;
  background: var(--brand);
}

/* ---------- Film Poster ---------- */
.film-poster {
  width: 100%;
  padding-bottom: 148%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.film-poster .film-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.film-poster-ahref {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: inline-block;
}

.film-poster-ahref::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  border-radius: 4px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: all 0.2s ease;
}

.film-poster-ahref::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  z-index: 2;
  transition: all 0.5s ease;
}

.film-poster-ahref i {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 20px;
  line-height: 20px;
  width: 2px;
  margin-top: -10px;
  margin-left: -7px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: all 0.5s ease;
}

.film-poster:hover .film-poster-ahref::after {
  opacity: 1;
}

.film-poster:hover .film-poster-ahref::before {
  opacity: 1;
}

.film-poster:hover .film-poster-ahref i {
  opacity: 1;
}

.film-poster:hover .film-poster-img {
  transform: scale(1.05);
}

/* ---------- Film List Grid ---------- */
.film_list {
  display: block;
}

.film_list .film_list-wrap {
  margin: 0 -0.4%;
  display: flex;
  flex-wrap: wrap;
}

.film_list .film_list-wrap .flw-item {
  width: 11.7%;
  margin: 0 0.4% 2%;
  position: relative;
}

.flw-item .film-poster {
  margin-bottom: 0;
}

.flw-item .pick {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  font-size: 12px;
  line-height: 1em;
  font-weight: 500;
  display: inline-block;
  padding: 3px 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 30px #000;
  color: #000;
}

.flw-item .pick.film-poster-quality {
  color: #000;
  background: #fff;
  left: auto;
  right: 10px;
}

.flw-item .film-detail {
  text-align: left;
  position: relative;
  padding: 10px 0;
  z-index: 3;
}

.flw-item .film-detail .film-name {
  font-size: 15px;
  line-height: 1.3em;
  font-weight: 400;
  margin: 0 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.flw-item .film-detail .film-name a {
  color: #fff;
}

.flw-item .film-detail .fd-infor {
  font-size: 14px;
  color: var(--text-dim);
}

.flw-item .film-detail .fd-infor .fdi-item {
  color: #ebebeb;
}

.flw-item .film-detail .fd-infor .fdi-type {
  font-size: 12px;
  line-height: 14px;
  padding: 2px 4px;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-sm);
  color: #ebebeb;
}

/* ---------- Sidebar Menu ---------- */
#sidebar_menu_bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111 !important;
  opacity: 0.4;
  z-index: 100;
  display: none;
}

#sidebar_menu {
  position: absolute;
  z-index: 101;
  left: -400px;
  opacity: 0;
  top: 70px;
  width: calc(100% - 30px);
  max-width: 400px;
  border-radius: 10px;
  padding: 10px 20px;
  background: var(--bg-sidebar);
  color: #ccc;
  transition: all 0.2s ease;
}

#sidebar_menu a {
  color: #8e95a5;
}

#sidebar_menu a:hover {
  color: var(--brand);
}

#sidebar_menu .sidebar_menu-list {
  font-size: 15px;
}

#sidebar_menu .sidebar_menu-list > .nav-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid #0f1722;
  position: relative;
}

#sidebar_menu .sidebar_menu-list > .nav-item:last-of-type {
  border-bottom: none;
}

#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link {
  display: block;
  padding: 15px 0;
  color: var(--text-white);
}

#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link:hover {
  color: #fff;
}

#sidebar_menu .sidebar_menu-list > .nav-item > .toggle-submenu {
  position: absolute;
  top: 5px;
  right: -10px;
  padding: 10px;
  z-index: 3;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

#sidebar_menu .sidebar_menu-list > .nav-item > .toggle-submenu:hover {
  color: #fff;
}

#sidebar_menu .sidebar_menu-list > .nav-item .nav {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #0c121b;
  border-radius: 10px;
}

#sidebar_menu .sidebar_menu-list > .nav-item .nav > .nav-item {
  display: block;
  width: 49%;
  margin-right: 1%;
  float: left;
}

#sidebar_menu .sidebar_menu-list > .nav-item .nav > .nav-item > .nav-link {
  font-size: 13px;
  padding: 6px 10px;
  color: var(--text-muted);
}

#sidebar_menu .sidebar_menu-list > .nav-item .nav > .nav-item > .nav-link:hover {
  color: var(--brand);
  background-color: var(--bg-submenu-hover);
  border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
#footer {
  position: relative;
}

#footer .top {
  background: var(--bg-footer);
  font-size: 14px;
  padding: 20px 0;
  position: relative;
}

#footer a {
  color: #9adcff;
}

#footer a:hover {
  color: var(--brand);
}

#footer .container {
  position: relative;
  z-index: 3;
}

#footer .heading {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

#footer .footer-menu {
  float: left;
  width: 50%;
  padding-right: 20px;
}

#footer .footer-menu .fm-block {
  width: 31.33%;
  margin-right: 2%;
  float: left;
}

#footer .footer-menu .fm-block ul li {
  margin-bottom: 3px;
}

#footer .footer-menu .fm-block ul li a {
  max-width: 100%;
  white-space: nowrap;
  color: #dedede;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
}

#footer .footer-menu .fm-block ul li a:hover {
  color: #f0f0f0;
}

#footer .fm-title {
  margin-bottom: 15px;
}

#footer .footer-about {
  float: right;
  width: 50%;
}

#footer p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

#footer .icons {
  display: block;
  clear: both;
  margin: 20px 0;
  overflow: hidden;
}

#footer .icons > div {
  float: left;
  margin-right: 35px;
}

#footer .icons > div > .icon {
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 33px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: var(--radius-md);
  float: left;
}

#footer .icons > div > span {
  line-height: 35px;
  color: var(--brand);
  margin-left: 12px;
}

#footer .bot {
  text-align: center;
  line-height: 60px;
  height: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .bot .links a {
  color: #dedede;
  margin: 0 20px;
  font-size: 14px;
}

#footer .bot .links a:hover {
  color: var(--text-dark);
}

/* ---------- Loading ---------- */
.loading {
  position: absolute;
  top: 50%;
  margin-top: -9px;
  left: 50%;
  margin-left: -30px;
}

.loading > div {
  width: 18px;
  height: 18px;
  background-color: #aaa;
  border-radius: 100%;
  display: inline-block;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.loading .span1 {
  animation-delay: -0.32s;
}

.loading .span2 {
  animation-delay: -0.16s;
}

.loading-relative {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 50px;
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* ---------- Modal ---------- */
.premodal .modal-content {
  background: var(--bg-card);
  color: #f0f0f0 !important;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  outline: 0;
}

.premodal-min .modal-dialog {
  max-width: 420px;
  margin: 1.75rem auto;
  position: relative;
}

.premodal .modal-content .modal-header {
  border-bottom: 0;
  border-radius: 0;
  padding: 25px 30px 0;
  position: relative;
  display: block;
}

.premodal .modal-content .modal-header .modal-title {
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.4em;
  color: var(--text-dim);
}

.premodal .modal-content .close {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--text-dim);
  margin: 0;
  z-index: 3;
  text-align: center;
  display: inline-block;
  padding: 10px 15px;
  text-shadow: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
  background: transparent;
  border: 0;
}

.premodal .modal-content .close:hover {
  color: var(--text-dim);
  opacity: 0.75;
}

.premodal .modal-content .modal-body {
  padding: 20px 30px;
  flex: 1 1 auto;
}

.premodal-min .modal-content .modal-body {
  padding: 20px 30px;
}

/* ---------- Preform ---------- */
.preform .form-group {
  margin-bottom: 20px;
}

.preform .form-control {
  font-size: 15px;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.5rem;
  height: auto;
  border: none;
  background: #ced4da;
  box-shadow: none !important;
  display: block;
  width: 100%;
  line-height: 1.5;
  color: var(--text-dark);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.preform .form-control:focus {
  border-color: var(--brand);
  outline: 0;
}

.preform .prelabel {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 400;
  letter-spacing: 1px;
}

.preform .custom-control-label {
  line-height: 1.5rem;
}

.preform .login-btn {
  margin-top: 40px !important;
}

.preform .login-btn .btn {
  padding: 10px 20px;
  border-radius: var(--radius-xl);
}

.preform .btn {
  box-shadow: none !important;
}

.text-forgot {
  line-height: 1.5rem;
}

.link-highlight {
  color: var(--brand) !important;
  cursor: pointer;
}

/* ---------- Table (for comparison) ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border: 1px solid #24314a;
  color: var(--text-dim);
}

th {
  background: #0a2230;
  color: var(--text-light);
}

tbody tr:nth-child(odd) {
  background: var(--bg-table-odd);
}

tbody tr:hover {
  background: #182443;
}

/* ---------- Section Content (static) ---------- */
article.content-article {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 16px;
}

article.content-article h1 {
  text-align: center;
  margin: 16px 0 8px;
  color: var(--text-light);
}

article.content-article h2 {
  color: var(--text-light);
  margin-top: 28px;
}

article.content-article p {
  color: var(--text-dim);
  line-height: 1.7;
}

.blockquote {
  background: #0f1a2b;
  color: #fff;
  padding: 20px;
  margin: 20px 0;
  border-left: 5px solid var(--brand);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.center {
  text-align: center;
}

/* ---------- SEO Content Panels ---------- */
.seo-panel {
  margin: 22px 0;
  padding: 16px;
  background: rgba(17, 26, 45, 0.65);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.seo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.seo-card {
  background: rgba(17, 26, 45, 0.65);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.seo-card h3 {
  margin: 0 0 6px;
  color: var(--text-light);
}

.seo-card p {
  margin: 0;
  color: var(--text-dim);
}

.seo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.seo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  color: #eafff9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  font-size: 14px;
}

.seo-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.seo-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.seo-checklist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.seo-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(203, 213, 225, 0.9);
  margin: 10px 0;
}

.seo-tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #7eead5;
  font-weight: 900;
  flex: 0 0 auto;
}

.seo-faq {
  background: rgba(17, 26, 45, 0.65);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.seo-faq p {
  margin-top: 10px;
  color: var(--text-dim);
}

.seo-cat {
  background: rgba(17, 26, 45, 0.65);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 14px;
}

.seo-cat ul {
  margin-top: 10px;
  padding-left: 18px;
  color: var(--text-dim);
  line-height: 1.7;
}

.seo-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
}

/* ---------- Responsive ---------- */
@media (min-width: 1921px) {
  #slider {
    padding-bottom: 780px !important;
  }
  #slider .slide-caption {
    transform: scale(1.2);
    transform-origin: bottom left;
  }
}

@media (max-width: 1659px) {
  #header_menu ul.header_menu-list .nav-item > a {
    padding: 0 8px;
  }
  #search {
    width: 300px;
  }
}

@media (max-width: 1400px) {
  .film_list .film_list-wrap .flw-item {
    width: 15.86%;
  }
  #header_menu ul.header_menu-list .nav-item {
    margin-right: 0;
  }
  #header #logo {
    margin-right: 20px;
  }
  #header_menu {
    margin-right: 30px;
  }
  #footer .icons > div {
    width: calc(50% - 15px);
    margin-right: 15px;
    margin-bottom: 10px;
  }
}

@media (max-width: 1279px) {
  .container {
    width: 990px;
    max-width: 990px;
  }
  .film_list .film_list-wrap .flw-item {
    width: calc(20% - 0.8%);
  }
  #slider {
    padding-bottom: 45em;
  }
  #slider .slide-caption {
    bottom: 5em;
  }
  #header {
    height: 80px;
    text-align: center;
  }
  #header_menu {
    display: none;
  }
  #header_menu ul.header_menu-list {
    display: none;
  }
  #header_right {
    top: 18px;
    right: 15px;
  }
  .mobile-button {
    display: block;
    top: 20px;
    left: 10px;
  }
  .mobile-button i {
    font-size: 2em;
  }
  #header #logo {
    height: 40px;
    text-align: center;
    margin: 20px 0;
    position: absolute;
    left: 60px;
    padding-right: 0;
  }
  #header #logo img {
    display: inline-block;
    vertical-align: top;
  }
  #header #logo .text-logo {
    line-height: 40px;
  }
  #search {
    float: none;
    position: absolute;
    top: 0;
    right: 190px;
    margin: 18px 0;
    width: 380px;
  }
  #search .search-result-pop .nav-item {
    padding: 15px;
  }
  #search .search-result-pop .nav-item .film-poster {
    width: 40px;
    padding-bottom: 55px;
  }
  #search .search-result-pop .nav-item .srp-detail {
    padding-top: 5px;
    padding-left: 55px;
  }
  #search .search-result-pop .nav-item .srp-detail .film-name {
    height: 16px;
    line-height: 1.2em;
    font-size: 14px;
  }
  #main-wrapper {
    min-height: calc(100vh - 378px);
  }
  .seo-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 998px) {
  .container {
    width: 100%;
    max-width: 100%;
  }
  #search {
    width: 300px;
  }
  .film_list .film_list-wrap {
    margin: 0 -7px;
  }
  .film_list .film_list-wrap .flw-item {
    width: calc(25% - 14px) !important;
    margin: 0 7px 15px !important;
  }
  #wrapper {
    padding: 0;
  }
  #slider .slide-caption {
    bottom: 60px;
  }
  #footer .footer-about,
  #footer .footer-menu {
    float: none;
    width: 100%;
  }
  #footer .icons > div {
    width: calc(25% - 15px);
  }
  .seo-grid-2,
  .seo-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 759px) {
  .hid-mobile {
    display: none;
  }
  #header {
    margin-bottom: 20px;
  }
  #slider .slide-caption {
    bottom: 40px;
  }
  .container-pagination {
    bottom: 0;
  }
  #search {
    display: none;
  }
  #search.active {
    position: absolute;
    top: 50px;
    left: 15px;
    right: 15px;
    width: auto;
  }
  .search-content input.search-input {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
  }
  .search-content .search-submit {
    color: #000;
  }
  .mobile-button {
    left: auto;
    right: 90px;
  }
  .block_area .block_area-header-tabs .bah-heading {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .block_area .block_area-header-tabs .bah-heading .cat-heading {
    display: inline-block;
  }
  .block_area .block_area-header-tabs .bah-tabs .pre-tabs .nav-item .nav-link {
    font-size: 13px;
  }
  #slider .slide-caption p.sc-desc {
    display: none;
  }
  .mobile-button i {
    font-size: 28px;
  }
  #header .btn-login {
    font-size: 0;
    padding: 0;
    color: var(--text-white);
  }
  #header .btn-login i {
    font-size: 28px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    line-height: 36px;
  }
  #footer .icons > div {
    width: calc(50% - 15px);
  }
}

@media (max-width: 639px) {
  body {
    font-size: 14px;
  }
  #slider {
    padding-bottom: 380px;
  }
  .film_list .film_list-wrap .flw-item {
    width: calc(33.33% - 14px) !important;
  }
  .film_list .film_list-wrap .flw-item .film-detail .film-name {
    font-size: 13px;
  }
  .film_list .film_list-wrap .flw-item .film-detail .fd-infor {
    font-size: 12px;
  }
  .film_list .film_list-wrap .flw-item .film-detail .fd-infor .fdi-type {
    font-size: 11px;
  }
  .block_area {
    margin-bottom: 40px;
  }
  #slider .slide-caption .film-title {
    font-size: 1.7em;
    margin-bottom: 12px;
    line-height: 1.3em;
  }
  #slider .slide-caption .sc-detail {
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  .premodal-min .modal-dialog {
    max-width: none;
  }
  #main-wrapper {
    min-height: calc(100vh - 620px);
    margin-bottom: 50px !important;
  }
}

@media (max-width: 480px) {
  .block_area .block_area-header-tabs {
    margin-bottom: 20px;
  }
  .film_list .film_list-wrap .flw-item {
    width: calc(50% - 14px) !important;
  }
  .premodal-login .modal-content .modal-body {
    padding: 20px 20px;
  }
  #main-wrapper {
    margin-bottom: 30px !important;
  }
  #footer .footer-menu .ulclear li {
    margin-right: 0;
  }
}

@media (max-width: 479px) {
  .block_area .block_area-header .cat-heading {
    font-size: 22px !important;
  }
  .block_area .block_area-header-tabs .pre-tabs .nav-item {
    margin-bottom: 5px;
  }
  .film_list .film_list-wrap .flw-item {
    width: 46% !important;
    margin: 0 2% 15px !important;
  }
  .film_list .film_list-wrap {
    margin: 0 -2%;
  }
  .block_area .block_area-header .viewmore .btn {
    font-size: 13px;
  }
  .swiper-pagination-bullet {
    width: 30px !important;
  }
  .seo-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .premodal .modal-content .close {
    right: 5px;
  }
}

