
:root{--bg:#f6f7fb;--card:#fff;--text:#10131a;--muted:#687080;--line:#e8ebf1;--blue:#0b6cff;--side:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}
html.dark{--bg:#0d1117;--card:#151b24;--text:#f4f7fb;--muted:#a8b0bd;--line:#273140;--side:#111720}
.topbar{height:64px;background:var(--card);display:flex;align-items:center;gap:28px;padding:0 22px;border-top:3px solid #111;box-shadow:0 5px 18px #0000000b;position:sticky;top:0;z-index:9}
.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;min-width:190px}.dotgrid{line-height:.42;color:#0b6cff;font-size:21px;letter-spacing:2px}
.search{height:42px;width:min(570px,50vw);border-radius:24px;background:#f0f2f5;display:flex;align-items:center;padding:0 16px;color:#7a8492}
.search input{border:0;outline:0;background:transparent;width:100%;font-size:15px;margin-left:10px}.theme{margin-left:auto;background:none;border:0;color:var(--muted);cursor:pointer}
.layout{display:grid;grid-template-columns:64px 1fr;min-height:calc(100vh - 64px)}.sidebar{background:var(--side);padding-top:42px;display:flex;flex-direction:column;align-items:center;gap:24px;border-right:1px solid var(--line)}
.sidebar a{color:var(--text);text-decoration:none;font-size:22px}.content{padding:72px 48px 60px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px}.hero{height:470px;position:relative;border-radius:28px;overflow:hidden;background:#ccd7e5;color:white;text-decoration:none}
.hero img{width:100%;height:100%;object-fit:cover}.hero:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#000a)}.hero-caption{position:absolute;left:34px;bottom:28px;z-index:2}.hero-caption span{background:#0b6cff;padding:7px 10px;border-radius:8px;font-size:12px}.hero-caption h1{font-size:40px;margin:12px 0 4px}.hero-caption p{margin:0}
.trending{padding:38px 0 0}.trending h2{margin:0 0 22px}.trend-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;padding:12px 0;color:var(--text);text-decoration:none}.trend-row>b{font-size:24px;color:#cdd1d8}.trend-row strong{display:block;font-size:14px;line-height:1.3}.trend-row small{display:block;color:var(--muted);margin-top:6px;line-height:1.45}.trend-row>span{color:var(--muted);font-size:13px;align-self:end}
.section-title{font-size:18px;margin:34px 0 18px}.featured-card{min-height:178px;background:var(--card);border-radius:24px;padding:12px;display:grid;grid-template-columns:300px 1fr auto;gap:20px;color:var(--text);text-decoration:none;box-shadow:0 10px 30px #00000008}
.featured-card img{width:100%;height:154px;object-fit:cover;border-radius:16px}.featured-card h3{margin:26px 0 14px}.featured-card p{color:var(--muted);max-width:700px}.featured-card small{color:var(--muted);line-height:1.5}.comments{align-self:end;color:var(--muted);padding:16px}
.title-row{display:flex;align-items:center;justify-content:space-between}.title-row span{color:var(--muted);font-size:13px}.movie-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.movie-card{background:var(--card);border-radius:20px;overflow:hidden;color:var(--text);text-decoration:none;box-shadow:0 10px 26px #00000008}.movie-card img{width:100%;aspect-ratio:2/3;object-fit:cover}.movie-card-body{padding:15px}.movie-card h3{margin:0 0 8px;font-size:16px}.movie-card p,.movie-card small{color:var(--muted)}
footer{text-align:center;padding:30px;color:var(--muted);font-size:13px;background:var(--card);border-top:1px solid var(--line)}
.movie-hero{position:relative}.movie-banner{width:100%;height:440px;object-fit:cover;border-radius:26px}.movie-info{margin-top:-105px;position:relative;display:grid;grid-template-columns:190px 1fr;gap:28px;align-items:end;padding:0 34px}.detail-poster{width:190px;aspect-ratio:2/3;object-fit:cover;border-radius:18px;box-shadow:0 18px 45px #0005}.movie-info>div{background:var(--card);border-radius:20px;padding:24px}.pill{background:#0b6cff;color:white;padding:6px 10px;border-radius:8px;font-size:12px}.movie-info h1{font-size:34px;margin:12px 0 8px}.movie-info p{color:var(--muted)}.desc{line-height:1.65}
.player-box,.downloads{background:var(--card);margin-top:28px;border-radius:22px;padding:24px}.player-box video{width:100%;max-height:650px;background:#000;border-radius:16px}.empty-player{height:360px;background:#0b0d11;color:#b5bdc9;border-radius:16px;display:grid;place-items:center;text-align:center;padding:30px}
.download-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.download-btn{background:#0b6cff;color:white;text-decoration:none;padding:16px;border-radius:13px;text-align:center;font-weight:700}.download-btn.disabled{background:#d6dbe4;color:#7b8390}
.admin-body{background:#f4f6fa}.admin-wrap{max-width:1100px;margin:40px auto;padding:0 20px}.admin-head{display:flex;justify-content:space-between;align-items:center}.admin-login{max-width:420px;margin:12vh auto;background:white;padding:30px;border-radius:18px;display:grid;gap:15px}.admin-login input,.admin-form input,.admin-form textarea{width:100%;padding:11px;border:1px solid #d9dee8;border-radius:9px}.admin-login button,.admin-form button{padding:12px 18px;border:0;border-radius:9px;background:#0b6cff;color:white;font-weight:700}.error{color:#d00}.admin-form{background:white;padding:24px;border-radius:18px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid label{font-size:13px;font-weight:600}.form-grid .wide{grid-column:1/-1}.form-grid textarea{min-height:100px}.admin-table{background:white;border-radius:18px;overflow:hidden}.admin-row{display:flex;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #eef0f4}.admin-row small{display:block;color:#8a93a2;margin-top:4px}
@media(max-width:1050px){.hero-grid{grid-template-columns:1fr}.hero{height:420px}.trending{padding-top:0}.movie-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:28px 16px}.topbar{padding:0 12px;gap:10px}.brand{min-width:auto}.brand b{display:none}.search{width:100%}.theme{font-size:0}.theme:after{content:"◐";font-size:18px}.hero{height:280px;border-radius:20px}.hero-caption h1{font-size:28px}.featured-card{grid-template-columns:120px 1fr}.featured-card img{height:110px}.featured-card h3{margin:10px 0}.featured-card p,.comments{display:none}.movie-grid{grid-template-columns:repeat(2,1fr);gap:12px}.movie-info{grid-template-columns:110px 1fr;gap:12px;padding:0 10px;margin-top:-55px}.detail-poster{width:110px}.movie-info>div{padding:16px}.movie-info h1{font-size:24px}.movie-banner{height:260px}.download-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}


/* MASTERMOVIES player update - DB schema unchanged */
.player-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.quality-control{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.quality-control select{
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--text);
  border-radius:10px;
  padding:8px 11px;
  outline:none;
}
.master-player{
  display:block;
  width:100%;
  max-height:680px;
  aspect-ratio:16/9;
  background:#000;
  border-radius:16px;
}
.drive-player-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:16px;
  overflow:hidden;
}
.drive-player{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.player-help{
  margin:12px 2px 0;
  color:var(--muted);
  font-size:13px;
}
@media(max-width:760px){
  .player-title-row{align-items:flex-start;flex-direction:column}
}


/* Banner view fix: show the complete artwork without harsh cropping */
.hero{
  isolation:isolate;
  background:#111;
}
.hero > .hero-bg{
  position:absolute;
  inset:-18px;
  width:calc(100% + 36px);
  height:calc(100% + 36px);
  object-fit:cover;
  filter:blur(18px) brightness(.58);
  transform:scale(1.04);
  z-index:0;
}
.hero > .hero-main{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  z-index:1;
}
.hero:after{
  z-index:2;
}
.hero-caption{
  z-index:3;
}

/* Movie detail banner uses the same full-image treatment */
.movie-banner-wrap{
  position:relative;
  width:100%;
  height:440px;
  overflow:hidden;
  border-radius:26px;
  background:#111;
  isolation:isolate;
}
.movie-banner-bg{
  position:absolute;
  inset:-20px;
  width:calc(100% + 40px);
  height:calc(100% + 40px);
  object-fit:cover;
  filter:blur(20px) brightness(.55);
  transform:scale(1.04);
}
.movie-banner{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  border-radius:0;
}

@media(max-width:760px){
  .movie-banner-wrap{height:260px;border-radius:20px}
}


/* Landscape movie cards - database unchanged */
.movie-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}

.movie-card{
  border-radius:18px;
  overflow:hidden;
  background:var(--card);
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}

.movie-card:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 34px rgba(0,0,0,.10);
}

.movie-card img{
  display:block;
  width:100%;
  aspect-ratio:1200 / 630;
  height:auto;
  object-fit:cover;
  object-position:center;
  background:#111;
}

.movie-card-body{
  padding:14px 15px 16px;
}

.movie-card h3{
  margin:0 0 8px;
  font-size:15px;
  line-height:1.35;
}

.movie-card p{
  margin:0 0 8px;
  font-size:12px;
  color:var(--blue);
}

.movie-card small{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

@media(max-width:1200px){
  .movie-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

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

@media(max-width:520px){
  .movie-grid{grid-template-columns:1fr}
}


/* Database-driven homepage hero slideshow - DB schema unchanged */
.hero-carousel{
  position:relative;
  height:470px;
  border-radius:28px;
  overflow:hidden;
  background:#101217;
  box-shadow:0 16px 40px rgba(0,0,0,.08);
  isolation:isolate;
}

.hero-slides{
  position:relative;
  width:100%;
  height:100%;
}

.hero-slide{
  position:absolute;
  inset:0;
  display:block;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .55s ease, visibility .55s ease;
  color:#fff;
  text-decoration:none;
  background:#111;
}

.hero-slide.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  z-index:2;
}

.hero-slide-bg{
  position:absolute;
  inset:-24px;
  width:calc(100% + 48px);
  height:calc(100% + 48px);
  object-fit:cover;
  filter:blur(22px) brightness(.62);
  transform:scale(1.04);
}

.hero-slide-main{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

.hero-slide-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 48%);
}

.hero-slide-caption{
  position:absolute;
  left:34px;
  right:90px;
  bottom:30px;
  z-index:4;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}

.hero-slide-caption h1{
  margin:12px 0 6px;
  font-size:38px;
  line-height:1.08;
  max-width:820px;
}

.hero-slide-caption p{
  margin:0;
  font-size:15px;
  line-height:1.4;
}

.hero-badge{
  display:inline-block;
  background:#0b6cff;
  color:white;
  border-radius:8px;
  padding:7px 11px;
  font-size:12px;
  font-weight:700;
  text-shadow:none;
}

.hero-arrow{
  position:absolute;
  z-index:8;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.46);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(6px);
}

.hero-arrow:hover{
  background:rgba(11,108,255,.88);
}

.hero-prev{left:16px}
.hero-next{right:16px}

.hero-dots{
  position:absolute;
  z-index:9;
  left:50%;
  bottom:15px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  max-width:70%;
  overflow:hidden;
}

.hero-dot{
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.48);
  cursor:pointer;
  transition:width .2s ease, background .2s ease;
}

.hero-dot.active{
  width:26px;
  background:#fff;
}

@media(max-width:1050px){
  .hero-carousel{height:420px}
}

@media(max-width:760px){
  .hero-carousel{
    height:280px;
    border-radius:20px;
  }
  .hero-slide-caption{
    left:20px;
    right:64px;
    bottom:24px;
  }
  .hero-slide-caption h1{
    font-size:26px;
  }
  .hero-slide-caption p{
    font-size:12px;
  }
  .hero-arrow{
    width:36px;
    height:36px;
    font-size:26px;
  }
  .hero-prev{left:10px}
  .hero-next{right:10px}
}


/* Full admin/profile/search/category update */
.topnav{
  display:flex;
  align-items:center;
  gap:14px;
}
.topnav a{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}
.topnav a:hover{color:var(--blue)}

.social-mini{
  display:flex;
  gap:6px;
}
.social-mini a{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:9px;
  background:var(--bg);
  color:var(--text);
  text-decoration:none;
  font-size:10px;
  font-weight:800;
  border:1px solid var(--line);
}

.profile-chip{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:var(--text);
  text-decoration:none;
  max-width:190px;
}
.profile-chip img,.profile-placeholder{
  width:34px;height:34px;border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
}
.profile-placeholder{
  display:grid;place-items:center;background:var(--blue);color:white;font-weight:800;
}
.profile-chip>span:last-child{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:800;
}

.category-strip{
  display:flex;
  gap:9px;
  overflow:auto;
  padding:4px 0 10px;
  scrollbar-width:none;
}
.category-strip::-webkit-scrollbar{display:none}
.category-strip a{
  white-space:nowrap;
  text-decoration:none;
  color:var(--muted);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:700;
}
.category-strip a.active,.category-strip a:hover{
  color:white;background:var(--blue);border-color:var(--blue);
}

.cast-line{
  color:var(--text)!important;
  font-size:14px;
  line-height:1.5;
}

.page-head{
  display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px
}
.page-head h1{margin:0 0 8px;font-size:34px}
.page-head p,.page-head span{margin:0;color:var(--muted)}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.category-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  flex-direction:column;
  gap:8px;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
}
.category-card strong{font-size:18px}
.category-card span{color:var(--muted);font-size:12px}

.official-profile{
  background:var(--card);
  border-radius:26px;
  padding:32px;
  display:grid;
  grid-template-columns:170px 1fr;
  gap:28px;
  align-items:center;
}
.official-dp{
  width:170px;height:170px;border-radius:50%;object-fit:cover;
  border:6px solid var(--bg);
}
.official-dp.placeholder{
  display:grid;place-items:center;background:var(--blue);color:white;font-size:58px;font-weight:900;
}
.official-badge{
  display:inline-block;background:var(--blue);color:white;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800
}
.official-profile h1{font-size:36px;margin:12px 0 8px}
.official-profile p{color:var(--muted)}
.official-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.official-links a{
  text-decoration:none;color:white;background:#111827;padding:11px 16px;border-radius:11px;font-weight:800
}

.admin-section{margin:20px 0 28px}
.admin-section-head h2{margin-bottom:4px}
.admin-section-head p{margin-top:0;color:#7a8492}
.profile-settings-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:24px;
  margin-bottom:18px;
}
.profile-preview{
  display:flex;flex-direction:column;gap:10px;
}
.profile-preview img,.profile-preview-empty{
  width:150px;height:150px;border-radius:50%;object-fit:cover;
}
.profile-preview-empty{
  display:grid;place-items:center;background:#e9edf5;color:#657086;font-size:30px;font-weight:900
}
.profile-preview label{font-weight:700;font-size:13px}
.profile-preview input{margin-top:7px}
.profile-preview small{color:#7a8492}
.success{background:#eaf8ef;color:#137a38;padding:10px 12px;border-radius:10px}

@media(max-width:1100px){
  .topnav{display:none}
  .social-mini{display:none}
  .profile-chip>span:last-child{display:none}
  .profile-chip{max-width:none}
  .category-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .official-profile{grid-template-columns:1fr;text-align:center}
  .official-dp,.official-dp.placeholder{margin:auto}
  .official-links{justify-content:center}
  .profile-settings-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .category-grid{grid-template-columns:1fr}
}


/* Separate-image layout tuning */
.movie-card img{
  width:100%;
  aspect-ratio:1200 / 630;
  object-fit:cover;
  object-position:center;
}

.featured-card img{
  aspect-ratio:1200 / 630;
  object-fit:cover;
  object-position:center;
}

/* Hero banner: use a dedicated wide image and crop naturally */
.hero-slide-main{
  object-fit:cover;
  object-position:center;
}

/* Detail page banner: dedicated cinematic image */
.movie-banner{
  object-fit:cover;
  object-position:center;
}

/* Detail poster: dedicated portrait artwork */
.detail-poster{
  aspect-ratio:2 / 3;
  object-fit:cover;
  object-position:center;
}


/* Downloads above player layout */
.downloads{
  margin-top:28px;
}
.player-box{
  margin-top:18px;
}


/* Security hardening admin UI */
.inline-form{display:inline;margin:0}
.link-button{
  border:0;
  background:transparent;
  color:#0b6cff;
  text-decoration:underline;
  cursor:pointer;
  padding:0;
  font:inherit;
}
.danger-link{color:#c62828}
.admin-actions{display:flex;gap:10px;align-items:center}


/* =========================================================
   MASTERMOVIES MOBILE VIEW UPDATE
   Database unchanged
   ========================================================= */

.mobile-bottom-nav{
  display:none;
}

@media(max-width:760px){

  html,body{
    max-width:100%;
    overflow-x:hidden;
  }

  body{
    padding-bottom:72px;
  }

  /* Compact phone header */
  .topbar{
    height:auto;
    min-height:58px;
    padding:9px 10px;
    gap:8px;
    flex-wrap:wrap;
    position:sticky;
    top:0;
  }

  .brand{
    order:1;
    flex:0 0 auto;
  }

  .brand b{
    display:block;
    font-size:14px;
    max-width:120px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .dotgrid{
    font-size:17px;
  }

  .profile-chip{
    order:2;
    margin-left:auto;
  }

  .profile-chip img,
  .profile-placeholder{
    width:32px;
    height:32px;
  }

  .theme{
    order:3;
    flex:0 0 34px;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    margin-left:0;
    border-radius:50%;
    background:var(--bg);
  }

  .search{
    order:4;
    flex:1 0 100%;
    width:100%;
    height:40px;
    margin-top:1px;
  }

  .topnav,
  .social-mini,
  .sidebar{
    display:none!important;
  }

  .layout{
    display:block;
  }

  .content{
    width:100%;
    padding:18px 12px 28px;
  }

  /* Fixed app-style phone navigation */
  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:50;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:rgba(255,255,255,.96);
    border-top:1px solid var(--line);
    box-shadow:0 -8px 25px rgba(0,0,0,.08);
    backdrop-filter:blur(14px);
    padding:7px 6px max(7px, env(safe-area-inset-bottom));
  }

  html.dark .mobile-bottom-nav{
    background:rgba(17,23,32,.96);
  }

  .mobile-bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    min-height:46px;
    color:var(--muted);
    text-decoration:none;
    font-weight:700;
  }

  .mobile-bottom-nav a span{
    font-size:20px;
    line-height:1;
    color:var(--text);
  }

  .mobile-bottom-nav a small{
    font-size:10px;
  }

  /* Home hero becomes phone-friendly */
  .hero-grid{
    display:block;
  }

  .hero-carousel{
    height:220px;
    border-radius:16px;
  }

  .hero-slide-main{
    object-fit:cover;
    object-position:center;
  }

  .hero-slide-caption{
    left:16px;
    right:54px;
    bottom:20px;
  }

  .hero-slide-caption h1{
    font-size:22px;
    line-height:1.08;
    margin:9px 0 5px;
  }

  .hero-slide-caption p{
    max-width:90%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .hero-arrow{
    width:32px;
    height:32px;
    font-size:24px;
  }

  .hero-prev{left:8px}
  .hero-next{right:8px}

  .hero-dots{
    bottom:8px;
  }

  /* Trending below hero, compact */
  .trending{
    margin-top:18px;
    padding:0;
  }

  .trending h2{
    font-size:18px;
    margin-bottom:8px;
  }

  .trend-row{
    grid-template-columns:34px 1fr auto;
    padding:9px 4px;
    border-bottom:1px solid var(--line);
  }

  .trend-row>b{
    font-size:18px;
  }

  .trend-row strong{
    font-size:13px;
  }

  .trend-row small{
    font-size:11px;
  }

  /* Featured card */
  .featured-card{
    min-height:0;
    grid-template-columns:115px 1fr;
    border-radius:16px;
    gap:12px;
    padding:9px;
  }

  .featured-card img{
    width:115px;
    height:86px;
    aspect-ratio:auto;
    border-radius:12px;
  }

  .featured-card h3{
    margin:5px 0 6px;
    font-size:14px;
  }

  .featured-card p{
    display:none;
  }

  .featured-card small{
    font-size:10px;
  }

  /* Movie list = two useful phone columns */
  .movie-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .movie-card{
    border-radius:13px;
  }

  .movie-card img{
    aspect-ratio:1200 / 630;
  }

  .movie-card-body{
    padding:9px 10px 11px;
  }

  .movie-card h3{
    font-size:12px;
    margin-bottom:5px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .movie-card p{
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:5px;
  }

  .movie-card small{
    font-size:9px;
  }

  .section-title{
    font-size:17px;
    margin:23px 0 12px;
  }

  .title-row{
    align-items:center;
  }

  /* Category chips */
  .category-strip{
    margin-left:-12px;
    margin-right:-12px;
    padding-left:12px;
    padding-right:12px;
  }

  /* Movie detail page */
  .movie-banner-wrap{
    height:190px!important;
    border-radius:16px;
  }

  .movie-banner{
    object-fit:cover;
  }

  .movie-info{
    display:grid;
    grid-template-columns:92px 1fr;
    gap:10px;
    padding:0 8px;
    margin-top:-38px;
    align-items:start;
  }

  .detail-poster{
    width:92px;
    border-radius:12px;
  }

  .movie-info>div{
    border-radius:14px;
    padding:12px;
  }

  .movie-info h1{
    font-size:19px;
    line-height:1.1;
    margin:7px 0 6px;
  }

  .movie-info p{
    font-size:11px;
    line-height:1.45;
  }

  .pill{
    padding:4px 7px;
    font-size:9px;
  }

  .cast-line{
    font-size:11px;
  }

  .desc{
    line-height:1.5;
  }

  /* Download section above player */
  .downloads,
  .player-box{
    padding:14px;
    border-radius:16px;
  }

  .downloads h2,
  .player-box h2{
    font-size:17px;
    margin-top:0;
  }

  .download-grid{
    grid-template-columns:1fr!important;
    gap:8px;
  }

  .download-btn{
    padding:13px 10px;
    border-radius:10px;
    font-size:13px;
  }

  .master-player,
  .drive-player-wrap,
  .empty-player{
    border-radius:12px;
    aspect-ratio:16/9;
    height:auto;
  }

  .empty-player{
    min-height:190px;
  }

  /* Latest/categories/profile pages */
  .page-head{
    align-items:flex-start;
    margin-bottom:16px;
  }

  .page-head h1{
    font-size:25px;
  }

  .page-head p,
  .page-head span{
    font-size:11px;
  }

  .category-grid{
    grid-template-columns:repeat(2,1fr)!important;
    gap:10px;
  }

  .category-card{
    padding:16px;
    border-radius:14px;
  }

  .category-card strong{
    font-size:14px;
  }

  .official-profile{
    padding:22px 15px;
    border-radius:18px;
  }

  .official-dp,
  .official-dp.placeholder{
    width:120px;
    height:120px;
  }

  .official-profile h1{
    font-size:26px;
  }

  /* Footer clears bottom navigation */
  footer{
    padding-bottom:90px;
  }
}

@media(max-width:390px){
  .brand b{
    max-width:96px;
  }

  .hero-carousel{
    height:200px;
  }

  .movie-grid{
    gap:8px!important;
  }

  .movie-info{
    grid-template-columns:82px 1fr;
  }

  .detail-poster{
    width:82px;
  }
}


/* =========================================================
   MOBILE REFERENCE STYLE
   Inspired by the user supplied mobile layout.
   Database unchanged.
   ========================================================= */

@media(max-width:760px){

  body{
    background:#f7f8fb;
  }

  html.dark body{
    background:var(--bg);
  }

  /* Header: logo/name left, theme right, search below */
  .topbar{
    min-height:76px;
    padding:10px 18px 12px;
    background:var(--card);
    border-top:0;
    border-bottom:1px solid var(--line);
    box-shadow:none;
  }

  .brand{
    order:1;
    min-width:0;
    flex:1 1 auto;
    gap:10px;
  }

  .brand b{
    display:block;
    max-width:230px;
    font-size:19px;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .dotgrid{
    font-size:20px;
  }

  .profile-chip{
    display:none;
  }

  .theme{
    display:block;
    order:2;
    width:auto;
    height:auto;
    flex:0 0 auto;
    background:transparent;
    border-radius:0;
    font-size:12px!important;
    padding:4px 0;
    color:var(--muted);
  }

  .theme:after{
    content:"";
  }

  .search{
    order:3;
    display:flex;
    width:100%;
    height:42px;
    margin-top:8px;
    border:1px solid var(--line);
    background:var(--bg);
  }

  /* Screenshot style: no large hero/trending block on phone */
  .hero-grid{
    display:none!important;
  }

  /* Give clean breathing room before Featured */
  .section-title{
    font-size:20px;
    margin:56px 0 18px;
    font-weight:800;
  }

  /* Featured card becomes large vertical mobile card */
  .featured-card{
    display:block;
    min-height:0;
    padding:12px;
    background:var(--card);
    border-radius:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
  }

  .featured-card img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1200 / 630;
    object-fit:cover;
    border-radius:18px;
  }

  .featured-card>div{
    padding:8px 8px 10px;
  }

  .featured-card h3{
    margin:14px 0 12px;
    font-size:18px;
    line-height:1.3;
  }

  .featured-card p{
    display:block;
    margin:0 0 14px;
    color:var(--muted);
    font-size:14px;
    line-height:1.55;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .featured-card small{
    display:block;
    font-size:12px;
    line-height:1.5;
    color:var(--muted);
  }

  .comments{
    display:block;
    padding:0 8px 8px;
    text-align:right;
    color:var(--muted);
    font-size:12px;
  }

  /* Latest header like reference screenshot */
  .title-row{
    margin-top:42px;
    align-items:center;
  }

  .title-row .section-title{
    margin:0 0 16px;
  }

  .title-row span{
    margin-bottom:16px;
    font-size:12px;
  }

  /* 2-column latest cards */
  .movie-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }

  .movie-card{
    border-radius:20px;
    overflow:hidden;
    background:var(--card);
    box-shadow:0 8px 25px rgba(0,0,0,.05);
  }

  .movie-card img{
    width:100%;
    aspect-ratio:1200 / 630;
    object-fit:cover;
    border-radius:0;
  }

  .movie-card-body{
    padding:10px 11px 12px;
  }

  .movie-card h3{
    font-size:13px;
    line-height:1.35;
    margin:0 0 6px;
  }

  .movie-card p{
    font-size:10px;
    margin-bottom:6px;
  }

  .movie-card small{
    font-size:9px;
  }

  /* Horizontal categories chips remain compact */
  .category-strip{
    margin-top:16px;
  }

  /* Bottom navigation exactly app-like */
  .mobile-bottom-nav{
    grid-template-columns:repeat(5,1fr);
    padding:8px 7px max(8px, env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0;
    box-shadow:0 -10px 30px rgba(0,0,0,.09);
  }

  .mobile-nav-item{
    appearance:none;
    border:0;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    min-height:48px;
    color:var(--muted);
    text-decoration:none;
    padding:0;
    font-family:inherit;
    cursor:pointer;
  }

  .mobile-nav-item .nav-icon{
    font-size:24px;
    color:var(--text);
    line-height:1;
  }

  .mobile-nav-item small{
    display:none;
  }

  /* Movie detail on phone remains compact */
  .movie-banner-wrap{
    margin-top:6px;
  }

  footer{
    padding-bottom:100px;
  }
}

@media(max-width:430px){
  .content{
    padding-left:10px;
    padding-right:10px;
  }

  .topbar{
    padding-left:14px;
    padding-right:14px;
  }

  .brand b{
    max-width:180px;
    font-size:17px;
  }

  .section-title{
    margin-top:48px;
  }

  .featured-card{
    border-radius:22px;
  }

  .featured-card img{
    border-radius:16px;
  }
}


/* =========================================================
   MOBILE SLIDESHOW FIX
   Re-enable hero slideshow on phone, hide trending only.
   Database unchanged.
   ========================================================= */

@media(max-width:760px){

  .hero-grid{
    display:block!important;
    margin-top:18px;
  }

  .hero-carousel{
    display:block!important;
    height:220px;
    border-radius:18px;
    overflow:hidden;
    margin-bottom:28px;
  }

  .hero-slide{
    border-radius:18px;
  }

  .hero-slide-main{
    object-fit:cover;
    object-position:center;
  }

  .hero-slide-caption{
    left:16px;
    right:52px;
    bottom:18px;
  }

  .hero-slide-caption h1{
    font-size:21px;
    line-height:1.08;
    margin:8px 0 4px;
  }

  .hero-slide-caption p{
    font-size:11px;
    max-width:90%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .hero-badge{
    padding:5px 8px;
    font-size:9px;
  }

  .hero-arrow{
    width:32px;
    height:32px;
    font-size:24px;
  }

  .hero-prev{left:8px}
  .hero-next{right:8px}

  .hero-dots{
    bottom:8px;
  }

  .hero-dot{
    width:7px;
    height:7px;
  }

  .hero-dot.active{
    width:22px;
  }

  /* Keep the desktop right-side trending panel off on phone */
  .trending{
    display:none!important;
  }

  /* Featured follows slideshow naturally */
  .section-title{
    margin-top:22px;
  }
}

@media(max-width:390px){
  .hero-carousel{
    height:200px;
  }

  .hero-slide-caption h1{
    font-size:19px;
  }
}


/* =========================================================
   MOBILE SOCIAL + PROFILE RESTORE
   Existing settings/database untouched
   ========================================================= */

.mobile-official-row{
  display:none;
}

@media(max-width:760px){

  /* Make sure slideshow cannot be hidden by earlier mobile rules */
  .hero-grid{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }

  .hero-carousel{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    height:220px!important;
    margin-top:16px!important;
  }

  .hero-slides,
  .hero-slide.active{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }

  /* Official mobile profile/social row */
  .mobile-official-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 14px;
    background:var(--card);
    border-bottom:1px solid var(--line);
  }

  .mobile-profile{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    text-decoration:none;
    color:var(--text);
  }

  .mobile-profile img,
  .mobile-profile-placeholder{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
    flex:0 0 auto;
  }

  .mobile-profile-placeholder{
    display:grid;
    place-items:center;
    background:var(--blue);
    color:white;
    font-weight:900;
  }

  .mobile-profile-name{
    display:block;
    max-width:150px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:13px;
    font-weight:800;
  }

  .mobile-social-links{
    display:flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
  }

  .mobile-social-links a{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    text-decoration:none;
    font-size:10px;
    font-weight:900;
    color:white;
  }

  .social-tt{background:#111}
  .social-yt{background:#d71920}
  .social-fb{background:#1877f2}

  /* The desktop profile/social controls can stay hidden on phone */
  .topbar .profile-chip,
  .topbar .social-mini{
    display:none!important;
  }

  .content{
    padding-top:12px;
  }
}

@media(max-width:390px){
  .mobile-profile-name{
    max-width:118px;
  }

  .mobile-social-links a{
    width:31px;
    height:31px;
    border-radius:9px;
  }

  .hero-carousel{
    height:200px!important;
  }
}


/* =========================================================
   DARK MODE SWITCH + ADMIN BACKUP/RESTORE
   ========================================================= */

.theme-switch{
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  padding:4px;
}

.theme-switch-track{
  position:relative;
  width:42px;
  height:24px;
  border-radius:999px;
  background:#d9dde5;
  transition:background .2s ease;
  flex:0 0 auto;
}

.theme-switch-knob{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:white;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  transition:transform .2s ease;
}

html.dark .theme-switch-track{
  background:#0b6cff;
}

html.dark .theme-switch-knob{
  transform:translateX(18px);
}

.theme-switch-label{
  font-size:12px;
  font-weight:700;
}

.backup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.backup-card{
  background:white;
  border:1px solid #e4e8ef;
  border-radius:16px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.backup-card strong{
  display:block;
  font-size:16px;
  margin-bottom:6px;
}

.backup-card small{
  display:block;
  color:#7a8492;
  line-height:1.45;
}

.backup-btn,
.restore-btn{
  border:0;
  border-radius:10px;
  padding:12px 15px;
  color:white;
  font-weight:800;
  cursor:pointer;
}

.backup-btn{
  background:#0b6cff;
}

.restore-btn{
  background:#b42318;
}

.restore-file,
.restore-confirm{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:700;
}

.restore-file input,
.restore-confirm input{
  width:100%;
  padding:10px;
  border:1px solid #d9dee8;
  border-radius:9px;
  background:white;
}

@media(max-width:760px){
  .theme-switch{
    order:2;
    margin-left:auto;
  }

  .theme-switch-label{
    display:none;
  }

  .backup-actions{
    grid-template-columns:1fr;
  }
}


/* Croods: 3 qualities. Other movies: 1080p only. */
.download-grid.single-quality{
  grid-template-columns:minmax(220px,420px);
}

.download-grid.three-quality{
  grid-template-columns:repeat(3,1fr);
}

@media(max-width:760px){
  .download-grid.single-quality,
  .download-grid.three-quality{
    grid-template-columns:1fr!important;
  }
}


/* SEO admin tools */
.seo-links-box{
  margin-top:12px;
  background:#fff;
  border:1px solid #e4e8ef;
  border-radius:14px;
  padding:15px;
  display:grid;
  gap:8px;
  font-size:13px;
}
.seo-links-box code{
  word-break:break-all;
  color:#0b6cff;
}

/* Movie detail official social links */
.movie-social-card{
  position:relative;
  overflow:hidden;
  margin-top:20px;
  padding:20px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:
    radial-gradient(circle at 0 0, rgba(0,242,234,.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255,0,80,.10), transparent 34%),
    linear-gradient(135deg, #101217 0%, #171a21 100%);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
  display:grid;
  grid-template-columns:minmax(230px,.9fr) minmax(420px,1.5fr);
  align-items:center;
  gap:18px;
}

.movie-social-card::after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-90px;
  top:-100px;
  border-radius:50%;
  border:30px solid rgba(255,255,255,.025);
  pointer-events:none;
}

.movie-social-brand{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
}

.movie-social-avatar{
  width:58px;
  height:58px;
  flex:0 0 58px;
  padding:2px;
  border-radius:18px;
  background:linear-gradient(135deg,#25f4ee,#fff 45%,#fe2c55);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  text-decoration:none;
}

.movie-social-avatar img,
.movie-social-avatar > span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  object-fit:cover;
  border-radius:16px;
  background:#11151b;
  color:#fff;
  font-size:22px;
  font-weight:900;
}

.movie-social-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.movie-social-kicker{
  color:#80f9f5;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
}

.movie-social-copy strong{
  color:#fff;
  font-size:17px;
  line-height:1.25;
}

.movie-social-copy small{
  color:#aeb5c0;
  font-size:11px;
  line-height:1.35;
}

.movie-social-buttons{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.movie-social-btn{
  min-width:0;
  min-height:58px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:15px;
  display:grid;
  grid-template-columns:36px 1fr auto;
  align-items:center;
  gap:9px;
  color:#fff;
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 8px 20px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.movie-social-btn:hover{
  transform:translateY(-3px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 14px 28px rgba(0,0,0,.22);
  filter:brightness(1.06);
}

.movie-social-btn:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

.movie-social-icon{
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}

.movie-social-icon svg{
  width:21px;
  height:21px;
  fill:currentColor;
}

.movie-social-label{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.12;
}

.movie-social-label b{
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.movie-social-label small{
  margin-top:3px;
  color:rgba(255,255,255,.72);
  font-size:9px;
  font-weight:700;
}

.movie-social-arrow{
  opacity:.75;
  font-size:15px;
  font-weight:900;
}

.movie-social-btn.social-tt{
  background:linear-gradient(135deg,#090a0d,#20232a);
}
.movie-social-btn.social-tt .movie-social-icon{
  color:#fff;
  text-shadow:-1px 0 #25f4ee, 1px 0 #fe2c55;
}

.movie-social-btn.social-yt{
  background:linear-gradient(135deg,#ff0033,#c40024);
}

.movie-social-btn.social-fb{
  background:linear-gradient(135deg,#2584ff,#0b5fd7);
}

@media(max-width:980px){
  .movie-social-card{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .movie-social-card{
    margin-top:16px;
    padding:16px;
    border-radius:19px;
    gap:14px;
  }

  .movie-social-avatar{
    width:52px;
    height:52px;
    flex-basis:52px;
    border-radius:16px;
  }

  .movie-social-avatar img,
  .movie-social-avatar > span{
    border-radius:14px;
  }

  .movie-social-copy strong{font-size:15px}
  .movie-social-copy small{font-size:10px}

  .movie-social-buttons{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .movie-social-btn{
    min-height:72px;
    padding:9px 5px;
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    gap:5px;
    border-radius:13px;
  }

  .movie-social-icon{
    width:34px;
    height:34px;
  }

  .movie-social-label b{font-size:10px}
  .movie-social-label small{font-size:8px}
  .movie-social-arrow{display:none}
}


/* Admin forgot-password flow */
.forgot-link{
  display:block;
  text-align:center;
  color:#0b6cff;
  font-weight:800;
  text-decoration:none;
}
.forgot-link:hover{text-decoration:underline}
.reset-card{max-width:460px}
.reset-card h1{text-align:center;margin:0}
.reset-icon{
  width:58px;height:58px;margin:0 auto;
  display:grid;place-items:center;
  border-radius:18px;background:#eef5ff;
  font-size:28px;
}
.reset-help,.reset-note{
  margin:0;text-align:center;color:#6f7a8a;line-height:1.5;
}
.reset-note{font-size:12px}
.reset-label{font-size:13px;font-weight:800;color:#374151;margin-bottom:-8px}
.reset-message{margin:0}


/* Hard cap social logo dimensions (prevents SVG from expanding) */
.movie-social-btn .movie-social-icon{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;overflow:hidden!important;}
.movie-social-btn .movie-social-icon svg{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;max-width:21px!important;max-height:21px!important;display:block!important;flex:none!important;}

/* =========================================================
   OFFICIAL PROFILE IMAGE NORMAL SIZE FIX
   Prevent uploaded profile/logo images from expanding.
   ========================================================= */
.official-profile{
  grid-template-columns:110px minmax(0,1fr)!important;
  gap:20px!important;
}
.official-profile .official-dp,
.official-profile img.official-dp,
.official-profile .official-dp.placeholder{
  width:100px!important;
  height:100px!important;
  min-width:100px!important;
  min-height:100px!important;
  max-width:100px!important;
  max-height:100px!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  border-radius:50%!important;
}
.official-profile .official-dp.placeholder{
  display:grid!important;
}

@media (max-width:700px){
  .official-profile{
    grid-template-columns:1fr!important;
    gap:14px!important;
    text-align:center!important;
  }
  .official-profile .official-dp,
  .official-profile img.official-dp,
  .official-profile .official-dp.placeholder{
    width:84px!important;
    height:84px!important;
    min-width:84px!important;
    min-height:84px!important;
    max-width:84px!important;
    max-height:84px!important;
    margin:0 auto!important;
  }
}


/* =========================================================
   MASTER EDITZ MOVIE PAGE LOGO HARD FIX
   Ultra-specific size cap to prevent oversized uploaded DP.
   ========================================================= */
body .movie-social-card .movie-social-brand a.movie-social-avatar{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  flex:0 0 46px!important;
  padding:2px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border-radius:14px!important;
}
body .movie-social-card .movie-social-brand a.movie-social-avatar img{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  border-radius:12px!important;
}
body .movie-social-card .movie-social-brand a.movie-social-avatar > span{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
}

@media(max-width:760px){
  body .movie-social-card .movie-social-brand a.movie-social-avatar{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
    flex-basis:42px!important;
  }
  body .movie-social-card .movie-social-brand a.movie-social-avatar img,
  body .movie-social-card .movie-social-brand a.movie-social-avatar > span{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
  }
}


/* =========================================================
   MASTERMOVIES HOMEPAGE LIVE TICKER
   ========================================================= */
.mm-live-ticker{
  width:min(1180px, calc(100% - 24px));
  margin:14px auto 18px;
  display:flex;
  align-items:stretch;
  min-height:44px;
  overflow:hidden;
  border:1px solid rgba(255,48,48,.22);
  border-radius:10px;
  background:
    linear-gradient(90deg,rgba(255,20,20,.07),rgba(8,8,10,.96) 18%,rgba(8,8,10,.96) 82%,rgba(255,20,20,.05));
  box-shadow:
    0 10px 30px rgba(0,0,0,.22),
    inset 0 0 22px rgba(255,0,0,.025);
}

.mm-live-ticker-badge{
  flex:0 0 auto;
  min-width:78px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#fff;
  font:700 12px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.09em;
  background:
    linear-gradient(180deg,#df1f1f,#8b0808);
  border-right:1px solid rgba(255,255,255,.10);
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}

.mm-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 10px rgba(255,255,255,.85);
  animation:mmLiveBlink 1s ease-in-out infinite alternate;
}

.mm-live-ticker-window{
  flex:1;
  min-width:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  position:relative;
}

.mm-live-ticker-window::before,
.mm-live-ticker-window::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:36px;
  z-index:2;
  pointer-events:none;
}

.mm-live-ticker-window::before{
  left:0;
  background:linear-gradient(90deg,#0a090a,transparent);
}

.mm-live-ticker-window::after{
  right:0;
  background:linear-gradient(270deg,#0a090a,transparent);
}

.mm-live-ticker-track{
  display:flex;
  width:max-content;
  min-width:max-content;
  align-items:center;
  will-change:transform;
  animation:mmTickerScroll 18s linear infinite;
}

.mm-live-ticker-track span{
  flex:0 0 auto;
  white-space:nowrap;
  padding-right:64px;
  color:#f5f5f5;
  font:700 15px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.01em;
  text-shadow:0 0 10px rgba(255,40,40,.08);
}

.mm-live-ticker:hover .mm-live-ticker-track{
  animation-play-state:paused;
}

@keyframes mmTickerScroll{
  0%{transform:translateX(-100%);}
  100%{transform:translateX(100%);}
}

@keyframes mmLiveBlink{
  from{opacity:.45;transform:scale(.85);}
  to{opacity:1;transform:scale(1.08);}
}

@media(max-width:700px){
  .mm-live-ticker{
    width:calc(100% - 16px);
    margin:10px auto 14px;
    min-height:40px;
    border-radius:8px;
  }

  .mm-live-ticker-badge{
    min-width:58px;
    padding:0 10px;
    font-size:10px;
    gap:6px;
  }

  .mm-live-dot{
    width:7px;
    height:7px;
  }

  .mm-live-ticker-track{
    animation-duration:17s;
  }

  .mm-live-ticker-track span{
    font-size:13px;
    padding-right:52px;
  }
}

@media(prefers-reduced-motion:reduce){
  .mm-live-ticker-track{
    animation:none;
    transform:none;
  }
}


/* LTR ticker: keep only one visible message */
.mm-live-ticker-track span[aria-hidden="true"]{
  display:none !important;
}


/* =========================================================
   FORCE MOVING TICKER - JS controls the motion
   ========================================================= */
.mm-live-ticker-window{
  position:relative !important;
  overflow:hidden !important;
}

.mm-live-ticker-track{
  position:absolute !important;
  left:0 !important;
  top:50% !important;
  width:max-content !important;
  min-width:max-content !important;
  animation:none !important;
  transform:translate3d(-1000px,-50%,0);
  will-change:transform !important;
}

.mm-live-ticker:hover .mm-live-ticker-track{
  animation-play-state:running !important;
}

.mm-live-ticker-track span[aria-hidden="true"]{
  display:none !important;
}

@media(prefers-reduced-motion:reduce){
  .mm-live-ticker-track{
    animation:none !important;
  }
}


/* =========================================================
   ADSENSE + LEGAL PAGES
   ========================================================= */
.mm-ad-wrap{
  width:min(1180px,calc(100% - 24px));
  margin:16px auto;
  min-height:90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(255,255,255,.018);
  overflow:hidden;
}
.mm-ad-label{
  padding:6px 10px 0;
  color:#707078;
  font:700 9px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.mm-legal-page{
  width:min(980px,calc(100% - 24px));
  margin:28px auto 48px;
}
.mm-legal-card{
  padding:26px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(12,12,14,.94);
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}
.mm-legal-card h1{
  margin-top:0;
}
.mm-legal-card h2{
  margin-top:26px;
  font-size:20px;
}
.mm-legal-card p{
  color:#c8c8ce;
  line-height:1.7;
}
.mm-legal-updated,
.mm-legal-note{
  color:#85858d!important;
  font-size:13px;
}
.mm-contact-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0;
}
.mm-contact-grid a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:8px;
  border:1px solid rgba(255,55,55,.22);
  background:rgba(255,30,30,.055);
  text-decoration:none;
}
.mm-legal-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  padding:14px 12px 20px;
  font-size:12px;
  color:#777;
}
.mm-legal-links a{
  color:#aaa;
  text-decoration:none;
}
.mm-legal-links a:hover{
  color:#fff;
}
@media(max-width:700px){
  .mm-ad-wrap{
    width:calc(100% - 16px);
    margin:12px auto;
  }
  .mm-legal-page{
    width:calc(100% - 16px);
    margin-top:18px;
  }
  .mm-legal-card{
    padding:18px;
  }
}


/* =========================================================
   MOBILE PLAYER VIEW FIX
   Responsive 16:9 player for MP4 / HLS / iframe players
   ========================================================= */
.player-card,
.player-wrap,
.video-player,
.movie-player,
.player-shell,
.player-container{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

.player-card iframe,
.player-card video,
.player-wrap iframe,
.player-wrap video,
.video-player iframe,
.video-player video,
.movie-player iframe,
.movie-player video,
.player-shell iframe,
.player-shell video,
.player-container iframe,
.player-container video{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  background:#000 !important;
  border:0 !important;
  border-radius:10px !important;
}

@media(max-width:760px){
  .player-card,
  .player-wrap,
  .video-player,
  .movie-player,
  .player-shell,
  .player-container{
    width:calc(100% + 0px) !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow:hidden !important;
    border-radius:10px !important;
  }

  .player-card iframe,
  .player-card video,
  .player-wrap iframe,
  .player-wrap video,
  .video-player iframe,
  .video-player video,
  .movie-player iframe,
  .movie-player video,
  .player-shell iframe,
  .player-shell video,
  .player-container iframe,
  .player-container video{
    width:100% !important;
    max-width:100vw !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:16 / 9 !important;
    object-fit:contain !important;
    border-radius:8px !important;
  }

  /* Player section spacing */
  .player-card,
  .movie-player-section,
  .watch-section{
    margin-top:14px !important;
    margin-bottom:16px !important;
  }

  /* Native video controls / custom control rows */
  .player-controls,
  .video-controls,
  .quality-row,
  .quality-selector,
  .player-actions{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    align-items:center !important;
  }

  .quality-selector select,
  .player-controls select,
  .video-controls select{
    max-width:100% !important;
    min-height:38px !important;
    font-size:14px !important;
  }

  .player-actions a,
  .player-actions button,
  .quality-row button{
    min-height:38px !important;
    font-size:13px !important;
  }

  /* Prevent any long player URLs or labels breaking the layout */
  .player-card *,
  .player-wrap *,
  .video-player *,
  .movie-player *{
    max-width:100% !important;
    box-sizing:border-box !important;
  }
}

@media(max-width:420px){
  .player-card iframe,
  .player-card video,
  .player-wrap iframe,
  .player-wrap video,
  .video-player iframe,
  .video-player video,
  .movie-player iframe,
  .movie-player video{
    border-radius:6px !important;
  }

  .quality-selector,
  .quality-row,
  .player-actions{
    gap:6px !important;
  }
}


.mm-responsive-player{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  aspect-ratio:16/9 !important;
  height:auto !important;
  object-fit:contain !important;
  background:#000 !important;
}


/* =========================================================
   GOOGLE DRIVE MOBILE PLAYER HARD FIX
   ========================================================= */
.drive-player-wrap{
  position:relative !important;
  width:100% !important;
  max-width:100% !important;
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  background:#000 !important;
  border-radius:12px !important;
}

.drive-player,
.drive-player.mm-responsive-player{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  min-height:100% !important;
  max-width:none !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#000 !important;
}

@media(max-width:760px){
  .player-box{
    margin-top:18px !important;
    padding:12px !important;
    border-radius:16px !important;
    overflow:hidden !important;
  }

  .player-box .player-title-row{
    margin:0 0 10px !important;
    gap:8px !important;
  }

  .player-box .player-title-row h2{
    margin:0 !important;
    font-size:23px !important;
    line-height:1.15 !important;
  }

  .drive-player-wrap{
    aspect-ratio:16 / 9 !important;
    border-radius:9px !important;
  }

  .drive-player,
  .drive-player.mm-responsive-player{
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    aspect-ratio:auto !important;
  }

  .master-player,
  video.master-player.mm-responsive-player{
    display:block !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 9 !important;
    object-fit:contain !important;
    background:#000 !important;
    border-radius:9px !important;
  }

  .player-help{
    margin:9px 2px 0 !important;
    font-size:12px !important;
    line-height:1.4 !important;
  }
}

@media(max-width:420px){
  .player-box{
    padding:9px !important;
    border-radius:14px !important;
  }

  .player-box .player-title-row h2{
    font-size:21px !important;
  }

  .drive-player-wrap,
  .master-player,
  video.master-player.mm-responsive-player{
    border-radius:7px !important;
  }
}
