/*
 Theme Name:   24/7 IPTV
 Theme URI:    https://24-7iptv.com
 Description:  Editorial streaming-service theme for 24/7 IPTV. Astra child theme with Gutenberg-native design system.
 Author:       24/7 IPTV
 Author URI:   https://24-7iptv.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  24-7iptv
*/

/* ==========================================================================
   DESIGN SYSTEM — 24/7 IPTV
   ========================================================================== */

:root {
  /* ── Colours ── */
  --iptv-black:         #050505;
  --iptv-black-soft:    #0a0a0a;
  --iptv-black-card:    #111111;
  --iptv-grey-dark:     #161616;
  --iptv-grey-mid:      #262626;
  --iptv-grey-border:   rgba(255, 255, 255, 0.08);
  --iptv-grey-text:     #8e8e93;
  --iptv-cream:         #f8f7f4;
  --iptv-cream-dark:    #edebe6;
  --iptv-cream-card:    #ffffff;
  --iptv-white:         #ffffff;
  --iptv-white-off:     #fcfcfc;

  /* Accent system */
  --iptv-magenta:       #e8006f;
  --iptv-magenta-light: #ff1a88;
  --iptv-red:           #e63946;
  --iptv-orange:        #f77f00;
  --iptv-gradient-cta:  linear-gradient(135deg, #e8006f 0%, #e63946 50%, #f77f00 100%);
  --iptv-gradient-hero: linear-gradient(180deg, #050505 0%, #0a0a0f 100%);

  /* ── Typography ── */
  --font-primary:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:       'Inter', sans-serif;

  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-md:    1.125rem;   /* 18px */
  --fs-lg:    1.25rem;    /* 20px */
  --fs-xl:    1.5rem;     /* 24px */
  --fs-2xl:   2rem;       /* 32px */
  --fs-3xl:   2.5rem;     /* 40px */
  --fs-4xl:   3rem;       /* 48px */
  --fs-hero:  clamp(2.5rem, 5.5vw, 4.25rem);

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-extra:   800;

  --lh-tight:   1.08;
  --lh-snug:    1.22;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* ── Spacing ── */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4.5rem;
  --space-3xl:  6.5rem;
  --space-section: clamp(4.5rem, 7vw, 7.5rem);

  /* ── Layout ── */
  --content-max:   1280px;
  --content-text:  640px;
  --content-wide:  1400px;
  --rail-gap:      1.25rem;
  --card-radius:   0.5rem;   /* 8px */
  --card-radius-lg: 0.75rem; /* 12px */
  --btn-radius:    0.5rem;   /* 8px */
  --nav-height:    64px;

  /* ── Transitions ── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;
  --duration-slow: 450ms;

  /* ── Shadows ── */
  --shadow-card:   0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 32px rgba(0,0,0,0.1);
  --shadow-dark:   0 16px 40px rgba(0,0,0,0.5);
}


/* ==========================================================================
   GLOBAL RESET & ACCESSIBILITY
   ========================================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Accessible focus visible rings */
:focus-visible {
  outline: 2px solid var(--iptv-magenta);
  outline-offset: 3px;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--iptv-black);
  background-color: var(--iptv-black);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.iptv-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iptv-magenta);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* Eyebrows contrast per section surface */
.iptv-section--dark .iptv-eyebrow,
.iptv-section--black-soft .iptv-eyebrow,
.iptv-hero .iptv-eyebrow,
.iptv-split .iptv-eyebrow,
.iptv-rail .iptv-eyebrow,
.iptv-cta-strip .iptv-eyebrow {
  color: #FF2E93 !important; /* Vibrant high-contrast magenta on dark */
}

.iptv-section--cream .iptv-eyebrow,
.iptv-section--light .iptv-eyebrow {
  color: #C2005B !important; /* Deep rich magenta for WCAG AA (5.5:1+) on cream */
}

.iptv-heading-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--iptv-white);
  margin: 0 0 var(--space-md);
}

.iptv-heading-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-md);
  color: #FFFFFF;
}

/* Light / Cream sections: Deep crisp black with max contrast */
.iptv-section--cream .iptv-heading-section,
.iptv-section--light .iptv-heading-section,
.iptv-channel-guide .iptv-heading-section {
  color: #050505 !important;
}

/* Dark / Soft-black sections: Pure crisp white with max contrast */
.iptv-section--dark .iptv-heading-section,
.iptv-section--black-soft .iptv-heading-section,
.iptv-split .iptv-heading-section,
.iptv-hero .iptv-heading-section,
.iptv-rail .iptv-heading-section,
.iptv-editorial-strip h3,
.iptv-cta-strip h2 {
  color: #FFFFFF !important;
}

.iptv-heading-card {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

.iptv-body {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: #2D2D2D;
  max-width: var(--content-text);
  margin: 0 0 var(--space-lg);
}

.iptv-body--dark,
.iptv-section--dark .iptv-body,
.iptv-section--black-soft .iptv-body,
.iptv-split p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.iptv-section--cream .iptv-body,
.iptv-section--light .iptv-body {
  color: #333333 !important;
}

.iptv-meta {
  font-size: var(--fs-sm);
  color: var(--iptv-grey-text);
}


/* ==========================================================================
   BUTTONS (Moderate border-radius: 8px, min touch target 44px)
   ========================================================================== */

.iptv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  line-height: 1;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.iptv-btn:hover {
  transform: translateY(-2px);
}

.iptv-btn:active {
  transform: translateY(0);
}

.iptv-btn--primary {
  background: var(--iptv-gradient-cta);
  color: var(--iptv-white);
  box-shadow: 0 4px 18px rgba(232, 0, 111, 0.35);
}

.iptv-btn--primary:hover {
  box-shadow: 0 6px 26px rgba(232, 0, 111, 0.5);
  color: var(--iptv-white);
}

.iptv-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--iptv-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.iptv-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  color: var(--iptv-white);
}

.iptv-btn--outline-dark {
  background: transparent;
  color: var(--iptv-black);
  border-color: rgba(5, 5, 5, 0.3);
}

.iptv-btn--outline-dark:hover {
  border-color: var(--iptv-black);
  background: rgba(5, 5, 5, 0.05);
}

.iptv-btn--sm {
  font-size: var(--fs-sm);
  min-height: 38px;
  padding: 0.5rem 1.25rem;
}

.iptv-btn--block {
  display: flex;
  width: 100%;
}


/* ==========================================================================
   LAYOUT — SECTIONS & RHYTHM
   ========================================================================== */

.iptv-section {
  padding: var(--space-section) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.iptv-section--dark {
  background-color: var(--iptv-black);
  color: var(--iptv-white);
}

.iptv-section--black-soft {
  background-color: var(--iptv-black-soft);
  color: var(--iptv-white);
}

.iptv-section--cream {
  background-color: var(--iptv-cream);
  color: var(--iptv-black);
}

.iptv-section--white {
  background-color: var(--iptv-white);
  color: var(--iptv-black);
}

.iptv-container {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.iptv-container--wide {
  max-width: var(--content-wide);
}


/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.iptv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.90);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--iptv-grey-border);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

/* WP Admin Bar accommodation for authenticated sessions */
body.admin-bar .iptv-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .iptv-header {
    top: 46px;
  }
}

.iptv-header.is-scrolled {
  background: rgba(5, 5, 5, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.iptv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-lg);
}

.iptv-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.iptv-header__logo img,
.iptv-header__logo svg {
  height: 38px;
  width: auto;
  display: block;
}

.iptv-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.iptv-header__nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.iptv-header__nav a:hover {
  color: var(--iptv-white);
}

.iptv-header__cta {
  flex-shrink: 0;
}

/* Mobile menu toggle (min 44x44 touch target) */
.iptv-header__toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.iptv-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--iptv-white);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}

.iptv-header__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.iptv-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.iptv-header__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .iptv-header__toggle {
    display: flex;
  }

  .iptv-header__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--iptv-black);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
  }

  .iptv-header__nav.is-open {
    transform: translateX(0);
  }

  .iptv-header__nav a {
    font-size: var(--fs-lg);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .iptv-header__cta--desktop {
    display: none;
  }
}


/* ==========================================================================
   1. HERO SECTION (Black Cinematic Hero)
   ========================================================================== */

.iptv-hero {
  background: var(--iptv-black);
  padding-top: clamp(2.5rem, 3.5vw, 3.75rem);
  padding-bottom: clamp(3.5rem, 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.iptv-hero__inner {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.iptv-hero__content {
  position: relative;
  z-index: 2;
}

.iptv-hero__copy {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.iptv-hero__copy p {
  margin: 0 0 var(--space-sm);
}

.iptv-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.iptv-hero__media {
  position: relative;
  z-index: 1;
}

.iptv-hero__image-wrapper {
  position: relative;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.iptv-hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Gradient edge merge into black background */
.iptv-hero__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,0.7) 0%, transparent 25%, transparent 80%, rgba(5,5,5,0.4) 100%),
              linear-gradient(0deg, rgba(5,5,5,0.6) 0%, transparent 25%);
  pointer-events: none;
}

/* Ambient glow */
.iptv-hero__glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 0, 111, 0.16) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px) {
  .iptv-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .iptv-hero {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    padding-bottom: 3.5rem;
  }
}


/* ==========================================================================
   2. WATCH YOUR WAY — MEDIA RAIL (Black Background)
   ========================================================================== */

.iptv-rail {
  padding: var(--space-section) 0;
  background: var(--iptv-black);
  border-top: 1px solid var(--iptv-grey-border);
}

.iptv-rail__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-lg);
}

.iptv-rail__title {
  color: var(--iptv-white);
  margin: 0;
}

.iptv-rail__track {
  display: flex;
  gap: var(--rail-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-lg) var(--space-sm);
  scrollbar-width: none;
  scroll-padding-left: var(--space-lg);
}

.iptv-rail__track::-webkit-scrollbar {
  display: none;
}

.iptv-rail__card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--iptv-black-card);
  border: 1px solid var(--iptv-grey-border);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: var(--iptv-white);
  display: flex;
  flex-direction: column;
}

.iptv-rail__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.iptv-rail__card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.iptv-rail__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.iptv-rail__card:hover .iptv-rail__card-image {
  transform: scale(1.05);
}

.iptv-rail__card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.iptv-rail__card-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iptv-magenta);
  margin-bottom: 0.35rem;
}

.iptv-rail__card-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-bottom: 0.35rem;
  color: var(--iptv-white);
}

.iptv-rail__card-desc {
  font-size: var(--fs-sm);
  color: var(--iptv-grey-text);
  line-height: var(--lh-normal);
  margin: 0;
}

.iptv-rail__nav {
  display: flex;
  gap: 0.5rem;
}

.iptv-rail__arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--iptv-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.iptv-rail__arrow:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.iptv-rail__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (max-width: 768px) {
  .iptv-rail__card {
    flex: 0 0 260px;
  }
  .iptv-rail__nav {
    display: none;
  }
}


/* ==========================================================================
   3. LIVE TV FEATURE — CINEMATIC SPLIT (Dark)
   ========================================================================== */

.iptv-split {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 580px;
  background: var(--iptv-black-soft);
  border-top: 1px solid var(--iptv-grey-border);
  border-bottom: 1px solid var(--iptv-grey-border);
}

.iptv-split--reverse {
  grid-template-columns: 52% 48%;
}

.iptv-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  z-index: 2;
}

.iptv-split__content h2 {
  color: var(--iptv-white);
}

.iptv-split__content p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.78);
  max-width: var(--content-text);
  margin-bottom: var(--space-xl);
}

.iptv-split__media {
  overflow: hidden;
  position: relative;
}

.iptv-split__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .iptv-split {
    grid-template-columns: 1fr;
  }
  .iptv-split--reverse {
    grid-template-columns: 1fr;
  }
  .iptv-split__content {
    padding: var(--space-2xl) var(--space-lg);
    order: 1;
  }
  .iptv-split__media {
    order: 2;
    min-height: 320px;
  }
}


/* ==========================================================================
   4. MOVIES & SERIES — CREAM EDITORIAL GRID
   ========================================================================== */

.iptv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rail-gap);
}

.iptv-card {
  background: var(--iptv-cream-card);
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.iptv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.iptv-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.iptv-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.iptv-card:hover .iptv-card__image {
  transform: scale(1.04);
}

.iptv-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.iptv-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iptv-magenta);
  margin-bottom: 0.35rem;
}

.iptv-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-bottom: 0.35rem;
  color: var(--iptv-black);
}

.iptv-card__desc {
  font-size: var(--fs-sm);
  color: #555555;
  line-height: var(--lh-normal);
  margin: 0;
}

@media (max-width: 900px) {
  .iptv-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .iptv-cards {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   5. SECOND CINEMATIC FEATURE — SPORTS (Alternating Split)
   ========================================================================== */

.iptv-sports-feature {
  background: var(--iptv-black);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--iptv-grey-border);
}


/* ==========================================================================
   6. CONTENT DISCOVERY SECTION (Editorial Interface)
   ========================================================================== */

.iptv-discovery-box {
  background: var(--iptv-white);
  border-radius: var(--card-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.iptv-discovery-search {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.iptv-discovery-input {
  flex-grow: 1;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--btn-radius);
  background: var(--iptv-cream);
  color: var(--iptv-black);
  outline: none;
  transition: border-color var(--duration-fast);
}

.iptv-discovery-input:focus {
  border-color: var(--iptv-magenta);
}

.iptv-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.iptv-pill {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all var(--duration-fast);
}

.iptv-pill:hover,
.iptv-pill.is-active {
  background: var(--iptv-black);
  color: var(--iptv-white);
  border-color: var(--iptv-black);
}

.iptv-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.iptv-tile {
  border-radius: var(--card-radius);
  background: var(--iptv-cream);
  border: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
  text-decoration: none;
  color: inherit;
}

.iptv-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.iptv-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--btn-radius);
  background: var(--iptv-gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iptv-white);
  flex-shrink: 0;
}

.iptv-tile__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  margin-bottom: 0.2rem;
}

.iptv-tile__meta {
  font-size: var(--fs-xs);
  color: #666;
}

@media (max-width: 768px) {
  .iptv-tiles-grid {
    grid-template-columns: 1fr;
  }
  .iptv-discovery-search {
    flex-direction: column;
  }
}


/* ==========================================================================
   7. DEVICES SECTION (Dark)
   ========================================================================== */

.iptv-devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.iptv-device-card {
  background: var(--iptv-black-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--duration-base), border-color var(--duration-base);
}

.iptv-device-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.iptv-device-card__icon {
  margin-bottom: var(--space-md);
  color: #FF2E93;
}

.iptv-device-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: #FFFFFF !important;
  margin-bottom: 0.35rem;
}

.iptv-device-card__desc {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.82) !important;
  margin: 0;
}

@media (max-width: 900px) {
  .iptv-devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   8. EDITORIAL TRANSITION MOMENT (Between Devices & Pricing)
   ========================================================================== */

.iptv-editorial-strip {
  position: relative;
  background: #050505;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--iptv-grey-border);
  border-bottom: 1px solid var(--iptv-grey-border);
}

.iptv-editorial-strip__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(1px);
}

.iptv-editorial-strip__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.iptv-editorial-strip h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: var(--fw-bold);
  color: #FFFFFF !important;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.iptv-editorial-strip p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0;
  line-height: var(--lh-relaxed);
}


/* ==========================================================================
   9. PRICING SECTION (Light / Cream)
   ========================================================================== */

.iptv-pricing-notice {
  font-size: var(--fs-xs);
  color: #4A4A4A !important;
  margin-top: var(--space-md);
  font-style: italic;
}

.iptv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.iptv-price-card {
  background: #FFFFFF !important;
  border-radius: var(--card-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}

.iptv-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.iptv-price-card--featured {
  border-color: var(--iptv-magenta);
  box-shadow: 0 8px 30px rgba(232, 0, 111, 0.12);
}

.iptv-price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--iptv-gradient-cta);
  color: var(--iptv-white);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iptv-price-card__tier {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: #050505 !important;
  margin-bottom: var(--space-xs);
}

.iptv-price-card__amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extra);
  color: #050505 !important;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.iptv-price-card__amount span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #4A4A4A !important;
}

.iptv-price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  color: #2D2D2D !important;
}

.iptv-price-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.iptv-price-card__features svg {
  color: var(--iptv-magenta);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .iptv-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .iptv-pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   10. SUPPORT & FAQ (Dark)
   ========================================================================== */

.iptv-faq-list {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.iptv-faq-item {
  background: var(--iptv-black-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.iptv-faq-question {
  width: 100%;
  min-height: 48px;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: #FFFFFF !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iptv-faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.88) !important;
}


/* ==========================================================================
   11. CTA STRIP (Vibrant Gradient)
   ========================================================================== */

.iptv-cta-strip {
  background: var(--iptv-gradient-cta);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--iptv-white);
  position: relative;
}

.iptv-cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
  color: var(--iptv-white);
}

.iptv-cta-strip p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.iptv-cta-strip__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.iptv-cta-strip .iptv-btn--primary {
  background: var(--iptv-white);
  color: var(--iptv-black);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.iptv-cta-strip .iptv-btn--primary:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  color: var(--iptv-black);
}

.iptv-cta-strip .iptv-btn--secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--iptv-white);
  background: rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   12. FOOTER (Black)
   ========================================================================== */

.iptv-footer {
  background: var(--iptv-black);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--iptv-grey-border);
}

.iptv-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-2xl);
}

.iptv-footer__brand {
  margin-bottom: var(--space-sm);
}

.iptv-footer__tagline {
  font-size: var(--fs-sm);
  max-width: 280px;
  line-height: var(--lh-relaxed);
  color: var(--iptv-grey-text);
}

.iptv-footer__col-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--iptv-white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.iptv-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.iptv-footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.iptv-footer__links a:hover {
  color: var(--iptv-white);
}

.iptv-footer__bottom {
  max-width: var(--content-max);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--iptv-grey-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
  .iptv-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .iptv-footer__brand-col {
    grid-column: 1 / -1;
  }
  .iptv-footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}


/* ==========================================================================
   SCROLL REVEAL & UTILITIES
   ========================================================================== */

.iptv-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.iptv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.iptv-reveal--delay-1 { transition-delay: 100ms; }
.iptv-reveal--delay-2 { transition-delay: 200ms; }
.iptv-reveal--delay-3 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .iptv-reveal {
    opacity: 1;
    transform: none;
  }
}

.iptv-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;
}

body.iptv-has-fixed-header {
  padding-top: var(--nav-height);
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  padding: 0;
}
