/* ==========================================================================
   LayarTV Native CSS — LK21 Premium Dark Aesthetics
   ========================================================================== */

:root {
  --lk-bg: #0b0e14;
  --lk-card-bg: #141b26;
  --lk-card-border: #1e293b;
  --lk-pink: #ff007f;
  --lk-red: #e50914;
  --lk-gold: #ffb703;
  --lk-text: #f8fafc;
  --lk-subtext: #94a3b8;
  --lk-gradient: linear-gradient(135deg, #e50914 0%, #ff007f 100%);
  --lk-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--lk-bg);
  color: var(--lk-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ========================================================================== Header */

.site-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--lk-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-box {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.search-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 8px 16px;
  padding-right: 40px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--lk-pink);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--lk-subtext);
  cursor: pointer;
}

.nav-ribbon {
  background: #090d16;
  border-top: 1px solid #1e293b;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-ribbon .container {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--lk-pink);
}

/* ========================================================================== Hero */

.hero-black {
  background: #05070a;
  padding: 24px 0;
  border-bottom: 1px solid #1e293b;
}

.hero-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}

.hero-rail .mcard {
  flex: 0 0 160px;
}

.btn-unggulan {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  padding: 10px 16px;
  background: var(--lk-gradient);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

/* ========================================================================== Film Sections & Grid */

.film-section {
  margin: 32px 0;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 8px;
}

.sec-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--lk-pink);
  text-transform: uppercase;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.film-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.film-row .mcard {
  flex: 0 0 150px;
}

/* Movie Card (.mcard) */
.mcard {
  background: var(--lk-card-bg);
  border: 1px solid var(--lk-card-border);
  border-radius: var(--lk-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.mcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1e293b;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.m-rate {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--lk-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.m-rate .st {
  margin-right: 2px;
}

.m-q {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--lk-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.m-year {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #e2e8f0;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}

.m-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.mcard:hover .m-play {
  opacity: 1;
}

.m-info {
  padding: 10px;
}

.m-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================================== Player Section */

.pblack {
  background: #000;
  padding: 20px 0;
  border-bottom: 1px solid #1e293b;
}

.pblack-in {
  max-width: 1000px;
  margin: 0 auto;
}

.ast-player {
  background: #090d16;
  border-radius: var(--lk-radius);
  overflow: hidden;
}

.player-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.player-srv {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}

.player-srv.active, .player-srv:hover {
  background: var(--lk-pink);
  border-color: var(--lk-pink);
  color: #fff;
}

.srv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.player-srv.active .srv-dot {
  background: #fff;
}

.ast-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ast-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-action {
  max-width: 1000px;
  margin: 10px auto 0;
  display: flex;
  justify-content: space-between;
  color: var(--lk-subtext);
  font-size: 12px;
}

.pa-l span {
  margin-right: 16px;
  cursor: pointer;
}

.ganti-player {
  max-width: 1000px;
  margin: 12px auto 0;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ========================================================================== Detail Table & Extras */

.watch-cnt {
  padding: 24px 0;
}

.wcard {
  background: var(--lk-card-bg);
  border: 1px solid var(--lk-card-border);
  border-radius: var(--lk-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.w-h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lk-subtext);
  font-size: 13px;
  margin-bottom: 14px;
}

.broken-line {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #334155;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-list .tag {
  background: #1e293b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

.movie-action {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-lk {
  background: var(--lk-gradient);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-lk.sec {
  background: #1e293b;
  border: 1px solid #334155;
}

.detail-tbl {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.dt-row {
  display: table-row;
  border-bottom: 1px solid #1e293b;
}

.dt-k {
  display: table-cell;
  padding: 8px 12px 8px 0;
  font-weight: 600;
  color: var(--lk-subtext);
  width: 100px;
}

.dt-v {
  display: table-cell;
  padding: 8px 0;
  color: var(--lk-text);
}

.dt-v a {
  color: var(--lk-pink);
}

.empty {
  text-align: center;
  padding: 40px 0;
  color: var(--lk-subtext);
}

/* Footer */
.site-footer {
  background: #070a0f;
  border-top: 1px solid #1e293b;
  padding: 30px 0;
  color: var(--lk-subtext);
  font-size: 13px;
  text-align: center;

}

/* Responsive */
@media (max-width: 640px) {
  .film-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-top {
    flex-direction: column;
  }
  .search-box {
    width: 100%;
  }
}
