/* ============================================
   Display CSS - Pre-compiled Tailwind utilities
   For TV browser compatibility (no JS required)
   ============================================ */

/* ---- Base Reset (Tailwind Preflight) ---- */
*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    line-height: inherit;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100vh;
    max-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, canvas {
    display: block;
    vertical-align: middle;
}
img {
    max-width: 100%;
    height: auto;
}

/* ---- Display ---- */
.flex { display: -webkit-flex; display: flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }

/* ---- Flexbox ---- */
.flex-col { -webkit-flex-direction: column; flex-direction: column; }
.flex-1 { -webkit-flex: 1 1 0%; flex: 1 1 0%; }
.flex-shrink-0 { -webkit-flex-shrink: 0; flex-shrink: 0; }
.items-center { -webkit-align-items: center; align-items: center; }
.items-start { -webkit-align-items: flex-start; align-items: flex-start; }
.justify-between { -webkit-justify-content: space-between; justify-content: space-between; }
.justify-center { -webkit-justify-content: center; justify-content: center; }

/* ---- Grid ---- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-full { grid-column: 1 / -1; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ---- Position ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ---- Spacing: Padding ---- */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pr-4 { padding-right: 1rem; }

/* ---- Spacing: Margin ---- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Spacing: Space Between ---- */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ---- Sizing ---- */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }

/* ---- Typography ---- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Borders ---- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.5); }

/* ---- Text Colors ---- */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-blue-400 { color: #60A5FA; }
.text-blue-500 { color: #3B82F6; }
.text-yellow-400 { color: #FACC15; }
.text-green-400 { color: #4ADE80; }
.text-purple-400 { color: #A78BFA; }
.text-red-400 { color: #F87171; }
.text-transparent { color: transparent; }

/* ---- Background Colors ---- */
.bg-blue-500 { background-color: #3B82F6; }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }
.bg-yellow-400 { background-color: #FACC15; }
.bg-yellow-500\/20 { background-color: rgba(234, 179, 8, 0.2); }
.bg-green-400 { background-color: #4ADE80; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-purple-500\/20 { background-color: rgba(139, 92, 246, 0.2); }
.bg-gray-600 { background-color: #4B5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-gray-900\/70 { background-color: rgba(17, 24, 39, 0.7); }

/* ---- Gradients ---- */
.bg-gradient-to-r {
    background-image: -webkit-linear-gradient(left, #60A5FA, #8B5CF6, #EC4899);
    background-image: linear-gradient(to right, #60A5FA, #8B5CF6, #EC4899);
}
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---- Effects ---- */
.opacity-50 { opacity: 0.5; }
.scale-125 { -webkit-transform: scale(1.25); transform: scale(1.25); }
.transform { -webkit-transform: translateZ(0); transform: translateZ(0); }

/* ---- Transitions ---- */
.transition-all {
    -webkit-transition: all 150ms ease;
    transition: all 150ms ease;
}
.transition-transform {
    -webkit-transition: -webkit-transform 150ms ease;
    transition: transform 150ms ease;
}
.duration-300 { -webkit-transition-duration: 300ms; transition-duration: 300ms; }
.duration-500 { -webkit-transition-duration: 500ms; transition-duration: 500ms; }

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

/* ---- Object Fit ---- */
.object-contain { -o-object-fit: contain; object-fit: contain; }

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

/* ---- Hover States ---- */
.hover\:scale-105:hover { -webkit-transform: scale(1.05); transform: scale(1.05); }
.hover\:bg-gray-800\/70:hover { background-color: rgba(31, 41, 55, 0.7); }
.hover\:bg-gray-500:hover { background-color: #6B7280; }

/* ---- TV-fit: force everything in viewport ---- */
.slide > div {
    max-height: 100vh;
    overflow: hidden;
}
.rounded-lg { border-radius: 0.5rem; }

/* ========== LIQUID GLASS ========== */
.glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.18);
    -webkit-box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.05);
    border-radius: 16px;
}
.glass-subtle {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    border-radius: 12px;
}
.glass-accent {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.25);
    -webkit-box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.1);
    border-radius: 20px;
}
.glass-demand {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    border-radius: 10px;
}

/* ========== LOADING DOTS ========== */
@-webkit-keyframes dotBounce {
    0%, 80%, 100% { opacity: 0.3; -webkit-transform: scale(0.8); }
    40% { opacity: 1; -webkit-transform: scale(1.2); }
}
@keyframes dotBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}
.loading-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    -webkit-animation: dotBounce 1.4s infinite ease-in-out;
    animation: dotBounce 1.4s infinite ease-in-out;
}
.loading-dot:nth-child(1) { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; background: #60A5FA; }
.loading-dot:nth-child(2) { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; background: #A78BFA; }
.loading-dot:nth-child(3) { background: #F472B6; }
