:root {
  /* --- Color Theme for Movie Website --- */
  --bg: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --card: #1a1f29;
  --text: #f5f7fa;
  --muted: #9ca3af;
  --accent: #e50914; /* Netflix Red */
  --accent-hover: #b0060f;
  --border: #2a2f3a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --transition: all 0.25s ease;
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin: 0 8px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
}

.topbar nav a.active,
.topbar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
}

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  margin: 8px 6px;
}

/* Glow effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn:hover::before {
  left: 130%;
}

.btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 8px rgba(229, 9, 20, 0.25);
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

/* Secondary Button */
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Small Button */
.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1f242e;
  color: var(--text);
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

.label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Table ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  background: #252b36;
  color: #f5f7fa;
  font-weight: 600;
  text-align: left;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.6);
}

/* ---------- Grid Layout ---------- */
.row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 300px;
}

/* ---------- Video ---------- */
video {
  width: 100%;
  max-height: 500px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Inline Card */
.inline-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .container {
    margin: 20px auto;
    padding: 0 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
  }

  .topbar nav {
    margin-top: 8px;
  }

  .col {
    min-width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
}
