/*!
Theme Name: mixz-theme-weplay
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Ultra-lightweight SEO-optimized movie theme
Version: 2.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mixz-theme-weplay
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS Variables (Color Palette)
   ======================================== */
:root {
  /* Background Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252540;
  --bg-hover: #2d2d4a;
  --bg-card: #1a1a2e;

  /* Text Colors */
  --text-primary: #e5e5f0;
  --text-secondary: #b8b8d1;
  --text-muted: #9999bb;

  /* Border Colors */
  --border-primary: #252540;
  --border-secondary: #2d2d4a;

  /* Accent Colors */
  --accent-primary: #7c3aed;
  --accent-hover: #8b5cf6;

  /* Status Colors */
  --color-success: #059669;
  --color-warning: #fbbf24;
  --color-error: #ef4444;
  --color-info: #2563eb;
}

/* ========================================
   Minimal Reset
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-width: 1200px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  padding: 10px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-secondary);
}

select {
  padding: 10px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  color: var(--text-primary);
}

/* ========================================
   Layout
   ======================================== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
}

.width-auto,
.container-index {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-main,
.grid-sb-index {
  display: grid;
  grid-template-columns: 204px 1fr 204px;
  gap: 3px;
  margin: 20px 0;
}

.site-main {
  flex: 1;
  padding: 20px 0;
}

/* ========================================
   Header - Optimized for SEO & UX
   ======================================== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-top {
  display: grid;
  grid-template-columns: 200px 1fr 140px;
  gap: 40px;
  align-items: center;
  padding: 10px 0;
}

/* Logo Section */
.header-logo {
  display: flex;
  align-items: center;
}

.header-logo a {
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-logo a:hover {
  opacity: 0.9;
}

.site-logo {
  max-height: 45px;
  width: auto;
  display: block;
}

.site-logo-text {
  display: inline-block;
  font-family: "Kanit", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.site-logo-text span {
  display: inline-block;
  transition: all 0.3s ease;
}

.header-logo a:hover .site-logo-text {
  transform: translateY(-1px);
}

.header-logo a:hover .site-logo-text span {
  opacity: 0.85;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* Search Section */
.header-search-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-form {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 500px;
}

.header-search-form input[type="search"] {
  flex: 1;
  padding: 9px 45px 9px 14px;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: "Kanit", sans-serif;
  transition: all 0.3s ease;
}

.header-search-form input[type="search"]::placeholder {
  color: var(--text-muted);
}

.header-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.header-search-form button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.header-search-form button:hover {
  color: var(--accent-primary);
}

.header-search-form button i {
  font-size: 15px;
}

/* Contact Button */
.header-contact {
  display: flex;
  justify-content: flex-end;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-primary);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.contact-btn i {
  font-size: 14px;
}

.contact-btn span {
  display: inline-block;
}

/* ========================================
   Navigation
   ======================================== */
.main-navigation {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
}

.nav-menu {
  display: flex;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: #fff;
  background: var(--bg-secondary);
}

.nav-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  display: none;
  z-index: 1000;
}

.nav-menu li:hover > ul {
  display: block;
}

.nav-menu ul li a {
  display: block;
  padding: 10px 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
  font-size: 13px;
}

.nav-menu ul li:last-child a {
  border-bottom: none;
}

.nav-menu ul li a:hover {
  background: var(--bg-tertiary);
  color: #fff;
}

.nav-menu ul ul {
  left: 100%;
  top: 0;
}

/* ========================================
   Sidebar
   ======================================== */
.widget-left,
.widget-right {
  background: transparent;
}

/* Widget Container */
.widget {
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 15px 12px;
}

.widget h2,
.widget h3,
.widget .widget-title,
.widget .widgettitle {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border-radius: 4px 4px 0 0;
  color: #fff;
  letter-spacing: 0.3px;
  position: relative;
  text-align: center;
}

.widget h2::after,
.widget h3::after,
.widget .widget-title::after,
.widget .widgettitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

/* Category Widget */
.widget_wpcategorieswidget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_wpcategorieswidget ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  padding: 9px 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  list-style: none;
}

.widget_wpcategorieswidget ul li:hover {
  background: var(--bg-hover);
}

.widget_wpcategorieswidget ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d1d1e0;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

.widget_wpcategorieswidget ul li:hover a {
  color: #fff;
}

/* Category Logo */
.category-logo {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.category-logo.before,
.category-logo.after {
  margin: 0 4px;
}

/* Post Count */
.post-count {
  font-size: 13px;
  color: #a8a8c5;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Tag Cloud Widget (Years) */
.widget_tag_cloud .tagcloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.widget_tag_cloud .tagcloud a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  font-weight: 500;
}

.widget_tag_cloud .tagcloud a:hover {
  background: var(--bg-hover);
  color: #fff;
}

/* Social Links Widget */
.wpcategorieswidget-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpcategorieswidget-social li {
  margin: 0;
  list-style: none;
}

.wpcategorieswidget-social li::before {
  display: none;
}

.wpcategorieswidget-social li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.wpcategorieswidget-social li a:hover {
  background: var(--bg-hover);
  color: #fff;
}

.wpcategorieswidget-social li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ========================================
   Main Content
   ======================================== */
.main-movie {
  background: transparent;
  padding: 0;
}

/* Title styles moved to Single Post Page section */

.h1-text h1,
.h1-text h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

/* ========================================
   Movie Grid
   ======================================== */
.grid-movie {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

/* Home Template - Smaller Grid (8 columns) */
.grid-movie-ct {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

/* Home Template - Main Section (with sidebar) */
.grid-movie-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.movie_box {
  position: relative;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.movie_box:hover {
  border-color: var(--accent-primary);
}

.movie_box a {
  display: block;
  color: var(--text-primary);
}

.movie_box img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.movie_box p {
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 58px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--bg-card);
}

/* Smaller text for 8-column grid */
.grid-movie-ct .movie_box p {
  padding: 8px 6px;
  font-size: 11px;
  min-height: 46px;
}

.grid-movie-ct .movie_box .movie-lang,
.grid-movie-ct .movie_box .figure-box {
  top: 6px;
}

.grid-movie-ct .movie_box .movie-lang {
  left: 6px;
  padding: 3px 6px;
  font-size: 9px;
}

.grid-movie-ct .movie_box .figure-box {
  right: 6px;
  gap: 4px;
}

.grid-movie-ct .movie_box .box-movie-star,
.grid-movie-ct .movie_box .movie-hd,
.grid-movie-ct .movie_box .movie-sd,
.grid-movie-ct .movie_box .movie-zoom,
.grid-movie-ct .movie_box .movie-4k,
.grid-movie-ct .movie_box .movie-ultrahd,
.grid-movie-ct .movie_box .movie-end,
.grid-movie-ct .movie_box .movie-coming,
.grid-movie-ct .movie_box .movie-series {
  padding: 3px 6px;
  font-size: 9px;
}

.movie-lang {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.figure-box {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.box-movie-star {
  background: var(--color-warning);
  color: #000;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

.movie-hd,
.movie-sd,
.movie-zoom,
.movie-4k,
.movie-ultrahd,
.movie-end,
.movie-coming,
.movie-series {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.movie-hd {
  background: var(--color-success);
}
.movie-sd {
  background: #6b7280;
}
.movie-zoom {
  background: var(--accent-hover);
}
.movie-4k {
  background: var(--color-error);
}
.movie-ultrahd {
  background: #dc2626;
}
.movie-end {
  background: #f59e0b;
}
.movie-coming {
  background: var(--color-info);
}
.movie-series {
  background: #ec4899;
}

/* ========================================
   Pagination
   ======================================== */
.pagination-x {
  margin-top: 30px;
}

.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 14px;
}

.navigation.pagination a:hover {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
  color: #fff;
}

.navigation.pagination .current {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
  color: #fff;
}

/* ========================================
   Home Template
   ======================================== */
.idx-st-content,
.idx-dn {
  margin-bottom: 40px;
}

.nds-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-primary);
}

.nds-title h2,
.nds-title h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.nds-title .in-title a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.nds-title .in-title a:hover {
  color: #fff;
}

.nds-title .in-title img {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.nds-title .in-title a:hover img {
  opacity: 1;
}

.nds-content {
  margin-bottom: 15px;
}

.content-category.article {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 13px;
}

.content-category.article p {
  margin-bottom: 10px;
}

/* News Section */
.index-news {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-primary);
}

.index-news .h1-text h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border-radius: 4px 4px 0 0;
  position: relative;
  color: #fff;
  width: 100%;
}

.index-news .h1-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

.index-news .h1-text img {
  width: 22px;
  height: 22px;
}

.grid-news-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.news-box {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  overflow: hidden;
}

.news-box:hover {
  border-color: var(--accent-primary);
}

.news-box a {
  display: block;
  color: var(--text-primary);
  position: relative;
}

.news-box .img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-primary);
}

.news-box .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-box .news-date {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-primary);
  z-index: 2;
}

.news-box .detail {
  padding: 12px;
}

.news-box .detail h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  min-height: 38px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.news-box .arw-title-news {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

.news-box:hover .arw-title-news {
  opacity: 1;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--bg-primary);
  color: var(--text-muted);
  margin-top: auto;
  border-top: 1px solid var(--border-primary);
}

.content-footer {
  padding: 40px 0 20px;
}

.content-footer .content {
  text-align: center;
  margin-bottom: 30px;
}

.content-footer h1 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.content-footer img {
  max-height: 40px;
  margin: 0 auto;
}

.t-footer {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.content-footer p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
}

.menu-footer-container {
  border-top: 1px solid var(--border-primary);
  padding: 20px 0;
}

#menu-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

#menu-footer li a {
  color: var(--text-muted);
  font-size: 13px;
}

#menu-footer li a:hover {
  color: #fff;
}

.site-info {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-primary);
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   Banner Positions
   ======================================== */

/* Main Banner (Top Banner Section) */
.main-banner {
  display: grid;
  grid-template-columns: 204px 1fr 204px;
  gap: 3px;
  margin: 20px 0;
}

.main-banner .banner {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.main-banner .banner li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.main-banner .banner li:not(:last-child) {
  margin-bottom: 2px;
}

.main-banner .banner li::before {
  display: none;
}

.main-banner .banner a {
  display: block;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.main-banner .banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Banner Top (Alternative) */
.banner-top {
  margin: 20px 0 2px 0;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.banner-top img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Banner Content (A3, A4, A5 - Content Area) */
.banner-content,
.banner-content-center {
  margin: 20px 0;
  list-style: none;
  padding: 0;
  line-height: 0;
}

.banner-content li,
.banner-content-center li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.banner-content li:not(:last-child),
.banner-content-center li:not(:last-child) {
  margin-bottom: 2px;
}

.banner-content li::before,
.banner-content-center li::before {
  display: none;
}

.banner-content a,
.banner-content-center a {
  display: block;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.banner-content img,
.banner-content-center img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Sidebar Banners (BL1, BL2, BL3, BL5, BL6, BL7, BL12, BL13) */
.sidebar-banner-left,
.sidebar-banner-right {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  line-height: 0;
}

.sidebar-banner-left li,
.sidebar-banner-right li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 0;
}

.sidebar-banner-left li:not(:last-child),
.sidebar-banner-right li:not(:last-child) {
  margin-bottom: 2px;
}

.sidebar-banner-left li::before,
.sidebar-banner-right li::before {
  display: none;
}

.sidebar-banner-left a,
.sidebar-banner-right a {
  display: block;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.sidebar-banner-left img,
.sidebar-banner-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Floating Banners */
/* Floating Banners - BL1 (Left), BL2 (Bottom), BL3 (Right) */
.banner-f-left-1,
.banner-f-right-1 {
  position: fixed;
  z-index: 999;
  transition: all 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.banner-f-left-1 {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.banner-f-right-1 {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.banner-float {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  transition: all 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 848px;
  width: 100%;
}

.banner-f-left-1 li,
.banner-f-right-1 li,
.banner-float li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.banner-f-left-1 li::before,
.banner-f-right-1 li::before,
.banner-float li::before {
  display: none;
}

.banner-f-left-1 a,
.banner-f-right-1 a,
.banner-float a {
  display: block;
  line-height: 0;
  position: relative;
}

.banner-f-left-1 img,
.banner-f-right-1 img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.banner-float img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.banner-f-left-1 .terminate-banner,
.banner-f-right-1 .terminate-banner,
.banner-float .terminate-banner {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  background: #ef4444;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-f-left-1 .terminate-banner:hover,
.banner-f-right-1 .terminate-banner:hover,
.banner-float .terminate-banner:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Hide floating banners when closed */
.banner-f-left-1.hidden,
.banner-f-right-1.hidden,
.banner-float.hidden {
  display: none;
}

/* ========================================
   Single Post Page
   ======================================== */

/* Title Section */
.title-box-movie {
  margin-bottom: 20px;
}

.title-box-movie .h1-text {
  position: relative;
  margin-bottom: 0;
}

.title-box-movie .h1-text h1,
.title-box-movie .h1-text h2,
.title-box-movie .h1-text h3,
.title-box-movie .h1-text h4,
.title-box-movie .h1-text h5,
.title-box-movie .h1-text h6 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border-radius: 4px 4px 0 0;
  position: relative;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.title-box-movie .h1-text h1::after,
.title-box-movie .h1-text h2::after,
.title-box-movie .h1-text h3::after,
.title-box-movie .h1-text h4::after,
.title-box-movie .h1-text h5::after,
.title-box-movie .h1-text h6::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

/* Movie Info Section (Trailer) */
.informs-movie {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.img-movie {
  margin-bottom: 20px;
}

.box-triler {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.box-triler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.h2-text h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-primary);
}

.info-blog {
  margin-top: 15px;
}

.detail-movie {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-movie span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-movie span a {
  color: var(--accent-primary);
}

.detail-movie .star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-warning);
  font-weight: 600;
}

.detail-movie .star img {
  width: 40px;
  height: auto;
}

/* Movie Description Section */
.movie-description {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.thumb-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-primary);
}

.movie-excerpt h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-primary);
}

.movie-content {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.movie-content p {
  margin-bottom: 12px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-primary);
}

.movie-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  font-size: 12px;
  color: var(--text-secondary);
}

.movie-tag:hover {
  background: var(--bg-hover);
  color: #fff;
}

/* Movie Player Section */
.playing-movie {
  margin: 20px 0;
}

#box-player {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

#pe-iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

/* Player Banner Overlay */
.player-promo-box,
.banner-player {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 520px;
  width: 90%;
}

.player-promo-box li,
.banner-player li {
  list-style: none;
}

.player-promo-box img,
.banner-player img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.terminate-banner {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--color-error);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminate-banner:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Fake Player */
.fake-player-container {
  position: relative;
  width: 100%;
  height: 500px;
  cursor: pointer;
  background: #000;
}

.fake-player-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.fake-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fake-player-button {
  position: relative;
  z-index: 2;
}

.fake-player-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fake-player-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 3;
  display: none;
}

.fake-player-loading .loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.real-player-container {
  display: none;
}

.real-player-container.active {
  display: block;
}

/* Related Movies Section */
.other-movie {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-primary);
}

.other-movie .title-box-movie {
  margin-bottom: 20px;
}

.other-movie h4 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

/* ========================================
   Additional Components
   ======================================== */

.footer-tags {
  margin: 25px 0;
  text-align: center;
}

.footer-tags ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-tags ul li a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-tags ul li a:hover {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
  color: #fff;
}

/* ========================================
   Utility Classes
   ======================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}

.aligncenter {
  display: block;
  margin: 0 auto 20px;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

::selection {
  background: var(--bg-tertiary);
  color: #fff;
}

::-moz-selection {
  background: var(--bg-tertiary);
  color: #fff;
}
