/* assets/style.css — MoviesWEST Cinematic Dark */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  background: #06080f;
  color: #dde6f5;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1a2538;
}
.navbar .logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #00d4ff;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar .logo span {
  color: #ff3a5c;
}
.navbar .nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.navbar .nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  color: #6b80a0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #dde6f5;
  background: #0f1522;
}
.btn-tambah {
  padding: 8px 18px;
  border-radius: 6px;
  background: #ff3a5c;
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-tambah:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 60px 32px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #0b0f1c;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.25;
  filter: blur(3px);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      #06080f 0%,
      rgba(6, 8, 15, 0.65) 50%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      #06080f 0%,
      rgba(6, 8, 15, 0.4) 50%,
      transparent 75%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 58, 92, 0.12);
  border: 1px solid rgba(255, 58, 92, 0.25);
  color: #ff3a5c;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #dde6f5;
  margin-bottom: 14px;
}
.hero-title span {
  color: #00d4ff;
}
.hero-desc {
  font-size: 0.92rem;
  color: #6b80a0;
  margin-bottom: 28px;
  line-height: 1.75;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.btn-primary {
  padding: 11px 24px;
  border-radius: 7px;
  background: #00d4ff;
  color: #020509;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}
.btn-ghost {
  padding: 11px 22px;
  border-radius: 7px;
  border: 1px solid #233048;
  color: #dde6f5;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
  background: transparent;
}
.btn-ghost:hover {
  background: #0f1522;
}

/* STATS BAR */
.stats-bar {
  display: flex;
  border-top: 1px solid #1a2538;
  border-bottom: 1px solid #1a2538;
  background: #0b0f1c;
}
.stat-item {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid #1a2538;
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  color: #00d4ff;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: #6b80a0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* SECTION */
.section {
  padding: 36px 32px;
}
.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.07em;
  color: #dde6f5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: #00d4ff;
  border-radius: 2px;
  display: block;
}

/* FILM GRID */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
}

/* FILM CARD */
.film-card {
  background: #0f1522;
  border: 1px solid #1a2538;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
}
.film-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.film-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0b0f1c;
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.film-card:hover .film-poster img {
  transform: scale(1.06);
}
.film-poster .no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
}
.film-card:hover .overlay {
  opacity: 1;
}
.overlay-btns {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s;
}
.film-card:hover .overlay-btns {
  opacity: 1;
  transform: translateY(0);
}
.ov-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
}
.ov-detail {
  background: #00d4ff;
  color: #020509;
}
.ov-edit {
  background: rgba(255, 208, 96, 0.2);
  color: #ffd060;
  border: 1px solid rgba(255, 208, 96, 0.3);
}
.ov-hapus {
  background: rgba(255, 58, 92, 0.18);
  color: #ff3a5c;
  border: 1px solid rgba(255, 58, 92, 0.3);
}
.ov-hapus:hover {
  background: #ff3a5c;
  color: white;
}

.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}
.badge-movie {
  background: rgba(0, 212, 255, 0.18);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.badge-series {
  background: rgba(255, 208, 96, 0.15);
  color: #ffd060;
  border: 1px solid rgba(255, 208, 96, 0.25);
}

.film-info {
  padding: 12px;
}
.film-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.film-info .genre {
  font-size: 0.72rem;
  color: #6b80a0;
  margin-bottom: 7px;
}
.film-info .status {
  font-size: 0.72rem;
}
.status-now {
  color: #00e5a0;
}
.status-popular {
  color: #ffd060;
}
.status-upcoming {
  color: #00d4ff;
}

/* DETAIL */
.detail-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 44px 32px;
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
}
.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #06080f 25%, transparent 100%),
    linear-gradient(
      to right,
      #06080f 0%,
      rgba(6, 8, 15, 0.4) 50%,
      transparent 70%
    );
}
.detail-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  align-items: flex-end;
}
.detail-poster img {
  width: 180px;
  border-radius: 10px;
  border: 2px solid #1a2538;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.detail-poster .no-poster {
  width: 180px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #0f1522;
  border-radius: 10px;
  border: 2px solid #1a2538;
}
.detail-info .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #6b80a0;
  margin-bottom: 10px;
  align-items: center;
}
.detail-info h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: #dde6f5;
  margin-bottom: 8px;
}
.detail-info .getinfo {
  font-size: 0.85rem;
  color: #6b80a0;
}

.detail-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.section-sub {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #dde6f5;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a2538;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-sub::before {
  content: "";
  width: 3px;
  height: 16px;
  background: #00d4ff;
  border-radius: 2px;
  display: block;
}
.synopsis-text {
  font-size: 0.9rem;
  color: #6b80a0;
  line-height: 1.8;
  margin-bottom: 22px;
}
.info-card {
  background: #0f1522;
  border: 1px solid #1a2538;
  border-radius: 10px;
  padding: 16px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1a2538;
  font-size: 0.83rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-key {
  color: #6b80a0;
}
.info-val {
  color: #dde6f5;
  font-weight: 500;
}

.btn-group-detail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn-group-detail a {
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-edit-d {
  background: rgba(255, 208, 96, 0.15);
  color: #ffd060;
  border: 1px solid rgba(255, 208, 96, 0.3);
}
.btn-hapus-d {
  background: rgba(255, 58, 92, 0.12);
  color: #ff3a5c;
  border: 1px solid rgba(255, 58, 92, 0.25);
}
.btn-hapus-d:hover {
  background: #ff3a5c;
  color: white;
}
.btn-back-d {
  background: #0f1522;
  color: #6b80a0;
  border: 1px solid #1a2538;
}
.btn-back-d:hover {
  color: #dde6f5;
}

/* FORM */
.form-wrap {
  max-width: 560px;
  margin: 36px auto;
  padding: 0 20px;
}
.form-card {
  background: #0f1522;
  border: 1px solid #1a2538;
  border-radius: 12px;
  padding: 28px;
}
.form-card h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.07em;
  color: #00d4ff;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a2538;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b80a0;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: #06080f;
  border: 1px solid #1a2538;
  border-radius: 6px;
  color: #dde6f5;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00d4ff;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a2538;
}
.btn-simpan {
  padding: 10px 24px;
  background: #00d4ff;
  color: #020509;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
}
.btn-simpan:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-batal {
  padding: 10px 18px;
  background: #0f1522;
  color: #6b80a0;
  border: 1px solid #1a2538;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-batal:hover {
  color: #dde6f5;
}

/* FOOTER */
footer {
  border-top: 1px solid #1a2538;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #1f2d42;
}
footer .f-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #00d4ff;
}
footer .f-logo span {
  color: #ff3a5c;
}
