/*
Theme Name: HDMovies4u
Theme URI: https://www.hdmovies4u5.com/
Author: HDMovies4u
Description: A responsive dark landing-page theme for HDMovies4u.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hdmovies4u
*/
:root {
  --bg: #0d0d0d;
  --fg: #f3f4f6;
  --accent: #3a7ff2;
  --fg-dim: #9ca3af;
  --card-bg: #1a1a1a;
  --border: #222;
  --shadow: rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-display: swap;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px;
}

header {
  position: sticky;
  top: 0;
  max-width: 1400px;
  padding: 1rem 0.75rem;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: var(--transition);
}

.header-inner,
header img { width: 100%; margin: 0 auto; }
.header-inner { display: flex; justify-content: center; }
header img { height: auto; max-width: 334px; display: block; }
.logo-link { display: block; }

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(58, 127, 242, 0.1), #0d0d0d);
}

.hero h1 {
  margin-inline: auto;
  max-width: 1000px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--fg), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px var(--shadow);
}

.hero p { max-width: 680px; margin: 0 auto 2rem; color: var(--fg-dim); }
.btn, .hero p { font-size: 1.1rem; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(58, 127, 242, 0.3);
  border: none;
  cursor: pointer;
  transform: translateY(0);
}
.btn:hover { background: linear-gradient(135deg, #2563eb, var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(58, 127, 242, 0.4); }
.btn:active { transform: translateY(0); }
.btn-wrapper { display: flex; justify-content: center; }

.sticky-btn {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(90%, 360px);
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 200;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(58, 127, 242, 0.5);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.sticky-btn:hover { background: linear-gradient(135deg, #2563eb, var(--accent)); transform: translateX(-50%) translateY(-4px); box-shadow: 0 12px 40px rgba(58, 127, 242, 0.6); }
.sticky-btn span { display: inline-flex; align-items: center; gap: 0.5rem; }

#st-1 {
  display: block;
  padding-top: 30px;
  text-align: center;
  opacity: 1;
  pointer-events: auto;
  width: min(100%, 1090px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
#st-1 .st-btn {
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  display: inline-block;
  min-width: 0;
  height: 40px;
  line-height: 40px;
  margin-right: 0;
  padding: 0 10px;
  position: relative;
  text-align: center;
  vertical-align: top;
  white-space: nowrap;
  background: #3f66ac;
  border-radius: 4px;
  color: #fff;
  transition: var(--transition);
}
#st-1 .st-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
#st-1 .st-total { display: none; }
#st-1 .st-btn:nth-of-type(2) { background: #1dcc62; }
#st-1 .st-btn:nth-of-type(3) { background: #3f86ed; }
#st-1 .st-btn:nth-of-type(4) { background: #008fc8; }
#st-1 .st-btn:nth-of-type(5) { background: #08772c; }
#st-1 .st-btn:nth-of-type(6) { background: #91d52d; }
#st-1 .st-btn > img { display: inline-block; height: 18px; width: 18px; position: relative; top: 5px; vertical-align: top; filter: brightness(0) invert(1); }
#st-1 .st-label { color: #fff; font-size: 0; }

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 3200px;
}
.article h1, .article h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--fg);
  line-height: 1.3;
}
.article h3 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--accent); }
.article p, .article ul { margin-bottom: 1.5rem; color: var(--fg-dim); }
.article p { font-size: 1rem; }
.article ul { padding-left: 2rem; }
.article ul li { margin-bottom: 0.75rem; line-height: 1.7; }
.article a { color: var(--accent); text-decoration: underline; transition: var(--transition); }
.article a:hover { color: var(--fg); }
.article hr { border: 0; border-top: 1px solid var(--fg); margin: 0 0 0; }
img { max-width: 100%; height: auto; }

#pwaInstallContainer { display: none; max-width: 450px; margin: 20px auto 0; padding: 0 1rem; }
.pwa-install-box { padding: 16px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border); text-align: center; }
.pwa-install-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pwa-install-text { font-size: 14px; line-height: 1.5; opacity: 0.8; margin-bottom: 12px; }
.pwa-install-button { display: inline-block; padding: 11px 20px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.pwa-install-button:hover { opacity: 0.9; }
.pwa-ios-icon { font-size: 24px; margin-bottom: 5px; }

.loading { opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  body { padding-bottom: 100px; }
  .sticky-btn { left: 1rem; right: 1rem; width: auto; transform: none; }
  .sticky-btn:hover { transform: translateY(-4px); }
  .hero { padding: 2rem 1rem; }
  #st-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #st-1 .st-btn { padding-inline: 6px; }
}

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

@media (prefers-contrast: high) {
  :root { --bg: #000; --fg: #fff; --accent: #4d9eff; --fg-dim: #ccc; }
}
