/* Professional polish layer for Anibeseret */
:root {
  --blue: #2f80ed;
  --blue-bright: #6bb6ff;
  --blue-glow: rgba(47, 128, 237, 0.28);
  --blue-dark: #123f73;
  --flame: #6bb6ff;
  --bg: #07101d;
  --bg2: #0b1422;
  --bg3: #101b2b;
  --card: rgba(255, 255, 255, 0.055);
  --card2: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-dim: #9aaec5;
  --gold: #e6b450;
  --red: #ef5350;
  --border: rgba(255, 255, 255, 0.11);
  --soft-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-md: 14px;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 82% 10%, rgba(47, 128, 237, 0.16), transparent 34rem),
    radial-gradient(circle at 15% 6%, rgba(107, 182, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #07101d 0%, #09111d 48%, #070b13 100%);
}

body::before {
  opacity: 0.16;
}

nav {
  height: 78px;
  padding-inline: clamp(1rem, 4vw, 4.5rem);
  background: rgba(7, 16, 29, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 35px rgba(0,0,0,0.22);
}

.nav-logo img {
  width: 46px;
  height: 46px;
  filter: none;
}

.nav-logo:hover img {
  filter: none;
}

.logo-text {
  color: #f7fbff;
  text-shadow: none;
  letter-spacing: 0;
}

.logo-sub {
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.nav-links {
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.nav-links a {
  color: #b8c7d8;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links a::after {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6bb6ff, #2f80ed);
}

.nav-search {
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-search input {
  color: #f8fbff;
}

.nav-auth-btn,
.btn-primary,
.hero-cta,
button[onclick*="submit"],
button[onclick*="add"] {
  border-radius: 14px;
  background: linear-gradient(135deg, #2f80ed, #57a8ff);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.28);
}

.nav-auth-btn:hover,
.btn-primary:hover,
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(47, 128, 237, 0.36);
}

.hero {
  min-height: 680px;
  padding-top: 120px;
  background:
    linear-gradient(90deg, rgba(7,16,29,0.96) 0%, rgba(7,16,29,0.78) 48%, rgba(7,16,29,0.38) 100%),
    radial-gradient(circle at 26% 46%, rgba(47,128,237,0.13), transparent 28rem);
}

.hero::before,
.hero::after {
  opacity: 0.16 !important;
}

.hero-badge,
.section-badge,
.tag,
.genre-tag {
  border-radius: 999px !important;
  background: rgba(255,255,255,0.075) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #c9d7e8 !important;
  box-shadow: none !important;
}

.hero h1,
.hero-title {
  max-width: 780px;
  color: #f8fbff;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: none;
}

.hero h1 span,
.hero-title span,
.outline-text {
  color: #cfe7ff !important;
  -webkit-text-stroke: 1px rgba(107,182,255,0.72) !important;
  text-shadow: none !important;
}

.hero p,
.hero-subtitle {
  max-width: 680px;
  color: #b9c8d8;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}

.section,
section:not(.page-section) {
  padding-inline: clamp(1rem, 4vw, 4.5rem);
}

.section-title,
.page-title,
h2 {
  letter-spacing: -0.035em;
}

.movies-grid,
.blog-grid,
.reviews-grid,
.community-grid {
  gap: 1.35rem !important;
}

.movie-card,
.blog-card,
.review-card,
.community-card,
.admin-card,
.card,
.panel,
.login-box,
.user-panel {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--soft-shadow) !important;
  backdrop-filter: blur(18px);
}

.movie-card:hover,
.blog-card:hover,
.review-card:hover,
.community-card:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(107,182,255,0.34) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.34) !important;
}

.movie-poster,
.blog-card-img,
.review-poster,
.card img {
  border-radius: 18px;
}

.score,
.rating,
.movie-score,
.score-badge {
  background: rgba(230,180,80,0.12) !important;
  color: #ffd27a !important;
  border: 1px solid rgba(230,180,80,0.28) !important;
  box-shadow: none !important;
}

#featured-review-wrap {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 4vw, 4.5rem) !important;
}

.featured-review-section {
  min-height: auto !important;
  padding: 0 !important;
}

.featured-review {
  width: min(1120px, 100%) !important;
  margin-inline: auto !important;
  display: block !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
    radial-gradient(circle at 15% 15%, rgba(47,128,237,0.17), transparent 30rem) !important;
}

.featured-review-inner {
  display: grid !important;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: center !important;
  padding: clamp(1.4rem, 3vw, 2.4rem) !important;
}

.featured-movie-card {
  width: min(340px, 100%) !important;
  justify-self: center !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.36) !important;
}

.featured-review-title {
  width: auto !important;
  max-width: 620px !important;
  font-size: clamp(2.5rem, 5vw, 5rem) !important;
  line-height: 0.95 !important;
  margin-bottom: 1rem !important;
  color: #f8fbff !important;
}

.featured-review-excerpt {
  width: auto !important;
  max-width: 620px !important;
  font-size: 1.05rem !important;
  line-height: 1.95 !important;
  color: #b9c8d8 !important;
}

.featured-review-label {
  margin-bottom: 0.65rem !important;
  color: #6bb6ff !important;
}

input,
select,
textarea {
  border-radius: 14px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #f7fbff !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(107,182,255,0.68) !important;
  box-shadow: 0 0 0 4px rgba(47,128,237,0.16) !important;
  outline: none !important;
}

.btn,
button,
a {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-secondary,
.hero-btn-secondary {
  border-radius: 14px !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #d9e6f5 !important;
}

.mobile-menu {
  background: rgba(7,16,29,0.96) !important;
  backdrop-filter: blur(22px);
}

@media (max-width: 900px) {
  nav {
    height: 70px;
    padding-inline: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 110px 1.25rem 70px;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(3.2rem, 18vw, 5.4rem) !important;
  }

  .nav-search {
    display: none !important;
  }

  .featured-review-inner {
    grid-template-columns: 1fr !important;
  }

  .featured-movie-card {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== HARD NAV RESET + FLOATING EVENT CTA ===== */
body nav {
  justify-content: flex-start !important;
  gap: 1.35rem !important;
  padding-inline: clamp(1rem, 2.2vw, 2.5rem) !important;
}

body nav .nav-links {
  width: auto !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 1.15rem !important;
  margin: 0 1.25rem 0 0 !important;
  padding: 0 !important;
}

body nav .nav-links li {
  flex: 0 0 auto !important;
}

body nav .nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body nav .nav-search {
  margin-inline-start: auto !important;
}

.floating-event-button {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 260;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #1a8fff, #0062c8);
  box-shadow: 0 16px 40px rgba(26, 143, 255, 0.35);
  border: 1px solid rgba(255,255,255,0.2);
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-event-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(26, 143, 255, 0.46);
}

.floating-event-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.floating-event-text {
  display: grid;
  line-height: 1.1;
  text-align: right;
}

.floating-event-text strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.floating-event-text small {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 900px) {
  .floating-event-button {
    left: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0.6rem 0.8rem;
  }
  .floating-event-text small { display: none; }
}

/* === Reviews page polish: cleaner cards, no score spoilers on posters === */
.movie-score,
.featured-badge-card {
  display: none !important;
}

#page-home .section-header {
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

#page-home .section-title {
  letter-spacing: -0.03em;
}

#page-home .view-all {
  color: #8fc9ff;
  text-decoration: none;
  font-weight: 800;
  padding: .45rem .75rem;
  border: 1px solid rgba(143,201,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

#page-home .view-all:hover {
  color: #fff;
  border-color: rgba(143,201,255,.35);
  background: rgba(47,128,237,.14);
}

.genre-filter {
  justify-content: flex-end;
  gap: .55rem !important;
  margin-bottom: 1.4rem !important;
  padding: .55rem;
  border: 1px solid rgba(130,180,220,.11);
  border-radius: 22px;
  background: rgba(255,255,255,.026);
}

.genre-pill {
  font-weight: 800 !important;
  padding: .5rem .9rem !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.055) !important;
}

.genre-pill.active {
  background: linear-gradient(135deg,#1a8fff,#2cc7f0) !important;
  box-shadow: 0 10px 24px rgba(26,143,255,.24) !important;
}

.movies-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: clamp(1rem, 1.5vw, 1.35rem) !important;
  align-items: stretch;
}

.movie-card {
  display: flex !important;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg,rgba(15,31,49,.94),rgba(8,19,33,.96)) !important;
  border-color: rgba(127,180,220,.16) !important;
}

.movie-card:hover {
  transform: translateY(-5px) !important;
}

.poster-placeholder {
  border-radius: 18px !important;
  margin: .7rem .7rem 0;
  width: auto !important;
  aspect-ratio: 2 / 3 !important;
  background: linear-gradient(145deg,#071522,#102d4a) !important;
}

.poster-placeholder img {
  border-radius: 18px !important;
}

.movie-card-overlay {
  inset: .7rem .7rem auto .7rem !important;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(to top, rgba(5,13,24,.88), rgba(5,13,24,.18), transparent) !important;
}

.overlay-read {
  border-radius: 999px !important;
  background: linear-gradient(135deg,#1a8fff,#22c7e8) !important;
  box-shadow: 0 14px 28px rgba(0,125,255,.24);
}

.movie-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .95rem 1rem 1rem !important;
}

.movie-title {
  font-family: 'Heebo', sans-serif !important;
  font-size: 1.02rem !important;
  line-height: 1.35;
  letter-spacing: 0 !important;
}

.movie-meta {
  line-height: 1.55;
}

.movie-genre-tag {
  align-self: flex-start;
  margin-top: auto !important;
  border-radius: 999px !important;
  padding: .25rem .65rem !important;
}

@media (min-width: 1500px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .genre-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap !important;
  }
  .genre-pill {
    white-space: nowrap;
  }
  .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .85rem !important;
  }
  .poster-placeholder {
    margin: .5rem .5rem 0;
  }
  .movie-info {
    padding: .75rem !important;
  }
}

/* === Home as a clean gateway: latest four reviews only === */
#page-home #reviews {
  position: relative;
  overflow: hidden;
}

#page-home #reviews::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle at 70% 0%, rgba(26,143,255,.13), transparent 34rem);
}

#page-home #reviews .section-header,
#page-home #reviews .movies-grid {
  position: relative;
  z-index: 1;
}

#page-home #reviews .movies-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 240px)) !important;
  justify-content: end !important;
  align-items: stretch !important;
  gap: 1.1rem !important;
}

#page-home #reviews .movie-card {
  max-width: 240px !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  #page-home #reviews .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  #page-home #reviews .movie-card {
    max-width: none !important;
  }
}

/* === Homepage editorial blocks === */
.home-editorial {
  background:
    radial-gradient(circle at 15% 0%, rgba(26,143,255,.13), transparent 28rem),
    linear-gradient(180deg, rgba(9,20,35,.96), rgba(5,13,24,.98));
  padding-top: 3.5rem !important;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.2rem;
  align-items: stretch;
}

.home-panel {
  border: 1px solid rgba(77,184,255,.16);
  background: linear-gradient(145deg, rgba(18,35,53,.82), rgba(9,20,35,.88));
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.home-panel h3 {
  margin: 0 0 .75rem;
  color: #f4f8ff;
  font-size: 1.35rem;
}

.home-panel p {
  color: #abc2d3;
  line-height: 1.85;
  margin: 0;
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}

.home-feature {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 1rem;
}

.home-feature strong {
  display: block;
  color: #fff;
  margin-bottom: .35rem;
}

.home-feature span {
  color: #8fb0c8;
  font-size: .88rem;
  line-height: 1.55;
}

.home-side-actions {
  display: grid;
  gap: .8rem;
}

.home-side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(77,184,255,.18);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  transition: .2s ease;
}

.home-side-link:hover {
  transform: translateY(-2px);
  border-color: rgba(77,184,255,.4);
  background: rgba(26,143,255,.12);
}

.home-side-link small {
  display: block;
  color: #8fb0c8;
  margin-top: .15rem;
}

@media (max-width: 900px) {
  .home-editorial-grid,
  .home-feature-list {
    grid-template-columns: 1fr;
  }
}
