/*
Theme Name: CastleTV IPTV
Theme URI: https://castletv.com
Author: CastleTV
Author URI: https://castletv.com
Description: Premium IPTV streaming landing page theme for WordPress. Fully compatible with Elementor page builder. Features animated hero section, pricing tables, channel logos, testimonials, FAQ accordion, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: castletv
Tags: one-page, landing-page, streaming, iptv, elementor, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =========================================================
   GOOGLE FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* =========================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================= */
:root {
  /* Colors */
  --tm-bg:              hsl(220, 25%, 8%);
  --tm-bg-card:         hsl(220, 25%, 12%);
  --tm-bg-section:      hsl(220, 25%, 10%);
  --tm-primary:         hsl(250, 85%, 60%);
  --tm-primary-hover:   hsl(250, 85%, 55%);
  --tm-accent:          hsl(340, 75%, 55%);
  --tm-cyan:            hsl(200, 100%, 55%);
  --tm-text:            #ffffff;
  --tm-text-muted:      rgba(255,255,255,0.6);
  --tm-text-dim:        rgba(255,255,255,0.4);
  --tm-border:          rgba(255,255,255,0.1);
  --tm-amber:           hsl(40, 90%, 60%);
  --tm-violet:          hsl(270, 80%, 65%);
  --tm-emerald:         hsl(155, 65%, 50%);

  /* Typography */
  --tm-font-display:    'Outfit', sans-serif;
  --tm-font-body:       'Inter', sans-serif;

  /* Gradients */
  --tm-gradient-primary: linear-gradient(135deg, hsl(250,85%,60%) 0%, hsl(280,75%,55%) 50%, hsl(340,75%,55%) 100%);
  --tm-gradient-hero:    linear-gradient(to right, hsl(220,25%,8%), hsl(220,25%,8%), hsl(260,40%,15%));
  --tm-gradient-purple:  linear-gradient(135deg, #7c3aed, #6d28d9);
  --tm-gradient-blue:    linear-gradient(135deg, #3b82f6, #2563eb);
  --tm-gradient-pink:    linear-gradient(135deg, #ec4899, #be185d);

  /* Spacing */
  --tm-radius:     1rem;
  --tm-radius-lg:  1.5rem;
  --tm-radius-xl:  2rem;
  --tm-section-py: 6rem;

  /* Shadows */
  --tm-shadow-card:    0 4px 30px rgba(0,0,0,0.3);
  --tm-shadow-primary: 0 8px 32px rgba(124,58,237,0.3);
  --tm-shadow-glow:    0 0 60px rgba(124,58,237,0.15);

  /* Transitions */
  --tm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tm-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--tm-font-body);
  background-color: var(--tm-bg);
  color: var(--tm-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tm-font-display);
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; transition: var(--tm-transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.tm-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.tm-section { padding: var(--tm-section-py) 0; position: relative; overflow: hidden; }

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

/* =========================================================
   TEXT UTILITIES
   ========================================================= */
.tm-text-gradient {
  background: var(--tm-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-text-gradient-cyan {
  background: linear-gradient(90deg, hsl(200,100%,60%), hsl(230,100%,65%), hsl(260,100%,65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tm-primary);
  margin-bottom: 1.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 99px;
  font-family: var(--tm-font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--tm-transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.tm-btn-primary {
  background: linear-gradient(to right, #7c3aed, #9333ea);
  color: #fff;
  box-shadow: var(--tm-shadow-primary);
}
.tm-btn-primary:hover {
  background: linear-gradient(to right, #6d28d9, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.4);
  color: #fff;
}

.tm-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid var(--tm-border);
}
.tm-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.tm-btn-violet {
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}
.tm-btn-violet:hover {
  background: linear-gradient(to right, #6d28d9, #4338ca);
  transform: translateY(-2px);
  color: #fff;
}

.tm-btn-lg { padding: 1.125rem 2.5rem; font-size: 1.125rem; }
.tm-btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* =========================================================
   NAVIGATION
   ========================================================= */
#tm-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: hsl(220, 25%, 10%);
  border-bottom: 1px solid var(--tm-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--tm-transition);
}

.tm-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.tm-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.tm-logo__icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.tm-logo__icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(200,100%,50%), hsl(260,100%,65%));
  filter: blur(8px);
  opacity: 0.5;
  transition: var(--tm-transition);
}
.tm-logo:hover .tm-logo__icon-glow { opacity: 0.8; }

.tm-logo__icon-shape {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(200,100%,55%), hsl(230,95%,60%), hsl(260,100%,60%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
}

.tm-logo__icon-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
}

.tm-logo__icon-shape svg { width: 1.5rem; height: 1.5rem; color: #fff; position: relative; z-index: 1; }

.tm-logo__text { display: flex; flex-direction: column; }

.tm-logo__name {
  font-family: var(--tm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
}

.tm-logo__name span {
  background: linear-gradient(90deg, hsl(200,100%,60%), hsl(230,100%,65%), hsl(260,100%,65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-logo__sub {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.125rem;
}

/* Nav Links */
.tm-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tm-nav__link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--tm-transition);
}
.tm-nav__link:hover, .tm-nav__link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Nav CTA */
.tm-nav__cta { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.tm-hamburger {
  display: none;
  padding: 0.5rem;
  color: #fff;
  border-radius: 0.5rem;
  background: transparent;
  transition: var(--tm-transition);
}
.tm-hamburger:hover { background: rgba(255,255,255,0.1); }
.tm-hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--tm-transition);
  border-radius: 2px;
}

/* Mobile Menu */
.tm-mobile-menu {
  display: none;
  background: hsl(220,25%,8%);
  border-top: 1px solid var(--tm-border);
}
.tm-mobile-menu.is-open { display: block; }
.tm-mobile-menu__inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tm-mobile-menu__link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--tm-transition);
}
.tm-mobile-menu__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.tm-mobile-menu__divider {
  border-top: 1px solid var(--tm-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#tm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: hsl(220, 25%, 8%);
  padding-top: 5rem;
}

.tm-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--tm-gradient-hero);
}

.tm-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.08) 1px, transparent 1px);
  background-size: 80px 80px;
}

.tm-hero__glow-tr {
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at top right, rgba(168,85,247,0.15), transparent 60%);
}

.tm-hero__glow-bl {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 40%; height: 50%;
  background: radial-gradient(ellipse at bottom, rgba(139,92,246,0.1), transparent 50%);
}

.tm-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

/* Hero Left */
.tm-hero__tag {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: hsl(270,70%,65%);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.tm-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.tm-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 28rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.tm-hero__features { margin-bottom: 2.5rem; }
.tm-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.tm-hero__feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(270,70%,65%);
  flex-shrink: 0;
}

/* Hero Right */
.tm-hero__visual { position: relative; display: flex; justify-content: flex-end; }

.tm-hero__bg-blob {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 85%;
  height: 110%;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(109,40,217,0.2));
  border-radius: 3rem;
  filter: blur(3rem);
}

.tm-hero__img-wrap { position: relative; z-index: 2; }

.tm-hero__main-img {
  width: 100%;
  max-width: 32rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

/* Hero floating badges */
.tm-hero__badge {
  position: absolute;
  z-index: 10;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tm-hero__badge--fun {
  top: -1rem; right: 0;
  background: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
}
.tm-hero__badge--fun p { font-weight: 800; font-size: 1.125rem; color: #111; line-height: 1.2; }
.tm-hero__badge--fun p:last-child { color: hsl(260,85%,55%); }

.tm-hero__badge--4k {
  top: 6rem; right: 2rem;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}
.tm-hero__badge--4k svg { color: hsl(270,70%,55%); width: 1rem; height: 1rem; }

.tm-hero__badge--price {
  bottom: 4rem; left: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  min-width: 200px;
}
.tm-hero__badge--price .label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}
.tm-hero__badge--price .price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tm-hero__badge--price .device-badge {
  background: hsl(142,70%,45%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}
.tm-hero__badge--price .price { font-size: 1.5rem; font-weight: 800; color: #fff; }
.tm-hero__badge--price .period { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

/* Hero floating posters */
.tm-hero__posters {
  position: absolute;
  left: 0;
  top: 25%;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tm-hero__poster-card {
  background: hsl(220,25%,12%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.tm-hero__poster-card img { width: 9rem; height: auto; }
.tm-hero__poster-card .card-body { padding: 0.75rem; }
.tm-hero__poster-card .card-title { font-weight: 700; font-size: 1rem; color: #fff; }
.tm-hero__poster-card .card-sub { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.tm-hero__poster-single {
  position: relative;
  margin-top: 3rem;
}
.tm-hero__poster-single img {
  width: 7rem;
  height: auto;
  border-radius: 0.75rem;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.tm-hero__poster-new {
  position: absolute;
  bottom: 1rem;
  right: 0;
}
.tm-hero__poster-new img {
  width: 6rem;
  height: auto;
  border-radius: 0.75rem;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.tm-badge-pill {
  position: absolute;
  top: -0.5rem; left: 0.5rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 5;
}

.tm-hero__fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--tm-bg), transparent);
}

/* =========================================================
   FEATURES SECTION
   ========================================================= */
#tm-features { background: var(--tm-bg); }

.tm-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.tm-feature-card {
  padding: 1.5rem;
  border-radius: var(--tm-radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--tm-transition);
}
.tm-feature-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}

.tm-feature-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--tm-transition);
}
.tm-feature-card:hover .tm-feature-card__icon { transform: scale(1.05); }
.tm-feature-card__icon svg { width: 1.75rem; height: 1.75rem; color: #fff; }

.tm-feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: var(--tm-transition);
}
.tm-feature-card:hover .tm-feature-card__title { color: hsl(270,70%,65%); }

.tm-feature-card__desc { color: rgba(255,255,255,0.65); line-height: 1.7; font-size: 0.9375rem; }

/* =========================================================
   PRICING SECTION
   ========================================================= */
#tm-pricing {
  background: linear-gradient(180deg, var(--tm-bg) 0%, hsl(230,25%,10%) 100%);
}

.tm-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: stretch;
}

.tm-pricing-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--tm-radius-xl);
  display: flex;
  flex-direction: column;
  transition: var(--tm-transition);
}
.tm-pricing-card:hover { transform: translateY(-6px); }

.tm-pricing-card--default {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.tm-pricing-card--default:hover { border-color: rgba(124,58,237,0.25); }

.tm-pricing-card--popular {
  background: linear-gradient(180deg, rgba(124,58,237,0.15) 0%, rgba(79,70,229,0.05) 100%);
  border: 2px solid hsl(260,75%,55%);
  box-shadow: 0 8px 40px rgba(124,58,237,0.2);
}

.tm-pricing-card__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.375rem 1rem;
  background: var(--tm-gradient-primary);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.tm-pricing-card__head { text-align: center; margin-bottom: 1.5rem; }
.tm-pricing-card__name { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.tm-pricing-card__period { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.tm-pricing-card__price { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.tm-pricing-card--popular .tm-pricing-card__price { color: hsl(260,75%,65%); }

.tm-pricing-card__features { flex: 1; margin-bottom: 1.5rem; }
.tm-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tm-pricing-card__feature:last-child { border-bottom: none; }
.tm-pricing-card__feature svg {
  width: 1rem;
  height: 1rem;
  color: hsl(260,75%,60%);
  flex-shrink: 0;
  margin-top: 2px;
}

.tm-pricing-card .tm-btn { width: 100%; justify-content: center; }

/* =========================================================
   CHANNELS / LOGOS SECTION
   ========================================================= */
#tm-channels {
  background: linear-gradient(180deg, hsl(230,25%,10%) 0%, var(--tm-bg) 100%);
}

.tm-channels__sub-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
}
.tm-channels__sub-title svg { width: 1.25rem; height: 1.25rem; color: hsl(260,75%,60%); }

.tm-league-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-bottom: 5rem;
}

.tm-league-tile {
  position: relative;
  width: 8rem;
  height: 8rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: var(--tm-transition);
  cursor: pointer;
}
.tm-league-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.tm-league-tile--lg { width: 10rem; height: 10rem; }

.tm-league-tile img {
  height: 3.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--tm-transition);
  margin-bottom: 0.5rem;
}
.tm-league-tile--lg img { height: 5rem; }
.tm-league-tile:hover img { transform: scale(1.1); }

.tm-league-tile__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-align: center;
  transition: var(--tm-transition);
}
.tm-league-tile:hover .tm-league-tile__name { color: rgba(255,255,255,0.9); }

/* Marquee */
.tm-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
}
.tm-marquee-wrap::before,
.tm-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10rem;
  z-index: 2;
  pointer-events: none;
}
.tm-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--tm-bg), transparent); }
.tm-marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--tm-bg), transparent); }

.tm-marquee-row { overflow: hidden; margin-bottom: 1rem; }
.tm-marquee-track {
  display: flex;
  width: max-content;
}
.tm-marquee-track--fwd  { animation: tm-marquee-fwd  40s linear infinite; }
.tm-marquee-track--rev  { animation: tm-marquee-rev  45s linear infinite; }

@keyframes tm-marquee-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tm-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.tm-channel-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  transition: var(--tm-transition);
}
.tm-channel-pill:hover { border-color: rgba(124,58,237,0.3); background: rgba(255,255,255,0.07); }

.tm-channel-pill__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.tm-channel-pill__name { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); }
.tm-channel-pill:hover .tm-channel-pill__name { color: rgba(255,255,255,0.9); }

/* Stats */
.tm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}

.tm-stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--tm-transition);
}
.tm-stat-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.3); }
.tm-stat-card svg { width: 2rem; height: 2rem; margin: 0 auto 0.75rem; }
.tm-stat-card .value { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.tm-stat-card .label { font-size: 0.875rem; color: rgba(255,255,255,0.55); }

/* =========================================================
   FREE TRIAL SECTION
   ========================================================= */
#tm-free-trial {
  background: linear-gradient(135deg, hsl(270,30%,15%) 0%, hsl(300,20%,12%) 50%, hsl(200,30%,12%) 100%);
}

.tm-free-trial__card {
  max-width: 40rem;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--tm-radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 8px 60px rgba(124,58,237,0.15);
  position: relative;
  z-index: 2;
}

.tm-free-trial__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #7c3aed, #9333ea, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}
.tm-free-trial__icon svg { width: 2rem; height: 2rem; color: #fff; }

.tm-free-trial__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; color: #fff; }
.tm-free-trial__desc { color: rgba(255,255,255,0.6); max-width: 28rem; margin: 0 auto 2rem; line-height: 1.7; }

/* =========================================================
   TESTIMONIALS SECTION
   ========================================================= */
#tm-testimonials {
  background: linear-gradient(135deg, hsl(270,30%,12%) 0%, hsl(240,30%,10%) 50%, hsl(270,30%,12%) 100%);
}

.tm-testimonials__trust {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tm-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  font-size: 0.9375rem;
}

.tm-stars { display: flex; gap: 2px; }
.tm-star { width: 1.25rem; height: 1.25rem; color: hsl(40,90%,60%); fill: hsl(40,90%,60%); }
.tm-trust-badge strong { color: #fff; font-weight: 700; }
.tm-trust-badge span { color: rgba(255,255,255,0.65); }

.tm-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.tm-testimonial-card {
  padding: 1.5rem;
  border-radius: var(--tm-radius-lg);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  transition: var(--tm-transition);
}
.tm-testimonial-card:hover {
  border-color: rgba(167,139,250,0.4);
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}

.tm-testimonial-card__quote { width: 2rem; height: 2rem; color: rgba(167,139,250,0.5); margin-bottom: 1rem; fill: currentColor; }
.tm-testimonial-card__text { color: rgba(255,255,255,0.85); line-height: 1.75; flex: 1; margin-bottom: 1.5rem; font-size: 0.9375rem; }

.tm-testimonial-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.tm-testimonial-card__name-wrap { display: flex; align-items: center; gap: 0.5rem; }
.tm-testimonial-card__name { font-weight: 700; color: #fff; font-size: 0.9375rem; }
.tm-verified { width: 1rem; height: 1rem; color: hsl(155,65%,50%); fill: currentColor; }
.tm-testimonial-card__loc { font-size: 0.8125rem; color: rgba(167,139,250,0.7); margin-top: 1px; }

.tm-mini-stars { display: flex; gap: 1px; margin-bottom: 4px; }
.tm-mini-star { width: 0.875rem; height: 0.875rem; color: hsl(40,90%,60%); fill: hsl(40,90%,60%); }
.tm-testimonial-card__date { font-size: 0.75rem; color: rgba(167,139,250,0.55); text-align: right; }

.tm-testimonials__footer {
  text-align: center;
  margin-top: 3rem;
  color: rgba(167,139,250,0.75);
  font-size: 1rem;
}
.tm-testimonials__footer strong { color: hsl(40,90%,60%); }

/* =========================================================
   FAQ SECTION
   ========================================================= */
#tm-faq {
  background: linear-gradient(135deg, hsl(35,40%,12%) 0%, hsl(20,35%,10%) 50%, hsl(45,40%,12%) 100%);
}

.tm-faq__list { max-width: 48rem; margin: 0 auto; }

.tm-faq-item {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--tm-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--tm-transition);
}
.tm-faq-item.is-open { border-color: rgba(251,191,36,0.4); background: rgba(255,255,255,0.09); }

.tm-faq-item__trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-family: var(--tm-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: var(--tm-transition);
}
.tm-faq-item__trigger:hover { color: hsl(40,90%,65%); }
.tm-faq-item.is-open .tm-faq-item__trigger { color: hsl(40,90%,65%); }

.tm-faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(40,90%,60%);
  transition: transform 0.3s ease;
}
.tm-faq-item.is-open .tm-faq-item__icon { transform: rotate(180deg); }

.tm-faq-item__body { display: none; padding: 0 1.5rem 1.25rem; }
.tm-faq-item.is-open .tm-faq-item__body { display: block; }
.tm-faq-item__body p { color: rgba(251,191,36,0.8); line-height: 1.75; font-size: 0.9375rem; }

/* =========================================================
   FOOTER
   ========================================================= */
#tm-footer {
  background: linear-gradient(180deg, hsl(220,25%,10%) 0%, hsl(220,25%,6%) 100%);
  position: relative;
  overflow: hidden;
}

.tm-footer__line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
}

.tm-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}

.tm-footer__brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tm-footer__socials { display: flex; gap: 0.75rem; }
.tm-footer__social {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: var(--tm-transition);
}
.tm-footer__social:hover { color: hsl(230,80%,65%); border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }
.tm-footer__social svg { width: 1.25rem; height: 1.25rem; }

.tm-footer__col-title { font-weight: 600; color: #fff; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.tm-footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.tm-footer__link { font-size: 0.875rem; color: rgba(255,255,255,0.4); transition: var(--tm-transition); }
.tm-footer__link:hover { color: hsl(230,80%,65%); }

.tm-footer__contact { display: flex; flex-direction: column; gap: 1rem; }
.tm-footer__contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.tm-footer__contact-item svg { width: 1.25rem; height: 1.25rem; color: hsl(230,80%,65%); flex-shrink: 0; margin-top: 1px; }

.tm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.tm-footer__copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }
.tm-footer__available { font-size: 0.875rem; color: hsl(230,80%,65%); }

/* =========================================================
   SECTION HEADERS (shared)
   ========================================================= */
.tm-section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}
.tm-section-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; color: #fff; }
.tm-section-header p { font-size: 1.125rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* =========================================================
   DECORATIVE BLOBS
   ========================================================= */
.tm-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  pointer-events: none;
  animation: tm-blob-float 7s ease-in-out infinite;
}
@keyframes tm-blob-float {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(2%, 2%); }
  66% { transform: scale(0.95) translate(-1%, 1%); }
}

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
#tm-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--tm-gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tm-shadow-primary);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(1rem);
  transition: var(--tm-transition);
  border: none;
}
#tm-scroll-top.is-visible { opacity: 1; transform: translateY(0); }
#tm-scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(124,58,237,0.5); }
#tm-scroll-top svg { width: 1.25rem; height: 1.25rem; }

/* =========================================================
   ELEMENTOR INTEGRATION
   ========================================================= */

/* Make Elementor sections full-width */
.elementor-section.elementor-section-full_width .elementor-container,
.elementor-section.elementor-section-boxed .elementor-container {
  max-width: 1280px;
}

/* Override Elementor defaults to keep dark theme */
.elementor-widget-container { color: inherit; }

/* Ensure custom sections inside Elementor keep their styling */
[data-elementor-type="wp-page"] #tm-navbar { display: none; }
[data-elementor-type="wp-page"] #tm-footer { display: none; }

/* Elementor color variables - mapped to theme */
.elementor-kit-tag h1, .elementor-kit-tag h2,
.elementor-kit-tag h3, .elementor-kit-tag h4 { font-family: var(--tm-font-display); }

/* =========================================================
   WORDPRESS MENU SUPPORT
   ========================================================= */
.tm-nav__links .menu { display: flex; align-items: center; gap: 0.25rem; }
.tm-nav__links .menu-item a { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: var(--tm-transition); }
.tm-nav__links .menu-item a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tm-nav__links .current-menu-item a { color: #fff; background: rgba(255,255,255,0.08); }

/* =========================================================
   MOVIE / VOD CAROUSEL  (#tm-movies)
   ========================================================= */

/* Section background — dark, matching the channels/pricing dark sections */
.tm-movies {
  background: linear-gradient(180deg, hsl(220,25%,8%) 0%, hsl(230,25%,10%) 100%);
  overflow: hidden;
}

/* Full-bleed wrapper that sits outside the container */
.tm-movies__carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
  /* Pause ALL tracks on hover so users can inspect posters */
  cursor: pointer;
}
.tm-movies__carousel-wrap:hover .tm-movies__track {
  animation-play-state: paused;
}

/* Fade-out edges (left & right) */
.tm-movies__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.tm-movies__fade--left {
  left: 0;
  background: linear-gradient(to right, hsl(220,25%,8%), transparent);
}
.tm-movies__fade--right {
  right: 0;
  background: linear-gradient(to left, hsl(220,25%,8%), transparent);
}

/* Each scrolling row */
.tm-movies__track {
  display: flex;
  gap: 0.75rem;
  width: max-content;          /* grows to fit all duplicated posters */
  padding: 0.5rem 0;
}
.tm-movies__track--fwd {
  animation: tm-scroll-left  35s linear infinite;
  margin-bottom: 0.75rem;
}
.tm-movies__track--rev {
  animation: tm-scroll-right 40s linear infinite;
}

/* Individual poster card */
.tm-movie-poster {
  position: relative;
  width: 120px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tm-movie-poster:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.tm-movie-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Play-icon overlay, revealed on hover */
.tm-movie-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  color: #fff;
}
.tm-movie-poster:hover .tm-movie-poster__overlay {
  background: rgba(0, 0, 0, 0.45);
}
.tm-movie-poster__overlay svg {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tm-movie-poster:hover .tm-movie-poster__overlay svg {
  opacity: 1;
}

/* Keyframes — scroll left (row 1) and right (row 2).
   Translate by exactly –50% so the duplicated second half seamlessly
   replaces the first, creating an infinite loop. */
@keyframes tm-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes tm-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Respect reduce-motion preference */
@media (prefers-reduced-motion: reduce) {
  .tm-movies__track {
    animation: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .tm-hero__inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .tm-hero__visual { display: none; }
  .tm-hero__subtitle { max-width: 100%; }
  .tm-pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --tm-section-py: 4rem; }
  .tm-nav__links, .tm-nav__cta { display: none; }
  .tm-hamburger { display: flex; flex-direction: column; }
  .tm-pricing__grid { grid-template-columns: 1fr; max-width: 24rem; }
  .tm-features__grid { grid-template-columns: 1fr; }
  .tm-testimonials__grid { grid-template-columns: 1fr; }
  .tm-footer__grid { grid-template-columns: 1fr 1fr; }
  .tm-footer__bottom { flex-direction: column; text-align: center; }
  .tm-league-tile { width: 6rem; height: 6rem; }
  .tm-league-tile--lg { width: 7.5rem; height: 7.5rem; }
  .tm-league-tile img { height: 2.5rem; }
  .tm-league-tile--lg img { height: 3.5rem; }
  .tm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-movie-poster { width: 100px; }
  .tm-movies__fade { width: 3rem; }
}

@media (max-width: 480px) {
  .tm-footer__grid { grid-template-columns: 1fr; }
  .tm-hero__title { font-size: 2.25rem; }
  .tm-btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes tm-fade-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes tm-pulse-slow {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.6; }
}
@keyframes tm-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.tm-animate-up   { animation: tm-fade-up  0.7s ease both; }
.tm-animate-in   { animation: tm-fade-in  0.5s ease both; }
.tm-animate-float { animation: tm-float   5s ease-in-out infinite; }

/* Intersection Observer classes */
.tm-reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.tm-reveal.is-visible { opacity: 1; transform: translateY(0); }
.tm-reveal-delay-1 { transition-delay: 0.1s; }
.tm-reveal-delay-2 { transition-delay: 0.2s; }
.tm-reveal-delay-3 { transition-delay: 0.3s; }
.tm-reveal-delay-4 { transition-delay: 0.4s; }
.tm-reveal-delay-5 { transition-delay: 0.5s; }

/* =========================================================
   WORDPRESS DEFAULTS RESET
   ========================================================= */
.wp-block-image { margin: 0; }
.alignnone, .alignleft, .alignright, .aligncenter, .alignwide, .alignfull { max-width: 100%; }
.site-content { padding-top: 0; }
#content { padding-top: 0; }
