:root {
  --bg: #050507;
  --surface: #0c0c10;
  --surface-elevated: #13131a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f4f6;
  --muted: #9898a6;
  --accent: #d9bc82;
  --accent-soft: rgba(217, 188, 130, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, rgba(217, 188, 130, 0.09), transparent 48%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050507;
}
::-webkit-scrollbar-thumb {
  background: #24242d;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a48;
}

/* Anti-copy & anti-drag protection on all media */
.protected-media,
.protected-media img,
.protected-media video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Translucent tiled watermark overlay for video players & photo lightboxes */
.wm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150' viewBox='0 0 260 150'%3E%3Cg transform='rotate(-26 130 75)' fill='rgba(255,255,255,0.22)' font-family='sans-serif' font-size='12' font-weight='600' letter-spacing='2'%3E%3Ctext x='10' y='62'%3EMUSE STUDIO%3C/text%3E%3Ctext x='10' y='82' font-size='9' fill='rgba(255,255,255,0.16)'%3Estudio.usethelever.com · PREVIEW ONLY%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

.wm-corner-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 16;
  pointer-events: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 188, 130, 0.32);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Video showcase grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 340px));
  gap: 22px;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 188, 130, 0.45);
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.85);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: #09090d;
  overflow: hidden;
}

.video-stage.ratio-wide {
  aspect-ratio: 16 / 9;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Filter chips */
.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-chip.active {
  background: #ffffff;
  color: #050507;
  border-color: #ffffff;
  font-weight: 600;
}

/* Photo Masonry */
.photo-masonry {
  column-count: 2;
  column-gap: 14px;
}
@media (min-width: 768px) {
  .photo-masonry {
    column-count: 3;
    column-gap: 16px;
  }
}
@media (min-width: 1200px) {
  .photo-masonry {
    column-count: 4;
    column-gap: 18px;
  }
}
@media (min-width: 1580px) {
  .photo-masonry {
    column-count: 5;
  }
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.92), rgba(5, 5, 7, 0.4) 60%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-card:hover .photo-card-overlay {
  opacity: 1;
}

.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #050507;
}

/* Modal / Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 3, 5, 0.92);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  background: #0c0c10;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .modal-panel {
    grid-template-columns: 1.45fr 0.85fr;
  }
}

.modal-media-stage {
  position: relative;
  background: #040406;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 82vh;
  overflow: hidden;
}

.modal-media-stage img,
.modal-media-stage video {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #08080a;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f6;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Toast */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(217, 188, 130, 0.4);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
