/* ============================================
   GLOBAL STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 215, 0, 0.06), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(45, 45, 75, 0.45), transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  /* clip avoids the overflow-x:hidden → overflow-y:auto coupling that creates empty page scroll */
  overflow-x: clip;
  min-height: 100dvh;
}

h1, h2, h3, .watch-title, .logo-brand, .contact-content h1, .ms-title {
  font-family: var(--font-display, "Syne", "Outfit", system-ui, sans-serif);
  letter-spacing: -0.02em;
}

.ph {
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
}

.ph-spinner,
.fa-spin {
  animation: ntv-icon-spin 0.85s linear infinite;
}

@keyframes ntv-icon-spin {
  to { transform: rotate(360deg); }
}

input,
button,
textarea,
select,
optgroup {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: var(--focus-ring);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(255, 215, 0, 0.28);
  color: var(--text-primary);
}

body.favorites-page-wrapper {
  overflow: hidden;
  height: 100dvh;
}

.favorites-page-wrapper .content-container {
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

/* Shared control primitives */
.search-input,
.watch-select,
.btn,
.contact-btn {
  border-radius: var(--radius-md);
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 215, 0, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: ntv-shimmer 1.4s var(--ease-smooth) infinite;
  border-radius: var(--radius-sm);
}

@keyframes ntv-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
