:root {
    --ink: #1e1b4b;
    --muted: #57567a;
    --paper: #fff8f3;
    --card: #ffffff;
    --line: #eadfd6;
    --rose: #e11d48;
    --rose-deep: #be123c;
    --indigo: #4338ca;
    --teal: #0f766e;
    --amber: #d97706;
    --sky: #0369a1;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(67, 56, 202, 0.08);
    --topbar: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(255, 248, 243, 0.74), rgba(255, 248, 243, 0.81)),
        url("../img/page-bg.jpg");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: Outfit, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
}
h1, h2, h3, .brand-name, .offcanvas-title {
    font-family: Poppins, "Segoe UI", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 .45em; }
h2 { font-size: 1.6rem; margin: 0 0 .5em; }
h3 { font-size: 1.15rem; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--rose); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.skip-link {
    position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Top menu */
.topbar {
    position: sticky; top: 0; z-index: 30;
    background: linear-gradient(100deg, #312e81 0%, #9d174d 55%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(49, 46, 129, 0.25);
}
.topbar-inner {
    display: flex; align-items: center; gap: 16px;
    min-height: var(--topbar); padding: 0 18px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
    font-family: Poppins, "Segoe UI", system-ui, sans-serif;
}
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 6px; margin-left: 12px; }
.topnav a {
    color: rgba(255,255,255,.88); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.topnav a:hover, .topnav a.active { background: rgba(255,255,255,.18); color: #fff; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-link { color: #fff; font-weight: 600; padding: 6px 8px; }
.top-link:hover { color: #ffe4e6; }
.top-pill {
    background: #fff; color: var(--rose-deep); font-weight: 700; border-radius: 999px; padding: 8px 14px;
}
.top-pill:hover { background: #fff1f2; color: var(--rose-deep); }
.menu-btn {
    display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12); padding: 10px 9px; flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Side menu */
.shell { display: flex; align-items: flex-start; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 22px 18px 40px; gap: 22px; }
.sidenav {
    width: 240px; flex: none; position: sticky; top: calc(var(--topbar) + 16px);
    background: rgba(255,255,255,.86); border: 1px solid #fff; border-radius: 20px;
    box-shadow: var(--shadow); padding: 18px 14px; backdrop-filter: blur(8px);
}
.side-kicker { margin: 0 8px 10px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    color: var(--ink); font-weight: 600;
}
.side-links a .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--indigo)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--indigo)) 18%, white); }
.side-links a:hover { background: #fff7ed; color: var(--ink); }
.side-links a.active { background: linear-gradient(90deg, #fff1f2, #eef2ff); color: var(--rose-deep); }
.side-cta, .side-quiet { display: block; margin: 14px 8px 0; text-align: center; font-weight: 700; }
.side-cta { background: linear-gradient(90deg, var(--rose), #f97316); color: #fff; border-radius: 12px; padding: 10px 12px; }
.side-cta:hover { color: #fff; filter: brightness(1.05); }
.side-quiet { color: var(--muted); font-weight: 600; }
.offcanvas { background: var(--paper); }
.offcanvas .side-links a { color: var(--ink); }

.page { flex: 1; min-width: 0; padding-bottom: 12px; }

/* Buttons */
.page .btn, .page button.btn, .page a.btn {
    display: inline-block; background: linear-gradient(90deg, var(--rose), #f97316); color: #fff;
    border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-family: inherit; cursor: pointer;
    text-decoration: none; box-shadow: 0 8px 18px rgba(225, 29, 72, .22);
}
.page .btn:hover, .page button.btn:hover, .page a.btn:hover { color: #fff; filter: brightness(1.05); }
.page .btn-small { padding: 7px 14px; font-size: .9rem; }
.page .btn-outline, .page a.btn-outline, .page button.btn-outline {
    background: #fff; color: var(--indigo); border: 1px solid #c7d2fe; box-shadow: none;
}
.page .btn-outline:hover { background: #eef2ff; color: var(--indigo); }
.page .btn-danger { background: #9f1239; box-shadow: none; }

/* Alerts */
.page .alert { padding: 12px 16px; border-radius: 14px; margin: 0 0 16px; border: 1px solid transparent; }
.page .alert-success { background: #ecfdf5; border-color: #99f6e4; color: #115e59; }
.page .alert-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.page .alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

/* Hero and catalogue */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
    background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); border: 1px solid #fff; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero .lead, p.lead { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hero-photo, .about-photo, .release-cover {
    width: 100%; object-fit: cover; border-radius: 22px; background: #ffe4e6;
    box-shadow: 0 18px 40px rgba(157, 23, 77, .16);
}
.hero-photo { aspect-ratio: 4 / 5; }
.hero-carousel {
    position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
    background: #ffe4e6; box-shadow: 0 18px 40px rgba(157, 23, 77, .16);
}
.hero-carousel .hero-photo {
    position: absolute; inset: 0; height: 100%; border-radius: 0; box-shadow: none;
    opacity: 0; transition: opacity 1.6s ease;
}
.hero-carousel .hero-photo.is-shown { opacity: 1; }
.hero-pause {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
    background: rgba(255, 248, 243, .9); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700;
}
.hero-pause:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .hero-photo { transition: none; }
}
.hero-actions, .section-title { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions { margin-top: 18px; }
.section-title { justify-content: space-between; margin: 28px 4px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.page .grid .card, .page article.card {
    background: #fff; border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); height: 100%;
}
.page article.card a { color: inherit; display: block; text-decoration: none; height: 100%; }
.page article.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fce7f3; }
.card-body { padding: 12px 14px 16px; }
.card-body h3 { margin: 0 0 6px; }
.page .badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; background: #ccfbf1; color: var(--teal); border: 0;
}
.page .badge-new { background: #ffe4e6; color: var(--rose-deep); }
.page article.card:hover { transform: translateY(-4px); transition: transform .16s ease; }

.release { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 28px; align-items: start; }
.release-cover { aspect-ratio: 1; }
.buy-box, .panel, .form-card {
    background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8);
}
.buy-box { margin: 16px 0; }
.buy-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.buy-row:last-of-type { border-bottom: 0; }
.buy-row form { display: flex; align-items: center; gap: 10px; margin: 0; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--rose-deep); }
.hint { color: var(--muted); font-size: .85rem; }
.tracklist { list-style: none; padding: 0; margin: 12px 0 0; }
.tracklist li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.track-no { color: var(--rose); font-weight: 700; }
.track-title { font-weight: 650; }
.track-title-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lyrics { margin-top: 8px; padding: 12px 14px; background: #fffaf7; border: 1px solid var(--line); border-radius: 12px; }
.clip-tool { margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.clip-tool audio, .clip-tool input[type=range] { width: 100%; margin-top: 8px; }
.clip-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.upload-status { min-height: 1.2em; font-weight: 650; margin-top: 4px; }
.upload-status.is-ok { color: var(--teal); }
.upload-status.is-error { color: var(--rose-deep); }
.track-player { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.play-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--indigo); color: #fff; cursor: pointer; }
.track-player .progress { flex: 1; height: 8px; background: #f3e8ff; border-radius: 99px; overflow: hidden; cursor: pointer; display: block; }
.track-player .progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #db2777, #f59e0b); display: block; }
.time, .preview-note { color: var(--muted); font-size: .8rem; }

.about { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.prose p { margin: 0 0 1em; font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.form-card { max-width: 480px; margin: 8px auto; }
.form-wide { max-width: 860px; }
.page label { display: block; font-weight: 650; margin: 14px 0 6px; }
.page input[type=text], .page input[type=email], .page input[type=password], .page input[type=number],
.page input[type=date], .page select, .page textarea {
    width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid #e7d5cb; background: #fff; color: var(--ink);
    font: inherit;
}
.page input:focus, .page select:focus, .page textarea:focus { outline: 3px solid rgba(225, 29, 72, .2); border-color: var(--rose); }
.page textarea { min-height: 140px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.human-check {
    margin-top: 16px; padding: 14px 16px; border: 1px solid #e7d5cb; border-radius: 14px; background: #fffaf7;
}
.human-check-title { margin: 0; font-weight: 650; }
.human-check input { max-width: 120px; }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page .row {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-left: 0 !important; margin-right: 0 !important;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #fce7f3; }
.photo-card .pad { padding: 12px; }
.photo-card .pad form { display: inline; }
.stat { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-family: Poppins, "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 1.8rem; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }

.site-footer {
    background: #1e1b4b; color: #e0e7ff; margin-top: auto;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 22px 18px 28px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 4px; }
.site-footer p:last-child { color: #c7d2fe; font-size: .9rem; }

@media (max-width: 991px) {
    body { background-attachment: scroll; }
    .menu-btn { display: flex; }
    .topnav, .sidenav { display: none; }
    .shell { padding: 16px 14px 32px; }
    .hero, .release, .about, .page .row { grid-template-columns: 1fr; }
    .brand-name { max-width: 42vw; }
}
@media (max-width: 640px) {
    .top-link { display: none; }
    .hero { padding: 18px; }
}
