/* ============================================
   MODERN MOVIERULZ DESIGN - COMPLETE REFRESH
   ============================================ */

/* ----- CSS Variables (Easy Theming) ----- */
:root {
  --primary: #ff6b00;
  --primary-dark: #e05a00;
  --primary-gradient: linear-gradient(135deg, #ff6b00, #ff4500);
  --bg-dark: #0d0e12;
  --bg-card: #16181f;
  --bg-card-hover: #1e212b;
  --bg-input: #1a1d26;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c8;
  --text-muted: #6a7288;
  --border-color: #2a2e3d;
  --border-hover: #3a3f55;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 12px 40px rgba(255,107,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset & Base ----- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-dark);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.05) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.03) 0%, transparent 50%);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Scrollbar Styling ----- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5em 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ff8533;
  text-decoration: none;
}

/* ----- Layout Container ----- */
#page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

#container {
  width: 100%;
  margin: 0 auto;
}

/* ----- Header / Branding ----- */
#branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0 10px 0;
  margin: 0 auto 10px;
  min-height: auto;
  width: 100%;
  float: none;
  text-shadow: none;
}

h1#site-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

h1#site-title a {
  color: var(--text-primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-size: 28px;
}

h2#site-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

/* ----- Search Bar ----- */
#search {
  width: 320px;
  max-width: 100%;
  float: none;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#searchform {
  display: flex;
  gap: 8px;
  width: 100%;
  position: relative;
}

#searchform #s {
  flex: 1;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 16px;
  height: 44px;
  width: 100% !important;
  transition: var(--transition);
  outline: none;
}

#searchform #s:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.15);
}

#searchform #s::placeholder {
  color: var(--text-muted);
}

#searchsubmit {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 0 20px;
  height: 44px;
  transition: var(--transition);
  display: block !important;
  white-space: nowrap;
}

#searchsubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}

/* ----- Navigation Menu ----- */
#menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  clear: both;
  float: none;
  margin: 10px 0 0 0;
  padding: 0;
  width: 100%;
  box-shadow: var(--shadow);
}

#menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

#menu > ul > li {
  position: relative;
  margin: 0;
  float: none;
}

#menu > ul > li > a {
  color: var(--text-secondary);
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 18px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#menu > ul > li > a:hover,
#menu > ul > li:hover > a {
  background: rgba(255,107,0,0.1);
  color: var(--text-primary);
}

#menu .current-menu-item > a,
#menu .current-menu-ancestor > a {
  background: rgba(255,107,0,0.15) !important;
  color: var(--primary) !important;
}

/* Dropdown */
#menu ul ul {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: none;
  min-width: 220px;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}

#menu ul ul li {
  float: none;
  margin: 0;
}

#menu ul ul a {
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 18px;
  text-transform: none;
  width: 100%;
  transition: var(--transition);
}

#menu ul ul a:hover {
  background: rgba(255,107,0,0.08) !important;
  color: var(--text-primary);
}

#menu ul li:hover > ul {
  display: block;
}

/* Mobile Menu Toggle (Hidden by default, shows on mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  padding: 10px 16px;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

/* ----- Directory Intro Box ----- */
.directory-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  display: block !important;
  margin: 16px 0 20px 0 !important;
  padding: 24px 28px !important;
  width: 100% !important;
  clear: both !important;
  box-shadow: var(--shadow);
}

.directory-intro h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin: 0 0 8px 0;
}

.directory-intro p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.directory-intro .format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-intro .format-tags span {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 14px;
  transition: var(--transition);
}

.directory-intro .format-tags span:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

/* ----- Main Content Area ----- */
#main {
  float: none;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ----- Movie Grid / Featured Section ----- */
.featured {
  margin: 0 0 30px 0;
}

h2.line_table {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding: 14px 20px;
  width: 100%;
  float: none;
  clear: both;
}

h2.line_table::before {
  content: '🎬 ';
  font-weight: 400;
}

.content.home_style ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.content.home_style li {
  float: none;
  width: 100%;
  margin: 0;
  list-style: none;
}

.boxed.film {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.boxed.film:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.boxed.film .cont_display {
  position: relative;
  overflow: hidden;
  padding-top: 140%;
  background: var(--bg-dark);
  width: 100%;
  height: auto;
}

.boxed.film .cont_display img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  padding: 0 !important;
  transition: transform 0.4s ease;
}

.boxed.film:hover .cont_display img {
  transform: scale(1.03);
}

.boxed.film p {
  padding: 12px 14px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  height: auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-color);
  line-height: 1.3;
}

.boxed.film p b {
  font-weight: 600;
  color: var(--text-primary);
}

/* ----- Movie Grid (filtered-movie.php) ----- */
#list .featured .content.home_style ul {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

/* ----- Pagination ----- */
.paged-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 10px 0;
}

.paged-navigation a,
.paged-navigation span {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  transition: var(--transition);
}

.paged-navigation a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.paged-navigation .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ----- Sidebar ----- */
#sidebar {
  float: none;
  width: 100% !important;
  margin: 20px 0 !important;
  padding: 0;
  right: auto;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 0 18px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-title {
  background: transparent;
  border-bottom: 2px solid var(--primary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 0 10px 0;
  margin: 0 0 14px 0;
  left: auto;
  width: 100%;
  border-radius: 0;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
}

.widget ul {
  padding: 0;
  margin: 0;
}

.widget li {
  list-style: none !important;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
  border-bottom: none;
}

.widget li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.widget li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Recent Movies Widget */
.widget_movie_recent_post_widget ul li::before {
  content: '▶';
  color: var(--primary);
  font-size: 10px;
  margin-right: 8px;
}

/* Tags / Years */
.tagc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.year_btn,
.tagc a {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  float: none;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  transition: var(--transition);
  margin: 0;
}

.year_btn:hover,
.tagc a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ----- Single Movie Page ----- */
.hentry {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 10px 0 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.title {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.entry-title {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.entry-content {
  padding: 24px;
}

.movie-poster-wrapper img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  width: 180px;
  height: auto;
  max-width: 100%;
}

/* Movie Info */
.movie-info-section {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.movie-info-section h3 {
  color: var(--primary);
  font-size: 18px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.movie-info-block p {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.movie-info-block strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 110px;
  display: inline-block;
}

.movie-info-block a {
  color: var(--primary);
}

.movie-info-block a:hover {
  color: #ff8533;
  text-decoration: underline;
}

/* Synopsis */
.synopsis-section {
  background: var(--bg-dark);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
}

.synopsis-section h4 {
  color: var(--primary);
  font-size: 14px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.synopsis-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 14px;
}

/* Video Player */
.video_player {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  background: #000;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video_player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video_player_thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
}

.play_action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  transition: var(--transition);
}

.play_action .fa {
  font-size: 72px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.play_action:hover .fa {
  color: var(--primary);
  transform: scale(1.1);
}

.below_player {
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 10px 16px;
  text-align: center;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin: -4px 0 16px 0;
}

/* Player Buttons */
#side1 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
  width: 100%;
}

#side1 a {
  flex: 1;
  min-width: 120px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  transition: var(--transition);
  float: none;
  width: auto !important;
  height: auto;
  margin: 0;
}

#side1 a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Torrent Section */
.torrent-section,
.streaming-section {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.torrent-section h3,
.streaming-section h3 {
  color: var(--primary);
  font-size: 17px;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.torrent-buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.torrent-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.torrent-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,107,0,0.25);
}

.torrent-btn .magnet-icon {
  font-size: 18px;
}

.torrent-btn .btn-size {
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
}

/* Streaming Links */
.streaming-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.mirror-link-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}

.mirror-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.source-badge {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.source-badge .check-icon {
  color: #4caf50;
  margin-right: 4px;
}

.stream-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  padding: 12px 16px;
  text-decoration: none !important;
  transition: var(--transition);
}

.stream-link-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.play-icon {
  font-size: 16px;
  color: var(--primary);
}

.stream-link-btn:hover .play-icon {
  color: #fff;
}

/* Post Navigation */
#post-nav {
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  margin: 0 24px;
  flex-wrap: wrap;
}

.nav-older,
.nav-newer {
  float: none;
  width: auto;
  padding: 0;
  font-size: 14px;
}

.nav-older a,
.nav-newer a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-older a:hover,
.nav-newer a:hover {
  color: var(--primary);
  background: rgba(255,107,0,0.08);
}

/* ----- Footer ----- */
.footer-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 30px 0 20px 0;
  padding: 30px 24px 24px 24px;
  clear: both;
  text-align: center;
}

.footer-wrapper h2 {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-wrapper p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 12px auto;
}

.footer-wrapper hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 20px auto;
  max-width: 500px;
}

#colophon {
  clear: both;
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px 0 30px 0;
  text-align: center;
  width: 100%;
}

#colophon a {
  color: var(--text-muted);
}

#colophon a:hover {
  color: var(--primary);
}

/* ----- 404 Page ----- */
#errorpage_message {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  margin: 20px 0;
  width: 100% !important;
  position: static !important;
}

img#err_img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

a#back_hoem_page {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  margin: 16px 0;
  display: inline-block;
  position: static !important;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
  transition: var(--transition);
}

a#back_hoem_page:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,0,0.4);
  color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  #branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  #search {
    width: 100%;
    max-width: 500px;
  }

  h1#site-title a {
    font-size: 30px;
  }
}

/* Small Tablet & Large Phone */
@media (max-width: 768px) {
  #page-wrap {
    padding: 0 12px;
  }

  #branding {
    padding: 12px 0 8px 0;
  }

  h1#site-title a {
    font-size: 26px;
  }

  h2#site-description {
    font-size: 13px;
  }

  #search {
    width: 100%;
    max-width: 100%;
  }

  #searchform #s {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 10px 14px;
  }

  /* Mobile Menu */
  .menu-toggle {
    display: block;
    margin: 0 0 8px 0;
    width: 100%;
  }

  #menu ul {
    display: none;
    flex-direction: column;
    padding: 4px 0;
  }

  #menu ul.open {
    display: flex;
  }

  #menu > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  #menu > ul > li:last-child {
    border-bottom: none;
  }

  #menu > ul > li > a {
    padding: 12px 16px;
    font-size: 14px;
  }

  #menu ul ul {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
    display: none;
  }

  #menu ul ul a {
    padding: 10px 16px;
    font-size: 13px;
  }

  #menu ul li:hover > ul {
    display: none;
  }

  #menu ul li.open > ul {
    display: block;
  }

  /* Grid adjustments */
  .content.home_style ul,
  #list .featured .content.home_style ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .directory-intro {
    padding: 18px 16px !important;
  }

  .directory-intro h2 {
    font-size: 18px;
  }

  .entry-title {
    font-size: 20px;
  }

  .entry-content {
    padding: 16px;
  }

  .movie-info-block strong {
    min-width: 90px;
  }

  .torrent-buttons-container,
  .streaming-links-container {
    grid-template-columns: 1fr;
  }

  #side1 {
    flex-direction: column;
  }

  #side1 a {
    min-width: auto;
    width: 100% !important;
  }

  .video_player {
    padding-bottom: 56.25%;
  }

  .play_action .fa {
    font-size: 56px;
  }

  #post-nav {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin: 0 16px;
  }

  .footer-wrapper {
    padding: 20px 16px 16px 16px;
  }
}

/* Mobile Phone */
@media (max-width: 480px) {
  #page-wrap {
    padding: 0 8px;
  }

  h1#site-title a {
    font-size: 22px;
  }

  h2#site-description {
    font-size: 12px;
  }

  .content.home_style ul,
  #list .featured .content.home_style ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .boxed.film p {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 40px;
  }

  .entry-title {
    font-size: 18px;
  }

  .title {
    padding: 14px 16px;
  }

  .entry-content {
    padding: 12px;
  }

  .movie-info-section {
    padding: 14px 16px;
  }

  .movie-info-block p {
    font-size: 13px;
  }

  .movie-info-block strong {
    min-width: 70px;
    font-size: 13px;
  }

  .synopsis-section {
    padding: 14px 16px;
  }

  .torrent-section,
  .streaming-section {
    padding: 14px 16px;
  }

  .torrent-btn {
    font-size: 12px;
    padding: 10px 14px;
  }

  .paged-navigation a,
  .paged-navigation span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }

  .widget {
    padding: 0 12px 12px;
  }

  .widget-title {
    font-size: 15px;
    padding: 12px 0 8px 0;
  }

  .year_btn,
  .tagc a {
    font-size: 11px;
    padding: 4px 10px;
  }

  .footer-wrapper h2 {
    font-size: 15px;
  }

  .footer-wrapper p {
    font-size: 13px;
  }

  #searchsubmit {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Very Small Phones */
@media (max-width: 380px) {
  .content.home_style ul,
  #list .featured .content.home_style ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .boxed.film .cont_display {
    padding-top: 140%;
  }

  .boxed.film p {
    font-size: 10px;
    padding: 6px 8px;
    min-height: 36px;
  }

  .entry-title {
    font-size: 16px;
  }

  #searchform #s {
    font-size: 14px;
    padding: 8px 12px;
    height: 38px;
  }

  #searchsubmit {
    height: 38px;
    font-size: 12px;
    padding: 0 12px;
  }
}

/* ============================================
   UTILITY & ACCESSIBILITY
   ============================================ */

.assistive-text,
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.clear {
  clear: both;
}

/* Loading / Skeleton States */
.movie-loading {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Rating Star Display (if used) */
.rating-stars {
  color: #ffc107;
  letter-spacing: 2px;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for empty search results */
.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================
   CUSTOM ADDITIONS (Keep your existing overrides)
   ============================================ */

/* Keep any custom CSS you had at the bottom of the file */