/* ==========================================================================
   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 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
}

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

.brand-logo-img {
  height: 32px;
  max-height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  vertical-align: middle;
  display: block;
}

.search-box {
  flex: 1 1 500px;
  max-width: 560px;
  min-width: 220px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 40px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 10px 42px 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--lk-pink);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.25);
}

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


.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);
  pointer-events: none;
}

.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;
  pointer-events: none;
}

.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;
  pointer-events: none;
}

.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;
  pointer-events: none;
}

.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,
.adult-player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  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 Mobile & Tablet Optimizations */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  /* Header Compact Mobile */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 8px;
  }

  .brand-logo-img {
    height: 26px;
    max-height: 28px;
    max-width: 120px;
  }

  .brand-logo-fallback {
    font-size: 16px;
  }

  .search-box {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }

  .search-input {
    height: 34px;
    padding: 6px 36px 6px 12px;
    font-size: 13px;
    border-radius: 17px;
  }

  .search-btn {
    right: 10px;
    font-size: 13px;
  }

  .nav-ribbon .container {
    padding: 6px 10px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    font-size: 12px;
  }

  /* Player Section Compact Spacing */
  .pblack {
    padding: 4px 0 8px;
  }

  .player-servers {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .player-servers::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Edge */
  }

  .player-srv {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 11px;
  }

  .player-action {
    margin-top: 6px;
    font-size: 11px;
    padding: 0 4px;
  }

  .ganti-player {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Content Spacing */
  .watch-cnt {
    padding: 12px 0;
  }

  .wcard {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 6px;
  }

  .w-h1 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-black {
    padding: 12px 0;
  }

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

  .sec-head {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .sec-title {
    font-size: 16px;
  }

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

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

@media (max-width: 420px) {
  .brand-logo-img {
    max-width: 100px;
    height: 24px;
  }

  .search-input {
    font-size: 12px;
    padding: 5px 32px 5px 10px;
    height: 32px;
  }
}


/* Adult Content Card Styles */
.adult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.adult-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.adult-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.25);
  border-color: #e50914;
}

.adult-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f172a;
  display: block;
}

.adult-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.adult-card:hover .adult-thumb img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.adult-nothumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  color: #64748b;
  font-size: 28px;
}

.adult-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}

.adult-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.adult-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  pointer-events: none;
}

.adult-card:hover .adult-overlay {
  opacity: 1;
}

.adult-info {
  padding: 10px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adult-title {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adult-title a {
  color: inherit;
  text-decoration: none;
}

.adult-title a:hover {
  color: #38bdf8;
}

/* Archive Pagination Styling */
.pg-link {
  padding: 8px 14px;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pg-link:hover {
  background: #334155;
  color: #fff;
  border-color: #475569;
}

.pg-link.active {
  background: var(--lk-pink, #ff007f);
  color: #fff;
  border-color: var(--lk-pink, #ff007f);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.35);
}

