/**
 * MegaFilm Modern Cinema Theme for UZMovie.net
 * Clean, Ultra-fast, High-performance CSS
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --mf-bg: #09090b;
  --mf-surface: #111116;
  --mf-surface-card: #15151c;
  --mf-surface-2: #181822;
  --mf-surface-hover: #1f1f2c;
  --mf-border: rgba(255, 255, 255, 0.08);
  --mf-border-strong: rgba(255, 255, 255, 0.16);

  --mf-red: #e50914;
  --mf-red-hover: #f40612;
  --mf-red-glow: rgba(229, 9, 20, 0.35);

  --mf-blue: #0ea5e9;
  --mf-gold: #f59e0b;
  --mf-cyan: #06b6d4;

  --mf-text-1: #ffffff;
  --mf-text-2: #cbd5e1;
  --mf-text-3: #64748b;

  --mf-radius-sm: 6px;
  --mf-radius-md: 10px;
  --mf-radius-lg: 14px;
  --mf-radius-xl: 24px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--mf-bg);
  color: var(--mf-text-1);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   3. OWL CAROUSEL CORE CSS (PREVENTS GAPS & BROKEN LAYOUTS)
   ========================================================================== */
.owl-carousel {
  display: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
}

.owl-carousel .owl-stage {
  position: relative;
  -ms-touch-action: pan-Y;
  touch-action: manipulation;
  -moz-backface-visibility: hidden;
}

.owl-carousel .owl-stage:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
}

.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
  display: none;
}

.owl-carousel.owl-loaded {
  display: block;
}

.owl-carousel.owl-loading {
  opacity: 0;
  display: block;
}

.owl-carousel.owl-hidden {
  opacity: 0;
}

.owl-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.owl-dots .owl-dot {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

.owl-dots .owl-dot.active span {
  width: 22px;
  border-radius: 8px;
  background: var(--mf-red);
  box-shadow: 0 0 10px var(--mf-red-glow);
}

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */
.mf-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.mf-main-content {
  flex: 1;
  padding-top: 14px;
}

.mf-ad-top {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--mf-radius-md);
}

/* ==========================================================================
   5. UNIFIED SLIM HEADER (MEGAFILM STYLE)
   ========================================================================== */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mf-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.mf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

/* Logo */
.mf-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}

.mf-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.mf-logo-accent {
  color: var(--mf-red);
}

.mf-logo-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--mf-red);
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 3px;
  letter-spacing: 0.5px;
}

/* Desktop Main Navigation */
.mf-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 10px;
}

.mf-desktop-nav .mf-nav-link {
  color: var(--mf-text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--mf-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mf-desktop-nav .mf-nav-link i {
  font-size: 13px;
  color: var(--mf-text-3);
  transition: color 0.2s ease;
}

.mf-desktop-nav .mf-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mf-desktop-nav .mf-nav-link:hover i {
  color: var(--mf-red);
}

.mf-desktop-nav .mf-nav-link.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.mf-desktop-nav .mf-nav-link.active i {
  color: var(--mf-red);
}

/* Search Bar (Pill) */
.mf-search-form {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.mf-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  border-radius: 24px;
  padding: 3px 6px 3px 12px;
  transition: all 0.2s ease;
}

.mf-search-box:focus-within {
  background: var(--mf-surface-2);
  border-color: var(--mf-red);
  box-shadow: 0 0 0 3px var(--mf-red-glow);
}

.mf-search-icon {
  color: var(--mf-text-3);
  font-size: 13px;
  margin-right: 8px;
}

.mf-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  padding: 5px 0;
  min-width: 0;
}

.mf-search-input::placeholder {
  color: var(--mf-text-3);
  font-size: 12.5px;
}

.mf-search-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mf-text-2);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mf-search-btn:hover {
  background: var(--mf-red);
  color: #fff;
}

/* User Actions */
.mf-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mf-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mf-text-2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mf-action-icon:hover {
  background: var(--mf-red);
  color: #fff;
  border-color: var(--mf-red);
}

/* Mobile Search Toggle Button */
.mf-mobile-search-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  color: #fff;
  cursor: pointer;
}

.mf-mobile-search-btn:hover {
  background: var(--mf-red);
  border-color: var(--mf-red);
}

/* Mobile Search Overlay */
.mf-mobile-search-overlay {
  display: none;
  background: rgba(14, 14, 18, 0.98);
  border-top: 1px solid var(--mf-border);
  border-bottom: 1px solid var(--mf-border);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  animation: mfSearchSlide 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes mfSearchSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mf-mobile-search-overlay.active {
  display: block;
}

.mf-mobile-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mf-search-close-btn {
  background: transparent;
  border: none;
  color: var(--mf-text-2);
  width: 36px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.mf-search-close-btn:hover {
  color: var(--mf-red);
}

.mf-mobile-search-input-wrap {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.mf-mobile-search-input-wrap:focus-within {
  border-color: var(--mf-red);
  background: var(--mf-surface-2);
  box-shadow: 0 0 0 3px var(--mf-red-glow);
}

.mf-mobile-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0;
}

.mf-mobile-search-input::placeholder {
  color: var(--mf-text-3);
  font-size: 12.5px;
}

.mf-mobile-search-submit {
  padding: 8px 14px;
  border-radius: var(--mf-radius-xl);
  font-size: 13px;
  flex-shrink: 0;
}

/* Buttons */
.mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--mf-radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.mf-btn-primary {
  background: var(--mf-red);
  color: #fff;
  box-shadow: 0 4px 14px var(--mf-red-glow);
}

.mf-btn-primary:hover {
  background: var(--mf-red-hover);
  transform: translateY(-1px);
}

.mf-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--mf-border);
  color: var(--mf-text-2);
}

.mf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Mobile Subnav (Horizontal Categories Bar) */
.mf-mobile-subnav {
  display: none;
  background: rgba(14, 14, 18, 0.98);
  border-top: 1px solid var(--mf-border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mf-mobile-subnav::-webkit-scrollbar {
  display: none;
}

.mf-mobile-subnav-track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mf-chip:hover,
.mf-chip.active {
  background: var(--mf-red);
  color: #fff;
  border-color: var(--mf-red);
  box-shadow: 0 2px 10px var(--mf-red-glow);
}

/* ==========================================================================
   6. HERO SLIDER (FEATURED TOP)
   ========================================================================== */
.mf-hero-slider {
  margin-bottom: 22px;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  min-height: 200px;
}

.tc-item {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 380px;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: #000;
}

.tc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 0.5s ease;
}

.tc-item:hover img {
  transform: scale(1.02);
  filter: brightness(0.82);
}

.tc-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.3) 50%, transparent 80%);
  pointer-events: none;
}

.tc-item .tc-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   7. SECTIONS & MOVIE / SERIAL CARD GRID
   ========================================================================== */
.mf-section {
  margin-bottom: 30px;
}

.mf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mf-section-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.mf-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--mf-red);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--mf-red-glow);
}

.mf-section-count {
  font-size: 11.5px;
  color: var(--mf-text-3);
  background: var(--mf-surface-card);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--mf-border);
}

.mf-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mf-text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--mf-radius-sm);
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  transition: all 0.2s ease;
}

.mf-view-all:hover {
  background: var(--mf-surface-hover);
  color: #fff;
  border-color: var(--mf-red);
}

/* Responsive Grid */
.mf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Card */
.mf-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.mf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.2);
}

.mf-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
  border-radius: var(--mf-radius-md) var(--mf-radius-md) 0 0;
}

.mf-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.mf-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 44px;
  height: 44px;
  background: rgba(229, 9, 20, 0.95);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 4;
}

.mf-card:hover .mf-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Badges */
.mf-badge-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 165, 233, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

.mf-badge-episode {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mf-card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mf-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
  transition: color 0.2s ease;
}

.mf-card:hover .mf-card-title {
  color: var(--mf-red);
}

.mf-card-meta {
  font-size: 11px;
  color: var(--mf-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   8. CINEMA WATCH PAGE & VIDEO PLAYER
   ========================================================================== */
.mf-watch-box {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.mf-watch-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: -0.02em;
}

.mf-watch-meta {
  font-size: 12px;
  color: var(--mf-text-2);
  background: var(--mf-surface-2);
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid var(--mf-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Fullscreen Edge-to-Edge Player Frame */
.mf-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 50px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.15);
  margin-bottom: 18px;
}

.mf-player-frame iframe,
.mf-player-frame video,
.mf-player-frame embed,
.mf-player-frame object {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.mf-responsive-embed {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mf-responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Action Controls Toolbar & Ratings */
.mf-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.mf-actions-toolbar a {
  text-decoration: none;
}

.mf-rating-box {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mf-rate-btn {
  cursor: pointer;
  color: var(--mf-text-2);
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.mf-rate-btn:hover {
  color: var(--mf-red);
  transform: scale(1.15);
}

.mf-rate-count {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Navigation Between Episodes */
.uzm-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 18px;
  width: 100%;
}

.uzm-nav-bar .item,
.uzm-nav-bar .itemnav {
  flex: 1;
}

.uzm-nav-bar .item:only-child,
.uzm-nav-bar .itemnav:only-child {
  max-width: 280px;
  margin-left: auto;
}

.uzm-nav-link {
  background: var(--mf-surface-2);
  color: #fff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.2s ease;
}

.uzm-nav-link:hover {
  background: var(--mf-red);
  border-color: var(--mf-red);
  color: #fff;
  box-shadow: 0 4px 16px var(--mf-red-glow);
}

/* Episodes Grid (Wide, Clear & Comfortable) */
.uzm-episodes-wrap {
  background: var(--mf-surface-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 16px;
  margin: 18px 0;
}

.uzm-episodes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mf-border);
  flex-wrap: wrap;
  gap: 10px;
}

.uzm-ep-counter {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uzm-ep-counter i {
  color: var(--mf-red);
}

.uzm-ep-search-box {
  position: relative;
  min-width: 220px;
}

.uzm-ep-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mf-text-3);
  font-size: 12px;
}

.uzm-ep-search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 7px 12px 7px 32px;
  color: #fff;
  font-size: 12.5px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.uzm-ep-search-box input:focus {
  border-color: var(--mf-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--mf-red-glow);
}

.uzm-episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.uzm-episodes-list::-webkit-scrollbar {
  width: 5px;
}
.uzm-episodes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.uzm-ep-card {
  text-decoration: none;
  display: block;
  width: 100%;
}

.uzm-ep-card-inner {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  min-height: 48px;
  cursor: pointer;
}

.uzm-ep-card:hover .uzm-ep-card-inner {
  border-color: var(--mf-red);
  background: rgba(229, 9, 20, 0.08);
}

.uzm-ep-card.active .uzm-ep-card-inner {
  background: var(--mf-red);
  border-color: var(--mf-red);
  box-shadow: 0 4px 16px var(--mf-red-glow);
}

.uzm-ep-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uzm-ep-card.active .uzm-ep-badge {
  background: rgba(0, 0, 0, 0.25);
}

.uzm-ep-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.uzm-ep-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.uzm-ep-action,
.uzm-ep-status {
  font-size: 10px;
  color: var(--mf-text-3);
  white-space: nowrap;
}

.uzm-ep-card.active .uzm-ep-action,
.uzm-ep-card.active .uzm-ep-status {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* 2-Column Info Grid */
.mf-details-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mf-border);
}

.mf-details-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.mf-details-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
  color: var(--mf-text-2);
}

.mf-category-chips a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mf-border);
  padding: 4px 12px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}

.mf-category-chips a:hover {
  background: var(--mf-red);
  border-color: var(--mf-red);
}

.mf-meta-table {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 16px 18px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: 13px;
}

/* ==========================================================================
   9. MODAL POPUP & LOGIN
   ========================================================================== */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
}

.modal-inner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: var(--mf-surface-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mf-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--mf-red);
  color: #fff;
}

/* ==========================================================================
   10. COMMENTS SYSTEM & ADD COMMENT FORM (RESPONSIVE & MOBILE-SAFE)
   ========================================================================== */
.mf-comments-section {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 24px;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mf-comments-section {
    padding: 16px 12px;
    margin-top: 20px;
    border-radius: var(--mf-radius-md);
  }
}

/* Tree list reset */
.comments-tree-list,
ol.comments-tree-list,
ul.comments-tree-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.comments-tree-item,
li.comments-tree-item {
  list-style: none !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Nested replies indented cleanly */
.comments-tree-list .comments-tree-list {
  padding-left: 18px !important;
  margin-top: 10px !important;
  border-left: 2px solid var(--mf-border);
}

@media (max-width: 480px) {
  .comments-tree-list .comments-tree-list {
    padding-left: 10px !important;
  }
}

/* Individual Comment Card */
.mf-comment-card,
.comments-list {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mf-comment-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.mf-comment-avatar-wrap,
.bi-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.mf-comment-avatar,
.bi-avatar img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--mf-border) !important;
  display: block !important;
}

.mf-comment-content,
.comment-meta {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.mf-comment-header,
.comment-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.mf-comment-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-comment-author,
.comment-user {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.mf-comment-date,
#comment-age {
  color: var(--mf-text-3);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mf-comment-news-title {
  font-size: 12px;
  color: var(--mf-cyan);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-comment-text,
.comment-body {
  color: var(--mf-text-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.mf-comment-footer,
.comment-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mf-comment-votes,
.voting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mf-vote-btn,
.comment-vote {
  background: var(--mf-surface-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-sm);
  padding: 4px 10px;
  color: var(--mf-text-2);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.mf-vote-btn:hover,
.comment-vote:hover {
  color: #fff;
  border-color: var(--mf-border-strong);
}

.mf-vote-btn.like:hover {
  color: #22c55e;
  border-color: #22c55e;
}

.mf-vote-btn.dislike:hover {
  color: var(--mf-red);
  border-color: var(--mf-red);
}

.mf-comment-actions,
.reply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mf-comm-action-btn,
.comment-reply-link,
.edit_btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-sm);
  padding: 4px 10px;
  color: var(--mf-text-2);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.mf-comm-action-btn:hover,
.comment-reply-link:hover,
.edit_btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mf-comm-action-btn.delete {
  color: #ef4444;
}

.mf-comm-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* ==========================================================================
   ADD COMMENT FORM
   ========================================================================== */
.mf-addcomment-box {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 20px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.mf-addcomment-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-addcomment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mf-addcomment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

@media (max-width: 600px) {
  .mf-addcomment-row {
    grid-template-columns: 1fr;
  }
}

.mf-form-input {
  width: 100% !important;
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 11px 16px !important;
  color: #fff !important;
  font-size: 14px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.mf-form-input:focus {
  border-color: var(--mf-red) !important;
  box-shadow: 0 0 12px var(--mf-red-glow) !important;
  background: #000 !important;
}

/* BB Editor & Textarea (CRITICAL FIX FOR COLS=70 HORIZONTAL OVERFLOW) */
.mf-editor-wrap,
.bb-editor,
#comment-editor {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.mf-editor-wrap textarea,
.bb-editor textarea,
textarea#comments,
textarea[name="comments"] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 110px !important;
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 12px 16px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  display: block !important;
}

.mf-editor-wrap textarea:focus,
.bb-editor textarea:focus,
textarea#comments:focus {
  border-color: var(--mf-red) !important;
  box-shadow: 0 0 16px var(--mf-red-glow) !important;
  background: #000 !important;
}

/* DLE BB Codes Panel (if enabled) */
.bb-pane,
.bb-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
}

.bb-pane a,
.bb-btn {
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  color: var(--mf-text-2) !important;
}

.mf-addcomment-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.mf-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-captcha-img img {
  height: 42px !important;
  width: auto !important;
  border-radius: var(--mf-radius-sm);
  border: 1px solid var(--mf-border);
  vertical-align: middle;
  cursor: pointer;
}

.mf-captcha-input {
  width: 140px !important;
}

.mf-submit-comment-btn {
  padding: 11px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 600px) {
  .mf-comment-card {
    padding: 12px 10px;
    gap: 10px;
  }

  .mf-comment-avatar-wrap,
  .bi-avatar {
    width: 36px;
    height: 36px;
  }

  .mf-comment-avatar,
  .bi-avatar img {
    width: 36px !important;
    height: 36px !important;
  }

  .mf-addcomment-box {
    padding: 14px 10px;
  }

  .mf-addcomment-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-submit-comment-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

.alert {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #fff;
  border-radius: var(--mf-radius-md);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13.5px;
}

.speedbar {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--mf-text-3);
}

.speedbar a {
  color: var(--mf-text-2);
  text-decoration: none;
}

.speedbar a:hover {
  color: var(--mf-red);
}

/* ==========================================================================
   11. FOOTER & PAGINATION
   ========================================================================== */
.mf-footer {
  background: #060608;
  border-top: 1px solid var(--mf-border);
  padding: 36px 0 20px;
  margin-top: auto;
  color: var(--mf-text-2);
  font-size: 13px;
}

.mf-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.mf-footer-col {
  flex: 1;
  min-width: 240px;
}

.mf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin-top: 12px;
}

.mf-footer-links li a {
  color: var(--mf-text-2);
  font-weight: 500;
}

.mf-footer-links li a:hover {
  color: var(--mf-red);
}

.navigation {
  margin: 28px 0;
  text-align: center;
}

.navigation .pages {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation .pages a,
.navigation .pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--mf-radius-sm);
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  color: var(--mf-text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navigation .pages a:hover {
  background: var(--mf-surface-hover);
  color: #fff;
  border-color: var(--mf-border-strong);
}

.navigation .pages span,
.navigation .pages a.active {
  background: var(--mf-red);
  color: #fff;
  border-color: var(--mf-red);
  box-shadow: 0 4px 14px var(--mf-red-glow);
}

/* ==========================================================================
   12. MOBILE BOTTOM NAVIGATION (APP UX)
   ========================================================================== */
.mf-bottom-bar {
  display: none;
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS (MOBILE FIRST ARCHITECTURE)
   ========================================================================== */
@media (max-width: 1280px) {
  .mf-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .mf-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .mf-desktop-nav .mf-nav-link {
    padding: 6px 9px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  .mf-desktop-nav {
    display: none !important;
  }

  .mf-search-form {
    display: none !important;
  }

  .mf-mobile-search-btn {
    display: inline-flex !important;
  }

  .mf-desktop-only {
    display: none !important;
  }

  .mf-mobile-subnav {
    display: flex;
  }

  .mf-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(12, 12, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--mf-border);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  }

  .mf-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--mf-text-3);
    font-size: 10.5px;
    font-weight: 600;
    flex: 1;
    padding: 6px 0;
    transition: color 0.2s ease;
  }

  .mf-bottom-item i {
    font-size: 17px;
  }

  .mf-bottom-item.active,
  .mf-bottom-item:hover {
    color: var(--mf-red);
  }

  .mf-user-actions .mf-btn span {
    display: none;
  }

  .mf-user-actions .mf-btn {
    padding: 7px 10px;
  }

  .mf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .mf-details-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 16px;
  }

  .mf-details-sidebar {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mf-container {
    padding: 0 10px;
  }

  .mf-main-content {
    padding-top: 10px;
  }

  .mf-ad-top {
    margin-bottom: 8px;
  }

  .mf-header-inner {
    height: 54px;
    gap: 10px;
  }

  .mf-logo-text {
    font-size: 18px;
  }

  .mf-search-box {
    height: 36px;
  }

  .mf-search-input {
    font-size: 12px;
  }

  .mf-hero-slider {
    margin-bottom: 16px;
    min-height: 150px;
  }

  .tc-item {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .tc-item .tc-title {
    font-size: 13.5px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  /* Mobile Video Player (Edge-to-Edge Cinema Experience) */
  .mf-watch-box {
    width: 100%;
    margin: 0 auto;
  }

  .mf-watch-title {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .mf-player-frame {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px) !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 12px;
    box-shadow: none;
  }

  .uzm-episodes-wrap {
    padding: 12px;
    margin: 12px 0;
  }

  .uzm-episodes-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .uzm-ep-search-box {
    width: 100%;
    min-width: 0;
  }

  /* 2 Wide Columns for Episodes on Mobile */
  .uzm-episodes-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    max-height: 320px;
  }

  .uzm-ep-card-inner {
    padding: 8px 10px;
    min-height: 44px;
    gap: 8px;
  }

  .uzm-ep-badge {
    width: 24px;
    height: 24px;
    font-size: 11.5px;
  }

  .uzm-ep-title {
    font-size: 12.5px;
  }

  .mf-meta-table {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .mf-container {
    padding: 0 8px;
  }

  .mf-player-frame {
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px) !important;
  }

  .mf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mf-card-title {
    font-size: 11.5px;
    line-height: 1.35;
    height: 32px;
  }

  .mf-badge-quality,
  .mf-badge-episode {
    font-size: 8.5px;
    padding: 2px 5px;
  }

  .mf-card-meta {
    font-size: 10px;
  }

  .uzm-nav-link {
    font-size: 11.5px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   PAGE CONTAINER (PROFILE, STATIC, DMCA - PERFECTLY CENTERED)
   ========================================================================== */
.mf-page-container {
  max-width: 1240px;
  margin: 0 auto 30px;
  width: 100%;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mf-page-container {
    padding: 14px 10px;
    border-radius: var(--mf-radius-md);
  }
}

@media (max-width: 480px) {
  .mf-page-container {
    padding: 10px 4px;
    border: none;
    background: transparent;
    box-shadow: none;
  }
}

/* ==========================================================================
   CLIPS CATALOG (16:9 WIDESCREEN CARDS)
   ========================================================================== */
.mf-clips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .mf-clips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .mf-clips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mf-clips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.mf-clip-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mf-clip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.8), 0 0 18px rgba(229, 9, 20, 0.2);
}

.mf-clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.mf-clip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mf-clip-card:hover .mf-clip-thumb img {
  transform: scale(1.05);
}

.mf-clip-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

.mf-clip-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 44px;
  height: 44px;
  background: rgba(229, 9, 20, 0.95);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 4;
}

.mf-clip-card:hover .mf-clip-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mf-clip-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mf-clip-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
}

.mf-clip-card:hover .mf-clip-title {
  color: var(--mf-red);
}

.mf-clip-meta {
  font-size: 11px;
  color: var(--mf-text-3);
}

/* ==========================================================================
   PAGINATION (FULL-WIDTH CENTERED IN GRID)
   ========================================================================== */
.mf-grid .navigation,
.mf-clips-grid .navigation,
.navigation {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 32px 0 16px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.navigation .pages {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.navigation .pages a,
.navigation .pages span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: var(--mf-radius-md) !important;
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border) !important;
  color: var(--mf-text-2) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.navigation .pages a:hover {
  background: var(--mf-surface-hover) !important;
  color: #fff !important;
  border-color: var(--mf-red) !important;
  transform: translateY(-2px);
}

.navigation .pages span,
.navigation .pages a.active {
  background: var(--mf-red) !important;
  color: #fff !important;
  border-color: var(--mf-red) !important;
  box-shadow: 0 4px 14px var(--mf-red-glow) !important;
}

.navigation .pages .nav_ext {
  background: transparent !important;
  border: none !important;
  color: var(--mf-text-3) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   MODERN USER PROFILE PAGE
   ========================================================================== */
.mf-profile-page {
  width: 100%;
}

.mf-profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mf-border);
  flex-wrap: wrap;
}

.mf-profile-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--mf-red);
  box-shadow: 0 0 20px var(--mf-red-glow);
  flex-shrink: 0;
}

.mf-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-profile-info {
  flex: 1;
  min-width: 200px;
}

.mf-profile-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.mf-profile-status {
  font-size: 13px;
  color: var(--mf-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mf-profile-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mf-stat-box {
  background: var(--mf-surface-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.mf-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.mf-stat-label {
  font-size: 11.5px;
  color: var(--mf-text-3);
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mf-profile-tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0 20px;
  border-bottom: 1px solid var(--mf-border);
  padding-bottom: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.mf-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 8px 18px;
  color: var(--mf-text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mf-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mf-tab-btn.active {
  background: var(--mf-red);
  color: #fff;
  border-color: var(--mf-red);
  box-shadow: 0 4px 14px var(--mf-red-glow);
}

.mf-tab-pane {
  display: none;
}

.mf-tab-pane.active {
  display: block;
}

.mf-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--mf-text-3);
}

.mf-empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ==========================================================================
   TOP 100 PAGE STYLES (MOBILE-SAFE & NO OVERFLOW)
   ========================================================================== */
.mf-top100-page {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mf-top-heading {
  font-size: clamp(17px, 3.5vw, 24px) !important;
}

.mf-top-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .mf-top-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .mf-top-categories-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.mf-top-box {
  background: var(--mf-surface-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mf-top-box-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mf-border);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-top-box-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.mf-top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--mf-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mf-top-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.mf-top-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.mf-top-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-top-info {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.mf-top-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.mf-top-item:hover .mf-top-title {
  color: var(--mf-red);
}

.mf-top-meta {
  font-size: 11px;
  color: var(--mf-text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SEARCH RESULTS PAGE & MODERN SEARCH BOX
   ========================================================================== */
.mf-search-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

.mf-search-container > form,
.mf-search-container > .navigation,
.mf-search-container > .search_result_num,
.mf-search-container > .mf-search-box-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .mf-search-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

@media (max-width: 992px) {
  .mf-search-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .mf-search-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mf-search-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Search Form Card */
.mf-search-box-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.mf-search-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mf-border);
}

.mf-search-heading {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.mf-search-msg-badge {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--mf-radius-xl);
}

/* Modernize DLE Search Table */
.mf-search-table-wrap table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  background: transparent !important;
  border: none !important;
}

.mf-search-table-wrap td {
  border: none !important;
  padding: 6px 4px !important;
  color: var(--mf-text-2) !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
}

.mf-search-table-wrap input[type="text"],
.mf-search-table-wrap .textin {
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 12px 18px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  width: 100% !important;
  max-width: 520px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.mf-search-table-wrap input[type="text"]:focus,
.mf-search-table-wrap .textin:focus {
  border-color: var(--mf-red) !important;
  box-shadow: 0 0 16px var(--mf-red-glow) !important;
  background: #000 !important;
}

.mf-search-table-wrap input[type="button"],
.mf-search-table-wrap input[type="submit"],
.mf-search-table-wrap .bbcodes {
  background: var(--mf-red) !important;
  border: 1px solid var(--mf-red) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 11px 22px !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 6px 8px 6px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mf-search-table-wrap input[type="button"]:hover,
.mf-search-table-wrap input[type="submit"]:hover {
  background: var(--mf-red-hover) !important;
  box-shadow: 0 4px 16px var(--mf-red-glow) !important;
  transform: translateY(-1px) !important;
}

.mf-search-table-wrap input[name="dofullsearch"] {
  background: var(--mf-surface-card) !important;
  border-color: var(--mf-border) !important;
  color: var(--mf-text-2) !important;
}

.mf-search-table-wrap input[name="dofullsearch"]:hover {
  background: var(--mf-surface-2) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.mf-search-table-wrap select {
  background: var(--mf-surface-card) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 9px 14px !important;
  color: #fff !important;
  font-size: 13.5px !important;
  outline: none !important;
  max-width: 100% !important;
}

.mf-search-table-wrap input[type="checkbox"],
.mf-search-table-wrap input[type="radio"] {
  accent-color: var(--mf-red) !important;
  margin-right: 6px !important;
  cursor: pointer !important;
}

.mf-search-table-wrap fieldset {
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius-md) !important;
  padding: 16px !important;
  margin-top: 14px !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.mf-search-table-wrap legend {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 0 10px !important;
}

@media (max-width: 768px) {
  .mf-search-box-card {
    padding: 16px 12px;
  }

  .mf-search-table-wrap input[type="text"],
  .mf-search-table-wrap .textin {
    max-width: 100% !important;
  }

  .mf-search-table-wrap input[type="button"],
  .mf-search-table-wrap input[type="submit"],
  .mf-search-table-wrap .bbcodes {
    width: 100% !important;
    margin: 6px 0 !important;
  }
}

/* ==========================================================================
   STATIC PAGES (DMCA, REKLAMA, QOIDALAR)
   ========================================================================== */
.mf-static-page {
  width: 100%;
}

.mf-static-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mf-border);
  letter-spacing: -0.02em;
}

.mf-static-content {
  color: var(--mf-text-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.mf-static-content h2,
.mf-static-content h3 {
  color: #fff;
  margin: 22px 0 10px;
}

.mf-static-content p {
  margin-bottom: 14px;
}

.mf-static-content a {
  color: var(--mf-cyan);
  text-decoration: underline;
}

.mf-static-content ul,
.mf-static-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
