.header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  padding: 1rem !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5) !important;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color)) !important;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background-color: var(--bg-light);
  transform: scale(1.1);
}

.theme-icon {
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-icon {
  transform: rotate(180deg);
}

.hero {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.platform-card {
  background: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.platform-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
}

.platform-card:hover::before {
  transform: scaleX(1);
}

.platform-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.platform-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.platform-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.platform-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-image {
  transform: scale(1.1);
}

.platform-plex:hover {
  border-color: var(--plex-color);
}

.platform-emby:hover {
  border-color: var(--emby-color);
}

.platform-jellyfin:hover {
  border-color: var(--jellyfin-color);
}

.preroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.preroll-card {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.preroll-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(99, 102, 241, 0.1);
}

.preroll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preroll-card:hover::before {
  opacity: 1;
}

.preroll-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-light), #f8fafc);
  transition: transform 0.3s ease;
}

.preroll-card:hover .preroll-thumbnail {
  transform: scale(1.05);
}

.preroll-body {
  padding: 1.5rem;
  position: relative;
}

.preroll-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preroll-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-item {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-badge.plex {
  background: var(--plex-color);
  color: white;
}

.platform-badge.emby {
  background: var(--emby-color);
  color: white;
}

.platform-badge.jellyfin {
  background: var(--jellyfin-color);
  color: white;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-accent);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .duration-badge {
  background: var(--bg-accent);
  color: var(--text-light);
  border-color: var(--border-light);
}

.search-section {
  background: var(--bg-light);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.search-input {
  flex: 1;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
}

.filter-sidebar {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-select,
.filter-input {
  width: 100%;
}

.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-left img {
  height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
}

.footer-left p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-center h3 {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-right h3 {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-tutorials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-tutorials h3 {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}


.footer-link {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.video-container .html5-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  background: #000;
  object-fit: contain;
}

/* Video player loading/error states */
.video-container .error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.preroll-detail .preroll-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.preroll-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.preroll-description {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 1.5rem 0;
}

.preroll-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.browse-header,
.platform-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.platform-plex-header {
  background: linear-gradient(135deg, var(--plex-color), #f59e0b);
}

.platform-emby-header {
  background: linear-gradient(135deg, var(--emby-color), #16a34a);
}

.platform-jellyfin-header {
  background: linear-gradient(135deg, var(--jellyfin-color), #0284c7);
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-bar .filter-select,
.filter-bar .filter-input {
  flex: 1;
  min-width: 200px;
}

.contact-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 100px 0 80px;
  text-align: center;
}

.contact-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.contact-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

.contact-main {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.contact-method-icon {
  font-size: 2rem;
  background: var(--bg-accent);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-method-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-method-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contact-method-link:hover {
  color: var(--secondary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.contact-faq {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-faq h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.faq-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.faq-link:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.contact-form-wrapper {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.contact-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form-modern .form-group {
  margin-bottom: 0;
}

.contact-form-modern label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.contact-form-modern input,
.contact-form-modern select,
.contact-form-modern textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-form-modern input:focus,
.contact-form-modern select:focus,
.contact-form-modern textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.contact-form-modern textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-modern button {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   SVG Icon System
   ===================================================== */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

.icon-xxl {
  width: 4rem;
  height: 4rem;
}

/* Theme toggle specific styling */
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-icon svg {
  transform: rotate(180deg);
}

/* Benefit/Feature icons */
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.benefit-item h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Contact method icons */
.contact-method-icon {
  font-size: 1rem;
  background: var(--bg-accent);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--primary-color);
}

.contact-method-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Error illustration icon */
.error-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.error-illustration svg {
  width: 4rem;
  height: 4rem;
  fill: currentColor;
}

/* Mobile navigation toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--bg-light);
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Mobile close button - hidden by default */
.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-close-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .logo {
    order: 1;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }

  .nav.active {
    display: flex !important;
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .nav .btn-cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-nav-overlay.active {
    display: block;
  }

  .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .mobile-close-btn:hover {
    background: var(--bg-light);
  }
}

/* Dark mode logo inversion */
[data-theme="dark"] .logo img,
[data-theme="dark"] .footer-left img {
  filter: brightness(0) invert(1);
}