/*
  fanmoviehd.com – Dark Transparent “Streaming” Theme
  --------------------------------------------------
  ✔ Built on top of Bootstrap 5.3
  ✔ Glass/blur surfaces, neon accents, soft shadows
  ✔ Movie cards, hero header, badges, rating, tags, buttons
  ✔ Mobile-first, responsive, prefers-reduced-motion aware
*/

/* =============== CSS Variables =============== */
:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --glass: rgba(18, 20, 24, 0.55);
  --card: rgba(18, 20, 24, 0.68);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e8edf2;
  --muted: #9aa4b2;
  --primary: #00e5ff;    /* cyan neon */
  --accent: #7c4dff;     /* purple neon */
  --success: #00ffa3;    /* mint */
  --warning: #ffd166;    /* warm */
  --danger: #ff4d6d;     /* pink-red */
  --shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px var(--stroke);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --blur: 14px;
  --ring: 0 0 0 2px rgba(0, 229, 255, 0.25), 0 0 40px rgba(0, 229, 255, .08);
}

/* =============== Base & Bootstrap overrides =============== */
html, body { height: 100%; }
body {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,77,255,.22), transparent 60%),
              radial-gradient(900px 700px at 10% 115%, rgba(0,229,255,.18), transparent 60%),
              linear-gradient(0deg, var(--bg), var(--bg-2));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container, .container-fluid { padding-left: 16px; padding-right: 16px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: #93f5ff; }

/* Navbar */
.navbar { background: rgba(10, 12, 16, 0.6); backdrop-filter: blur(var(--blur)); border-bottom: 1px solid var(--stroke); }
.navbar .nav-link, .navbar-brand { color: var(--text) !important; opacity: .92; }
.navbar .nav-link:hover { opacity: 1; }
.navbar .dropdown-menu {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
}
.navbar .dropdown-item { color: var(--text); }
.navbar .dropdown-item:hover { background: rgba(255,255,255,.05); }

/* Cards */
.card { background: var(--card); backdrop-filter: blur(var(--blur)); border: 1px solid var(--stroke); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--text); }
.card-header, .card-footer { background: transparent; border-color: var(--stroke); }

/* Buttons (Bootstrap variants tuned for neon) */
.btn { border-radius: 12px; border: 1px solid var(--stroke); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.btn-primary { background: linear-gradient(180deg, rgba(0,229,255,.24), rgba(0,229,255,.14)); color: var(--text); }
.btn-primary:hover { box-shadow: var(--ring); }
.btn-outline-primary { color: var(--primary); border-color: rgba(0,229,255,.45); }
.btn-outline-primary:hover { background: rgba(0,229,255,.08); color: #c9fbff; }
.btn-success { background: linear-gradient(180deg, rgba(0,255,163,.28), rgba(0,255,163,.16)); }
.btn-danger { background: linear-gradient(180deg, rgba(255,77,109,.28), rgba(255,77,109,.16)); }

/* Forms */
.form-control, .form-select { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--stroke); border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: rgba(0,229,255,.5); box-shadow: 0 0 0 .25rem rgba(0,229,255,.15); color: var(--text); }
.input-group-text { background: rgba(255,255,255,.04); border: 1px solid var(--stroke); color: var(--muted); }

/* Offcanvas / Modal */
.offcanvas, .modal-content { background: var(--glass); backdrop-filter: blur(var(--blur)); border: 1px solid var(--stroke); border-radius: var(--radius-lg); color: var(--text); }
.modal-header { border-bottom: 1px solid var(--stroke); }
.modal-footer { border-top: 1px solid var(--stroke); }

/* =============== Hero Header =============== */
.hero {
  position: relative; min-height: 54vh; border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden; border: 1px solid var(--stroke); box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.7));
}
.hero::before { /* backdrop image via inline style or data attribute */
  content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.05) contrast(1.05) brightness(.75);
}
.hero[data-bg]::before { background-image: attr(data-bg url); }
.hero::after { /* gradient veil */
  content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, rgba(0,229,255,.18), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6));
}
.hero-content { position: relative; z-index: 2; padding: clamp(18px, 5vw, 40px); }
.hero .title { font-size: clamp(28px, 4.5vw, 56px); font-weight: 800; letter-spacing: .5px; text-shadow: 0 4px 32px rgba(0,229,255,.18); }
.hero .meta { color: var(--muted); }

/* =============== Movie Grid & Cards =============== */
.movie-grid { --gap: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 576px) { .movie-grid { grid-template-columns: repeat(3, 1fr);} }
@media (min-width: 768px) { .movie-grid { grid-template-columns: repeat(4, 1fr);} }
@media (min-width: 1200px){ .movie-grid { grid-template-columns: repeat(6, 1fr);} }

.movie-card { position: relative; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.02); border: 1px solid var(--stroke); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,229,255,.08) inset; }

.poster { aspect-ratio: 2/3; width: 100%; display: block; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.poster-shadow { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 10%, rgba(124,77,255,.16), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 90%); pointer-events: none; }

.movie-info { position: absolute; inset: auto 0 0 0; padding: 14px; display: grid; gap: 6px; z-index: 2; }
.movie-title { font-weight: 700; font-size: 0.98rem; line-height: 1.25; color: var(--text); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.movie-meta { font-size: .82rem; color: var(--muted); }

/* Play Button overlay */
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s ease; }
.movie-card:hover .play-overlay { opacity: 1; }
.btn-play { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(0,229,255,.45); color: var(--text); box-shadow: var(--ring); backdrop-filter: blur(8px); }
.btn-play svg { width: 18px; height: 18px; }

/* Rating badge */
.rating { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: var(--warning); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); font-weight: 700; font-variant-numeric: tabular-nums; }
.rating svg { width: 14px; height: 14px; }

/* Quality tag */
.quality { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 6px 10px; border-radius: 10px; background: linear-gradient(180deg, rgba(124,77,255,.35), rgba(124,77,255,.18)); color: #eae5ff; border: 1px solid rgba(124,77,255,.4); font-weight: 800; letter-spacing: .4px; text-shadow: 0 2px 8px rgba(124,77,255,.35); }

/* Tags */
.badge-tag { display: inline-block; padding: 6px 10px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); border-radius: 999px; color: var(--muted); font-weight: 600; }
.badge-tag:hover { color: var(--text); border-color: rgba(0,229,255,.35); box-shadow: 0 0 0 2px rgba(0,229,255,.12) inset; }

/* =============== Review Content =============== */
.prose { color: var(--text); }
.prose h1, .prose h2, .prose h3 { font-weight: 800; letter-spacing: .2px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 30px); margin-top: 18px; }
.prose p { color: #d8dee6; line-height: 1.75; }
.prose blockquote { border-left: 3px solid rgba(255,255,255,.12); padding-left: 14px; color: #c4cbd5; }
.prose code { background: rgba(255,255,255,.06); border: 1px solid var(--stroke); padding: 2px 6px; border-radius: 6px; }

/* =============== Listing header / filters =============== */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; margin-bottom: 14px; background: var(--glass); border-radius: var(--radius-md); border: 1px solid var(--stroke); backdrop-filter: blur(var(--blur)); }
.toolbar .form-select, .toolbar .form-control { min-width: 160px; }

/* Pagination */
.pagination { --bs-pagination-bg: rgba(255,255,255,.04); --bs-pagination-color: var(--text); --bs-pagination-hover-bg: rgba(255,255,255,.08); --bs-pagination-border-color: var(--stroke); }
.page-link { border-radius: 10px !important; }

/* =============== Tables (for lists) =============== */
.table { --bs-table-bg: rgba(255,255,255,.02); color: var(--text); border-color: var(--stroke); }
.table thead th { color: var(--muted); border-bottom: 1px solid var(--stroke); }
.table-hover tbody tr:hover { background: rgba(255,255,255,.04); }

/* =============== Footer =============== */
.site-footer { margin-top: 40px; padding: 24px 0; color: var(--muted); border-top: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00)); }

/* =============== Utility helpers =============== */
.glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius-md); backdrop-filter: blur(var(--blur)); }
.text-muted-2 { color: var(--muted) !important; }
.shadow-soft { box-shadow: var(--shadow); }
.rounded-xl { border-radius: var(--radius-lg) !important; }

/* =============== Scrollbar styling =============== */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* =============== Media queries fine-tune =============== */
@media (max-width: 575.98px) { .navbar-brand { font-size: 1rem; } .hero { min-height: 46vh; } }

/* =============== Accessibility / Motion preferences =============== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =============== Example component: compact review card =============== */
.review-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px; }
.review-card .thumb { width: 96px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.review-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-card .title { font-weight: 800; font-size: 1.02rem; }

/* =============== Toast / alerts =============== */
.alert { background: rgba(255,255,255,.04); border: 1px solid var(--stroke); color: var(--text); }
.alert-primary { border-color: rgba(0,229,255,.4); }

/* =============== Backdrop utilities for sections =============== */
.section { position: relative; padding: clamp(18px, 3vw, 30px); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.section-title .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 20px rgba(0,229,255,.8); }

/* =============== Tiny play icon (inline SVG friendly) =============== */
.icon-play { display:inline-block; width: 0; height: 0; border-left: 10px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }




