:root {
  --bg: #000;
  --white: #fff;
  --muted: rgba(255,255,255,0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--white);
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0 32px;
  height: 52px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  font-weight: 700;
  letter-spacing: 5px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.2s forwards;
}

/* ================= HERO ================= */
.hero-section {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: url("assets/cover.png") center/cover no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 56px;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 2px;
  transition: opacity 0.25s ease;
}

.hero-content p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  max-width: 380px;
  margin: 14px auto 0;
  transition: opacity 0.25s ease;
}

.cta-explore {
  margin-top: 28px;
  padding: 13px 32px;
  border-radius: 30px;
  border: 0.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.cta-explore:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ================= HERO ANIMATIONS ================= */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-animate.hero-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate.delay-1 { transition-delay: 0.15s; }
.hero-animate.delay-2 { transition-delay: 0.3s; }

/* ================= TAB BAR ================= */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: #000;
  position: sticky;
  top: 52px;
  z-index: 900;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.tab-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 30px;
  border: 0.5px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.tab-pill:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}

.tab-pill.active {
  color: #000;
  background: #fff;
  border-color: #fff;
}

/* ================= TAB PANELS ================= */
#tab-films,
#tab-gallery {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#tab-films.tab-visible,
#tab-gallery.tab-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= GRID (FILMS) ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 24px 16px 40px;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  border-radius: 12px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

/* ================= TILE REVEAL ANIMATION ================= */
.reveal-tile {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-tile.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================= GRID (GALLERY) ================= */
.img-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 24px 16px 80px;
}

.img-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  border-radius: 12px;
}

.img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.img-tile:hover img {
  transform: scale(1.05);
}

.img-tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  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.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-tile:hover .img-tile-hover {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .img-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content h1 { font-size: 40px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: 0 16px; }
  .hero-content h1 { font-size: 32px; }
}

/* ================= FULLSCREEN PLAYER ================= */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  z-index: 2000;
  overflow: hidden;
}

.snap-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-block {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-block video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ================= CLOSE BUTTON ================= */
.close-viewer {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
  z-index: 3000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-viewer:hover {
  background: rgba(50,50,50,0.9);
}

/* ================= TOP BRAND ================= */
.vui-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 52px 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.vui-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

/* ================= RIGHT CONTROLS ================= */
.vui-right {
  position: absolute;
  right: 20px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  z-index: 20;
}

.vui-icon-btn {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.vui-icon-btn:active {
  transform: scale(0.88);
}

.vui-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: 0.5px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s;
}

.vui-icon-btn:hover .vui-icon {
  background: rgba(255,255,255,0.18);
}

/* ================= BOTTOM — TITLE + PROGRESS ================= */
.vui-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 120px 20px 48px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 55%,
    transparent 100%
  );
  z-index: 20;
  pointer-events: none;
}

.vui-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
  max-width: calc(100% - 80px);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

/* ================= PROGRESS BAR ================= */
.vui-progress-wrap {
  width: 100%;
}

.vui-progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.vui-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: width 0.25s linear;
}

/* ================= 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;
  opacity: 0;
  transform: scale(0.97);
  animation: imgReveal 0.4s ease forwards;
}

@keyframes imgReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.img-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.75);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
  z-index: 3000;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.img-close:hover {
  background: rgba(50,50,50,0.9);
}

/* ================= KEYFRAMES ================= */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= PAGINATION ================= */
.page-btn {
  margin: 0 4px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.page-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.page-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ================= FOOTER ================= */
.site-footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
}


/* ================= INTRO SCREEN ================= */
body.loading {
  overflow: hidden;
}

#introScreen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  animation: introFadeIn 1s ease 0.3s forwards;
}

.intro-line {
  width: 0px;
  height: 0.5px;
  background: rgba(255,255,255,0.4);
  animation: introLine 1s ease 0.6s forwards;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes introLine {
  from { width: 0px; }
  to   { width: 60px; }
}

#introScreen.intro-exit {
  animation: introOut 0.9s ease forwards;
}

@keyframes introOut {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ================= TILE LOCK BADGE ================= */
.tile-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 5;
}

.tile-locked img {
  filter: brightness(0.5);
}

/* ================= PLAYER LOCK SCREEN ================= */
.vui-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.vui-lock-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 32px;
}

.vui-lock-icon {
  font-size: 40px;
  margin-bottom: 4px;
}

.vui-lock-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.vui-lock-sub {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
}