:root {
  --bg-color: #000000;
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent-gold: #d4af37;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8vh;
  padding: 0 20px;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 300;
  letter-spacing: 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: #fff;
  animation: scrollLine 2s infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* STICKY FILTER BAR */
.filter-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #999;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  user-select: none;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
  transform: translateY(0);
}

.filter-count {
  font-size: 0.72rem;
  opacity: 0.75;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
  font-weight: 700;
}

.filter-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* GALLERY MAIN */
main {
  padding: 50px 5% 100px;
  min-height: 80vh;
}

.works-section {
  margin-bottom: 80px;
  transition: opacity 0.4s ease;
}

.works-section.hidden {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
  border-left: 2px solid #ffffff;
  padding-left: 14px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 3px;
}

.section-title span {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-left: 6px;
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.gallery-landscape,
.gallery-portrait {
  display: grid;
  gap: 8px;
}

.gallery-landscape {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.gallery-portrait {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

/* VIDEO CARD */
.video-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  aspect-ratio: 16/9;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.video-card.portrait {
  aspect-ratio: 9/16;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s;
  filter: brightness(0.8) grayscale(10%);
}

.video-card:hover img {
  transform: scale(1.05);
  filter: brightness(1) grayscale(0%);
}

.video-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 2;
}

/* CARD BADGE */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s;
}

.video-card:hover .card-badge {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-badge.drama { border-left: 2px solid #e5a93c; color: #ffdf9e; }
.card-badge.spokesperson { border-left: 2px solid #4facfe; color: #bfe3ff; }
.card-badge.feed_ads { border-left: 2px solid #00f2fe; color: #c4ffff; }
.card-badge.brand { border-left: 2px solid #ff758c; color: #ffd1da; }

/* PLAY ICON ON HOVER */
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 4;
}

.play-btn-overlay svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 2px;
}

.video-card:hover .play-btn-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* CARD INFO */
.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
}

.video-card:hover .video-info {
  opacity: 1;
  transform: translateY(0);
}

.video-info .title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.video-info .title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.video-info .subtitle {
  font-size: 0.78rem;
  color: #ddd;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.video-info .meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* PLAYER MODAL */
.player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.player.active {
  opacity: 1;
  pointer-events: auto;
}

.player-shell {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

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

.player-nav-prev { left: -60px; }
.player-nav-next { right: -60px; }

#playerClose {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

#playerClose:hover {
  opacity: 1;
  transform: scale(1.1);
}

video#mainVideo {
  width: 100%;
  max-height: 75vh;
  outline: none;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
}

.player-info-bar {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.player-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.player-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* SCROLL REVEAL & FADE */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .player-nav-prev { left: 10px; top: auto; bottom: -55px; transform: none; }
  .player-nav-next { right: 10px; top: auto; bottom: -55px; transform: none; }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
    letter-spacing: 8px;
  }
  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
  }
  .filter-wrapper {
    padding: 12px 4%;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .gallery-landscape {
    grid-template-columns: 1fr;
  }
  .gallery-portrait {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  main {
    padding: 30px 4% 80px;
  }
  .card-badge {
    top: 8px;
    left: 8px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }
}
