/* =========================================================
   MYFUNNYFARM / LK21 — FINAL CLEAN RESPONSIVE
   ========================================================= */

:root{
  --bg:#09090b;
  --panel:#17171b;
  --panel2:#202026;
  --line:#2d2d35;
  --soft:#25252c;
  --text:#f6f6f8;
  --muted:#aaaab4;
  --muted2:#7f7f89;
  --green:#18ad53;
  --red:#eb2533;
}

*{box-sizing:border-box}

html{
  background:var(--bg);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-width:320px;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 50% -18%,rgba(220,28,60,.10),transparent 34rem),
    linear-gradient(180deg,#09090b,#0d0d10 60%,#09090b);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.65;
}

a{color:inherit}
img{display:block;max-width:100%}

/* ---------- SHELL ---------- */

.page-shell{
  width:min(calc(100% - 32px),1040px);
  margin:0 auto;
  padding:24px 0 60px;
}

.card{
  position:relative;
  width:100%;
  overflow:hidden;
  padding:28px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(23,23,27,.97);
  box-shadow:0 26px 80px rgba(0,0,0,.34);
}

.card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,#ef3340,transparent);
}

/* ---------- HEADER ---------- */

.brand-row{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:19px;
  border-bottom:1px solid var(--soft);
}

.brand{
  color:#fff;
  text-decoration:none;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.05em;
  line-height:1;
}

.status-dot{
  display:flex;
  align-items:center;
  gap:8px;
  color:#a4a4ad;
  font-size:9px;
  font-weight:850;
  letter-spacing:.18em;
  white-space:nowrap;
}

.status-dot::before{
  content:"";
  width:7px;height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.10);
}

.eyebrow{
  display:block;
  color:#92929c;
  font-size:9px;
  font-weight:850;
  letter-spacing:.17em;
  text-transform:uppercase;
}

/* ---------- HOME ---------- */

.home-hero{
  max-width:760px;
  margin:0 auto;
  padding:46px 12px 20px;
  text-align:center;
}

.home-hero h1{
  margin:9px 0 12px;
  color:#fff;
  font-size:clamp(34px,5vw,50px);
  line-height:1.04;
  letter-spacing:-.05em;
}

.home-hero p{
  max-width:660px;
  margin:0 auto;
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}

/* ---------- BUTTON ---------- */

.home-actions{
  padding:14px 0 24px;
}

.hero-actions{
  width:100%;
  margin:0 0 28px;
  padding:15px 0 0;
  border-top:1px solid var(--soft);
}

.btn,.tool{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-align:center;
  text-decoration:none;
  font-weight:850;
  transition:.16s ease;
}

.btn{
  min-height:38px;
  padding:0 14px;
  border-radius:8px;
  font-size:10px;
}

.btn:hover,.tool:hover{transform:translateY(-1px)}

.btn-primary{
  color:#fff;
  background:var(--green);
  border:1px solid #32c96a;
}

.btn-primary:hover{background:#20bd5e}

.btn-danger{
  margin-top:7px;
  color:#fff;
  background:var(--red);
  border:1px solid #f04b57;
}

.btn-danger:hover{background:#f13240}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:7px;
}

.tool{
  min-height:34px;
  padding:0 7px;
  border:1px solid #373740;
  border-radius:8px;
  background:#24242b;
  color:#e4e4e8;
  font-size:8px;
}

.tool:hover{background:#2d2d35}

/* ---------- SECTION ---------- */

.section-title{margin-bottom:15px}

.section-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:15px;
}

.section-title h2{
  margin:6px 0 0;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.035em;
}

.count-pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:27px;
  padding:0 10px;
  border:1px solid #36363e;
  border-radius:999px;
  background:#202026;
  color:#d4d4da;
  font-size:9px;
  font-weight:800;
}

/* ---------- TOP FILM ---------- */

.top-section{
  padding:26px 0 10px;
  border-top:1px solid var(--soft);
}

.top-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:11px;
}

.top-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid #32323a;
  border-radius:10px;
  background:#1d1d23;
  text-decoration:none;
  transition:.16s ease;
}

.top-card:hover{
  transform:translateY(-3px);
  border-color:#52525e;
  background:#232329;
}

.top-card img{
  width:100%;
  aspect-ratio:4/5;
  height:auto;
  object-fit:cover;
  object-position:center top;
  border-bottom:1px solid #2d2d34;
  background:#111114;
}

.rank{
  position:absolute;
  top:7px;left:7px;
  z-index:2;
  min-width:25px;
  min-height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(8,8,11,.84);
  font-size:8px;
  font-weight:900;
}

.top-copy{
  min-height:65px;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:9px;
}

.top-copy strong{
  display:-webkit-box;
  overflow:hidden;
  color:#f4f4f6;
  font-size:10px;
  font-weight:800;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow-wrap:anywhere;
}

.top-copy small{
  overflow:hidden;
  color:#858590;
  font-size:7.5px;
  line-height:1.4;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* ---------- BREADCRUMB ---------- */

.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding-top:20px;
  color:#7f7f89;
  font-size:10px;
}

.breadcrumb a{
  color:#b6b6bd;
  text-decoration:none;
}

.breadcrumb a:hover{color:#fff}

/* ---------- DETAIL HERO ---------- */

.movie-hero{
  display:grid;
  grid-template-columns:205px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:28px;
  row-gap:14px;
  align-items:start;
  padding:28px 0 18px;
}

.cover-wrap{
  grid-column:1;
  grid-row:1 / span 2;
  width:205px;
}

.cover{
  width:205px;
  height:285px;
  object-fit:cover;
  object-position:center top;
  border:1px solid #383840;
  border-radius:11px;
  background:#111114;
  box-shadow:0 14px 30px rgba(0,0,0,.23);
}

.movie-heading{
  grid-column:2;
  grid-row:1;
  min-width:0;
  padding-top:8px;
}

.movie-heading h1{
  margin:9px 0 13px;
  color:#fff;
  font-size:clamp(34px,4.6vw,49px);
  line-height:1.03;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.chips span{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border:1px solid #383840;
  border-radius:999px;
  background:#202026;
  color:#dadade;
  font-size:9px;
  font-weight:750;
  white-space:nowrap;
}

.lead{
  grid-column:2;
  grid-row:2;
  align-self:start;
  max-width:760px;
  margin:0;
  color:#b8b8c1;
  font-size:13px;
  line-height:1.8;
}

/* ---------- INFO ---------- */

.info-section,.related-section{
  padding:25px 0;
  border-top:1px solid var(--soft);
}

.info-section p{
  max-width:920px;
  margin:0;
  color:#b7b7c0;
  font-size:12.5px;
  line-height:1.8;
}

.facts-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  padding:0 0 25px;
}

.facts-grid > div{
  min-width:0;
  padding:12px 13px;
  border:1px solid #313139;
  border-radius:9px;
  background:#202026;
}

.facts-grid span{
  display:block;
  color:#7f7f89;
  font-size:8px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.facts-grid strong{
  display:block;
  margin-top:5px;
  color:#eeeef2;
  font-size:10px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.highlight-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.highlight-list li{
  position:relative;
  min-height:41px;
  padding:10px 14px 10px 37px;
  border:1px solid #313139;
  border-radius:9px;
  background:#202026;
  color:#c6c6ce;
  font-size:11px;
  line-height:1.55;
}

.highlight-list li::before{
  content:"✓";
  position:absolute;
  top:9px;left:14px;
  color:#22c55e;
  font-weight:900;
}

/* ---------- RELATED ---------- */

.related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.related-card{
  min-width:0;
  display:grid;
  grid-template-columns:55px minmax(0,1fr);
  gap:9px;
  align-items:center;
  padding:7px;
  border:1px solid #313139;
  border-radius:9px;
  background:#202026;
  text-decoration:none;
}

.related-card:hover{
  border-color:#4c4c56;
  background:#25252c;
}

.related-card img{
  width:55px;
  height:72px;
  object-fit:cover;
  object-position:center top;
  border-radius:6px;
  background:#111114;
}

.related-copy{min-width:0}

.related-copy strong{
  display:-webkit-box;
  overflow:hidden;
  font-size:9.5px;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.related-copy small{
  display:block;
  margin-top:4px;
  overflow:hidden;
  color:#83838d;
  font-size:7.5px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* ---------- 404 ---------- */

.empty-state{
  padding:70px 12px;
  text-align:center;
}

.empty-state h1{
  margin:10px 0 14px;
  font-size:clamp(32px,5vw,50px);
}

.empty-state p{
  max-width:620px;
  margin:0 auto;
  color:var(--muted);
}

.empty-state .btn{
  max-width:230px;
  margin:23px auto 0;
}

/* ---------- FOOTER ---------- */

footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
  padding-top:21px;
  border-top:1px solid var(--soft);
  color:#74747f;
  font-size:8px;
}

footer nav{
  display:flex;
  gap:13px;
}

footer a{
  color:#a3a3ac;
  text-decoration:none;
}

footer p{margin:0}

.histats-pixel{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:850px){

  .page-shell{
    width:min(calc(100% - 18px),800px);
    padding-top:12px;
  }

  .card{padding:21px}

  .top-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
  }

  .movie-hero{
    grid-template-columns:165px minmax(0,1fr);
    column-gap:20px;
  }

  .cover-wrap,.cover{width:165px}
  .cover{height:230px}

  .movie-heading h1{font-size:36px}

  .facts-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:600px){

  body{font-size:13px}

  .page-shell{
    width:100%;
    padding:0;
  }

  .card{
    min-height:100vh;
    padding:15px;
    border-left:0;
    border-right:0;
    border-radius:0;
    box-shadow:none;
  }

  .brand-row{
    min-height:49px;
    padding-bottom:14px;
  }

  .brand{font-size:20px}

  .status-dot{
    font-size:7px;
    letter-spacing:.13em;
  }

  .home-hero{
    padding:33px 3px 17px;
  }

  .home-hero h1{
    font-size:30px;
  }

  .home-hero p{
    font-size:11px;
    line-height:1.65;
  }

  .home-actions{
    padding:11px 0 20px;
  }

  .btn{
    min-height:34px;
    font-size:8.5px;
  }

  .tool{
    min-height:30px;
    padding:0 3px;
    font-size:6.5px;
  }

  .top-section{padding-top:21px}

  .section-title h2{font-size:19px}

  .top-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .top-card img{
    aspect-ratio:4/5;
  }

  .top-copy{
    min-height:59px;
    padding:7px;
  }

  .top-copy strong{font-size:9.5px}
  .top-copy small{font-size:7px}

  .breadcrumb{
    padding-top:15px;
    font-size:8.5px;
  }

  /* Mobile: poster + judul berdampingan, sinopsis full width */
  .movie-hero{
    grid-template-columns:105px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:13px;
    row-gap:14px;
    padding:20px 0 14px;
  }

  .cover-wrap{
    grid-column:1;
    grid-row:1;
    width:105px;
  }

  .cover{
    width:105px;
    height:145px;
    border-radius:9px;
  }

  .movie-heading{
    grid-column:2;
    grid-row:1;
    padding-top:2px;
  }

  .movie-heading h1{
    margin:7px 0 10px;
    font-size:26px;
    line-height:1.04;
  }

  .chips{
    gap:5px;
  }

  .chips span{
    min-height:25px;
    padding:0 7px;
    font-size:7px;
  }

  .lead{
    grid-column:1 / -1;
    grid-row:2;
    font-size:11.5px;
    line-height:1.7;
  }

  .hero-actions{
    margin-bottom:23px;
    padding-top:12px;
  }

  .info-section,.related-section{
    padding:22px 0;
  }

  .info-section p{
    font-size:11.5px;
    line-height:1.72;
  }

  .facts-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .facts-grid > div{
    padding:10px;
  }

  .highlight-list li{
    font-size:10.5px;
  }

  .related-grid{
    grid-template-columns:1fr;
    gap:7px;
  }

  .related-card{
    grid-template-columns:52px minmax(0,1fr);
  }

  .related-card img{
    width:52px;
    height:68px;
  }

  footer{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
}

@media(max-width:380px){

  .card{padding:12px}

  .home-hero h1{font-size:27px}

  .tools-grid{gap:5px}

  .movie-hero{
    grid-template-columns:92px minmax(0,1fr);
    column-gap:11px;
  }

  .cover-wrap,.cover{width:92px}
  .cover{height:128px}

  .movie-heading h1{font-size:23px}

  .chips span{
    padding:0 6px;
    font-size:6.5px;
  }
}