@font-face {
  font-family: "Ploni";
  src: url("../fonts/ploni-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ploni";
  src: url("../fonts/ploni-ultrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #2a4a57;
  --brand-soft: #4c7182;
  --bg: #0b1417;
  --bg-elevated: #17262b;
  --bg-elevated-hover: #1e323a;
  --border: #223840;
  --border-hover: #33505b;
  --text: #d1d1d1;
  --text-muted: #92a1a6;
  --text-faint: #65767b;
  --accent: #d1d1d1;
  --accent-dim: #b3b3b3;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 24px -12px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 36px -14px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(900px 560px at 50% -10%, var(--brand) 0%, transparent 62%),
    radial-gradient(1000px 700px at 50% 0%, #102229 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Ploni", "Rubik", "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch' result='t'/><feColorMatrix in='t' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(209, 209, 209, 0.24) 0%,
    rgba(120, 165, 180, 0.16) 35%,
    rgba(76, 113, 130, 0.08) 60%,
    transparent 78%
  );
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: -1;
}

.site-header {
  padding: 72px 0 36px;
  text-align: center;
}

.logo {
  font-family: "Ploni", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 7.28rem;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-shadow: 0 0 44px rgba(76, 113, 130, 0.55);
}

.tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 2.66rem;
  font-weight: 400;
  letter-spacing: -0.028em;
}

.tagline strong {
  font-weight: 800;
  color: var(--text);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 32px;
}

.filter-btn {
  position: relative;
  overflow: hidden;
  background: rgba(209, 209, 209, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(209, 209, 209, 0.08);
}

.filter-btn:active {
  transform: scale(0.94);
}

.filter-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(209, 209, 209, 0.45);
  transform: scale(0);
  animation: ripple-out 0.5s ease-out;
  pointer-events: none;
}

.filter-btn.active .ripple {
  background: rgba(11, 20, 23, 0.35);
}

@keyframes ripple-out {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.filter-btn.active:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  align-items: start;
  gap: 28px;
  padding-bottom: 96px;
}

.grid.featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.featured .card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.grid.featured .card:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.grid.featured .card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.grid.featured .card:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.grid.featured .card:nth-child(3) .card-thumb,
.grid.featured .card:nth-child(4) .card-thumb {
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .grid.featured {
    grid-template-columns: 1fr 1fr;
  }
  .grid.featured .card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .grid.featured .card:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .grid.featured .card:nth-child(3) { grid-column: 1; grid-row: 3; }
  .grid.featured .card:nth-child(4) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 640px) {
  .grid.featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .grid.featured .card:nth-child(1),
  .grid.featured .card:nth-child(2),
  .grid.featured .card:nth-child(3),
  .grid.featured .card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@keyframes card-in {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(10px);
  }
  60% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-elevated-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1c1c1f;
  overflow: hidden;
}

.card-thumb.vertical {
  aspect-ratio: 9 / 16;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 23, 0.22);
  transition: background 0.22s ease;
}

.card:hover .play-badge {
  background: rgba(11, 20, 23, 0.45);
}

.play-badge svg {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .play-badge svg {
  transform: scale(1.08);
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(11, 20, 23, 0.8);
  backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.card-body {
  padding: 16px 18px 18px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-faint);
  margin: 0;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 72px 0;
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 13, 0.88);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 980px;
  animation: modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.vertical {
  max-width: 420px;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.modal-player.vertical {
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -46px;
  left: 0;
  background: rgba(209, 209, 209, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.modal-close:hover {
  background: rgba(209, 209, 209, 0.14);
  border-color: var(--border-hover);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-faint);
  font-size: 0.83rem;
}

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #1f2c30;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 18px 4px 4px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.whatsapp-icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon svg {
  width: 32px;
  height: 32px;
}

.whatsapp-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.7);
}

.whatsapp-fab:active {
  transform: scale(0.97);
}

.whatsapp-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .whatsapp-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header { padding: 48px 0 28px; }
  .logo { font-size: 4.8rem; }
  .tagline { font-size: 1.3rem; }
  .grid { grid-template-columns: 1fr; gap: 20px; }

  .grid:not(.featured):has(.card-thumb.vertical) {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
