<?php
// ⚙️ Nenhum espaço antes ou depois deste bloco!

header_remove();                                     // remove headers que o LiteSpeed adiciona
header('Content-Type: application/json; charset=utf-8');
header('Content-Encoding: gzip');

$path = __DIR__ . '/filmes1.json.gz';
if (is_readable($path)) {
    readfile($path);
} else {
    http_response_code(404);
    echo json_encode(['error' => 'Arquivo não encontrado']);
}
exit;
