:root {
    --bg-soft: #0b1222;
    --card: #0f172a;
    --text: #f3f6fb;
    --muted: #94a3b8;
    --green: #22c55e;
    --line: rgba(255,255,255,0.06);
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
	background: url('/wp-content/uploads/noise.png') center / cover no-repeat;
}


img {
    display: block;
}

.home-page {
    background: url('/wp-content/uploads/noise.png') center / cover no-repeat;
}

/* шум / текстура */
.home-page::before {
    content: "";
    position: fixed;
    inset: 0;

    background: url('/wp-content/uploads/noise.png') repeat;

    opacity: 0.04; /* регулируй 0.03–0.08 */

    pointer-events: none;
    z-index: 0;
}

/* чтобы контент был поверх */
.home-page > * {
    position: relative;
    z-index: 1;
}

.container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 5% 5%;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(20,24,32,0.6) 75%,
            #141820 100%
        ),
        linear-gradient(
            90deg,
            rgba(20,24,32,0.95) 15%,
            rgba(20,24,32,0.7) 35%,
            rgba(20,24,32,0.3) 55%,
            transparent 100%
        );

    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
}

.hero__content {
    max-width: 600px;
    padding-top: 60px;
}

.hero__title {
    display: flex;
    align-items: center;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero__icon {
    width: 34px;
    margin-right: 12px;
}

.hero__subtitle {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 28px;
}

/* ===== SEARCH ===== */
.hero-search__field {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
}

.hero-search__field input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 16px;
}

.hero-search__chips {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: #cbd5e1;
    cursor: pointer;
}

.chip--active {
    background: var(--green);
    color: #fff;
    border: none;
}

/* ===== MAIN ===== */
.main-content {
    margin-top: 40px;
    position: relative;
    z-index: 3;
}

.section {
    margin-bottom: 50px;
	margin-top: 40px;
}

.section__title {
    font-size: 26px;
    margin-bottom: 20px;
}

/* ===== GRID ===== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
	
}





/* ===== CARD ===== */
.show-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s;
	height: auto;
}

.show-card--featured {
    border: 2px solid var(--green);
    box-shadow: 
        0 0 0 1px rgba(34,197,94,0.3),
        0 20px 60px rgba(0,0,0,0.6),
        0 0 30px rgba(34,197,94,0.5);
}

/* КАРТИНКА */
.show-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% 5%;
}

/* ОВЕРЛЕЙ */
.show-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.2) 70%,
        transparent 100%
    );
    z-index: 1;
}

/* КОНТЕНТ (ВАЖНО — ФИКС) */
.show-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ЗАГОЛОВОК */
.show-card__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* НИЗ */
.show-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ТРЕКИ */
.show-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* ИКОНКА НОТЫ */
.meta-icon {
    display: flex;
    align-items: center;
    color: var(--green);
}

/* КНОПКА */
.show-card__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: var(--green);
    color: #fff;

    padding: 8px 14px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    width: fit-content;
    text-decoration: none;

    transition: 0.2s;
}

.show-card__button:hover {
    background: #16a34a;
}

/* PLAY */
.play-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* HOVER */
.show-card:hover {
    transform: translateY(-6px) scale(1.03);
}

/* ===== COLLECTIONS ===== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.collection-card {
    position: relative;
    height: 160px;
    border-radius: 18px;
    overflow: hidden;
}

.collection-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.collection-card__title {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-weight: 700;
}

.show-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;

    aspect-ratio: 2 / 3; /* ключ */
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
}

.filter-btn {
    background: var(--green);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

/* ===== TABLE (УЛУЧШЕННАЯ) ===== */

.songs-table {
    background: rgba(255,255,255,0.02);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* HEADER */
.songs-header {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ROW */
.song-row {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr;
    padding: 16px 20px;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: 0.25s;
}

/* HOVER как в макете */
.song-row:hover {
    background: rgba(255,255,255,0.06);
}

/* ===== СЕРИАЛ ===== */
.song-series {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* зелёная точка */
.dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

/* ===== СЕРИЯ ===== */
.song-episode {
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== ПЕСНЯ (ГЛАВНОЕ) ===== */
.song-name {
    font-weight: 600;
    color: #fff;
}

/* вторичная строка (если добавишь артистов потом) */
.song-name small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* ===== ВРЕМЯ ===== */
.song-time {
    color: var(--muted);
    text-align: right;
    font-size: 14px;
}

/* ===== MINI POSTER IN TABLE ===== */

.song-series {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* мини постер */
.song-poster {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

/* текст */
.song-series-name {
    color: #fff;
    font-weight: 500;
}

/* ===== SONG ACTIONS ===== */

.song-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* кнопка play */
.play-btn {
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.song-row:hover .play-btn {
    color: #22c55e;
}

/* мини обложка */
.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* лайк */
.like-btn {
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.like-btn:hover {
    color: #ef4444;
}

/* время */
.time {
    color: #94a3b8;
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

/* hover строки */
.song-row {
    transition: 0.2s;
}

.song-row:hover {
    background: rgba(255,255,255,0.03);
}

.song-episode {
    color: #22c55e;
    font-weight: 600;
}

.song-row {
    padding: 16px 20px;
}

/* ===== SERIES PAGE ===== */

.series-card {
    display: flex;
    gap: 30px;
    background: var(--card);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--line);
	align-items: flex-start; /* ВОТ ЭТО ФИКСИТ ВСЁ */
}

.series-poster {
    width: 220px;
    height: auto;
    max-height: 330px; /* ограничение */
    object-fit: cover;
    border-radius: 16px;
}

.series-info {
    max-width: 700px;
}

.series-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.series-description {
    color: var(--muted);
    line-height: 1.6;
}

/* ===== SEASONS ===== */

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.season-card {
    background: var(--card);
    padding: 20px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--line);
    transition: 0.2s;
    text-align: center;
}

.season-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

.season-card__title {
    font-weight: 600;
}

.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.season-row {
    display: block;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
	font-weight: 500;
	transition: 0.2s;
}

.season-row:hover {
    background: rgba(255,255,255,0.08);
}

.season-row--active {
    background: #22c55e;
    color: #000;
    font-weight: 600;
}

.season-row--active:hover {
    background: #16a34a;
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tracks-table th {
    text-align: left;
    padding: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.tracks-table td {
    padding: 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tracks-table tr:hover {
    background: rgba(255,255,255,0.03);
}

/* ===== ТАБЛИЦА ТРЕКОВ ===== */

.tracks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tracks-table th {
    text-align: left;
    padding: 14px;
    font-size: 14px;
    color: #8fa3c7;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tracks-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
}

.tracks-table tr:hover {
    background: rgba(255,255,255,0.03);
}

/* колонка серии */
.tracks-table td:first-child {
    color: #9fb3d9;
    width: 100px;
}

/* песня */
.tracks-table td:nth-child(2) {
    font-weight: 500;
}

/* время */
.tracks-table td:nth-child(3) {
    color: #a0b4d6;
    width: 80px;
}

/* кнопка */
.yt-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.yt-btn:hover {
    background: rgba(255,255,255,0.2);
}





/* =========================
   EPISODE TABLE — CLEAN FINAL
   ========================= */

.episode-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;

    table-layout: fixed;

    background: rgba(20, 25, 35, 0.65);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ===== HEADER ===== */
.episode-table th {
    padding: 16px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.65);
    text-align: left;
}

/* ===== КОЛОНКИ ===== */
.episode-table th:nth-child(1),
.episode-table td:nth-child(1) { width: 22%; }

.episode-table th:nth-child(2),
.episode-table td:nth-child(2) { width: 22%; }

.episode-table th:nth-child(3),
.episode-table td:nth-child(3) { width: 36%; }

.episode-table th:nth-child(4),
.episode-table td:nth-child(4) {
    width: 90px;
    text-align: right;
}

.episode-table th:nth-child(5),
.episode-table td:nth-child(5) {
    width: 70px;
    text-align: right;
}

/* ===== СТРОКИ ===== */
.episode-table td {
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;

    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

/* ===== HOVER ===== */
.episode-table tr:not(:first-child) {
    transition: 0.2s;
}

.episode-table tr:not(:first-child):hover {
    background: rgba(255,255,255,0.04);
}

/* ===== ЭПИЗОД ===== */
.episode-table .episode-cell {
    color: #fff;
    font-weight: 600;
}

/* пустые строки (чтобы не дублировался эпизод) */
.episode-table .episode-empty {
    opacity: 0;
}

/* ===== ТРЕК ===== */
.episode-table td:nth-child(2) {
    font-weight: 600;
    color: #fff;
}

/* ===== ОПИСАНИЕ ===== */
.episode-table td:nth-child(3) {
    color: rgba(255,255,255,0.88);
}

/* ===== ТАЙМКОД ===== */
.episode-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: rgba(255,255,255,0.85);
    padding-right: 20px;
}

/* ===== PLAY ===== */
.episode-table td:nth-child(5) {
    text-align: right;
}

/* ===== КНОПКА ===== */
.episode-table .yt-btn {
    width: 38px;
    height: 38px;
    padding: 0;

    border-radius: 50%;
    border: none;

    background: rgba(34,197,94,0.15);
    color: #22c55e;

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

    cursor: pointer;
    transition: all 0.2s ease;
}

.episode-table .yt-btn:hover {
    background: #22c55e;
    color: #000;
    transform: scale(1.1);
}