:root {
    --ink: #202124;
    --muted: #646970;
    --line: #dfe4ea;
    --paper: #ffffff;
    --soft: #f5f7fa;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #e11d48;
    --gold: #f59e0b;
    --blue: #2563eb;
    --violet: #7c3aed;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.dark {
    --ink: #f4f7fb;
    --muted: #a8b3c7;
    --line: #253244;
    --paper: #121a27;
    --soft: #0b1020;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --accent: #fb7185;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.admin-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-links a,
.btn,
button {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 700;
}

.btn.primary,
button.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.btn.danger,
button.danger {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.hero {
    min-height: 560px;
    color: white;
    background:
        linear-gradient(90deg, rgba(5, 15, 26, .86) 0%, rgba(5, 15, 26, .58) 48%, rgba(5, 15, 26, .22) 100%),
        var(--hero-image, none) center/cover;
    display: grid;
    align-items: center;
    padding: 86px 0 96px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
    margin: 0 0 12px;
    max-width: 820px;
}

.hero p {
    max-width: 700px;
    font-size: 20px;
    margin: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1fae5;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-actions,
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-stats {
    max-width: 760px;
}

.stat-pill {
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    padding: 12px 14px;
    backdrop-filter: blur(12px);
}

.stat-pill strong {
    display: block;
    font-size: 24px;
}

.search-panel {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
}

.search-panel .container {
    margin-top: -38px;
}

.search-shell {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    padding: 14px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 10px;
}

.filters-4 {
    grid-template-columns: 1fr 210px 210px auto;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    min-height: 42px;
    padding: 10px 12px;
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.section {
    padding: 34px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.card:hover {
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.card-media {
    aspect-ratio: 16 / 10;
    background: #d8dee6;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 16px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
}

.badge.hot {
    background: #fff7ed;
    color: #9a3412;
}

.category-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 0 0;
}

.category-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    padding: 8px 12px;
    font-weight: 800;
}

.featured-band {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.premium-card {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: end;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .72)), var(--premium-image, none) center/cover;
}

.premium-card .card-body {
    background: linear-gradient(transparent, rgba(0, 0, 0, .3));
}

.editorial-panel {
    background: #101827;
    color: white;
    border-radius: var(--radius);
    padding: 26px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
}

.editorial-panel p {
    color: #cbd5e1;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0;
}

.price strong {
    color: var(--accent);
    font-size: 24px;
}

.price del {
    color: var(--muted);
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.whatsapp {
    width: 100%;
    margin-top: 12px;
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.admin-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    padding: 24px 0;
}

.sidebar,
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar {
    padding: 12px;
    height: max-content;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-weight: 700;
}

.sidebar a:hover {
    background: var(--soft);
}

.panel {
    padding: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    font-size: 13px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-box {
    width: min(420px, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.sponsor-strip {
    background: #101827;
    color: white;
    padding: 12px 0;
}

.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.sponsor-row a {
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    padding: 7px 10px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.business-hero {
    min-height: 440px;
}

.map-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.theme-toggle {
    min-height: 38px;
}

@media print {
    .site-header,
    .actions,
    .search-panel {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .search-form,
    .filters-4,
    .admin-layout,
    .form-grid,
    .detail-layout,
    .editorial-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 520px;
        padding: 70px 0 88px;
    }

    .grid,
    .magazine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stat-pill {
        min-width: calc(50% - 8px);
    }

    .grid,
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}
