@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --bg: #000;
  --white: #fff;
  --muted: rgba(255,255,255,0.6);
  --gold: #ffd700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 24px;
  height: 56px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
  user-select: none;
}
.brand-logo:hover {
  opacity: 0.85;
}

/* Header Search Box */
.header-search-wrap {
  flex: 1;
  max-width: 440px;
  margin: 0 16px;
}

.header-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 6px 14px;
  transition: all 0.25s ease;
}

.header-search-box:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.search-icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-right: 8px;
}

#searchInput {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.3px;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.search-clear-btn:hover {
  color: #fff;
}

/* Search notice bar */
.search-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 16px auto 0;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}
.search-notice-clear {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Empty Search State */
.empty-search-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.7);
}
.empty-search-state .empty-icon {
  font-size: 44px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty-search-state h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
}
.empty-search-state p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}

/* ================= HERO ================= */
.hero-section {
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 20px;
  background: url("assets/cover.png") center/cover no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 52px;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.15;
}

.hero-content p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  max-width: 420px;
  margin: 14px auto 0;
  line-height: 1.6;
}

.cta-explore {
  margin-top: 24px;
  padding: 12px 30px;
  border-radius: 30px;
  border: 0.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-explore:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ================= TAB BAR ================= */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 12px;
}

.tab-pill {
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  border: 0.5px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
  user-select: none;
}

.tab-pill:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.tab-pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

/* ================= TAB PANELS (VISIBLE IMMEDIATELY) ================= */
#tab-films {
  display: block;
  opacity: 1;
}

#tab-gallery {
  display: none;
  opacity: 1;
}

/* ================= GRID (FILMS) ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 0.5px solid rgba(255,255,255,0.06);
}

.tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0,0,0,0.85);
  border-color: rgba(255,255,255,0.2);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile-play-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 4;
}

.tile:hover .tile-play-indicator {
  opacity: 1;
  transform: scale(1);
}

.tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.35;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  z-index: 3;
}

.tile-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.tile-locked img {
  filter: brightness(0.65);
}

/* ================= GRID (GALLERY) ================= */
.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.img-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  border-radius: 12px;
  border: 0.5px solid rgba(255,255,255,0.06);
}

.img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.img-tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.img-tile:hover .img-tile-hover {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .header-search-wrap { max-width: 220px; margin: 0 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 12px 40px; }
  .img-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 12px 60px; }
  .hero-content h1 { font-size: 36px; }
  .hero-section { height: 44vh; min-height: 320px; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 12px; }
  .brand-logo { font-size: 11px; letter-spacing: 2px; }
  .header-search-wrap { max-width: 160px; margin: 0 6px; }
  .header-search-box { padding: 5px 10px; }
  #searchInput { font-size: 11px; }
  .vip-header-btn { padding: 5px 10px; font-size: 9px; letter-spacing: 1px; }
}

/* ================= MODERN CINEMATIC PLAYER ================= */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  z-index: 2000;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.player-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Floating Navigation Chevrons on Desktop */
.player-nav-arrows {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3100;
}

.player-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.75);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.player-nav-btn svg {
  width: 20px;
  height: 20px;
}

.player-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.player-nav-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .player-nav-arrows {
    display: none; /* Mobile uses natural 1-finger vertical swipe */
  }
}

/* Close Player Button */
.close-viewer {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.25);
  background: rgba(20,20,20,0.75);
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  cursor: pointer;
  z-index: 3200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-viewer:hover {
  background: rgba(60,60,60,0.95);
  transform: scale(1.08);
}

/* Top Branding in Player */
.vui-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.vui-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.vui-counter {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Center Tap Play / Pause */
.vui-center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.vui-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Tap to unmute pill */
.vui-unmute-pill {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.85);
  border: 0.5px solid rgba(255, 215, 0, 0.6);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 35;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulsePill 2s infinite;
}

@keyframes pulsePill {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

/* Side Controls */
.vui-right {
  position: absolute;
  right: 20px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 20;
}

.vui-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.vui-icon-btn:active {
  transform: scale(0.88);
}

.vui-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s;
  color: #fff;
}

.vui-icon-btn:hover .vui-icon {
  background: rgba(255,255,255,0.22);
}

/* Bottom Title & Progress */
.vui-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 100px 20px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

.vui-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
  max-width: calc(100% - 70px);
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}

.vui-progress-wrap {
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
  pointer-events: auto;
}

.vui-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.vui-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.15s linear;
}

/* Locked Card inside Player */
.locked-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vui-lock-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.35);
  transform: scale(1.15);
}

.vui-lock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.vui-lock-content {
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  max-width: 400px;
}

.vui-lock-content .vui-lock-badge {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.15);
  border: 0.5px solid rgba(255, 215, 0, 0.45);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.vui-lock-content .vui-lock-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.vui-lock-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.vui-lock-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
  line-height: 1.6;
}

.vui-unlock-btn {
  padding: 13px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffd700 0%, #ffae00 100%);
  color: #000;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vui-unlock-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(255, 215, 0, 0.5);
}

/* ================= IMAGE VIEWER (VERTICAL) ================= */
.image-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.img-scroll-track {
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}

.img-scroll-track::-webkit-scrollbar {
  display: none;
}

.img-scroll-item {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.img-scroll-item img {
  max-height: 92vh;
  max-width: 92vw;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.img-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.2);
  background: rgba(20,20,20,0.75);
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  cursor: pointer;
  z-index: 3000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.img-close:hover {
  background: rgba(60,60,60,0.95);
  transform: scale(1.08);
}

/* ================= PAGINATION ================= */
.page-btn {
  margin: 0 4px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255, 255, 255, 0.12);
}

.page-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.page-dots {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 4px;
}

/* ================= FOOTER ================= */
.site-footer {
  padding: 40px 20px 80px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

/* ================= AD CONTAINERS (EXOCLICK) ================= */
.ad-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px auto 16px;
  padding: 14px;
  max-width: 960px;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
