:root {
    --bg0: #000000;
    --bg1: #090101;
    --ink-bright: #d7aea5;
    --ink: #b8877c;
    --muted: #8e5e54;
    --wood: #2a0806;
    --amber: #a56a2a;
    --line: rgba(58, 22, 14, 0.18);
    --shadow: 0 28px 80px rgba(7, 2, 2, 0.55), 0 6px 18px rgba(0, 0, 0, 0.45);
    --r: 22px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html,body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1100px 700px at 70% 20%, rgba(90, 40, 18, 0.06), transparent 55%), radial-gradient(900px 600px at 20% 70%, rgba(55, 20, 12, 0.05), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x: hidden;
}

a {
    color: inherit;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.wrap {
    width: min(100% - 36px, var(--max));
    margin: 0 auto;
    padding: 32px 0 28px;
}

.pill:hover {
    color: #754e06;
    border-color: rgb(75, 44, 1);
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 18px;
}

.mark {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    letter-spacing: .12em;
    font-weight: 700;
    line-height: 1;
}

.sigil {
    width: 48px;
    height: 48px;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(10, 0, 0, 0.45), transparent 55%), linear-gradient(135deg, rgba(24, 1, 1, 0.25), rgba(26, 4, 4, 0.2)), var(--wood);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sigil img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-right: 35px;
    margin-top: -23px;
}

nav a {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10,6,4,.35);
    backdrop-filter: blur(6px);
}

.hero.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 300px;
    gap: 18px;
    align-items: start;
    margin-top: 0;
}

.hero h2 {
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.15;
    letter-spacing: .02em;
    margin: 0 0 12px 0;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: radial-gradient(900px 340px at 10% 10%,rgba(120, 58, 24, 0.06),transparent 45%),rgba(8, 3, 2, 0.44);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card > :first-child {
    margin-top: 0;
}

.main-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.gallery-item {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(34, 3, 3, 0.22);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery-item:hover img {
    transform: translateY(-2px);
    border-color: rgb(75, 44, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: #080505;
    color: var(--ink);
}

.lightbox.open {
    display: block;
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #080505;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 120px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
    border: 0;
    background: #080505;
    cursor: pointer;
    transition:
        max-width 0.18s ease,
        max-height 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lightbox.info-hidden .lightbox-stage img {
    max-width: 100vw;
    max-height: 100dvh;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 1;
    width: min(620px, calc(100vw - 80px));
    padding: 8px 22px 9px;
    transform: translateX(-50%);
    border: 1px solid rgba(165, 106, 42, 0.38);
    border-radius: 22px;
    background: rgba(24, 9, 8, 0.65);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    text-align: center;
    backdrop-filter: blur(8px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.lightbox.info-hidden .lightbox-caption {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.lightbox-caption h3 {
    margin: 0;
    color: var(--ink-bright);
    font-family: "MedievalSharp", system-ui;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 400;
    line-height: 1.1;
}

.lightbox-caption p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(24, 9, 8, 0.85);
    color: var(--ink-bright);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: var(--amber);
}

.lightbox-close {
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 29px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 38px;
}

.lightbox-prev {
    left: 14px;
}

.lightbox-next {
    right: 14px;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}


.brand {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 700;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
}

.brand-block {
    display: flex;
    flex-direction: column;
    transform: translateY(4px);
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 1px 0 0 8px;
    font-size: 0.60rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.tagline::before {
    content: "";
    width: 25px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.tagline::after {
    content: "";
    width: 43px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side .panel {
    padding: 16px;
}

.panel {
    padding: 18px;
}

.panel a {
    text-decoration: none;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.audio-panel {
    min-width: 0;
}

.custom-player {
    min-height: 250px;
    margin-top: 10px;
    padding: 28px 32px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: radial-gradient( 700px 260px at 50% 0%, rgba(120,58,24,.08), transparent 60% ), rgba(18,4,3,.48);
    box-shadow: inset 0 0 30px rgba(0,0,0,.3), var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.player-label {
    margin-bottom: 8px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
}

#audioTitle {
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: .03em;
    color: var(--ink);
}

.album {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 28px;
}

.album-cover img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.album-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.album-content .track-list {
    gap: 8px;
    margin-top: 0;
    align-items: start;
}

#audioAlbum {
    margin-top: 7px;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    font-size: 15px;
    letter-spacing: .05em;
    color: var(--muted);
}

.player-progress-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.player-progress {
    width: 100%;
    cursor: pointer;
    accent-color: var(--amber);
}

.player-times {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
}

.player-control {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(34,3,3,.35);
    color: var(--ink);
    cursor: pointer;
    font-size: 17px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.player-control:hover {
    transform: translateY(-1px);
    color: #7a2a18;
    border-color: rgb(75,44,1);
    background: rgb(41,23,1);
    box-shadow: 0 0 12px rgba(120,60,30,.18);
}

.player-control-main {
    width: 62px;
    height: 62px;
    font-size: 22px;
}

.player-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(210px, 100%);
    margin: 15px auto 0;
    color: var(--muted);
}

.player-volume input {
    width: 150px;
    cursor: pointer;
    accent-color: var(--amber);
}

.player-progress, .player-volume input {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient( to right, var(--amber) 0%, var(--amber) var(--range-progress, 0%), #b8aaa0 var(--range-progress, 0%), #b8aaa0 100% );
    outline: none;
}

.player-progress::-webkit-slider-thumb, .player-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
}

.player-progress::-moz-range-thumb, .player-volume input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
}

.player-progress::-moz-range-track, .player-volume input::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #b8aaa0;
}

.track-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin-top: 16px;
}

.track {
    min-height: 45px;
    padding: 3px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(34,3,3,.22);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.track-title {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.track:hover {
    transform: translateY(-1px);
    color: #7a2a18;
    border-color: rgb(75,44,1);
    background: rgb(41,23,1);
    box-shadow: 0 0 12px rgba(120,60,30,.18);
}

.track.active {
    border-color: rgba(165,106,42,.5);
    background: rgba(70,24,10,.24);
    box-shadow: 0 0 0 1px rgba(165,106,42,.18) inset, 0 0 14px rgba(120,60,30,.12);
}

.track:focus-visible, .player-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(120,60,30,.55);
}

.mute-button {
    position: relative;
    border: 0;
    background: none;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: color .18s ease, transform .18s ease;
}

.mute-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 20px;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    transition: opacity .18s ease;
}

.mute-button.muted::after {
    opacity: 1;
}

.mute-button:hover {
    color: var(--ink);
    transform: scale(1.08);
}

.mute-button:focus-visible {
    outline: none;
    color: var(--ink);
}

.list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(34, 3, 3, 0.35);
    text-decoration: none;
}

.item:hover {
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.item b {
    min-width: 0;
    font-size: 15px;
    opacity: 0.95;
}

.item span {
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    color: var(--muted);
}

.item small {
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.side-item {
    column-gap: 12px;
}

.rule {
    height: 1px;
    background: rgba(58, 22, 14, 0.22);
    margin: 12px 0;
}

.info {
    display: grid;
    margin-top: 12px;
}

.info.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(34, 3, 3, 0.35);
}

.info.item span {
    font-size: 15px;
    text-align: left;
}

.info.item small {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.info.item:hover {
    color: inherit;
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.footer {
    margin-top: 60px;
    color: rgba(116, 77, 77, 0.75);
    font-size: 12px;
    letter-spacing: .06em;
    text-align: left;
    hyphens: auto;
}

@media (max-width: 900px) {
    .item, .info.item {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .item span, .item small, .info.item small {
        text-align: left;
        white-space: normal;
    }
    .wrap {
        width: min(100% - 28px, var(--max));
        padding: 24px 0;
    }
    header {
        gap: 14px;
    }
    nav {
        margin-right: 0;
        margin-top: 0;
    }
    .hero.layout-split {
        grid-template-columns: 1fr;
    }
    .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .track {
        padding: 3px 12px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 20px, var(--max));
        padding: 18px 0 22px;
    }
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 16px;
    }
    .mark {
        gap: 10px;
    }
    .sigil {
        width: 42px;
        height: 42px;
        border-radius: 16px;
    }
    .brand {
        position: relative;
        font-size: 25px;
        line-height: 1.05;
        top: 2px;
    }
    .brand-block {
        transform: none;
    }
    .tagline {
        margin: 4px 0 0 2px;
        letter-spacing: 0.1em;
    }
    .tagline::before {
        width: 22px;
    }
    .tagline::after {
        width: 34px;
    }
    nav {
        width: 100%;
        margin: 0;
    }
    nav a {
        font-size: 14px;
        padding: 9px 11px;
    }
    .hero h2 {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
    }
    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .custom-player {
        min-height: 230px;
        padding: 24px 18px 20px;
    }
    .album {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 26px;
    }
    .album-cover {
        display: flex;
        justify-content: center;
    }
    .album-cover img {
        width: min(180px, 55vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .album-title {
        text-align: center;
        margin-bottom: 10px;
    }
    .album-content .track-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .track {
        padding: 3px 10px;
    }
    .track-title {
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 16px, var(--max));
        padding: 14px 0 20px;
    }
    header {
        gap: 10px;
        padding: 10px 0 14px;
    }
    .mark {
        gap: 9px;
    }
    .sigil {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
    .brand {
        font-size: 24px;
        top: 4px;
    }
    .tagline {
        font-size: 0.56rem;
        letter-spacing: 0.08em;
    }
    .tagline::before {
        width: 16px;
    }
    .tagline::after {
        width: 29px;
    }
    nav a {
        width: auto;
        white-space: nowrap;
    }
    .hero h2 {
        font-size: clamp(24px, 8vw, 30px);
    }
    .image-grid {
        grid-template-columns: 1fr;
    }
    .album-cover img {
        width: min(165px, 52vw);
    }
    .album-content .track-list {
        gap: 7px;
    }
    .track {
        min-height: 44px;
        padding: 3px 7px;
    }
    .track-title {
        font-size: 11.5px;
        line-height: 1.3;
    }
    #audioTitle {
        font-size: clamp(23px, 7vw, 30px);
    }
}


@media (max-width: 640px) {
    .lightbox-stage img {
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .lightbox.info-hidden .lightbox-stage img {
        max-width: 100vw;
        max-height: 100dvh;
    }

    .lightbox-caption {
        bottom: 14px;
        width: calc(100vw - 28px);
        padding: 9px 16px 10px;
    }

    .lightbox-nav {
        width: 30px;
        height: 48px;
        font-size: 26px;
        background: rgba(24, 9, 8, 0.65);
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-close {
        top: 10px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 25px;
        background: rgba(24, 9, 8, 0.65);
    }
}
