:root {
  --background: #0d0c11;
  --foreground: #ffffff;
  --foreground-muted: #a0a0a0;
  --primary: #f7c948;
  --secondary: #1a1a1a;
  --radius: 0.75rem;
  --shadow-card: 0 10px 25px rgba(0,0,0,0.6);
  --shadow-cinematic: 0 25px 50px rgba(0,0,0,0.8);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* Account Page */
#acctTabs.fd-tabs { flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.acct-view { margin-top: 1rem; }
.acct-view .fd-authbox { padding: 1rem; }

.acct-view h2 { 
  font-family: var(--font-heading);
  color: var(--primary);
  margin: .5rem 0 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: .35rem;
}

/* Lists on account page */
.acct-view ol, .acct-view ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.acct-view li {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px){
  #acctTabs.fd-tabs { justify-content: flex-start; }
  .acct-view ol, .acct-view ul { grid-template-columns: 1fr; }
}

/* Auth bar (separate buttons) */
.fd-authbar { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; }
.fd-authbtn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all .18s ease;
}
.fd-authbtn:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); color: var(--primary); }
.fd-authbtn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authbtn--primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.fd-authbtn i { opacity: .9; }
.fd-authbtn img#navAvatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); background: #222; }

/* Modal overlay feel: darker backdrop, solid panel already handled by .fd-modal */
.account-modal { background: rgba(0,0,0,0.85) !important; }

/* Gating Popup */
.fd-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.fd-gate-dialog {
  background: var(--secondary);
  color: var(--foreground);
  width: min(520px, 92vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow-cinematic);
  padding: 1rem 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.fd-gate-header { display:flex; align-items:center; justify-content: space-between; }
.fd-gate-title { font-weight: 800; font-size: 1.15rem; }
.fd-gate-close { background:none; border:1px solid rgba(255,255,255,0.12); color:var(--foreground); border-radius:8px; cursor:pointer; padding:.25rem .5rem; }
.fd-gate-body { margin:.5rem 0 .75rem; color: var(--foreground-muted); }
.fd-gate-actions { display:flex; gap:.5rem; justify-content:flex-end; }

/* FrameDeer UI components (new) */
.fd-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--secondary);
  color: var(--foreground);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
}
.fd-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.fd-btn:active { transform: translateY(0); }
.fd-btn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-btn--primary:hover { filter: brightness(0.95); }
.fd-btn--secondary { background: rgba(255,255,255,0.06); }
.fd-btn--xs { padding: 0.3rem 0.6rem; font-size: 0.85rem; border-radius: 8px; }

.fd-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
}
.fd-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(247,201,72,0.25); }
.fd-input--xs { padding: 0.3rem 0.5rem; width: 70px; text-align: center; }

.fd-label { margin-right: .35rem; color: var(--foreground-muted); font-size: .9rem; }
.fd-chip {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
}

.fd-actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.fd-user-rating { display: inline-flex; gap: .35rem; align-items: center; }

/* Rating toggle (1-10) */
.fd-rating-toggle { display: inline-flex; gap: .25rem; align-items: center; }
.fd-rating-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}
.fd-rating-seg:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.fd-rating-seg.active { background: var(--primary); color: #1a1a1a; border-color: transparent; }

.fd-comments { margin-top: 2rem; }
.fd-comment-composer { display: flex; gap: .5rem; }
.fd-comments { width: 100%; }
.fd-comment-composer .fd-input { flex: 1; min-width: 0; }
.fd-comments-list { list-style: none; padding: 0; margin: 1rem 0 0 0; display: grid; gap: .75rem; }
.fd-comments-list li { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: .75rem 1rem; }
.fd-comments-list li .meta { color: var(--foreground-muted); font-size: .85rem; }

/* Auth box and tabs */
.fd-authbox {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.fd-tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.fd-tab {
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  border: 1px solid rgba(255,255,255,0.12);
  padding: .45rem .8rem;
  border-radius: 999px;
  cursor: pointer;
}
.fd-tab--active { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authstate, .fd-substate { color: var(--foreground-muted); font-size: .9rem; margin: .25rem 0 .75rem; }
.fd-form.fd-form--auth { display: grid; gap: .5rem; margin-bottom: .75rem; }

/* Navbar Account button */
.navbar .account-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
  padding: .4rem .9rem;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--foreground);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.navbar .account-btn:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(247,201,72,0.15) inset;
}
.navbar .account-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -150%; right: -150%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.navbar .account-btn:hover::after { transform: translateX(100%); }
.navbar .account-btn:active { transform: translateY(0); }
.navbar .fd-acc { position: relative; }
.navbar .account-btn #navAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar .account-btn #navAvatar[src=""],
.navbar .account-btn #navAvatar:not([src]) { display: none; }
.navbar .account-btn .fa-user-circle { font-size: 1.2rem; opacity: .9; }
.navbar .account-btn .caret { font-size: .8rem; opacity: .7; }
.navbar .account-btn span { line-height: 1; }

/* Dropdown */
.fd-acc__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18,16,22,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.55);
  padding: .4rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 1002;
}
.fd-acc.open .fd-acc__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fd-acc__menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  color: var(--foreground);
  font-weight: 600;
}
.fd-acc__menu a:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.fd-acc__menu i { width: 1.1rem; text-align: center; opacity: .9; }

/* Mobile menu Account link */
.mobile-nav-links #accountBtnMobile {
  display: block;
  margin-top: .5rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}
.mobile-nav-links #accountBtnMobile::before { content: "\f2bd"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .5rem; }
.mobile-nav-links #accountBtnMobile:hover { color: var(--primary); border-color: rgba(255,255,255,0.25); }

/* Modal styles (auth/profile) */
.fd-modal {
  background: var(--secondary);
  color: var(--foreground);
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-cinematic);
}
.fd-modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  padding: .25rem .5rem;
}
.fd-modal__grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
}
.fd-modal__avatar {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: #333;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
}
.fd-modal__avatar-actions {
  margin-top: .5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.fd-modal__listforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.fd-modal__listform-row { display: flex; gap: .5rem; }

@media (max-width: 640px){
  .fd-modal__grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0d0c11 0%, #121016 50%, #0d0c11 100%);
  color: var(--foreground);
  margin: 0;
  padding-top: 70px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove underline globally */
a {
  text-decoration: none;
  color: var(--foreground);
}

a:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo and title container */
.logo-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo image */
.nav-logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--foreground);
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.menu-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--foreground);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn:hover .menu-line {
  background-color: var(--primary);
}

/* Hamburger to X Animation */
.mobile-menu-btn.active .menu-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-line-2 {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .menu-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-links li a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  display: block;
}

.mobile-nav-links li a:hover {
  color: var(--primary);
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close-menu:hover {
  color: var(--primary);
}

/* General container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjust logo and title for mobile */
  .logo-title-container {
    gap: 0.5rem;
  }
  
  .nav-logo-img {
    height: 35px;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  body {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-links li a {
    font-size: 1.25rem;
  }
  
  .close-menu {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .nav-logo-img {
    height: 30px;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
}

/* Movie Detail Header Layout */
.fd-detail { 
  margin-bottom: 1.25rem; 
}

.fd-detail__grid { 
  display: grid; 
  grid-template-columns: 1fr 504px; 
  gap: 2rem; 
  align-items: start; 
  width: 100%;
}

.fd-detail__left { 
  display: flex; 
  flex-direction: column; 
  gap: .75rem; 
  min-width: 0; 
}

.fd-detail__title { 
  margin: 0 0 .6rem; 
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.8rem); 
  line-height: 1.2; 
  color: var(--foreground);
}

.fd-detail__meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .4rem; 
  align-items: center; 
  margin-bottom: 0.5rem;
}

.fd-chip { 
  display: inline-flex; 
  align-items: center; 
  gap: .35rem; 
  background: rgba(255,255,255,0.06); 
  border: 1px solid rgba(255,255,255,0.12); 
  border-radius: 999px; 
  padding: .25rem .6rem; 
  font-size: .85rem; 
  color: var(--foreground);
}

.fd-chip strong { 
  font-weight: 600; 
  color: var(--primary);
}

.fd-panel { 
  background: rgba(18,16,22,0.6); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 12px; 
  padding: .75rem; 
  box-shadow: var(--shadow-card);
}

.fd-panel--soft { 
  background: rgba(18,16,22,0.4); 
}

.fd-detail__desc { 
  margin: 0; 
  color: rgba(255,255,255,0.92); 
  line-height: 1.6;
  font-size: 1.05rem;
}

.fd-ratings-wrap { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: .6rem .8rem; 
}

.fd-user-rating { 
  display: flex; 
  align-items: center; 
  gap: .5rem; 
}

.fd-actions-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .5rem; 
}

.fd-detail__poster { 
  position: relative; 
  width: 100%; 
  justify-self: end; 
}

.fd-detail__poster img { 
  width: 100%; 
  height: auto; 
  max-height: 912px; 
  object-fit: cover; 
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.08); 
  box-shadow: var(--shadow-cinematic);
}

.fd-small { 
  font-size: .9rem; 
  opacity: .9; 
}

.fd-stars .star { 
  transform: scale(0.9); 
  transform-origin: left center; 
}

.fd-divider { 
  height: 1px; 
  background: rgba(255,255,255,0.08); 
  margin: .25rem 0; 
}

/* Make the poster panel sticky on desktop */
@media (min-width: 821px){ 
  .fd-detail__poster{ 
    position: sticky; 
    top: 96px; 
  } 
}

@media (max-width: 820px){ 
  .fd-detail__grid{ 
    grid-template-columns: 1fr; 
  } 
  .fd-detail__poster{ 
    width: 100%; 
    position: static; 
  } 
}

/* FrameDeer Rating */
.framedeer-rating {
  margin: 0;
}

.rating-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.star {
  position: relative;
  width: 28px;
  height: 28px;
}

.star-background {
  position: absolute;
  top: 0;
  left: 0;
  color: #444;
  font-size: 1.7rem;
}

.star-fill {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary);
  font-size: 1.7rem;
  overflow: hidden;
  width: 0%;
}

.rating-text {
  font-weight: 600;
  color: var(--primary);
}

/* Comments toolbar tweaks */
.fd-comments-toolbar{ 
  display: flex; 
  align-items: center; 
  gap: .6rem; 
  margin-bottom: .5rem; 
}
#commentSort{ 
  padding: .45rem .6rem; 
  font-size: .95rem; 
}
.fd-comment-composer{ 
  margin-top: .6rem; 
}

/* Trailer */
.trailer {
  margin: 2rem 0;
}

.trailer h2 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.trailer iframe {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-cinematic);
}

/* FrameDeer Thoughts Section */
.framedeer-thoughts {
  margin: 3rem 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.framedeer-thoughts h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.thoughts-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.thoughts-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.thoughts-text strong {
  color: var(--primary);
}

.thoughts-highlights {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.thoughts-highlights h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.thoughts-highlights ul {
  list-style: none;
  padding: 0;
}

.thoughts-highlights li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.thoughts-highlights li:before {
  content: "★";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Cast Section */
.cast {
  margin: 3rem 0;
}

.cast h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.cast-category {
  margin-bottom: 2.5rem;
}

.cast-category h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Director section */
.director {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.director img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.director-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.director-info p {
  margin: 0;
  color: var(--foreground-muted);
}

/* Main cast grid */
.main-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cast-member {
  text-align: center;
  transition: transform 0.3s ease;
}

.cast-member:hover {
  transform: translateY(-5px);
}

.cast-member a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cast-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
}

.cast-member p {
  margin: 0;
  font-weight: 500;
}

.cast-member .character {
  color: var(--foreground-muted);
  font-size: 0.9rem;
}

/* Other cast list */
.other-cast {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}

.other-cast li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
}

.other-cast li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Movie Suggestions */
.movie-suggestions {
  margin: 3rem 0;
}

.movie-suggestions h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.suggestion-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.suggestion-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.suggestion-item:hover {
  transform: translateY(-5px);
}

.suggestion-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.suggestion-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.75rem;
}

.suggestion-item p {
  margin: 0;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  background: var(--secondary);
  color: var(--foreground);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social h4 {
  margin-bottom: 0.8rem;
  color: var(--foreground);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--foreground);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-legal {
  margin: 0.8rem 0;
}

.footer-legal a {
  color: var(--foreground-muted);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal span {
  color: var(--foreground-muted);
  margin: 0 0.5rem;
}

.footer-attribution p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Awards Section */
.awards {
  margin: 3rem 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.awards h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.award-category h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.award-category ul {
  list-style: none;
  padding: 0;
}

.award-category li {
  margin-bottom: 0.75rem;
  padding-left: 0;
  display: flex;
  align-items: center;
}

.award-result {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.75rem;
  min-width: 70px;
  text-align: center;
}

.award-result {
  background: #2d5016;
  color: #90ee90;
}

.award-result.nominated {
  background: #423a0f;
  color: #ffd700;
}

/* Production Info Section */
.production-info {
  margin: 3rem 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.production-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.info-item h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.info-description {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Making of Section */
.making-of {
  margin: 3rem 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.making-of h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.making-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.making-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.making-text strong {
  color: var(--primary);
}

.making-highlights {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.making-highlights h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.making-highlights ul {
  list-style: none;
  padding: 0;
}

.making-highlights li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.making-highlights li:before {
  content: "🎬";
  position: absolute;
  left: 0;
}

/* Additional Information Section */
.additional-info {
  margin: 3rem 0;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.additional-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-section h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-section ul {
  list-style: none;
  padding: 0;
}

.info-section li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.info-section li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0.5rem;
  font-weight: bold;
}

.blog-links li:before {
  content: "📝";
}

.blog-links a {
  color: var(--foreground);
  margin-left: 4px;
  transition: color 0.3s;
}

.blog-links a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .making-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-sections {
    grid-template-columns: 1fr;
  }
  
  .info-item {
    padding: 1rem;
  }
  
  .info-value {
    font-size: 1.3rem;
  }
  
  /* Header: stack columns, poster full width */
  .fd-detail__grid { 
    grid-template-columns: 1fr; 
    gap: 1.25rem; 
  }
  
  .fd-detail__poster { 
    width: 100% !important; 
    justify-content: center; 
    align-self: auto; 
  }
  
  .fd-detail__poster img { 
    width: 100% !important; 
    height: auto !important; 
    max-height: 70vh; 
  }
  
  /* Stars row: allow full width on mobile */
  .framedeer-rating .stars { 
    width: 100%; 
    justify-content: space-between; 
  }
  
  /* Thoughts: ensure text first, highlights below */
  .thoughts-content { 
    display: block !important; 
    grid-template-columns: 1fr !important; 
  }
  
  .thoughts-highlights { 
    margin-top: 1rem; 
  }
  
  /* Making Of: ensure text first, highlights below */
  .making-content { 
    display: block !important; 
    grid-template-columns: 1fr !important; 
  }
  
  .making-highlights { 
    margin-top: 1rem; 
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .awards,
  .production-info,
  .making-of,
  .additional-info {
    padding: 1.5rem;
  }
  
  .mobile-nav-links li a {
    font-size: 1.25rem;
  }
  
  .close-menu {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .nav-logo-img {
    height: 30px;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .main-cast-grid {
    grid-template-columns: 1fr;
  }
  
  .movie-details h1 {
    font-size: 2rem;
  }
  
  .framedeer-thoughts {
    padding: 1.5rem;
  }
  
  .thoughts-text p {
    font-size: 1rem;
  }
  
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}