/* ═══════════════════════════════════════════════════════════════
   RETRO TV COLOUR PALETTE SECTION
═══════════════════════════════════════════════════════════════ */

.tv-palette-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.tv-palette-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 820px) 1fr;
    gap: 2rem;
    align-items: start;
}

.tv-stage {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    justify-self: start;
    perspective: 900px;
    min-height: 820px;
    position: relative;
    gap: 0;
    padding-right: 0;
}

.tv-stage,
#tvStageInner,
.tv-wrap,
.tv-wrap *,
.tv-wrap *::before,
.tv-wrap *::after,
.tv-body,
.tv-body *,
.tv-bezel,
.tv-screen,
.tv-ch-dot {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
}

/* ── ANTENNA — inside .tv-body, protrudes upward from top edge ── */
.tv-antenna-wrap {
    position: absolute;
    /* Negative top so the base sits flush with tv-body top, rods extend above */
    top: -78px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 90px;
    pointer-events: none;
    z-index: 20;
}

.tv-antenna-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tv-antenna-base {
    fill: #2e2318;
    stroke: #5a4530;
    stroke-width: 1.5;
}

.tv-antenna-rod {
    stroke: #7a6248;
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}

.tv-antenna-rod-inner {
    stroke: #c4a882;
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.35;
}

.tv-antenna-ball {
    fill: #c4a882;
    filter: drop-shadow(0 0 4px rgba(196,168,130,0.4));
}

.tv-antenna-pivot {
    fill: #3a2a1a;
    stroke: #7a6248;
    stroke-width: 1.5;
}

/* ── TV WRAP ── */
.tv-wrap {
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(3deg);
    transform-style: preserve-3d;
    filter: drop-shadow(40px 30px 60px rgba(0,0,0,0.45)) drop-shadow(8px 8px 20px rgba(0,0,0,0.3));
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    outline: none;
    align-self: flex-start;
    /* Extra top margin so antenna (78px) has room above the stage */
    margin-top: 100px;
    position: relative;
}

.tv-wrap:active {
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(3deg) scale(0.97);
}

.tv-body {
    width: 380px;
    background: linear-gradient(160deg, #4a3a2a 0%, #2e2318 40%, #1e1610 70%, #2a1e14 100%);
    border-radius: 22px 22px 28px 28px;
    padding: 22px 22px 26px;
    position: relative;
    overflow: visible;
    border: 2px solid #5a4530;
    box-shadow:
        inset 0 2px 4px rgba(255,200,120,0.08),
        inset 0 -4px 12px rgba(0,0,0,0.5),
        4px 0 0 #1a1208,
        8px 4px 0 #110d07,
        0 6px 0 #1a1208,
        0 12px 6px #0d0908;
    transform-style: preserve-3d;
}

.tv-body::before {
    content: '';
    position: absolute;
    top: 2px; right: -10px;
    width: 10px;
    height: calc(100% - 4px);
    background: linear-gradient(to bottom, #1a1208, #0d0908 50%, #1a1208);
    border-radius: 0 6px 6px 0;
    transform: rotateY(90deg) translateZ(-5px);
    clip-path: polygon(0 0, 100% 8px, 100% calc(100% - 8px), 0 100%);
}

.tv-body::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 2px;
    width: calc(100% - 4px);
    height: 10px;
    background: linear-gradient(to right, #1a1208, #0d0908 50%, #1a1208);
    border-radius: 0 0 8px 8px;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}

.tv-grain {
    position: absolute;
    inset: 0;
    border-radius: 22px 22px 28px 28px;
    background: repeating-linear-gradient(
        175deg,
        transparent 0px,
        transparent 4px,
        rgba(255,180,80,0.015) 4px,
        rgba(255,180,80,0.015) 5px
    );
    pointer-events: none;
}

.tv-bezel {
    background: linear-gradient(145deg, #1a1410 0%, #0d0a08 60%, #1a1410 100%);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    position: relative;
    border: 1px solid rgba(100,70,40,0.3);
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.8),
        inset 0 2px 4px rgba(0,0,0,0.6),
        0 2px 4px rgba(255,180,80,0.06);
}

.tv-screen {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 6px;
    background: #050302;
    position: relative;
    overflow: hidden;
    border: 1px solid #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.75);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: crisp-edges;
}

.tv-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 85% at 50% 50%, transparent 60%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 6px;
}

.tv-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
    pointer-events: none;
    z-index: 8;
    border-radius: 6px;
}

.tv-screen-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(120,200,160,0.0), transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: background 1.2s ease;
}

.tv-screen-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.tv-off-dot {
    width: 2px; height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.tv-channel-tag {
    position: absolute;
    top: 8px; left: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.0);
    letter-spacing: 0.10em;
    z-index: 9;
    transition: color 0.4s ease, opacity 0.3s ease;
    text-shadow: 0 0 8px currentColor;
    pointer-events: none;
}

.tv-status-bar {
    position: absolute;
    bottom: 10px; left: 12px; right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.0);
    letter-spacing: 0.1em;
    z-index: 9;
    transition: color 0.4s ease, opacity 0.3s ease;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.tv-palette-display {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 32px 24px 42px;
}

.tv-palette-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 16px rgba(255,255,255,0.6), 0 0 32px rgba(255,255,255,0.2);
    text-align: center;
    margin-bottom: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tv-swatches {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.tv-swatch {
    flex: 1;
    max-width: 72px;
    height: 72px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
    margin-bottom: 28px;
}

.tv-swatch-hex {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.tv-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 7;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.tv-load-bar-wrap {
    width: 60%; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.tv-load-bar {
    height: 100%; width: 0%;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.tv-load-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.2em;
    text-align: center;
}

.tv-static { position: absolute; inset: 0; z-index: 6; opacity: 0; pointer-events: none; border-radius: 6px; }

.tv-boot-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.3);
    z-index: 7;
    top: 50%;
    transform: scaleY(0);
    pointer-events: none;
}

.tv-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.tv-brand {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(180,140,90,0.6);
}

.tv-ctrl-right { display: flex; gap: 10px; align-items: center; }

.tv-on-air {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.12em;
    color: rgba(180,80,80,0.0);
    transition: color 0.5s ease;
}

.tv-on-air-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(200,80,80,0.0);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.tv-knob {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #5a4a38, #2a1e14);
    border: 1.5px solid #3a2a1a;
    box-shadow: inset 0 1px 3px rgba(255,180,80,0.12), 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
    cursor: default;
}

.tv-knob::after {
    content: '';
    position: absolute;
    top: 3px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 6px;
    background: rgba(255,180,80,0.3);
    border-radius: 1px;
}

.tv-channels {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.tv-ch-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #1a1208;
    border: 1px solid #3a2a1a;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    touch-action: manipulation;
}

.tv-ch-dot.active {
    background: var(--tv-active-color, #c17a5a);
    box-shadow: 0 0 6px var(--tv-active-color, #c17a5a);
}

.tv-legs { display: flex; justify-content: space-between; padding: 0 30px; margin-top: 2px; }
.tv-leg { width: 16px; height: 20px; background: linear-gradient(to bottom, #2a1e14, #1a1208); border-radius: 0 0 6px 6px; border: 1px solid #3a2a18; border-top: none; }

.tv-hint {
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    margin-top: 12px;
}

.tv-hint-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: tvHintPulse 2s ease-in-out infinite;
}

@keyframes tvHintPulse { 0%,100% { opacity:0.4; } 50% { opacity:1; } }

/* ── TEXT SIDE — wider, moved up ── */
.tv-text-side {
    opacity: 0;
    transform: translateX(30px);
    min-width: 0;
    padding-left: 0.5rem;
    margin-top: -40px;
    max-width: 100%;
}

.tv-text-side.revealed {
    animation: fadeInRight 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}

@keyframes fadeInRight { to { opacity:1; transform: translateX(0); } }

.tv-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--color-accent);
    opacity: 0.5;
}

.tv-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 1.4rem;
}

.tv-heading em { font-style: normal; color: var(--color-accent); }

.tv-body-text {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.85;
    color: var(--color-secondary);
    margin-bottom: 1.8rem;
    max-width: 100%;
}

/* ── FEATURES — replaced numbered icons with signal/wave icons ── */
.tv-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 1.8rem; }

.tv-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.6;
}

.tv-feature-icon {
    width: 26px;
    height: 26px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    background: var(--color-light);
    margin-top: 1px;
    position: relative;
}

/* Override the text-based icon with SVG icons via :before tricks */
.tv-feature-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-preview-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 18px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
}

.tv-preview-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-right: 4px;
    white-space: nowrap;
}

.tv-preview-swatch {
    flex: 1; height: 28px;
    border-radius: 2px;
    background: var(--color-border);
    transition: background 0.8s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.tv-now-showing {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.tv-now-showing.active { opacity: 1; color: var(--color-text); }

.tv-now-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    animation: tvHintPulse 1.5s ease-in-out infinite;
}

@media (min-width: 901px) { .tv-palette-section { display: block; } }
@media (max-width: 900px) { .tv-palette-section { display: none !important; } }

/* ═══════════════════════════════════════════════════════════════
   MOBILE TV
═══════════════════════════════════════════════════════════════ */

.tv-palette-section-mobile { padding: var(--spacing-xl) var(--spacing-lg); position: relative; overflow: hidden; display: none; }

@media (max-width: 900px) {
    .tv-palette-section-mobile { display: block; }
    .tv-palette-section { display: none !important; }
}

.tv-palette-inner-mobile { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.tv-stage-mobile { display: flex; align-items: center; justify-content: center; perspective: 800px; min-height: 380px; position: relative; width: 100%; max-width: 400px; }
.tv-wrap-mobile { transform: rotateY(-15deg) rotateX(8deg) rotateZ(2deg); transform-style: preserve-3d; filter: drop-shadow(30px 25px 50px rgba(0,0,0,0.45)) drop-shadow(6px 6px 16px rgba(0,0,0,0.3)); cursor: pointer; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease; user-select: none; -webkit-user-select: none; touch-action: manipulation; outline: none; width: 100%; max-width: 360px; margin-top: 70px; }
.tv-wrap-mobile:active { transform: rotateY(-15deg) rotateX(8deg) rotateZ(2deg) scale(0.98); }
.tv-body-mobile { width: 100%; background: linear-gradient(160deg, #4a3a2a 0%, #2e2318 40%, #1e1610 70%, #2a1e14 100%); border-radius: 18px 18px 24px 24px; padding: 18px 18px 22px; position: relative; overflow: visible; border: 2px solid #5a4530; box-shadow: inset 0 2px 4px rgba(255,200,120,0.08), inset 0 -4px 12px rgba(0,0,0,0.5), 4px 0 0 #1a1208, 8px 4px 0 #110d07, 0 6px 0 #1a1208, 0 12px 6px #0d0908; transform-style: preserve-3d; }

/* ── MOBILE ANTENNA ── */
.tv-antenna-wrap-mobile {
    position: absolute;
    top: -68px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 80px;
    pointer-events: none;
    z-index: 20;
}
.tv-body-mobile::before { content: ''; position: absolute; top: 2px; right: -8px; width: 8px; height: calc(100% - 4px); background: linear-gradient(to bottom, #1a1208, #0d0908 50%, #1a1208); border-radius: 0 6px 6px 0; transform: rotateY(90deg) translateZ(-4px); clip-path: polygon(0 0, 100% 8px, 100% calc(100% - 8px), 0 100%); }
.tv-body-mobile::after { content: ''; position: absolute; bottom: -8px; left: 2px; width: calc(100% - 4px); height: 8px; background: linear-gradient(to right, #1a1208, #0d0908 50%, #1a1208); border-radius: 0 0 8px 8px; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%); }
.tv-grain-mobile { position: absolute; inset: 0; border-radius: 18px 18px 24px 24px; background: repeating-linear-gradient(175deg, transparent 0px, transparent 4px, rgba(255,180,80,0.015) 4px, rgba(255,180,80,0.015) 5px); pointer-events: none; }
.tv-bezel-mobile { background: linear-gradient(145deg, #1a1410 0%, #0d0a08 60%, #1a1410 100%); border-radius: 10px; padding: 12px; margin-bottom: 12px; position: relative; border: 1px solid rgba(100,70,40,0.3); box-shadow: inset 0 0 30px rgba(0,0,0,0.8), inset 0 2px 4px rgba(0,0,0,0.6), 0 2px 4px rgba(255,180,80,0.06); }
.tv-screen-mobile { width: 100%; aspect-ratio: 4/3; border-radius: 6px; background: #050302; position: relative; overflow: hidden; border: 1px solid #000; box-shadow: inset 0 0 20px rgba(0,0,0,0.75); transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; image-rendering: crisp-edges; }
.tv-screen-mobile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 85% at 50% 50%, transparent 60%, rgba(0,0,0,0.65) 100%); pointer-events: none; z-index: 10; border-radius: 6px; }
.tv-scanlines-mobile { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px); pointer-events: none; z-index: 8; border-radius: 6px; }
.tv-screen-glow-mobile { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(120,200,160,0.0), transparent 70%); pointer-events: none; z-index: -1; transition: background 1.2s ease; }
.tv-screen-content-mobile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; }
.tv-off-dot-mobile { width: 2px; height: 2px; background: rgba(255,255,255,0.15); border-radius: 50%; box-shadow: 0 0 8px rgba(255,255,255,0.1); transition: all 0.3s ease; }
.tv-channel-tag-mobile { position: absolute; top: 8px; left: 10px; font-family: 'Share Tech Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.0); letter-spacing: 0.10em; z-index: 9; transition: color 0.4s ease, opacity 0.3s ease; text-shadow: 0 0 8px currentColor; pointer-events: none; }
.tv-status-bar-mobile { position: absolute; bottom: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; font-family: 'Share Tech Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.0); letter-spacing: 0.1em; z-index: 9; transition: color 0.4s ease, opacity 0.3s ease; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.tv-palette-display-mobile { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 6; opacity: 0; transition: opacity 0.6s ease; padding: 24px 16px 28px; }
.tv-palette-name-mobile { font-family: 'Share Tech Mono', monospace; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.95); text-shadow: 0 0 16px rgba(255,255,255,0.6), 0 0 32px rgba(255,255,255,0.2); text-align: center; margin-bottom: 6px; transition: opacity 0.3s ease, transform 0.3s ease; }
.tv-swatches-mobile { display: flex; gap: 6px; width: 100%; justify-content: center; flex-wrap: wrap; }
.tv-swatch-mobile { flex: 1; max-width: 52px; height: 52px; border-radius: 4px; position: relative; box-shadow: 0 2px 12px rgba(0,0,0,0.4); transition: all 0.5s cubic-bezier(0.22,1,0.36,1); margin-bottom: 20px; min-width: 42px; }
.tv-swatch-hex-mobile { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-family: 'Share Tech Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.75); white-space: nowrap; letter-spacing: 0.04em; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.tv-loading-mobile { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; z-index: 7; opacity: 0; pointer-events: none; overflow: hidden; transition: opacity 0.4s ease; }
.tv-load-bar-wrap-mobile { width: 60%; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.tv-load-bar-mobile { height: 100%; width: 0%; background: rgba(255,255,255,0.7); border-radius: 2px; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.tv-load-text-mobile { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.6); letter-spacing: 0.2em; text-align: center; }
.tv-static-mobile { position: absolute; inset: 0; z-index: 6; opacity: 0; pointer-events: none; border-radius: 6px; }
.tv-boot-line-mobile { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.8); box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.3); z-index: 7; top: 50%; transform: scaleY(0); pointer-events: none; }
.tv-controls-mobile { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.tv-brand-mobile { font-family: 'Share Tech Mono', monospace; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(180,140,90,0.6); }
.tv-ctrl-right-mobile { display: flex; gap: 8px; align-items: center; }
.tv-on-air-mobile { display: flex; align-items: center; gap: 4px; font-family: 'Share Tech Mono', monospace; font-size: 8px; letter-spacing: 0.12em; color: rgba(180,80,80,0.0); transition: color 0.5s ease; }
.tv-on-air-dot-mobile { width: 4px; height: 4px; border-radius: 50%; background: rgba(200,80,80,0.0); transition: background 0.5s ease, box-shadow 0.5s ease; }
.tv-knob-mobile { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5a4a38, #2a1e14); border: 1.5px solid #3a2a1a; box-shadow: inset 0 1px 3px rgba(255,180,80,0.12), 0 2px 4px rgba(0,0,0,0.5); position: relative; cursor: default; }
.tv-knob-mobile::after { content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 2px; height: 6px; background: rgba(255,180,80,0.3); border-radius: 1px; }
.tv-channels-mobile { display: flex; gap: 4px; margin-top: 6px; justify-content: center; }
.tv-ch-dot-mobile { width: 7px; height: 7px; border-radius: 50%; background: #1a1208; border: 1px solid #3a2a1a; transition: background 0.3s ease, box-shadow 0.3s ease; cursor: pointer; -webkit-tap-highlight-color: rgba(0,0,0,0) !important; touch-action: manipulation; }
.tv-ch-dot-mobile.active { background: var(--tv-active-color, #c17a5a); box-shadow: 0 0 6px var(--tv-active-color, #c17a5a); }
.tv-legs-mobile { display: flex; justify-content: space-between; padding: 0 24px; margin-top: 2px; }
.tv-leg-mobile { width: 14px; height: 18px; background: linear-gradient(to bottom, #2a1e14, #1a1208); border-radius: 0 0 6px 6px; border: 1px solid #3a2a18; border-top: none; }
.tv-hint-mobile { text-align: center; margin-top: 12px; font-family: 'Share Tech Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-secondary); opacity: 0.5; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.3s ease; }
.tv-hint-dot-mobile { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); animation: tvHintPulse 2s ease-in-out infinite; }
.tv-text-side-mobile { opacity: 0; transform: translateY(20px); text-align: center; max-width: 100%; }
.tv-text-side-mobile.revealed { animation: fadeInUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards; }
.tv-eyebrow-mobile { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; justify-content: center; }
.tv-eyebrow-mobile::before { content: ''; display: block; width: 24px; height: 1px; background: var(--color-accent); opacity: 0.5; }
.tv-heading-mobile { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: var(--color-text); margin-bottom: 1.2rem; text-align: center; }
.tv-heading-mobile em { font-style: normal; color: var(--color-accent); }
.tv-body-text-mobile { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--color-secondary); margin-bottom: 1.5rem; max-width: 100%; text-align: center; }
.tv-features-mobile { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; align-items: center; }
.tv-feature-mobile { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--color-text); line-height: 1.5; max-width: 300px; }
.tv-feature-icon-mobile { width: 20px; height: 20px; border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); background: var(--color-light); margin-top: 1px; }
.tv-feature-icon-mobile svg { width: 11px; height: 11px; stroke: var(--color-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-preview-strip-mobile { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: var(--color-light); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: 4px; max-width: 100%; overflow-x: auto; }
.tv-preview-label-mobile { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-secondary); margin-right: 4px; white-space: nowrap; }
.tv-preview-swatch-mobile { flex: 1; height: 20px; border-radius: 2px; background: var(--color-border); transition: background 0.8s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 1px 4px rgba(0,0,0,0.15); min-width: 30px; }
.tv-now-showing-mobile { margin-top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary); display: flex; align-items: center; gap: 6px; opacity: 0.5; transition: opacity 0.4s ease; justify-content: center; }
.tv-now-showing-mobile.active { opacity: 1; color: var(--color-text); }
.tv-now-dot-mobile { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; animation: tvHintPulse 1.5s ease-in-out infinite; }
.tv-noise-canvas-mobile { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: 6; pointer-events: none; border-radius: 6px; mix-blend-mode: screen; display: block; transition: opacity 0.3s ease; }
.tv-glow-ring-mobile { position: absolute; inset: -30px; border-radius: 30px; pointer-events: none; opacity: 0; transition: opacity 0.6s ease, background 0.6s ease; z-index: -2; filter: blur(16px); }
.tv-swatch-mobile { transition: background 0.55s cubic-bezier(0.22,1,0.36,1) !important; }
.tv-palette-name-mobile.tv-name-exit { opacity: 0; transform: translateY(-4px); }
.tv-palette-name-mobile.tv-name-enter { opacity: 0; transform: translateY(4px); }
.tv-status-name-mobile.tv-fade-out, .tv-status-hex-mobile.tv-fade-out { opacity: 0; }
.tv-ch-dot-mobile { transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.tv-palette-display-mobile { transition: opacity 0.25s ease !important; }
.tv-noise-canvas-mobile { transition: opacity 0.18s ease !important; }
.tv-now-showing-mobile { transition: opacity 0.3s ease !important; }

@media (max-width: 600px) {
    .tv-body { width: 360px; }
    .tv-swatch { height: 64px; margin-bottom: 26px; }
    .tv-swatch-hex { font-size: 9px; }
    .tv-palette-name { font-size: 16px; }
}

.tv-noise-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; z-index: 6; pointer-events: none; border-radius: 6px;
    mix-blend-mode: screen; display: block; transition: opacity 0.3s ease;
}

.tv-glow-ring {
    position: absolute; inset: -40px; border-radius: 40px;
    pointer-events: none; opacity: 0;
    transition: opacity 0.6s ease, background 0.6s ease;
    z-index: -2; filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════════
   POWER BUTTON — DESKTOP (BIG)
═══════════════════════════════════════════════════════════════ */

.tv-power-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    pointer-events: none;
    /* Wire endpoint: margin-top:520 + box-height/2:45 = y:565 */
    margin-top: 520px;
    align-self: flex-start;
}

.tv-power-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.tv-power-box {
    width: 110px;
    height: 90px;
    background: linear-gradient(160deg, #4a3a2a 0%, #2e2318 45%, #1e1610 100%);
    border-radius: 14px;
    border: 2px solid #5a4530;
    box-shadow:
        inset 0 2px 4px rgba(255,200,120,0.08),
        inset 0 -4px 12px rgba(0,0,0,0.5),
        4px 5px 0 #1a1208,
        7px 9px 6px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: all;
    flex-shrink: 0;
}

.tv-power-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a 0%, #111 100%);
    border: 3px solid #3a3a3a;
    box-shadow:
        inset 0 3px 8px rgba(255,255,255,0.07),
        inset 0 -3px 8px rgba(0,0,0,0.8),
        0 4px 12px rgba(0,0,0,0.7),
        0 0 0 4px rgba(255,255,255,0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
}

.tv-power-btn-face {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #3a3a3a 0%, #1a1a1a 60%, #0d0d0d 100%);
    border: 1.5px solid #484848;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.tv-power-btn:active {
    transform: scale(0.90);
    box-shadow:
        inset 0 5px 10px rgba(0,0,0,0.9),
        inset 0 -1px 2px rgba(255,255,255,0.03),
        0 1px 4px rgba(0,0,0,0.6);
}

.tv-power-btn:hover {
    box-shadow:
        inset 0 3px 8px rgba(255,255,255,0.07),
        inset 0 -3px 8px rgba(0,0,0,0.8),
        0 4px 20px rgba(200,80,60,0.5),
        0 0 32px rgba(200,80,60,0.25);
}

.tv-power-btn.btn-on .tv-power-btn-face {
    background: radial-gradient(circle at 38% 32%, #e05050 0%, #b02020 60%, #6a1010 100%);
    box-shadow:
        inset 0 2px 4px rgba(255,180,160,0.45),
        0 0 12px rgba(200,50,50,1),
        0 0 24px rgba(200,50,50,0.6);
}

.tv-power-btn.btn-on {
    box-shadow:
        inset 0 3px 8px rgba(255,255,255,0.07),
        inset 0 -3px 8px rgba(0,0,0,0.8),
        0 4px 16px rgba(200,60,60,0.7),
        0 0 36px rgba(200,60,60,0.35);
}

.tv-hint.tv-hint-desktop {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── WIRE SVG — realistic curvy headphone-style wire ── */
@media (min-width: 901px) {
    .tv-power-wire-svg {
        width: 200px;
        height: 640px;
        overflow: visible;
        flex-shrink: 0;
        align-self: flex-start;
        display: block;
    }

    /* Main wire — dark outer */
    .tv-power-wire-path {
        fill: none;
        stroke: #3a2e22;
        stroke-width: 7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Mid sheen */
    .tv-power-wire-path-mid {
        fill: none;
        stroke: #6a5540;
        stroke-width: 4;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.7;
    }

    /* Highlight glint */
    .tv-power-wire-path-hi {
        fill: none;
        stroke: #c4a882;
        stroke-width: 1.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.35;
        stroke-dasharray: 18 32;
    }

    body.dark-mode .tv-power-wire-path {
        stroke: #4a3e2e;
    }
    body.dark-mode .tv-power-wire-path-mid {
        stroke: #7a6a50;
    }
}

/* Mobile power bits */
.tv-power-unit-mobile { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; pointer-events: none; }
.tv-power-wire-svg-mobile { width: 44px; height: 64px; overflow: visible; display: block; }
.tv-power-wire-path-mobile { fill: none; stroke: #1a1208; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.tv-power-box-mobile { width: 72px; height: 52px; background: linear-gradient(160deg, #4a3a2a 0%, #2e2318 45%, #1e1610 100%); border-radius: 10px; border: 2px solid #5a4530; box-shadow: inset 0 2px 4px rgba(255,200,120,0.08), inset 0 -3px 8px rgba(0,0,0,0.5), 3px 4px 0 #1a1208, 5px 7px 4px rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; pointer-events: all; flex-shrink: 0; }
.tv-power-btn-mobile { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #2a2a2a 0%, #111 100%); border: 2px solid #3a3a3a; box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), inset 0 -2px 4px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.6); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: box-shadow 0.15s ease, transform 0.12s ease, background 0.3s ease; -webkit-tap-highlight-color: transparent; user-select: none; position: relative; }
.tv-power-btn-face-mobile { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3a3a 0%, #1a1a1a 60%, #0d0d0d 100%); border: 1px solid #444; box-shadow: inset 0 1px 2px rgba(255,255,255,0.08); transition: background 0.3s ease, box-shadow 0.3s ease; pointer-events: none; }
.tv-power-btn-mobile:active { transform: scale(0.92); }
.tv-power-btn-mobile:hover { box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), inset 0 -2px 4px rgba(0,0,0,0.7), 0 2px 8px rgba(200,80,60,0.35), 0 0 12px rgba(200,80,60,0.15); }
.tv-power-btn-mobile.btn-on .tv-power-btn-face-mobile { background: radial-gradient(circle at 40% 35%, #e05050 0%, #b02020 60%, #6a1010 100%); box-shadow: inset 0 1px 2px rgba(255,180,160,0.4), 0 0 6px rgba(200,50,50,0.8), 0 0 14px rgba(200,50,50,0.4); }
.tv-power-btn-mobile.btn-on { box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), inset 0 -2px 4px rgba(0,0,0,0.7), 0 2px 10px rgba(200,60,60,0.55), 0 0 20px rgba(200,60,60,0.25); }
.tv-mobile-below { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; width: 100%; margin-top: 0.5rem; }

.tv-wrap { cursor: default; }
.tv-wrap.tv-on { cursor: pointer; }
.tv-wrap-mobile { cursor: default; }
.tv-wrap-mobile.tv-on { cursor: pointer; }