/* ============================================================
   FAIZAL AFZAL NETFLIX — Global CSS
   Phase 1: Reset, Variables, Typography, Utilities
   ============================================================ */

/* === CSS Custom Properties === */
:root {
  --black: #141414;
  --dark: #1a1a1a;
  --card-bg: #2a2a2a;
  --card-hover: #3a3a3a;
  --red: #E50914;
  --red-hover: #f40612;
  --white: #ffffff;
  --muted: #b3b3b3;
  --subtle: #6d6d6d;

  --font-main: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --row-gap: 8px;
  --card-width: 200px;
  --card-height: 112px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --z-navbar: 1000;
  --z-modal: 2000;
  --z-overlay: 1999;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === Typography === */
h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* === Utility Classes === */
.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; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 4%; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.tag {
  display: inline-block;
  background: rgba(229, 9, 20, 0.15);
  color: var(--red);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
::selection { background: var(--red); color: var(--white); }

/* === Focus === */
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 2px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.7rem 2rem; border-radius: var(--radius-sm); font-size: 1.1rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit;
  white-space: nowrap; border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--white); color: #000; }
.btn-primary:hover { background: rgba(255,255,255,0.75); }
.btn-secondary { background: rgba(109,109,110,0.7); color: var(--white); }
.btn-secondary:hover { background: rgba(109,109,110,0.4); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); }
.btn-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition); background: transparent;
}
.btn-icon:hover { border-color: var(--white); }
