:root {
  color-scheme: dark;
  --bg: #0f0f10;
  --panel: #1a1a1d;
  --panel-2: #202024;
  --text: #ffffff;
  --muted: #b8b8c0;
  --green: #28a745;
  --green-hover: #32bd55;
  --orange: #ff9800;
  --orange-hover: #ffad2b;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(122, 60, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 85% 15%, rgba(40, 167, 69, 0.1), transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(15, 15, 16, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.telegram-link,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.65rem 1rem;
  border-radius: 0.55rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-button {
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.telegram-contact:hover {
  background: #279fdb;
}

.whatsapp-contact:hover {
  background: #1f9d55;
}

.contact-icon {
  line-height: 1;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 3vw, 2rem) 4rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

input,
select {
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel-2);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

input {
  width: min(22rem, 58vw);
  padding: 0 0.85rem;
}

select {
  padding: 0 0.8rem;
}

.count {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  color: var(--muted);
  text-align: center;
}

.request-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(850px, 100%);
  margin: 0 auto 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(32, 32, 36, 0.72);
  box-shadow: 0 14px 30px var(--shadow);
}

.request-box h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.request-box p {
  margin: 0;
  color: var(--muted);
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.featured-section {
  margin: 0.85rem 0 1.4rem;
}

.section-heading {
  margin-bottom: 0.7rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.featured-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 230px);
  grid-template-columns: none;
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.45rem;
  scroll-snap-type: inline proximity;
}

.featured-grid .card {
  min-height: 28rem;
  border-color: rgba(255, 152, 0, 0.38);
  box-shadow: 0 18px 36px rgba(255, 152, 0, 0.08), 0 14px 30px var(--shadow);
  scroll-snap-align: start;
}

.featured-grid .poster-wrap {
  height: 17.5rem;
}

.featured-grid .content {
  gap: 0.5rem;
  padding: 0.75rem;
}

.featured-grid .title {
  min-height: 2.8rem;
  font-size: 0.9rem;
}

.featured-grid .meta {
  font-size: 0.82rem;
}

.featured-grid .button {
  padding: 0.5rem 0.55rem;
  font-size: 0.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.55rem;
}

.card {
  overflow: hidden;
  display: flex;
  min-height: 32rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
  box-shadow: 0 14px 30px var(--shadow);
}

.poster-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21rem;
  background: #151518;
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster.placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(124, 75, 255, 0.45), rgba(20, 20, 22, 0.92)),
    #202024;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.title {
  min-height: 3.6rem;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.button {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.buy {
  background: var(--green);
}

.buy:hover {
  background: var(--green-hover);
}

.vip {
  background: var(--orange);
}

.vip:hover {
  background: var(--orange-hover);
}

.empty {
  margin: 3rem auto;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 620px) {
  .topbar,
  .controls,
  .request-box {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-links,
  .request-actions {
    justify-content: stretch;
  }

  input,
  select,
  .telegram-link,
  .contact-button {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .card {
    min-height: 28rem;
  }

  .poster-wrap {
    height: 17rem;
  }

  .featured-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .featured-grid .card {
    min-height: 0;
    border-radius: 0.5rem;
  }

  .featured-grid .poster-wrap {
    height: 9rem;
  }

  .featured-grid .content {
    flex: 0;
    gap: 0.35rem;
    padding: 0.45rem;
  }

  .featured-grid .title {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .featured-grid .meta {
    display: none;
  }

  .featured-grid .actions {
    gap: 0;
  }

  .featured-grid .button {
    padding: 0.36rem 0.25rem;
    font-size: 0.58rem;
  }

  .featured-grid .vip {
    display: none;
  }
}

@media (max-width: 430px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    min-height: 25rem;
  }

  .poster-wrap {
    height: 13.5rem;
  }

  .featured-grid .card {
    min-height: 0;
  }

  .featured-grid .poster-wrap {
    height: 7.5rem;
  }

  .featured-grid .content {
    flex: 0;
  }

  .featured-grid .title {
    font-size: 0.6rem;
  }

  .featured-grid .button {
    font-size: 0.54rem;
  }

  .content {
    padding: 0.75rem;
  }

  .title {
    font-size: 0.9rem;
  }
}
