/* ==========================================================================
   КИНОМОНСТР — CINEMATIC DARK UI (Netflix / Apple TV+ / Letterboxd Edition)
   Ultra-modern Glassmorphism, Deep Cinema Dark, Micro-interactions & Responsive Grid
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg-base: #07080b;
  --bg-surface: #0e1017;
  --bg-surface-elevated: #161924;
  --bg-glass: rgba(18, 21, 31, 0.72);
  --bg-glass-hover: rgba(28, 33, 49, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);
  
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-fire: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  
  --color-imdb: #f5c518;
  --color-kp: #ff6600;
  --color-star: #fbbf24;
  --color-success: #10b981;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-width: 1240px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

/* 1. Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 2. Typography */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Header & Sticky Glass Navbar (Apple TV+ / Netflix style) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header_container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo_icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo_title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo_badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.menubar {
  display: flex;
  align-items: center;
}

ul.menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

ul.menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

ul.menu li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

ul.menu li.selected a {
  color: #ffffff;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
}

.watchlist-badge {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: middle;
}

/* 4. Hero Billboard Banner (Netflix / Apple TV+ Cinematic Showcase) */
.hero_billboard {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero_overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(7, 8, 11, 0.96) 20%, rgba(7, 8, 11, 0.75) 50%, rgba(7, 8, 11, 0.25) 100%),
    linear-gradient(to top, rgba(7, 8, 11, 1) 5%, transparent 60%);
  pointer-events: none;
}

.hero_content {
  position: relative;
  z-index: 10;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 60px 20px 50px 20px;
  width: 100%;
}

.hero_tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero_title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 750px;
}

.hero_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.badge_rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.badge_imdb {
  background: var(--color-imdb);
  color: #000000;
}

.badge_kp {
  background: var(--color-kp);
  color: #ffffff;
}

.badge_quality {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero_desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* 5. Modern Buttons */
.btn_play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn_play:hover {
  background: #f1f5f9;
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.btn_secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn_secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 6. Surprise Me (Кинорулетка) Section */
.surprise_bar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  backdrop-filter: blur(16px);
}

.surprise_text h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.surprise_text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.btn_roulette {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
}

.btn_roulette:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.5);
}

/* 7. Grid & Content Layout */
.site_content {
  max-width: var(--container-width);
  width: 100%;
  margin: 36px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  flex: 1;
}

.content {
  min-width: 0;
}

.section_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section_title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
}

.section_title_indicator {
  width: 4px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
}

.section_link {
  font-size: 0.88rem;
  color: #818cf8;
  font-weight: 600;
}

.section_link:hover {
  color: #c7d2fe;
}

/* 8. Movie Card Grid (Netflix Hover Effects) */
.films_block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.film_card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.film_card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glass);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
  z-index: 5;
}

.film_card_poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.film_card_poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.film_card:hover .film_card_poster img {
  transform: scale(1.06);
}

.card_overlay_play {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card_play_icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.film_card:hover .card_overlay_play {
  opacity: 1;
}

.film_card:hover .card_play_icon {
  transform: scale(1);
}

.card_badge_top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 8, 11, 0.75);
  backdrop-filter: blur(8px);
  color: var(--color-star);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.film_card_details {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card_title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card_title:hover {
  color: #818cf8;
}

.card_meta_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.btn_watchlist {
  margin-top: auto;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn_watchlist:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.btn_watchlist.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn_watchlist_large {
  padding: 12px 24px;
  font-size: 0.95rem;
  width: auto;
}

/* 9. Top-10 Numbered Cards (Netflix-style) */
.top10_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.top10_card {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  gap: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.top10_card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.top10_rank {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  min-width: 44px;
  text-align: center;
}

.top10_poster {
  width: 70px;
  min-width: 70px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.top10_info {
  flex: 1;
  min-width: 0;
}

.top10_title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top10_meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* 10. Letterboxd-Style Community Review Cards */
.reviews_showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.review_card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.review_card:hover {
  border-color: var(--border-glass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.review_card_header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review_avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

.review_user_info {
  flex: 1;
}

.review_user_name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.review_movie_ref {
  font-size: 0.78rem;
  color: #818cf8;
}

.review_stars {
  color: var(--color-star);
  font-size: 0.85rem;
}

.review_quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* 11. Sidebar (Dark Glassmorphism) */
.sidebar_container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.sidebar h2 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search input */
input[type="search"],
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.btn, input[type="submit"], button.btn_primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Sidebar Top List */
.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.sidebar ul li a {
  color: #cbd5e1;
}

.sidebar ul li a:hover {
  color: #ffffff;
}

.rating_sidebar {
  font-weight: 700;
  color: var(--color-kp);
  background: rgba(255, 102, 0, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Live Search Dropdown */
.search_results_dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  margin-top: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.search_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.search_item:hover {
  background-color: rgba(99, 102, 241, 0.15);
}

.search_item img {
  width: 38px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.search_info {
  flex: 1;
  min-width: 0;
}

.search_title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.search_meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search_rating {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-star);
}

/* 12. Catalog Controls & Chips */
.catalog_controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.catalog_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter_chip {
  padding: 7px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter_chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter_chip.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.genre_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre_tag {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* 13. Films List Page (`films.html`) */
.info_film {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.info_film:hover {
  border-color: var(--border-glass);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.info_film_poster_box {
  position: relative;
  width: 140px;
  min-width: 140px;
  flex-shrink: 0;
  display: inline-block;
}

.info_film img {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.info_film_desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.info_film_desc h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.button a {
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s ease;
}

.button a:hover {
  transform: translateY(-2px);
}

/* 14. Movie Detail Page (`show.html`) */
.player_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.player_tab {
  padding: 8px 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player_tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.player_tab.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.video_wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
}

.video_wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info_film_page {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.info_film_page .label {
  color: var(--text-muted);
}

.info_film_page .value {
  color: #ffffff;
  font-weight: 600;
}

.descriptions_film {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.descriptions_film img {
  width: 160px;
  min-width: 160px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Star Rating (Letterboxd 1-10) */
.user_rating_box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.user_rating_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.star_score_display {
  color: var(--color-star);
  font-weight: 600;
}

.stars_row {
  display: flex;
  gap: 6px;
}

.star_btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #334155;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.star_btn:hover {
  transform: scale(1.25);
  color: #fde047;
}

.star_btn.filled {
  color: var(--color-star);
}

/* Reviews List */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.review_item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.review_name {
  background: var(--bg-surface-elevated);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.review_text {
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.send {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.send form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send textarea {
  min-height: 120px;
  resize: vertical;
}

/* 15. Rating Table (`rating.html`) */
.table_wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

td img {
  width: 48px;
  border-radius: 4px;
}

.rating {
  font-weight: 700;
  color: var(--color-star);
}

.center { text-align: center; }

/* 16. Modal Trailer Player */
.trailer_modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trailer_modal.active {
  display: flex;
}

.trailer_modal_content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-glass);
}

.trailer_modal_content iframe,
#modal-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}

.trailer_modal_close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* 17. Footer */
.footer {
  margin-top: auto;
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer_container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer_links a {
  color: var(--text-secondary);
}

.footer_links a:hover {
  color: #ffffff;
}

/* 18. Responsive Breakpoints */
@media (max-width: 992px) {
  .site_content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero_title {
    font-size: 2.6rem;
  }
  
  .films_block {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .top10_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero_title {
    font-size: 2.1rem;
  }
  
  .films_block {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .top10_grid {
    grid-template-columns: 1fr;
  }
  
  .reviews_showcase {
    grid-template-columns: 1fr;
  }
  
  .header_container {
    flex-direction: column;
    gap: 14px;
  }
  
  .menubar ul.menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .descriptions_film {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .info_film {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  
  .info_film img {
    width: 160px;
    margin-bottom: 10px;
  }
  
  .info_film_desc {
    min-height: auto;
    width: 100%;
  }
  
  .genre_tags {
    justify-content: center;
  }
  
  .player_tabs {
    flex-direction: column;
  }
  
  .player_tab {
    width: 100%;
    justify-content: center;
  }
  
  .site_content {
    padding: 0 12px;
  }
  
  .stars_row {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .films_block {
    grid-template-columns: 1fr;
  }
  
  .hero_title {
    font-size: 1.8rem;
  }
  
  .hero_actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn_play, .btn_secondary {
    justify-content: center;
  }
  
  .menubar ul.menu li a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* 19. Kinogo Features & Extended Components */
.genre_ribbon_container {
  max-width: var(--container-width);
  margin: 18px auto 0 auto;
  padding: 0 20px;
  width: 100%;
}

.genre_ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px;
  scrollbar-width: thin;
}

.genre_ribbon::-webkit-scrollbar {
  height: 4px;
}

.genre_ribbon::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

.ribbon_pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ribbon_pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.ribbon_pill.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.ribbon_pill_gold {
  border-color: rgba(245, 197, 24, 0.4);
  color: #f5c518;
}

.ribbon_pill_gold:hover {
  border-color: #f5c518;
  background: rgba(245, 197, 24, 0.15);
  color: #fbbf24;
}

.genre_chip {
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.genre_chip:hover, .genre_chip.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.card_badge_quality {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.btn_card_watch {
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s ease;
}

.btn_card_watch:hover {
  opacity: 0.9;
  color: #ffffff;
}

.kinogo_meta_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.85rem;
}

.k_lbl {
  color: #64748b;
  font-weight: 500;
}

.k_val {
  color: #e2e8f0;
  font-weight: 600;
}

.kinogo_show_card {
  display: flex;
  gap: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.kinogo_show_poster {
  width: 200px;
  min-width: 200px;
}

.kinogo_show_poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.kinogo_show_table {
  flex: 1;
}

.show_details_table {
  width: 100%;
  border-collapse: collapse;
}

.show_details_table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.show_details_table td {
  padding: 10px 12px;
}

.dt_lbl {
  width: 150px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
}

.dt_val {
  color: #f1f5f9;
  font-size: 0.92rem;
}

.pagination_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 20px 0;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 14px;
}

.pagination_info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pagination_buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.page_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page_btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.page_btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
  .kinogo_show_card {
    flex-direction: column;
    align-items: center;
  }
  .kinogo_show_poster {
    width: 180px;
  }
  .kinogo_meta_grid {
    grid-template-columns: 1fr;
  }
}

/* 20. DMCA & Admin Panel Styling */
.dmca_blocked_box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.dmca_blocked_icon {
  font-size: 2.2rem;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dmca_policy_card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.dmca_highlight_box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
}

.admin_stats_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin_stat_card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat_num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.stat_label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

@media (max-width: 550px) {
  .admin_stats_grid {
    grid-template-columns: 1fr;
  }
}

/* 21. User Authentication, Profiles & Mobile Download Styling */
.user_pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.user_pill:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.nav_btn_login {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
}

.nav_btn_reg {
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.nav_btn_reg:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.user_profile_header {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.profile_avatar_box {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.profile_big_avatar {
  font-size: 3rem;
}

.profile_details {
  flex: 1;
}

/* Download Section (Kinogo Mobile Download) */
.download_section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}

.download_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.download_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download_options_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.download_option_card {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.download_option_card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.download_option_card.active_mobile {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-surface-elevated) 100%);
}

.dl_badge_rec {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 8px;
}

.dl_res {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.dl_desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.dl_actions {
  display: flex;
  gap: 8px;
}

.btn_dl_stream {
  flex: 1;
  background: var(--accent-gradient);
  color: #ffffff !important;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.btn_dl_stream:hover {
  opacity: 0.9;
}

.btn_dl_torrent {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease;
}

.btn_dl_torrent:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@media (max-width: 800px) {
  .download_options_grid {
    grid-template-columns: 1fr;
  }
  .user_profile_header {
    flex-direction: column;
    text-align: center;
  }
}
