/* ============================================================
   tw.css — Self-hosted Tailwind replacement for tvsmartersplayerlite.com
   Generated from actual class usage. No CDN dependency.
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Custom Properties (design tokens) ───────────────────── */
:root {
  --color-primary: #24389c;
  --color-secondary: #b80049;
  --color-background: #faf8ff;
  --color-surface: #faf8ff;
  --color-surface-container: #ededf6;
  --color-surface-container-low: #f3f3fb;
  --color-surface-container-high: #e7e7f0;
  --color-surface-container-lowest: #ffffff;
  --color-on-background: #191b21;
  --color-on-surface: #191b21;
  --color-on-surface-variant: #454652;
  --color-outline: #757684;
  --color-outline-variant: #c5c5d4;
  --color-primary-container: #3f51b5;
  --color-primary-fixed: #dee0ff;
  --color-inverse-primary: #bac3ff;
  --color-secondary-container: #e2165f;
  --color-tertiary: #0035af;
  --color-surface-tint: #4355b9;
  --color-surface-dim: #d9d9e2;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-margin: 32px;
  --spacing-gutter: 24px;
  --max-width: 1280px;
}

/* ── Display ──────────────────────────────────────────────── */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ── Flex ─────────────────────────────────────────────────── */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Gap ──────────────────────────────────────────────────── */
.gap-2 { gap: 8px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.gap-gutter { gap: var(--spacing-gutter); }

/* ── Position ─────────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-1\/2 { left: 50%; }
.-top-4 { top: -16px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ── Sizing ───────────────────────────────────────────────── */
.w-full { width: 100%; }
.w-9 { width: 36px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-64 { width: 256px; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-64 { height: 256px; }
.min-h-\[680px\] { min-height: 680px; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.max-w-\[1280px\] { max-width: 1280px; }
.max-w-\[520px\] { max-width: 520px; }
.max-w-\[600px\] { max-width: 600px; }
.max-w-\[700px\] { max-width: 700px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-max-width { max-width: var(--max-width); }

/* ── Spacing — Padding ────────────────────────────────────── */
.p-3 { padding: 12px; }
.p-6 { padding: 24px; }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-sm { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-lg { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-xl { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }
.px-margin { padding-left: var(--spacing-margin); padding-right: var(--spacing-margin); }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.py-xs { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-\[60px\] { padding-top: 60px; padding-bottom: 60px; }
.py-\[80px\] { padding-top: 80px; padding-bottom: 80px; }
.pt-8 { padding-top: 32px; }
.pt-20 { padding-top: 80px; }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-xl { padding-top: var(--spacing-xl); }
.pb-1 { padding-bottom: 4px; }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ── Spacing — Margin ─────────────────────────────────────── */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 24px; margin-bottom: 24px; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-auto { margin-top: auto; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-\[60px\] { margin-bottom: 60px; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.ml-4 { margin-left: 16px; }
.ml-6 { margin-left: 24px; }
.ml-sm { margin-left: var(--spacing-sm); }
.mr-xs { margin-right: var(--spacing-xs); }

/* ── Typography ───────────────────────────────────────────── */
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }
.text-\[20px\] { font-size: 20px; }
.text-\[28px\] { font-size: 28px; }
.text-\[32px\] { font-size: 32px; }
.text-\[48px\] { font-size: 48px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.whitespace-nowrap { white-space: nowrap; }
.align-middle { vertical-align: middle; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Custom font scale */
.font-display-lg { font-family: Inter, sans-serif; }
.font-headline-lg { font-family: Inter, sans-serif; }
.font-headline-md { font-family: Inter, sans-serif; }
.font-title-lg { font-family: Inter, sans-serif; }
.font-body-lg { font-family: Inter, sans-serif; }
.font-body-md { font-family: Inter, sans-serif; }
.font-label-md { font-family: Inter, sans-serif; }
.font-caption { font-family: Inter, sans-serif; }
.text-display-lg { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; font-weight: 800; }
.text-headline-lg { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; font-weight: 700; }
.text-headline-md { font-size: 24px; line-height: 32px; font-weight: 700; }
.text-title-lg { font-size: 20px; line-height: 28px; font-weight: 600; }
.text-body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 24px; font-weight: 400; }
.text-label-md { font-size: 14px; line-height: 20px; font-weight: 600; }
.text-caption { font-size: 12px; line-height: 16px; font-weight: 500; }

/* ── Colors — Text ────────────────────────────────────────── */
.text-white { color: #ffffff; }
.text-primary { color: var(--color-primary); }
.text-primary-container { color: var(--color-primary-container); }
.text-primary-fixed { color: var(--color-primary-fixed); }
.text-surface-tint { color: var(--color-surface-tint); }
.text-on-background { color: var(--color-on-background); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-\[\#24389c\] { color: #24389c; }
.text-\[\#E91E63\] { color: #E91E63; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-900 { color: #1e3a8a; }
.text-green-700 { color: #15803d; }
.text-pink-600 { color: #db2777; }
.text-yellow-700 { color: #a16207; }

/* ── Colors — Background ──────────────────────────────────── */
.bg-white { background-color: #ffffff; }
.bg-background { background-color: var(--color-background); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-primary { background-color: var(--color-primary); }
.bg-\[\#24389c\] { background-color: #24389c; }
.bg-\[\#E91E63\] { background-color: #E91E63; }
.bg-\[\#0d1117\] { background-color: #0d1117; }
.bg-\[\#080b14\] { background-color: #080b14; }
.bg-\[\#E91E63\]\/10 { background-color: rgba(233,30,99,0.1); }
.bg-primary-container\/10 { background-color: rgba(63,81,181,0.1); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/80 { background-color: rgba(255,255,255,0.8); }
.bg-white\/90 { background-color: rgba(255,255,255,0.9); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-900 { background-color: #1e3a8a; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-pink-600 { background-color: #db2777; }
.bg-yellow-50 { background-color: #fefce8; }

/* ── Border ───────────────────────────────────────────────── */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-collapse { border-collapse: collapse; }
.border-primary { border-color: var(--color-primary); }
.border-outline-variant { border-color: var(--color-outline-variant); }
.border-outline-variant\/20 { border-color: rgba(197,197,212,0.2); }
.border-outline-variant\/30 { border-color: rgba(197,197,212,0.3); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-\[\#24389c\] { border-color: #24389c; }
.border-\[\#24389c\]\/20 { border-color: rgba(36,56,156,0.2); }
.border-\[\#E91E63\] { border-color: #E91E63; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-800 { border-color: #1f2937; }
.border-blue-600 { border-color: #2563eb; }
.border-blue-900 { border-color: #1e3a8a; }
.border-green-600 { border-color: #16a34a; }
.border-pink-600 { border-color: #db2777; }
.border-yellow-500 { border-color: #eab308; }
.border-yellow-600 { border-color: #ca8a04; }

/* ── Border Radius ────────────────────────────────────────── */
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }
.rounded-r-lg { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.rounded-\[12px\] { border-radius: 12px; }
.rounded-\[16px\] { border-radius: 16px; }
.rounded-\[20px\] { border-radius: 20px; }
.rounded-\[24px\] { border-radius: 24px; }

/* ── Overflow ─────────────────────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ── Opacity ──────────────────────────────────────────────── */
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }

/* ── Backdrop ─────────────────────────────────────────────── */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ── Transform ────────────────────────────────────────────── */
.transform { transform: translateZ(0); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-4 { transform: translateY(16px); }

/* ── Transition ───────────────────────────────────────────── */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.duration-200 { transition-duration: 200ms; }
.duration-500 { transition-duration: 500ms; }

/* ── Cursor ───────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }

/* ── Outline ──────────────────────────────────────────────── */
.outline-none { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(36,56,156,0.3); }
.focus\:ring-\[\#E91E63\]:focus { box-shadow: 0 0 0 2px rgba(233,30,99,0.3); }

/* ── List ─────────────────────────────────────────────────── */
.list-none { list-style: none; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }

/* ── Space ────────────────────────────────────────────────── */
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-sm > * + * { margin-top: var(--spacing-sm); }

/* ── Object ───────────────────────────────────────────────── */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ── Grayscale ────────────────────────────────────────────── */
.grayscale { filter: grayscale(100%); }

/* ── Col span ─────────────────────────────────────────────── */
.col-span-2 { grid-column: span 2 / span 2; }

/* ── Shadow ───────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.07); }

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:justify-start { justify-content: flex-start; }
  .md\:text-left { text-align: left; }
  .md\:w-72 { width: 288px; }
  .md\:w-auto { width: auto; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:w-\[320px\] { width: 320px; }
}

/* ── Hover utilities ──────────────────────────────────────── */
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-secondary:hover { color: var(--color-secondary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-\[\#E91E63\]:hover { color: #E91E63; }
.hover\:text-pink-600:hover { color: #db2777; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-surface:hover { background-color: var(--color-surface); }
.hover\:bg-surface-container:hover { background-color: var(--color-surface-container); }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low); }
.hover\:grayscale-0:hover { filter: grayscale(0); }

/* ── Active ───────────────────────────────────────────────── */
.active\:scale-95:active { transform: scale(0.95); }

/* ── Prose (blog content) ─────────────────────────────────── */
.prose { max-width: 65ch; color: var(--color-on-surface); }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--color-on-background); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--color-on-background); }
.prose p, .prose li { color: var(--color-on-surface-variant); line-height: 1.8; margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose-lg { font-size: 1.125rem; }
.max-w-none.prose { max-width: none; }

/* ── Device Card Selector ─────────────────────────────────── */
.device-card {
  border: 1.5px solid #c5c5d4;
  border-radius: 10px;
  padding: 10px 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.device-card:hover {
  border-color: #24389c !important;
  background: rgba(36,56,156,0.04) !important;
}
.device-card.selected {
  border-color: #E91E63 !important;
  background: rgba(233,30,99,0.06) !important;
}
.device-card.selected div:last-child {
  color: #E91E63 !important;
}
.other-device-btn {
  width: 100%;
  border: 1.5px dashed #c5c5d4;
  border-radius: 10px;
  padding: 10px;
  background: #faf8ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #757684;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.other-device-btn.active {
  border-color: #24389c !important;
  background: rgba(36,56,156,0.04) !important;
  color: #24389c !important;
}
.other-device-input {
  display: none;
  margin-top: 8px;
  border: 1.5px solid #24389c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  outline: none;
}

/* Smooth Page Transitions */
body {
  animation: smoothFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes smoothFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
