/* =========================================================
   RYUUKA MOVIES — Master Cinematic Stylesheet
   Design: Dark Cinematic Obsidian + Apple Liquid Glass
   Creator: @Ryuuka
   ========================================================= */

:root {
  --bg-obsidian: #08090c;
  --bg-dark: #0b0d12;
  --bg-graphite: #0f1218;
  --bg-surface: #141720;
  --bg-elevated: #1a202c;

  --bg: var(--bg-obsidian);
  --bg-2: var(--bg-dark);
  --bg-3: var(--bg-surface);
  --bg-4: var(--bg-elevated);

  /* Ryuuka Amber Flare System */
  --amber: #e5a93c;
  --amber-light: #f5c369;
  --amber-glow: rgba(229, 169, 60, 0.45);
  --amber-glow-strong: rgba(229, 169, 60, 0.75);

  /* Ryuuka Teal System */
  --teal: #14b8a6;
  --teal-glow: rgba(20, 184, 166, 0.35);

  --red: var(--amber);
  --red-2: var(--amber-light);
  --red-glow: var(--amber-glow);
  --gold: var(--amber-light);

  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  --dock-h: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg-obsidian);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 0;
  min-height: 100vh;
}

/* Ambient cinema background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(229, 169, 60, 0.16), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.10), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(229, 169, 60, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Film Grain Texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-obsidian); }
::-webkit-scrollbar-thumb { background: #1f2430; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* =========================================================
   APPLE LIQUID GLASS UTILITIES
   ========================================================= */
.liquid-glass-card {
  background: rgba(16, 20, 28, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35);
}

.liquid-glass-btn {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.95), rgba(245, 195, 105, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #08090c !important;
  font-weight: 800;
  box-shadow: 
    0 8px 30px rgba(229, 169, 60, 0.38),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25);
  transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.liquid-glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 14px 42px rgba(229, 169, 60, 0.55),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9);
  filter: brightness(1.06);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4%;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.95) 0%, rgba(8, 9, 12, 0.75) 60%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(8, 9, 12, 0.92);
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .25s ease;
}
.brand-logo:hover {
  transform: scale(1.03);
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid rgba(229, 169, 60, 0.35);
  display: grid;
  place-items: center;
  color: var(--amber-light);
  box-shadow: 0 0 24px rgba(229, 169, 60, 0.25);
  transition: border-color .3s, box-shadow .3s;
}
.brand-logo:hover .brand-icon {
  border-color: rgba(229, 169, 60, 0.6);
  box-shadow: 0 0 32px rgba(229, 169, 60, 0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-title span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .8px;
  color: #fff;
}
.brand-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(229, 169, 60, 0.2);
  color: var(--amber-light);
  border: 1px solid rgba(229, 169, 60, 0.35);
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 20, 28, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.nav-links a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s ease;
  cursor: pointer;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-links a.active {
  color: #08090c;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.4);
}

/* =========================================================
   HERO SPOTLIGHT
   ========================================================= */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 4% 90px;
  margin-top: -76px;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
  opacity: .55;
  transition: opacity .8s ease;
  filter: saturate(1.15) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-obsidian) 8%, rgba(8, 9, 12, 0.92) 38%, rgba(8, 9, 12, 0.4) 70%, transparent 100%),
    linear-gradient(0deg, var(--bg-obsidian) 4%, transparent 65%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  animation: heroIn .8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: var(--amber-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.2);
}
.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 0 0 var(--amber-glow);
  animation: amberPulse 1.8s infinite;
}
@keyframes amberPulse {
  0% { box-shadow: 0 0 0 0 var(--amber-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero-meta .score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-light);
  font-weight: 800;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
}
.hero-meta .pill {
  border: 1px solid var(--border-bright);
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.hero-meta .brand-tag {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .5px;
}

.hero-desc {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 580px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  box-shadow: 0 8px 30px rgba(229, 169, 60, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(229, 169, 60, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
  filter: brightness(1.05);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================
   SECTIONS & TABS
   ========================================================= */
.section {
  padding: 16px 4% 44px;
  position: relative;
  z-index: 2;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--amber), var(--amber-light));
  box-shadow: 0 0 14px var(--amber-glow);
}

.tabs {
  display: flex;
  gap: 5px;
  background: rgba(16, 20, 28, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s ease;
}
.tab.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.35);
}
.tab:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
}
.row-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.row-scroll .card {
  min-width: 175px;
  max-width: 175px;
  scroll-snap-align: start;
}

/* =========================================================
   MOVIE CARD
   ========================================================= */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  transition: transform .35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .35s, border-color .35s;
  animation: fadeUp .5s ease backwards;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 169, 60, 0.2);
  border-color: rgba(229, 169, 60, 0.45);
  z-index: 5;
}
.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #161b24, #0b0d12);
  overflow: hidden;
  flex-shrink: 0;
}
.card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s cubic-bezier(0.2, 0.8, 0.2, 1), filter .35s;
}
.card:hover .card-poster img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.4);
}
.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(12, 15, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--amber-light);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.card-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
  z-index: 3;
}
.card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}
.btn-mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 20, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all .2s ease;
}
.btn-mini:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #08090c;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.4);
}
.btn-mini.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #08090c;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(0deg, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.5) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #08090c;
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.45);
  transform: translateY(12px);
  transition: transform .3s .05s;
}
.card:hover .card-play {
  transform: translateY(0);
}
.card-overlay-genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-overlay-genres span {
  font-size: 10px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.card-info {
  padding: 12px 12px 14px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #f8fafc;
}
.card-sub {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-sub .star {
  color: var(--amber-light);
  font-weight: 800;
}

/* =========================================================
   SEARCH TAB (POLISHED APPLE LIQUID GLASS)
   ========================================================= */
.search-hero {
  padding: 40px 4% 20px;
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.search-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  text-align: center;
  color: #fff;
}
.search-hero h1 .red {
  color: var(--amber-light);
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.search-hero .sub {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin-bottom: 28px;
}

/* Big Search Bar Container */
.big-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 20, 28, 0.8);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px 10px 24px;
  transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.big-search:focus-within {
  border-color: rgba(229, 169, 60, 0.7);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(229, 169, 60, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
}
.big-search svg.lead {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .2s ease;
}
.big-search:focus-within svg.lead {
  color: var(--amber-light);
}

.big-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
}
.big-search input::placeholder {
  color: var(--muted);
}

.btn-clear {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: none;
  place-items: center;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-clear:hover {
  background: var(--amber);
  color: #08090c;
}
.big-search.has-value .btn-clear {
  display: grid;
}

.btn-search {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.6);
  transition: all .25s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-search:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.5);
}

/* Popular Chips & Search History Tags */
.chips-wrap {
  margin-top: 26px;
}
.chips-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chips-title svg {
  color: var(--amber-light);
}
.chips-title .fire {
  color: var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  padding: 8px 16px;
  background: rgba(16, 20, 28, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
  transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.chip:hover {
  border-color: rgba(229, 169, 60, 0.5);
  color: #fff;
  background: rgba(229, 169, 60, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.2);
}
.chip .rm {
  width: 14px;
  height: 14px;
  opacity: .5;
  transition: opacity .2s;
}
.chip:hover .rm {
  opacity: 1;
}
.chip.chip-clear {
  border-color: rgba(229, 169, 60, 0.35);
  color: var(--amber-light);
  background: rgba(229, 169, 60, 0.08);
}
.chip.chip-clear:hover {
  background: rgba(229, 169, 60, 0.2);
}

.search-section {
  padding: 34px 4% 40px;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.search-section-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.search-section-title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--amber), var(--amber-light));
  box-shadow: 0 0 12px var(--amber-glow);
}

/* =========================================================
   SKELETON & STATES
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, #141720 25%, #1e2433 50%, #141720 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  width: 100%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.state svg {
  opacity: .35;
  margin-bottom: 18px;
  color: var(--amber-light);
}
.state h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 800;
}
.state p {
  font-size: 14.5px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--amber-light);
  animation: spin .8s linear infinite;
  margin: 0 auto 18px;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.25);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   BOTTOM DOCK (APPLE LIQUID GLASS)
   ========================================================= */
.dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 18, 26, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
}
.dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dock-btn svg {
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
}
.dock-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}
.dock-btn.active {
  color: var(--amber-light);
  background: rgba(229, 169, 60, 0.16);
  border: 1px solid rgba(229, 169, 60, 0.35);
  box-shadow: 0 0 18px rgba(229, 169, 60, 0.25);
}
.dock-btn.active svg {
  transform: scale(1.1);
}
.dock-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #08090c;
  font-size: 9.5px;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(229, 169, 60, 0.5);
}
.dock-badge.hidden {
  display: none;
}

/* =========================================================
   MODAL DETAIL
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}
.modal-backdrop.open {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: rgba(18, 22, 32, 0.88);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
  animation: popIn .35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  position: relative;
  height: 320px;
}
.modal-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 22, 32, 0.98) 4%, rgba(18, 22, 32, 0.5) 50%, transparent 100%);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 20, 28, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: all .25s ease;
}
.modal-close:hover {
  background: var(--amber);
  color: #08090c;
  transform: rotate(90deg) scale(1.05);
}

.modal-body {
  padding: 0 34px 34px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.modal-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  line-height: 1.15;
  color: #fff;
}
.modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  align-items: center;
}
.modal-meta .pill {
  border: 1px solid var(--border-bright);
  padding: 4px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.modal-meta .score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-light);
  font-weight: 800;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
}
.modal-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modal-genres span {
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: var(--amber-light);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.modal-desc {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 26px;
}
.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 169, 60, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 8px var(--amber-glow);
}

/* =========================================================
   TAB HERO (FAVORITES & HISTORY)
   ========================================================= */
.tab-hero {
  padding: 50px 4% 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.tab-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  color: #fff;
}
.tab-hero h1 .red {
  color: var(--amber-light);
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tab-hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}
.tab-hero .count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.tab-hero .count .red {
  color: var(--amber-light);
}

/* =========================================================
   FOOTER & ABOUT SECTION
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.65) 0%, rgba(8, 9, 12, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.footer-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 4% calc(var(--dock-h) + 30px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .brand-logo {
  margin-bottom: 14px;
}
.footer-tagline {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 380px;
}
.footer-heading {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-heading::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), var(--amber-light));
  box-shadow: 0 0 8px var(--amber-glow);
}
.footer-text {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.75;
}
.creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #141720;
  border: 1.5px solid rgba(229, 169, 60, 0.5);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.25);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.creator-name {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.creator-role {
  color: var(--amber-light);
  font-size: 11px;
  font-weight: 600;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
  transition: all .2s ease;
}
.footer-chip:hover {
  background: rgba(229, 169, 60, 0.14);
  border-color: rgba(229, 169, 60, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.footer-disclaimer {
  max-width: 720px;
  line-height: 1.6;
}
.footer-disclaimer strong {
  color: #cbd5e1;
}
.footer-copy a {
  color: var(--amber-light);
  font-weight: 700;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  :root { --dock-h: 72px; }
  .nav { padding: 12px 4%; }
  .hero { min-height: 72vh; padding: 110px 4% 60px; }
  .hero-title { font-size: 30px; letter-spacing: -1px; }
  .hero-desc { font-size: 14px; -webkit-line-clamp: 3; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .row-scroll .card { min-width: 135px; max-width: 135px; }
  .dock {
    width: calc(100% - 24px);
    max-width: 440px;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    justify-content: space-around;
    padding: 6px 6px;
  }
  .dock-btn { padding: 6px 8px; font-size: 10px; white-space: nowrap; }
  .dock-btn svg { width: 19px; height: 19px; }
  .big-search { padding: 8px 12px 8px 16px; }
  .big-search input { font-size: 14px; }
  .btn-search { padding: 8px 16px; font-size: 13px; }
  .btn-search span.txt { display: none; }
  .modal-body { padding: 0 20px 24px; margin-top: -60px; }
  .modal-title { font-size: 24px; }
  .modal-head { height: 220px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row-scroll .card { min-width: 125px; max-width: 125px; }
  .dock {
    width: calc(100% - 16px);
    padding: 4px;
    gap: 2px;
  }
  .dock-btn {
    padding: 5px 4px;
    font-size: 9px;
  }
  .dock-btn svg { width: 17px; height: 17px; }
  .card-info { padding: 10px 8px; }
  .card-title { font-size: 12.5px; }
}