/*
Theme Name: LANA99
Theme URI: https://example.com/
Author: LANA99
Description: Tema WordPress streaming LANA99 100% native WordPress tanpa Google Apps Script atau Google Spreadsheet.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lana99
*/

/* =====================================================
   RESET
===================================================== */

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


html {
  scroll-behavior: smooth;
}


body {

  background: #080808;

  color: #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

}


/* =====================================================
   LOADING
===================================================== */

#loading {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background: #080808;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

}


.loading-logo {

  font-size: 42px;

  font-weight: 900;

  letter-spacing: 5px;

  color: #e50914;

}


.loading-text {

  margin-top: 15px;

  color: #888;

  font-size: 14px;

}


.loader {

  width: 45px;

  height: 45px;

  border-radius: 50%;

  border: 4px solid #333;

  border-top-color: #e50914;

  animation:
    loadingSpin
    1s linear infinite;

  margin-top: 20px;

}


@keyframes loadingSpin {

  to {
    transform: rotate(360deg);
  }

}


/* =====================================================
   HEADER
===================================================== */

header {

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  z-index: 5000;

  height: 72px;

  display: flex;

  align-items: center;

  padding: 0 5%;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.95),
      rgba(0,0,0,.65),
      transparent
    );

}


.logo {

  color: #e50914;

  font-size: 28px;

  font-weight: 900;

  letter-spacing: 3px;

  cursor: pointer;

}


nav {

  display: flex;

  gap: 22px;

  margin-left: 40px;

}


nav button {

  border: 0;

  background: transparent;

  color: #ddd;

  cursor: pointer;

  font-size: 14px;

}


nav button:hover {

  color: #fff;

}


.search-box {

  margin-left: auto;

}


#search {

  width: 220px;

  padding: 11px 15px;

  border:

    1px solid #444;

  border-radius: 5px;

  background: #111;

  color: #fff;

  outline: none;

}


#search::placeholder {

  color: #777;

}


/* =====================================================
   HERO
===================================================== */

.hero {

  min-height: 620px;

  position: relative;

  display: flex;

  align-items: center;

  padding:
    130px 7% 80px;

  overflow: hidden;

}


.hero-image {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  opacity: .42;

}


.hero-gradient {

  position: absolute;

  inset: 0;

  background:

    linear-gradient(
      90deg,
      #080808 5%,
      rgba(8,8,8,.85) 35%,
      rgba(8,8,8,.35) 75%,
      #080808 100%
    ),

    linear-gradient(
      0deg,
      #080808 0%,
      transparent 50%
    );

}


.hero-content {

  position: relative;

  z-index: 2;

  max-width: 650px;

}


.hero-small {

  color: #e50914;

  font-weight: bold;

  margin-bottom: 15px;

}


.hero-title {

  font-size:
    clamp(
      42px,
      7vw,
      78px
    );

  line-height: .95;

  font-weight: 900;

  margin-bottom: 20px;

}


.hero-meta {

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

  color: #ccc;

  margin-bottom: 20px;

}


.hero-description {

  color: #ccc;

  line-height: 1.7;

  margin-bottom: 28px;

}


.btn-row {

  display: flex;

  gap: 10px;

}


.btn {

  border: 0;

  border-radius: 5px;

  padding:
    13px 22px;

  font-weight: bold;

  cursor: pointer;

}


.btn-white {

  background: #fff;

  color: #000;

}


.btn-red {

  background: #e50914;

  color: #fff;

}


.btn-gray {

  background: #444;

  color: #fff;

}


/* =====================================================
   MAIN
===================================================== */

main {

  padding:
    0 5% 60px;

}


.section-title {

  font-size: 26px;

  margin-bottom: 20px;

}


/* =====================================================
   CATEGORIES
===================================================== */

.categories {

  display: flex;

  gap: 10px;

  overflow-x: auto;

  padding-bottom: 15px;

  margin-bottom: 25px;

}


.categories::-webkit-scrollbar {

  display: none;

}


.category {

  white-space: nowrap;

  padding:
    9px 17px;

  border:
    1px solid #444;

  background: #161616;

  color: #ccc;

  border-radius: 30px;

  cursor: pointer;

}


.category.active,
.category:hover {

  background: #e50914;

  color: #fff;

  border-color: #e50914;

}


/* =====================================================
   GRID
===================================================== */

.movie-grid {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(
        165px,
        1fr
      )
    );

  gap: 20px;

}


.movie-card {

  background: #111;

  border-radius: 8px;

  overflow: hidden;

  cursor: pointer;

  transition:
    .25s;

}


.movie-card:hover {

  transform:
    translateY(-7px);

  box-shadow:
    0 15px 35px
    rgba(0,0,0,.6);

}


.poster {

  width: 100%;

  aspect-ratio: 2 / 3;

  object-fit: cover;

  background: #171717;

  display: block;

}


.movie-info {

  padding: 12px;

}


.movie-title {

  font-size: 15px;

  font-weight: bold;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}


.movie-meta {

  margin-top: 8px;

  display: flex;

  justify-content: space-between;

  color: #888;

  font-size: 12px;

}


.badge {

  border:
    1px solid #555;

  border-radius: 3px;

  padding:
    2px 5px;

  color: #fff;

}


/* =====================================================
   EMPTY
===================================================== */

.empty {

  padding: 80px 20px;

  text-align: center;

  color: #777;

}


.empty h3 {

  color: #fff;

  margin-bottom: 10px;

}


/* =====================================================
   DETAIL MODAL
===================================================== */

.modal {

  position: fixed;

  inset: 0;

  z-index: 8000;

  background:
    rgba(0,0,0,.9);

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

}


.modal.active {

  display: flex;

}


.detail-box {

  position: relative;

  width:
    min(
      900px,
      100%
    );

  max-height: 90vh;

  overflow-y: auto;

  background: #181818;

  border-radius: 10px;

}


.close {

  position: absolute;

  top: 15px;

  right: 15px;

  z-index: 10;

  width: 40px;

  height: 40px;

  border: 0;

  border-radius: 50%;

  background:
    rgba(0,0,0,.8);

  color: #fff;

  font-size: 25px;

  cursor: pointer;

}


.detail-content {

  display: grid;

  grid-template-columns:
    260px 1fr;

  gap: 30px;

  padding: 35px;

}


.detail-poster {

  width: 100%;

  border-radius: 7px;

}


.detail-title {

  font-size: 36px;

  margin-bottom: 15px;

}


.detail-description {

  color: #bbb;

  line-height: 1.7;

  margin:
    20px 0 30px;

}


/* =====================================================
   PLAYER
===================================================== */

#playerModal {

  position: fixed;

  inset: 0;

  z-index: 10000;

  background: #000;

  display: none;

}


#playerModal.active {

  display: block;

}


.player-header {

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  z-index: 20;

  height: 62px;

  display: flex;

  align-items: center;

  padding: 0 20px;

  background:
    linear-gradient(
      #000,
      transparent
    );

}


.player-title {

  font-size: 18px;

  font-weight: bold;

}


.player-close {

  margin-left: auto;

  width: 42px;

  height: 42px;

  border: 0;

  border-radius: 50%;

  background:
    rgba(255,255,255,.12);

  color: #fff;

  font-size: 25px;

  cursor: pointer;

}


#driveFrame {

  position: absolute;

  top: 62px;

  left: 0;

  width: 100%;

  height:
    calc(
      100% - 62px
    );

  border: 0;

  background: #000;

}


.player-message {

  position: absolute;

  inset: 62px 0 0;

  display: none;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  text-align: center;

  padding: 30px;

}


.player-message h2 {

  margin-bottom: 12px;

}


.player-message p {

  color: #999;

  max-width: 600px;

  line-height: 1.6;

}


.open-drive {

  margin-top: 20px;

  display: inline-flex;

  padding:
    13px 22px;

  border-radius: 5px;

  background: #e50914;

  color: #fff;

  text-decoration: none;

  font-weight: bold;

}


/* =====================================================
   FOOTER
===================================================== */

footer {

  border-top:
    1px solid #222;

  text-align: center;

  color: #666;

  padding: 35px 20px;

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width: 700px) {

  header {

    height: auto;

    min-height: 65px;

    flex-wrap: wrap;

    padding:
      12px 4%;

    gap: 10px;

  }


  nav {

    order: 3;

    width: 100%;

    margin-left: 0;

    overflow-x: auto;

  }


  .search-box {

    margin-left: auto;

  }


  #search {

    width: 150px;

  }


  .hero {

    min-height: 580px;

    padding:
      150px 6% 60px;

  }


  .hero-title {

    font-size: 48px;

  }


  .movie-grid {

    grid-template-columns:
      repeat(
        2,
        1fr
      );

    gap: 12px;

  }


  .detail-content {

    grid-template-columns:
      1fr;

    padding: 25px;

  }


  .detail-poster {

    width: 180px;

    margin: auto;

  }


  .detail-title {

    font-size: 28px;

  }

}

/* =====================================================
   LANA99 MOBILE APP UX - ENHANCED
   ===================================================== */

@media (max-width: 700px) {

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

  body {
    padding-bottom: 70px;
  }

  header {
    position: fixed;
    top: 0;
    height: 62px;
    min-height: 62px;
    padding: 0 14px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    background: rgba(8,8,8,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .logo {
    font-size: 22px;
    letter-spacing: 2px;
    flex-shrink: 0;
  }

  nav {
    display: none;
  }

  .search-box {
    margin-left: auto;
    flex: 1;
    max-width: 210px;
  }

  #search {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    background: #171717;
    border-color: #292929;
  }

  .hero {
    min-height: 570px;
    padding: 110px 20px 55px;
    align-items: flex-end;
  }

  .hero-image {
    opacity: .48;
    object-position: center;
  }

  .hero-gradient {
    background:
      linear-gradient(
        0deg,
        #080808 3%,
        rgba(8,8,8,.82) 38%,
        rgba(8,8,8,.15) 100%
      );
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero-small {
    font-size: 12px;
    margin-bottom: 9px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 52px);
    line-height: .98;
    margin-bottom: 13px;
  }

  .hero-meta {
    gap: 8px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 17px;
  }

  .btn-row {
    gap: 8px;
  }

  .btn {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 13px;
    border-radius: 22px;
  }

  main {
    padding: 0 14px 30px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 13px;
  }

  .categories {
    gap: 8px;
    margin: 0 -14px 18px;
    padding: 0 14px 8px;
  }

  .category {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 18px;
    flex-shrink: 0;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

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

  .movie-card:hover {
    transform: none;
    box-shadow: none;
  }

  .poster {
    aspect-ratio: 2 / 3;
  }

  .movie-info {
    padding: 8px 8px 10px;
  }

  .movie-title {
    font-size: 13px;
  }

  .movie-meta {
    margin-top: 6px;
    font-size: 10px;
  }

  .badge {
    padding: 1px 4px;
  }

  /* Mobile detail sheet */
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .detail-box {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
    animation: lanaSheetUp .25s ease-out;
  }

  @keyframes lanaSheetUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .detail-content {
    grid-template-columns: 105px 1fr;
    gap: 15px;
    padding: 24px 17px 28px;
  }

  .detail-poster {
    width: 105px;
    border-radius: 7px;
  }

  .detail-title {
    font-size: 21px;
    line-height: 1.15;
    margin-bottom: 9px;
  }

  .detail-description {
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.6;
    margin: 4px 0 15px;
  }

  #detailWatch {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 22px;
  }

  .close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  /* Fullscreen mobile player */
  #playerModal {
    z-index: 20000;
  }

  .player-header {
    height: 54px;
    padding: 0 12px;
    background: linear-gradient(#000, rgba(0,0,0,.15));
  }

  .player-title {
    max-width: calc(100% - 55px);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-close {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  #driveFrame {
    top: 54px;
    height: calc(100% - 54px);
  }

  .player-message {
    inset: 54px 0 0;
    padding: 20px;
  }

  .open-drive {
    border-radius: 22px;
  }

  /* Fixed mobile bottom navigation */
  body::after {
    content: "⌂  HOME      ◉  FILM      ▣  KATEGORI      🔍  CARI";
    position: fixed;
    z-index: 6000;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre;
    background: rgba(12,12,12,.97);
    border-top: 1px solid #252525;
    color: #aaa;
    font-size: 9px;
    letter-spacing: .3px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
  }

  footer {
    padding: 25px 15px;
    font-size: 11px;
  }
}

@media (min-width: 701px) {
  body::after {
    display: none;
  }
}
