@font-face {
  font-family: "Michroma";
  src: url("/assets/Michroma-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --orange: #ffa600;
  --orange-deep: #ff6a00;
  --surface: rgba(22, 23, 26, 0.86);
  --surface-solid: #17181b;
  --line: rgba(255, 166, 0, 0.34);
  --text: #f8f8f8;
  --muted: #a9abb3;
  --green: #36d77b;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07080a;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #07080a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: url("/assets/wallpaper.png");
  background-repeat: no-repeat;
  background-position: 62% center;
  background-size: cover;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0.76) 35%, rgba(5, 6, 8, 0.46) 58%, rgba(5, 6, 8, 0.14) 80%, rgba(5, 6, 8, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.02) 0%, rgba(7, 8, 10, 0.16) 52%, rgba(7, 8, 10, 0.7) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand-wordmark {
  position: relative;
  display: block;
  width: 190px;
  height: 28px;
  overflow: hidden;
}

.brand-wordmark img {
  position: absolute;
  top: -24px;
  left: -14px;
  width: 220px;
  max-width: none;
  height: auto;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d7d9df;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #79808c;
  box-shadow: 0 0 0 5px rgba(121, 128, 140, 0.12);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(54, 215, 123, 0.13), 0 0 20px rgba(54, 215, 123, 0.7);
}

.hero {
  position: relative;
  min-height: 610px;
  padding: 104px clamp(20px, 4vw, 72px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 10, 0.82) 0%, transparent 34%);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.92);
}

.hero-copy > p:last-child {
  max-width: 590px;
  margin: 22px 0 0;
  color: #c9cbd1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.service-grid {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(22, 23, 26, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 166, 0, 0.78);
  background: rgba(30, 31, 35, 0.95);
  outline: none;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #23252a;
}

.plex-icon {
  position: relative;
}

.plex-icon::before {
  content: "";
  width: 30px;
  height: 46px;
  background: #f4aa00;
  clip-path: polygon(0 0, 38% 0, 100% 50%, 38% 100%, 0 100%, 62% 50%);
}

.seerr-icon {
  color: white;
  background: linear-gradient(145deg, #af7ff6, #6259e8);
  font-family: "Michroma", sans-serif;
  font-size: 25px;
}

.status-icon {
  background: rgba(54, 215, 123, 0.13);
}

.status-icon i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(54, 215, 123, 0.12), 0 0 24px rgba(54, 215, 123, 0.4);
}

.telegram-icon {
  color: white;
  background: linear-gradient(145deg, #35aee2, #168ac4);
}

.telegram-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.service-copy {
  min-width: 0;
}

.service-copy strong,
.service-copy small {
  display: block;
}

.service-copy strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.service-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.arrow {
  color: var(--orange);
  font-size: 25px;
}

.content-section {
  max-width: 1540px;
  margin: 0 auto;
  padding: 74px clamp(20px, 4vw, 72px) 24px;
}

.upcoming-section {
  padding-bottom: 86px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.section-heading > a {
  flex-shrink: 0;
  color: #dadce2;
  font-weight: 700;
}

.section-heading > a span {
  color: var(--orange);
  margin-left: 5px;
}

.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 16px;
  padding: 4px 2px 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(255, 166, 0, 0.6) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 166, 0, 0.42), rgba(255, 106, 0, 0.04)),
    #23252a;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.media-card:hover .poster-wrap img {
  transform: scale(1.035);
}

.media-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0a0a0b;
  background: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-info {
  padding: 14px 14px 16px;
}

.media-info strong,
.media-info small,
.media-info time {
  display: block;
}

.media-info strong {
  min-height: 42px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-info small {
  min-height: 36px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-info time {
  margin-top: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.feed-message {
  width: min(520px, 85vw);
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(23, 24, 27, 0.75);
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px 46px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(10px);
}

footer img {
  width: 34px;
  height: 34px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--orange);
}

@media (max-width: 900px) {
  body::before {
    background-position: 70% center;
  }

  body::after {
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.9) 62%, rgba(5, 6, 8, 0.34) 100%),
      linear-gradient(180deg, rgba(7, 8, 10, 0.2) 0%, rgba(7, 8, 10, 0.78) 76%, rgba(7, 8, 10, 0.94) 100%);
  }

  .header-status span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 196px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, #07080a 0%, rgba(5, 6, 8, 0.58) 58%, rgba(5, 6, 8, 0.1) 100%);
  }

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

  .service-card {
    min-height: 96px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
    padding-inline: 16px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    width: 156px;
    height: 24px;
  }

  .brand-wordmark img {
    top: -20px;
    left: -12px;
    width: 184px;
  }

  .hero {
    padding: 150px 16px 34px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 55px);
  }

  .service-card {
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .plex-icon {
    position: relative;
  }

  .plex-icon::before {
    width: 24px;
    height: 38px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .content-section {
    padding: 56px 16px 12px;
  }

  .poster-rail {
    grid-auto-columns: minmax(154px, 44vw);
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
