@font-face {
    font-family: 'Blackcraft';
    src: url('../the-emerald-saga/media/Blackcraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



/* =========================
   GLOBAL FIX (ВАЖНО)
========================= */

html,
body {
    margin: 0;
    padding: 0;
    background: #050505;
}

/* ФОН */
body.tes-body {
    min-height: 100vh;
    max-width: 100%;
    background: url("../the-emerald-saga/media/emerald-bg.webp") center top / cover no-repeat fixed;
}

/* затемнение фона */
body.tes-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* =========================
   BASE
========================= */

.tes-page {
    width: 100%;
    color: #fff;
    position: relative;
    z-index: 1;
}

.tes-page section {
    width: 100%;
    padding: 70px 24px;
}

/* =========================
   INTRO
========================= */

.tes-intro {
    padding: 100px 24px 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.6)
    );
}

.tes-logo {
    max-width: 600px;
    width: 100%;
    height: auto;

    margin-bottom: 35px;

    filter: drop-shadow(0 0 14px rgba(80, 140, 90, 0.35));
}

.tes-intro p,
.tes-section-inner p,
.tes-description p {
    max-width: 680px;
    margin: 0 auto 16px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.65;

    color: #d8d8d8;
}

/* =========================
   INFO / RECURRING
========================= */

.tes-section-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.tes-section-inner h2,
.tes-description h2 {
    font-family: "IM Fell English SC", serif;
    font-size: 34px;
    margin-bottom: 20px;
}

/* прозрачные секции */
.tes-info,
.tes-releases
{
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(2px);
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* чуть плотнее */
.tes-recurring, .tes-ending {
    background: rgba(0,0,0,0.85);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.tes-theme-player {
    max-width: 520px;
    margin: 32px auto 0;
    padding: 22px;

    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

.tes-theme-title {
    margin: 0 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: #8fa88f;
    text-transform: uppercase;
}

.tes-theme-player audio {
    width: 100%;
}

/* =========================
   RELEASES
========================= */

.tes-release {
    max-width: 1180px;
    height: 460px;
    margin: 0 auto 70px;

    display: grid;
    grid-template-columns: 300px 260px 1fr;
    gap: 45px;
    align-items: center;
}

.tes-release:nth-child(even) {
    grid-template-columns: 1fr 260px 300px;
}

.tes-release:nth-child(even) .tes-description { order: 1; }
.tes-release:nth-child(even) .tes-tracklist { order: 2; }
.tes-release:nth-child(even) .tes-cover { order: 3; }


.tes-release-locked {
    opacity: 0.85;
    filter: saturate(0.7);
}

.tes-release-locked:hover {
    opacity: 1;
    filter: saturate(1);
    transition: 0.4s ease;
}

/* лёгкое затемнение */
.tes-release-locked::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.5)
    );

    pointer-events: none;
}

.tes-release-locked .tes-description h2,
.tes-release-locked .tes-tracklist h3 {
    color: #d8d8d8;
}

.tes-placeholder-cover {
    position: relative;
    overflow: hidden;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(143, 168, 143, 0.25);

    background:
        radial-gradient(circle at center, rgba(80, 140, 90, 0.18), transparent 60%),
        rgba(0, 0, 0, 0.6);
}

/* внутренняя рамка */
.tes-placeholder-cover::before {
    content: "";
    position: absolute;
    inset: 20px;

    border: 1px solid rgba(255,255,255,0.08);
}

/* лёгкий shimmer */
.tes-placeholder-cover::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(120,200,140,0.08),
        transparent
    );

    opacity: 0.3;
}

/* номер кассеты */
.tes-placeholder-cover span {
    font-family: "IM Fell English SC", serif;
    font-size: 80px;
    color: rgba(255,255,255,0.4);

    letter-spacing: 4px;
}

/* подпись */
.tes-placeholder-cover p {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.4);
}

.tes-placeholder-cover::before {
    content: "";
    position: absolute;
    inset: 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tes-placeholder-cover span {
    position: relative;
    z-index: 1;

    font-family: "IM Fell English SC", serif;
    font-size: 72px;
    color: rgba(255, 255, 255, 0.45);
}

.tes-placeholder-cover p {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;

    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.tes-tracklist-locked li {
    color: rgba(255,255,255,0.45);
    font-style: italic;
}

/* =========================
   COVER
========================= */

.tes-cover img,
.tes-placeholder-cover {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

/* =========================
   TRACKLIST
========================= */

.tes-tracklist {
    max-height: 360px;
    overflow-y: auto;

    padding: 24px 20px;

    border-left: 1px solid rgba(255,255,255,0.16);
    border-right: 1px solid rgba(255,255,255,0.08);

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        white 10%,
        white 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        white 10%,
        white 90%,
        transparent 100%
    );
}

.tes-tracklist h3 {
    font-family: "IM Fell English SC", serif;
    font-size: 22px;
    margin-bottom: 18px;
}

.tes-tracklist ol {
    margin: 0;
    padding-left: 22px;
}

.tes-tracklist li {
    font-family: Arial;
    font-size: 15px;
    line-height: 1.7;
    color: #d0d0d0;

    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* выравнивание */
.tes-release:nth-child(odd) .tes-tracklist {
    text-align: left;
}

.tes-release:nth-child(even) .tes-tracklist {
    text-align: right;
}

.tes-release:nth-child(even) .tes-tracklist ol {
    padding-left: 0;
    padding-right: 22px;
    list-style-position: inside;
}

/* скролл */
.tes-tracklist::-webkit-scrollbar {
    width: 6px;
}

.tes-tracklist::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
}

/* =========================
   DESCRIPTION
========================= */

.tes-description {
    max-height: 360px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.tes-description span {
    font-size: 14px;
    letter-spacing: 1.5px;
    color: #8fa88f;
}

/* =========================
   BUTTONS
========================= */

.tes-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.tes-btn {
    padding: 13px 30px;
    border-radius: 10px;

    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);

    font-weight: bold;
    text-decoration: none;

    transition: all 0.25s ease;
    position: relative;
}

/* основной hover */
.tes-btn:hover {
    background: hwb(142 38% 13% / 0.507);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,185,84,0.35);
}

/* нажатие */
.tes-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29,185,84,0.3);
}

.tes-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;

    transition: all 0.25s ease;
}

/* =========================
   ENDING
========================= */

.tes-ending {
    min-height: 40vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tes-ending p {
    font-family: "IM Fell English SC", serif;
    font-size: 36px;
}

body.tes-body footer {
    background: #050505; /* глухой чёрный */

    color: #aaa;
    text-align: center;

    padding: 40px 20px;
    margin-top: 0;

    border-top: 1px solid rgba(255,255,255,0.08);
}

body.tes-body footer p {
    margin: 0;
    font-size: 14px;
}

/* HOME (главный акцент) */
.footer-nav {
    margin-bottom: 14px;
    padding-bottom: 20px;
}

.footer-nav a {
    font-size: 18px;
    letter-spacing: 1px;
    color: #aaa;

    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-nav a:hover {
    color: #e5ffe5;
    text-shadow: 0 0 10px rgba(120,200,140,0.25);
}

/* копирайт */
.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .tes-release {
        height: auto;
        grid-template-columns: minmax(220px, 320px) minmax(240px, 1fr);
        gap: 28px;
        align-items: start;
        justify-content: center;
    }

    .tes-cover {
        display: flex;
        justify-content: center;
    }

    .tes-cover img {
        max-width: 320px;
        width: 100%;
    }

    .tes-tracklist {
        max-width: 200px;
        max-height: 300px;
        margin: 0;
        text-align: left !important;
    }

    .tes-description {
        grid-column: 1 / -1;
        max-height: none;
        text-align: center;
    }

    .tes-release-locked {
        display: none;
    }
}

@media (max-width: 620px) {
    .tes-release {
        grid-template-columns: 1fr;
    }

    .tes-tracklist {
        margin: 0 auto;
    }

    .tes-description {
        grid-column: auto;
    }
}

.tes-intro h1,
.tes-description h2,
.tes-section-inner h2,
.tes-tracklist h3,
.tes-ending p {
    font-family: 'Blackcraft', serif;
    letter-spacing: 1px;
}