/* Base */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Theme */
  --primary: #f30208;
  --primary-strong: #d90207;
  --primary-soft: rgba(108, 221, 215, 0.18);

  /* Surfaces */
  --bg: #070a0b;
  --panel: rgba(20, 24, 26, 0.86);
  --panel-solid: #101416;
  --line: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #e8f0f1;
  --muted: rgba(232, 240, 241, 0.72);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(108, 221, 215, 0.22) 0%, rgba(108, 221, 215, 0) 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(108, 221, 215, 0.14) 0%, rgba(108, 221, 215, 0) 55%),
    linear-gradient(180deg, #050708, var(--bg));
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

::selection {
  background: rgba(108, 221, 215, 0.28);
  color: #fff;
}

/* Header */
header.movy-header,
header.movies123-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  text-align: left;
  text-transform: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.movy-brand,
.movies123-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 0;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.movy-brand:hover,
.movies123-brand:hover,
.brand:hover {
  color: #ffffff;
}

.movy-logo-mark,
.movies123-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #f88000, #ffd166);
  color: #090b10;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(248, 128, 0, 0.35);
  flex-shrink: 0;
}

.movy-logo-text,
.movies123-logo-text {
  line-height: 1;
}

.movy-nav,
.movies123-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.movy-nav .player-link,
.movies123-nav .player-link,
.movy-nav a,
.movies123-nav a {
  color: #b4bdcf;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 8px;
  border-bottom: 0;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.movy-nav .player-link:hover,
.movy-nav .player-link:focus-visible,
.movies123-nav .player-link:hover,
.movies123-nav .player-link:focus-visible,
.movy-nav a:hover,
.movies123-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: #ff9929;
  color: #090b10;
  transform: translateY(-1px);
  border-bottom: 0;
}

.movy-burger,
.movies123-burger {
  display: none;
  background: #141926;
  border: 1px solid #262e42;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Layout */
article {
  max-width: 980px;
  margin: 40px auto;
  padding: 26px 20px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

footer {
  border-top: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--muted);
  padding: 28px 20px;
}

footer p {
  text-align: center;
  font-size: small;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  margin: 24px 0 12px;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
}

h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-top: 32px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  color: #f0f0f0;
}

p, li {
  color: #d8d8d8;
  line-height: 1.75;
}

em, strong {
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

a:hover {
  color: #fff;
  border-bottom-color: var(--primary);
}

.lead {
  text-align: center;
  color: var(--muted);
  margin: 10px auto 0;
  max-width: 70ch;
}

.hero {
  padding-top: 6px;
  text-align: center;
}

.hero h1 {
  font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #ffffff 35%, #ffd166 75%, #f88000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #a9b3c9;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.section-title {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(108, 221, 215, 0.10);
  border: 1px solid rgba(108, 221, 215, 0.22);
  color: #ffffff;
  margin: 24px 0 14px;
}

/* Images */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Button */
.btn-hover.color-9 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 45%, #f30208 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(108, 221, 215, 0.20);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  max-width: 320px;
  width: fit-content;
}

.btn-hover.color-9:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(108, 221, 215, 0.26);
  opacity: 0.98;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.btn-hover.color-9:focus-visible {
  outline: 3px solid rgba(108, 221, 215, 0.40);
  outline-offset: 3px;
}

.btn-hover b,
a b {
  margin-left: 4px;
}

.cta-bottom {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: transparent;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

thead th {
  background: linear-gradient(180deg, #181818, #121212);
  color: #fff;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover {
  background: #171717;
}

/* Blockquotes */
blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  background: #101010;
  color: #eaeaea;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Lists */
ul {
  padding-left: 20px;
}

ul li {
  margin: 6px 0;
}

/* Footer links layout */
.wrap.list-footer {
  max-width: 980px;
  margin: 0 auto;
}

.wrap.list-footer ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.wrap.list-footer li a {
  color: #fff;
  border-bottom-color: var(--primary);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
}

/* Trending Grid */
#grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.card {
  background: var(--panel-solid);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
  border-color: rgba(108, 221, 215, 0.25);
}

.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0a0d12;
  border-radius: 0;
  display: block;
}

.meta {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.title {
  color: #fff;
  font-weight: 700;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.badges {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.overview {
  font-size: 0.9rem;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.err {
  max-width: 780px;
  margin: 16px auto;
  padding: 12px 14px;
  background: #3b1d1d;
  border: 1px solid #7d2f2f;
  border-radius: 10px;
}

span.star {
  color: #eab308;
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 860px) {
  .movy-burger,
  .movies123-burger {
    display: grid;
    place-items: center;
  }

  .movy-nav,
  .movies123-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #0e121b;
    border-bottom: 1px solid #262e42;
    padding: 12px 20px 18px;
  }

  .movy-nav.open,
  .movies123-nav.open {
    display: flex;
  }

  .movy-nav .player-link,
  .movies123-nav .player-link,
  .movy-nav a,
  .movies123-nav a {
    padding: 10px 14px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  article {
    margin: 28px auto;
  }

  th, td {
    padding: 10px 12px;
  }

  .btn-hover.color-9 {
    width: 100%;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-hover.color-9,
  .card {
    transition: none;
  }
}