:root {
    --bg: #fff8fc;
    --surface: #fff;
    --text: #292536;
    --muted: #797386;
    --pink: #f04483;
    --pink-dark: #d93270;
    --pink-soft: #ffe9f2;
    --purple: #7657e8;
    --blue: #42a5e8;
    --yellow: #ffd75e;
    --line: #f0e8ef;
    --shadow: 0 16px 45px rgba(113, 74, 107, .1);
    --radius: 24px;
    --container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin-top: 0;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 252, .96);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo-mark {
    width: 39px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px 14px 16px 16px;
    background: linear-gradient(135deg, var(--pink), #ff79a8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(240, 68, 131, .25);
    transform: rotate(-5deg);
}

.logo-mark span {
    transform: rotate(5deg);
}

.logo em {
    color: var(--pink);
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-right: auto;
}

.main-nav a {
    color: #5b5567;
    font-weight: 700;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--pink);
}

.site-search {
    width: 210px;
    height: 42px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 12px 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.site-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.site-search input::placeholder {
    color: #9993a2;
}

.site-search button {
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--pink);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

/* Main and shared headings */
.main {
    min-height: 65vh;
    overflow: hidden;
    padding: 43px 0 76px;
}

.home-intro {
    max-width: 780px;
    margin-bottom: 24px;
}

.home-intro h1 {
    margin: 0;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.9px;
}

.home-intro p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.home-section {
    margin-top: 67px;
}

.section-heading,
.panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.section-title,
.panel-title {
    margin-bottom: 0;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
}

.more-link {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 12px;
    background: #fff;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(90, 61, 83, .07);
    transition: color .2s ease, transform .2s ease;
}

.more-link:hover {
    color: var(--pink-dark);
    transform: translateY(-1px);
}

/* Universal homepage feature */
.hero-feature {
    position: relative;
    min-height: 360px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    padding: 32px 38px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(125deg, #ffe4ef 0%, #f1e8ff 52%, #dff4ff 100%);
    box-shadow: var(--shadow);
}

.hero-feature::before,
.hero-feature::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
}

.hero-feature::before {
    width: 120px;
    height: 120px;
    top: -48px;
    left: -42px;
}

.hero-feature::after {
    width: 66px;
    height: 66px;
    right: 40%;
    bottom: -30px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.retro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    color: var(--pink);
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(84, 58, 95, .08);
}

.hero-content h2 {
    display: -webkit-box;
    max-width: 540px;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.04;
    letter-spacing: -1.7px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hero-description {
    max-width: 490px;
    max-height: 3.1em;
    margin-bottom: 18px;
    overflow: hidden;
    color: #696274;
    font-size: 15px;
    line-height: 1.55;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.retro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), #ed589f);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(240, 68, 131, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button:hover,
.retro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(240, 68, 131, .28);
}

.secondary-link {
    color: var(--purple);
    font-weight: 800;
}

.hero-media {
    position: relative;
    z-index: 1;
    min-height: 290px;
}

.hero-screen {
    position: absolute;
    inset: 10px 0 4px 34px;
    display: block;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 23px;
    background: linear-gradient(145deg, #f7b7ce, #b9dff7);
    box-shadow: 0 24px 55px rgba(78, 64, 99, .2);
    transform: rotate(2deg);
}

.hero-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(58px, 8vw, 105px);
    font-weight: 950;
    letter-spacing: -7px;
    transform: rotate(-7deg);
}

.hero-date {
    position: absolute;
    z-index: 2;
    left: 11px;
    bottom: 11px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(40, 34, 54, .88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.hero-heart,
.hero-type {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(76, 55, 84, .16);
}

.hero-heart {
    width: 64px;
    height: 64px;
    top: 2px;
    right: -7px;
    background: var(--yellow);
    font-size: 27px;
    transform: rotate(9deg);
}

.hero-type {
    width: 54px;
    height: 54px;
    left: 8px;
    bottom: 4px;
    background: var(--purple);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .02em;
    transform: rotate(-8deg);
}

/* Cards */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.episode-card,
.news-card,
.retro-card,
.profile-card,
.person-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(95, 69, 92, .06);
    transition: border-color .22s ease, box-shadow .22s ease;
}

.episode-card:hover,
.news-card:hover,
.retro-card:hover,
.profile-card:hover,
.person-card:hover {
    border-color: rgba(240, 68, 131, .28);
    box-shadow: var(--shadow);
}

.episode-card-link,
.card-media,
.card-content,
.profile-card a,
.profile-card-body {
    display: block;
}

.card-media,
.news-card-media,
.retro-card-media,
.news-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f8c7d8, #ddd1fa 55%, #cceafb);
}

.card-media {
    aspect-ratio: 16 / 9;
}

.episode-card:has(.episode-default-cover) .card-media {
    background-position: center;
    background-size: cover;
}

.episode-card--light:has(.episode-default-cover) .card-media {
    background-image: url('../images/episode-light.webp');
}

.episode-card--new-life:has(.episode-default-cover) .card-media {
    background-image: url('../images/episode-new-life.webp');
}

.episode-card--after-dark:has(.episode-default-cover) .card-media {
    background-image: url('../images/episode-after-dark.webp');
}

.episode-card:has(.episode-default-cover) .episode-default-cover {
    opacity: 0;
}

.card-media img,
.news-card-media img,
.retro-card-media img,
.news-thumb img,
.profile-card-photo img,
.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.episode-card:hover img,
.news-card:hover img,
.retro-card:hover img,
.profile-card:hover img,
.person-card:hover img {
    transform: scale(1.045);
}

.media-placeholder,
.retro-placeholder,
.person-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(30px, 5vw, 62px);
    font-weight: 950;
    letter-spacing: -4px;
}

.episode-type,
.retro-card-year {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .9);
    color: var(--purple);
    font-size: 11px;
    font-weight: 850;
}

.play-button {
    position: absolute;
    left: 18px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--pink);
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(63, 41, 62, .14);
}

.card-content {
    padding: 19px;
}

.card-content h2,
.card-content h3 {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.35px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--muted);
    font-size: 12px;
}

/* News + retro home composition */
.home-showcase {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
}

.home-showcase > :only-child {
    grid-column: 1 / -1;
}

.news-panel:not(:has(.news-row)),
.home-retro-list:empty {
    display: none;
}

.home-showcase:not(:has(.news-row)):not(:has(.retro-feature)) {
    display: none;
}

.news-panel {
    padding: 27px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 26px rgba(95, 69, 92, .06);
}

.panel-heading {
    align-items: center;
    margin-bottom: 8px;
}

.panel-title {
    font-size: 29px;
}

.news-row {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 17px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.news-row:first-child {
    border-top: 0;
}

.news-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 15px;
}

.news-row-content h3 {
    margin: 4px 0 7px;
    font-size: 17px;
    line-height: 1.3;
}

.news-row-content h3 a:hover {
    color: var(--pink);
}

.news-label {
    color: var(--muted);
    font-size: 12px;
}

.retro-feature {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #6e52dd, #9c68e8);
    color: #fff;
    box-shadow: 0 15px 35px rgba(104, 79, 202, .2);
}

.home-retro-list {
    min-width: 0;
}

.retro-feature::after {
    content: "♡";
    position: absolute;
    right: -15px;
    bottom: -74px;
    color: rgba(255, 255, 255, .12);
    font-size: 240px;
    line-height: 1;
}

.retro-feature > * {
    position: relative;
    z-index: 1;
}

.retro-kicker {
    align-self: flex-start;
    color: var(--purple);
}

.retro-feature__title {
    max-width: 320px;
    margin-bottom: 14px;
    font-size: 35px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.retro-description {
    max-width: 370px;
    color: #e9e3ff;
}

.retro-description p:last-child {
    margin-bottom: 0;
}

.retro-year {
    margin-top: auto;
    color: #ffd85f;
    font-size: 75px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -5px;
}

.retro-title {
    color: #f2edff;
}

.retro-button {
    align-self: flex-start;
    margin-top: 5px;
    background: #fff;
    color: var(--purple);
    box-shadow: none;
}

/* Participants */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
    justify-content: start;
    gap: 17px;
}

.person-card {
    position: relative;
    padding: 10px 10px 16px;
    text-align: center;
}

.person-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: linear-gradient(150deg, #ffd5e2, #d7e5ff);
}

.person-status-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 11px;
    height: 11px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #52ce8b;
}

.person-card h3 {
    display: block;
    margin-top: 11px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.35;
}

.person-card small {
    color: var(--muted);
}

/* SEO blocks */
.home-seo,
.category-seo {
    position: relative;
    overflow: hidden;
    border: 1px solid #eedfe8;
    border-radius: 28px;
    background: #fff;
    color: #5f5663;
    box-shadow: 0 20px 55px rgba(74, 49, 70, .07);
}

.home-seo::before,
.category-seo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), #9d70ef 52%, #71c8f4);
}

.home-seo {
    margin-top: 52px;
    padding: clamp(25px, 4vw, 40px);
}

.home-seo__header {
    max-width: 900px;
}

.home-seo__label,
.category-seo__label {
    display: inline-flex;
    margin-bottom: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0f6;
    color: var(--pink);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
}

.home-seo__title,
.category-seo__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 3.5vw, 34px);
    line-height: 1.13;
    letter-spacing: -1px;
}

.home-seo p,
.category-seo p {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.75;
}

.home-seo em,
.category-seo em {
    color: #d93678;
    font-style: normal;
    font-weight: 800;
}

.home-seo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: clamp(22px, 4vw, 40px);
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.home-seo__subtitle,
.category-seo__subtitle {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 16px;
}

.home-seo__benefits,
.category-seo__topics {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-seo__benefits li {
    position: relative;
    padding-left: 31px;
    line-height: 1.55;
}

.home-seo__benefits li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pink), #8a83ef);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.home-seo__note {
    align-self: start;
    padding: 22px;
    border: 1px solid #f2dce7;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff4f8, #f8f5ff);
}

.home-seo__note p {
    font-size: 14px;
}

.home-seo__note a {
    color: var(--pink);
    font-weight: 800;
}

.category-seo {
    margin-top: 38px;
    padding: clamp(24px, 4vw, 36px);
}

.category-seo > p {
    max-width: 980px;
}

.category-seo__topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.category-seo__topics li {
    min-width: 0;
    padding: 18px;
    border: 1px solid #f0e1e9;
    border-radius: 18px;
    background: #fffafd;
}

.category-seo__topics strong,
.category-seo__topics span {
    display: block;
}

.category-seo__topics strong {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 14px;
}

.category-seo__topics span {
    font-size: 13px;
    line-height: 1.55;
}

/* Category listings */
.breadcrumbs {
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 13px;
}

ol.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    list-style: none;
}

ol.breadcrumbs > li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

ol.breadcrumbs > li + li::before {
    content: "›";
    color: #c3b7c2;
}

.breadcrumbs a:hover {
    color: var(--pink);
}

.retro-full-poster {
    overflow: hidden;
    margin: 0 0 24px;
    border-radius: 24px;
    background: #f3e8f2;
    box-shadow: var(--shadow-soft);
}

.retro-full-poster img {
    width: 100%;
    height: auto;
}

.category-header {
    max-width: 780px;
    margin-bottom: 34px;
}

.category-header h1 {
    margin-bottom: 10px;
    font-size: clamp(35px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.category-header p,
.category-description {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.category-description:empty {
    display: none;
}

.category-description p:last-child {
    margin-bottom: 0;
}

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

.listing-episodes,
.listing-retro,
.listing-category-1,
.listing-category-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-news,
.listing-category-2 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    justify-content: start;
}

.listing-people,
.listing-category-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-category-2 .news-card,
.listing-category-4 .profile-card {
    width: 100%;
}


.news-card-media,
.retro-card-media {
    display: block;
    aspect-ratio: 16 / 9;
}

.news-card-description {
    color: var(--muted);
}

.news-card-description p:last-child {
    margin-bottom: 0;
}

.news-card-body {
    padding: 21px;
}

.news-card-body h2 {
    margin: 8px 0 10px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

.listing-category-2 .news-card-body {
    padding: 17px;
}

.listing-category-2 .news-card-description {
    font-size: 14px;
    line-height: 1.55;
}

.listing-category-2 .read-link {
    margin-top: 11px;
}

.news-card-body h2 a:hover {
    color: var(--pink);
}

.read-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--pink);
    font-weight: 800;
}

.retro-card-year {
    right: auto;
    left: 13px;
    color: var(--purple);
}

.retro-card .play-button {
    right: 17px;
    left: auto;
}

.profile-card-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(150deg, #ffd5e2, #d7e5ff);
}

.profile-card-body {
    padding: 17px;
}

.profile-card-body h2 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.profile-card-body span {
    color: var(--muted);
    font-size: 13px;
}

/* DLE pagination */
.navigation,
.pages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.navigation a,
.navigation span,
.pages a,
.pages span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.navigation span,
.pages span {
    background: var(--pink);
    color: #fff;
}

/* Full articles */
.inner-page,
.full-episode,
.full-article,
.full-profile {
    width: min(calc(100% - 40px), 980px);
    margin-inline: auto;
}

.article-header {
    max-width: 880px;
    margin-bottom: 28px;
}

.article-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink);
    font-size: 12px;
    font-weight: 850;
}

.article-header h1,
.profile-info h1 {
    margin-bottom: 15px;
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.06;
    letter-spacing: -2px;
}

.episode-page-title time,
.episode-card-title time {
    color: var(--pink);
    font: inherit;
    white-space: nowrap;
}

.episode-card-title {
    display: block;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    font-size: 13px;
}

.article-lead {
    max-width: 800px;
    margin: 20px 0 0;
    color: #625c69;
    font-size: 18px;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 32px;
    border-radius: var(--radius);
    background: #17151c;
    box-shadow: var(--shadow);
}

.video-player iframe,
.video-player video {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: linear-gradient(135deg, #f4b8d1, #b9d8f4);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.episode-promo__link {
    display: block;
}

.video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(24, 18, 30, .68));
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.video-facade:hover img {
    transform: scale(1.035);
}

.video-facade-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(42px, 10vw, 110px);
    font-weight: 950;
    letter-spacing: -6px;
    transform: rotate(-5deg);
}

.video-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border: 5px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 13px 34px rgba(41, 21, 39, .3);
    font-size: 25px;
    transform: translate(-50%, -50%);
    transition: background .2s ease, transform .2s ease;
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
    background: var(--pink-dark);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-facade-label {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    font-weight: 850;
}

.video-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #aaa5b1;
}

.player-tabs__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.player-tabs__buttons button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.player-tabs__buttons button[aria-selected="true"] {
    border-color: var(--pink);
    background: var(--pink);
    color: #fff;
}

.player-tabs__panel[hidden] {
    display: none;
}

.article-cover {
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: var(--radius);
    background: var(--pink-soft);
}

.article-cover img {
    width: 100%;
}

.article-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 32px 0;
    border-radius: var(--radius);
    background: #17151c;
    box-shadow: var(--shadow);
}

.article-video iframe,
.article-video video {
    width: 100%;
    height: 100%;
    border: 0;
}

.pwa-install {
    position: relative;
    width: min(100%, 590px);
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px;
    padding: 10px 43px 10px 11px;
    border: 1px solid #f1d9e5;
    border-radius: 16px;
    background: linear-gradient(125deg, #fff 15%, #fff5fa 100%);
    box-shadow: 0 8px 22px rgba(73, 47, 70, .06);
}

.pwa-install[hidden] {
    display: none;
}

.pwa-install__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 12px 4px;
    background: linear-gradient(145deg, var(--pink), #ff7aab);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 7px 16px rgba(240, 68, 131, .2);
}

.pwa-install__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pwa-install__copy strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.25;
}

.pwa-install__copy small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.pwa-install__button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.pwa-install__close {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.pwa-install__close:hover {
    background: var(--pink-soft);
    color: var(--pink);
}

.pwa-install__button:hover {
    background: var(--pink);
    transform: translateY(-1px);
}

.pwa-install__button:focus-visible {
    outline: 3px solid rgba(118, 87, 232, .35);
    outline-offset: 3px;
}

.pwa-install__close:focus-visible {
    outline: 3px solid rgba(118, 87, 232, .28);
    outline-offset: 2px;
}

.episode-meta-strip {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 26px;
}

.episode-facts {
    min-width: 0;
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}

.episode-fact {
    min-width: 118px;
    min-height: 58px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 8px 15px;
    border-right: 1px solid var(--line);
    color: var(--text);
    line-height: 1.15;
}

.episode-fact:last-child {
    border-right: 0;
}

.episode-fact__label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.episode-fact__value {
    font-size: 13px;
    font-weight: 800;
}

.pwa-install--inline {
    width: auto;
    min-width: 290px;
    margin: 0 0 0 auto;
    padding-top: 7px;
    padding-bottom: 7px;
    border-style: dashed;
    box-shadow: none;
}

.episode-reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -8px 0 14px;
    padding: 16px 18px;
    border: 1px solid #f0dce8;
    border-radius: 20px;
    background: linear-gradient(110deg, #fff 0%, #fff7fb 100%);
    box-shadow: 0 12px 32px rgba(71, 46, 67, .06);
}

.episode-reactions__copy {
    display: grid;
    gap: 3px;
}

.episode-reactions__copy strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
}

.episode-reactions__copy span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.episode-reactions__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.episode-reactions__actions > a {
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}

.episode-reaction {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: #4d4653;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.episode-reaction svg {
    flex: 0 0 auto;
}

.episode-reaction strong {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #f7f2f6;
    color: var(--text);
    font-size: 12px;
    line-height: 1;
}

.episode-reaction--like svg {
    color: var(--pink);
}

.episode-reaction--dislike svg {
    color: #7760e9;
}

.episode-reactions__actions a:hover .episode-reaction,
.episode-reactions__actions a:focus-visible .episode-reaction {
    border-color: rgba(240, 68, 131, .35);
    box-shadow: 0 8px 20px rgba(240, 68, 131, .12);
    transform: translateY(-1px);
}

.episode-reactions__actions a:focus-visible {
    outline: 3px solid rgba(118, 87, 232, .25);
    outline-offset: 2px;
}

.episode-seo-title {
    max-width: 880px;
    margin: 0 0 18px;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

.episode-seo-title time {
    font: inherit;
}

.article-content {
    color: #3f3a47;
    font-size: 17px;
    line-height: 1.75;
}

.article-content h2,
.article-content h3 {
    margin: 1.6em 0 .65em;
    color: var(--text);
    line-height: 1.2;
}

.article-content h2 {
    font-size: 29px;
}

.article-content h3 {
    font-size: 23px;
}

.article-content p {
    margin-bottom: 1.15em;
}

.article-content a {
    color: var(--pink-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    height: auto;
    border-radius: 16px;
}

.article-content hr {
    position: relative;
    width: min(100%, 720px);
    height: 3px;
    margin: 36px auto;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(240, 68, 131, .72) 24%, rgba(118, 87, 232, .68) 76%, transparent);
}

.article-content hr::after {
    content: "♥";
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 6px solid var(--bg);
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(240, 68, 131, .2);
    transform: translate(-50%, -50%);
}

.article-content blockquote {
    position: relative;
    margin: 30px 0;
    padding: 25px 28px 25px 76px;
    overflow: hidden;
    border: 1px solid rgba(240, 68, 131, .17);
    border-left: 5px solid var(--pink);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #fff6fb 58%, #f7f3ff 100%);
    color: #403949;
    font-size: 18px;
    font-style: normal;
    line-height: 1.65;
    box-shadow: 0 13px 34px rgba(93, 62, 89, .075);
}

.article-content blockquote::before {
    content: "“";
    position: absolute;
    top: 11px;
    left: 20px;
    color: var(--pink);
    font: 800 64px/1 Georgia, serif;
    opacity: .9;
}

.article-content blockquote::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -52px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(118, 87, 232, .055);
    pointer-events: none;
}

.article-content blockquote > :last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 600px) {
    .article-content hr {
        margin: 29px auto;
    }

    .article-content blockquote {
        margin: 24px 0;
        padding: 20px 19px 20px 53px;
        border-radius: 17px;
        font-size: 16px;
    }

    .article-content blockquote::before {
        top: 12px;
        left: 14px;
        font-size: 45px;
    }
}

.static-page {
    width: min(100%, 880px);
    margin-inline: auto;
}

.system-message {
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid #f3d9e5;
    border-radius: 18px;
    background: #fff;
}

.system-message h2 {
    margin-bottom: 7px;
    font-size: 20px;
}

.system-message > div > :last-child,
.system-message > div:last-child {
    margin-bottom: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.profile-flow::after {
    content: "";
    display: table;
    clear: both;
}

.profile-flow .profile-photo {
    position: relative;
    top: auto;
    float: left;
    width: min(42%, 380px);
    margin: 0 44px 28px 0;
}

.profile-flow .profile-info h1 {
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.08;
}

.profile-flow .profile-facts {
    overflow: hidden;
}

.profile-facts:empty {
    display: none;
}

.profile-story {
    min-width: 0;
}

/* Episode description: the complete text stays in the HTML, only its viewport is collapsed. */
.episode-description {
    position: relative;
}

.episode-description__content {
    position: relative;
}

.episode-description.is-ready:not(.is-expanded) .episode-description__content {
    max-height: 220px;
    overflow: hidden;
}

.episode-description.is-ready:not(.is-expanded) .episode-description__content::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 66px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 248, 252, 0), var(--bg) 72%);
}

.episode-description__toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--purple);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.episode-description__toggle[hidden],
.episode-description.is-not-collapsible .episode-description__toggle {
    display: none;
}

.episode-description.is-expanded .episode-description__toggle {
    margin-top: 12px;
}

/* Search page and compact results. */
.search-page {
    width: min(100%, 920px);
    margin: 0 auto 35px;
}

.search-page__header {
    margin-bottom: 24px;
}

.search-page__header h1 {
    margin: 9px 0 8px;
    font-size: clamp(36px, 5.8vw, 58px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.search-page__header p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.search-page__form,
.search-result-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-page__form {
    padding: 24px;
}

.search-page__simple,
.search-page__fieldset {
    min-width: 0;
}

.search-page__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.search-page input[type="text"],
.search-page input[type="search"],
.search-page select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffafd;
    color: var(--text);
    font: inherit;
}

.search-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}

.search-page__submit,
.search-page__secondary {
    min-height: 44px;
    padding: 9px 18px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.search-page__submit {
    background: var(--pink);
    color: #fff;
}

.search-page__secondary {
    background: #f7f1f7;
    color: var(--text);
}

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

.search-page__fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
}

.search-page__fieldset legend {
    padding: 0 7px;
    font-weight: 850;
}

.search-page__options {
    margin-top: 11px;
    color: var(--muted);
    font-size: 14px;
}

.search-page__categories select {
    min-height: 210px;
}

.search-page__message {
    margin-top: 18px;
    padding: 14px 17px;
    border-radius: 14px;
    background: #fff1f7;
    color: var(--muted);
}

.search-result-card {
    width: min(100%, 720px);
    margin: 0 auto 18px;
    padding: 23px 25px;
}

.search-result-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
}

.search-result-card__meta a,
.search-result-card__type {
    color: var(--pink);
    font-weight: 800;
}

.search-result-card h2 {
    margin: 0 0 10px;
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.18;
    letter-spacing: -.6px;
}

.search-result-card__text {
    color: var(--muted);
    line-height: 1.65;
}

.search-result-card__text > :last-child {
    margin-bottom: 0;
}

.profile-photo {
    position: sticky;
    top: 100px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #ffd5e2, #d7e5ff);
    box-shadow: var(--shadow);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-facts {
    display: grid;
    gap: 0;
    margin: 25px 0 30px;
    border-top: 1px solid var(--line);
}

.profile-facts > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.profile-facts dt {
    color: var(--muted);
}

.profile-facts dd {
    font-weight: 700;
}

/* Community: authorization, profiles and private messages */
.user-menu {
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
}

.user-menu__toggle {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 5px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.user-menu__toggle--guest {
    padding: 7px 13px 7px 7px;
    font-size: 13px;
    font-weight: 800;
}

.user-menu__avatar,
.community-profile__avatar,
.community-message__avatar,
.community-profile-popup__avatar {
    background-position: center;
    background-size: cover;
}

.user-menu__avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 11px;
    background-color: #f5dbe7;
}

.user-menu__avatar--large {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.user-menu__name {
    max-width: 92px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__badge {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.user-menu__guest-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffe7f0;
    color: var(--pink);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    padding: 16px;
    border: 1px solid #f0dce7;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(70, 44, 67, .16);
}

.user-menu__panel--login {
    width: 320px;
}

.user-menu__identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.user-menu__identity > span:last-child {
    min-width: 0;
    display: grid;
}

.user-menu__identity strong,
.user-menu__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__identity small,
.user-menu__panel > p {
    color: var(--muted);
    font-size: 11px;
}

.user-menu__title {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.user-menu__panel > p {
    margin-bottom: 13px;
    line-height: 1.45;
}

.user-menu__links {
    display: grid;
    margin: 8px 0;
}

.user-menu__links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 7px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.user-menu__links a:hover {
    background: #fff2f7;
    color: var(--pink);
}

.user-menu__logout {
    display: block;
    padding: 10px 7px 2px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.community-social-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 18px;
}

.community-social-auth:not(:has(a)) {
    display: none;
}

.community-social-auth::after {
    content: "или войдите по логину";
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    margin-top: 5px;
    background: linear-gradient(var(--line), var(--line)) left center / 100% 1px no-repeat;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-shadow: -8px 0 var(--surface), 8px 0 var(--surface);
}

.community-social-auth__item {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.community-social-auth__item:hover {
    transform: translateY(-1px);
    border-color: #e7cddd;
    box-shadow: 0 8px 20px rgba(73, 47, 70, .08);
}

.community-social-auth__item span {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.community-social-auth__item--vk span { background: #2787f5; }
.community-social-auth__item--google span { border: 1px solid #e4e7ec; background: #fff; color: #4285f4; }
.community-social-auth__item--yandex span { background: #fc3f1d; }
.community-social-auth__item--mailru span { background: #168de2; }
.community-social-auth__item--ok span { background: #ee8208; }
.community-social-auth__item--facebook span { background: #1877f2; }

.community-social-auth--registration {
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 24px;
}

.community-social-auth--registration::after {
    content: "или заполните обычную форму";
}

.community-login,
.community-login label {
    display: grid;
    gap: 7px;
}

.community-login {
    gap: 11px;
}

.community-login label {
    color: #5c5260;
    font-size: 11px;
    font-weight: 800;
}

.community-login input,
.community-field input,
.community-field textarea,
.community-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    background: #fffafd;
    color: var(--text);
    font: inherit;
}

.community-login input:focus,
.community-field input:focus,
.community-field textarea:focus,
.community-field select:focus {
    border-color: rgba(240, 68, 131, .55);
    box-shadow: 0 0 0 4px rgba(240, 68, 131, .08);
}

.community-login button,
.community-submit,
.community-secondary {
    min-height: 43px;
    padding: 10px 18px;
    border: 0;
    border-radius: 13px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.community-login button:hover,
.community-submit:hover {
    background: var(--pink);
}

.user-menu__auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    font-size: 11px;
    font-weight: 750;
}

.user-menu__auth-links a:first-child {
    color: var(--pink);
}

.community-page,
.community-profile,
.community-messages,
.community-dialog {
    width: min(100%, 980px);
    margin-inline: auto;
}

.community-card,
.community-profile,
.community-messages,
.community-dialog {
    border: 1px solid #f0dce8;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(76, 49, 72, .07);
}

.community-card {
    padding: clamp(22px, 4vw, 38px);
}

.community-card--narrow {
    max-width: 640px;
    margin-inline: auto;
}

.community-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.community-card__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 18px 18px 18px 7px;
    background: linear-gradient(145deg, var(--pink), #ff78a9);
    color: #fff;
    font-size: 20px;
}

.community-card__header h1 {
    margin: 0;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.1;
}

.community-card__header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.community-form,
.community-field {
    display: grid;
    gap: 8px;
}

.community-form {
    gap: 18px;
}

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

.community-field {
    align-content: start;
    color: #554c59;
    font-size: 12px;
    font-weight: 750;
}

.community-field--wide {
    grid-column: 1 / -1;
}

.community-field textarea {
    min-height: 130px;
    resize: vertical;
}

.community-field input[type="file"] {
    padding: 8px;
    background: #fff;
}

.community-field small,
.community-check {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.community-login-check {
    display: flex;
    gap: 8px;
}

.community-login-check input {
    min-width: 0;
}

.community-login-check button {
    flex: 0 0 auto;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: #f2eafa;
    color: var(--purple);
    font-weight: 800;
    cursor: pointer;
}

.community-captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.community-captcha input {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.community-submit {
    justify-self: start;
    min-width: 170px;
}

.community-profile {
    overflow: hidden;
}

.community-profile__hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 30px;
    background: linear-gradient(120deg, #ffeaf2, #f1ecff 55%, #eaf6ff);
}

.community-profile__avatar {
    width: 112px;
    height: 112px;
    border: 5px solid #fff;
    border-radius: 35px 35px 35px 12px;
    background-color: #f7dce8;
    box-shadow: 0 14px 30px rgba(81, 53, 78, .14);
}

.community-profile__eyebrow {
    color: var(--pink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.community-profile__identity h1,
.community-messages__header h1,
.community-dialog > header h1 {
    margin: 4px 0 6px;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.05;
}

.community-profile__identity p,
.community-dialog > header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.community-online {
    color: #259765;
    font-weight: 800;
}

.community-profile__message a,
.community-messages__nav a,
.community-messages__nav span {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--text);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.community-tabs__buttons {
    display: flex;
    gap: 7px;
    padding: 14px 30px 0;
    border-bottom: 1px solid var(--line);
}

.community-tabs__buttons button {
    padding: 10px 14px 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.community-tabs__buttons button[aria-selected="true"] {
    border-bottom-color: var(--pink);
    color: var(--text);
}

.community-tabs__panel {
    padding: 30px;
}

.community-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
    gap: 40px;
}

.community-profile__about h2,
.community-form h2,
.community-card--message h2,
.community-dialog__reply h2 {
    margin-bottom: 14px;
    font-size: 23px;
}

.community-profile__about > div {
    color: #49424d;
    line-height: 1.7;
}

.community-profile__facts {
    margin: 0;
    border-top: 1px solid var(--line);
}

.community-profile__facts > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.community-profile__facts dt {
    color: var(--muted);
}

.community-profile__facts dd {
    text-align: right;
    font-weight: 750;
}

.community-signature {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 12px;
}

.community-signature strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

.community-profile__save,
.community-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.community-delete {
    color: #b45a70;
    font-size: 11px;
}

.community-profile__progress {
    display: grid;
    gap: 8px;
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffafd;
}
.community-profile__progress > span { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; }
.community-profile__progress > span em { color: var(--muted); font-style: normal; }
.community-profile__progress > i { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #f2e6ed; }
.community-profile__progress > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff86b1); }
.community-profile__progress small { color: var(--muted); font-size: 10px; }
.community-profile__insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.community-profile__insights > section { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.community-profile__insights h3 { margin: 0 0 10px; font-size: 14px; }
.community-profile__reactions,.community-profile__services { display: flex; flex-wrap: wrap; gap: 7px; }
.community-profile__reactions > span,.community-service { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; background: #fff2f7; color: #705d68; font-size: 10px; }
.community-profile__reactions em { color: var(--pink); font-style: normal; font-weight: 900; }
.community-service { background: #f3f6fb; color: #52647e; font-weight: 800; }
.community-profile__section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.community-profile__section-title span { color: var(--pink); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.community-profile__section-title h2 { margin: 3px 0 0; font-size: 23px; }
.community-profile__section-title > b { display: grid; min-width: 40px; height: 40px; padding: 0 9px; place-items: center; border-radius: 14px; background: #fff0f6; color: var(--pink); }
.community-profile-activity { display: grid; gap: 9px; }
.community-profile-activity__item { display: grid; gap: 7px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.community-profile-activity__item:hover { border-color: #edb9cd; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(73,47,70,.06); }
.community-profile-activity__item > span { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.community-profile-activity__item b { color: var(--text); font-size: 12px; }
.community-profile-activity__item time,.community-profile-activity__item small { color: var(--muted); font-size: 9px; }
.community-profile-activity__item p { margin: 0; color: #514852; font-size: 12px; line-height: 1.55; }
.community-profile-empty { padding: 30px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.community-profile-preferences { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fffafd; }
.community-profile-preferences h3 { margin: 0 0 3px; font-size: 15px; }
.community-profile-preferences label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.community-profile-preferences label input { width: 17px; height: 17px; min-height: 0; accent-color: var(--pink); }
.community-profile-preferences label span { color: #554a52; font-size: 11px; }
.community-profile-preferences button { width: max-content; margin-top: 5px; padding: 9px 13px; border: 0; border-radius: 999px; background: var(--text); color: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.community-profile-preferences button:hover { background: var(--pink); }
.community-profile-preferences small { color: #32855a; font-size: 10px; }
@media (max-width: 700px) { .community-profile__insights { grid-template-columns: 1fr; } .community-profile-activity__item > span { align-items: flex-start; flex-direction: column; gap: 3px; } }

.community-messages,
.community-dialog {
    padding: 28px;
}

.community-messages__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.community-messages__quota {
    display: grid;
    gap: 6px;
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: 11px;
}

.community-pmlist {
    overflow-x: auto;
}

.community-pmlist table {
    width: 100%;
    border-collapse: collapse;
}

.community-pmlist th,
.community-pmlist td {
    padding: 12px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.community-card--message {
    margin-top: 20px;
    box-shadow: none;
}

.community-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.community-dialog > header {
    margin-bottom: 22px;
}

.community-dialog__messages {
    display: grid;
    gap: 13px;
}

.community-message {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffafd;
}

.community-message__avatar {
    width: 43px;
    height: 43px;
    border-radius: 14px 14px 14px 5px;
    background-color: #f7dce8;
}

.community-message__content > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.community-message__content time,
.community-message__content footer {
    color: var(--muted);
    font-size: 10px;
}

.community-message__text {
    color: #443d48;
    line-height: 1.65;
}

.community-message__content footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.community-dialog__reply {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.community-dialog__reply .community-submit {
    margin-top: 14px;
}

.community-profile-popup {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
}

.community-profile-popup__avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 17px;
    background-color: #f7dce8;
}

.community-profile-popup > div {
    display: grid;
    gap: 2px;
}

.community-profile-popup small,
.community-profile-popup span {
    color: var(--muted);
    font-size: 10px;
}

.message-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 260px;
    padding: 13px 16px;
    border: 1px solid #f0dce8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(66, 40, 64, .2);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .2s ease, transform .2s ease;
}

.message-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.message-toast > span:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--pink);
    color: #fff;
}

.message-toast > span:last-child {
    display: grid;
}

.message-toast small {
    color: var(--muted);
    font-size: 10px;
}

/* Footer */
.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner p {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-nav a:hover {
    color: var(--pink);
}

/* Tablets */
@media (max-width: 1080px) {
    .header-inner {
        gap: 22px;
    }

    .main-nav {
        gap: 15px;
    }

    .site-search {
        display: none;
    }

    .listing-people,
    .listing-category-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-news,
    .listing-category-2 {
        grid-template-columns: repeat(auto-fill, minmax(270px, 330px));
    }
}

@media (max-width: 900px) {
    .hero-feature {
        grid-template-columns: 1fr 1fr;
    }

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

    .listing-episodes,
    .listing-retro,
    .listing-category-1,
    .listing-category-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones */
@media (max-width: 760px) {
    .container,
    .inner-page,
    .full-episode,
    .full-article,
    .full-profile {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 65px;
    }

    .main-nav {
        position: fixed;
        inset: 65px 0 auto;
        z-index: 29;
        display: none;
        max-height: calc(100vh - 65px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 14px 22px;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 35px rgba(75, 50, 70, .12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 10px;
        border-bottom: 1px solid var(--line);
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .menu-button[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-button[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-button[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main {
        padding: 26px 0 55px;
    }

    .user-menu__name {
        display: none;
    }

    .user-menu__panel,
    .user-menu__panel--login {
        position: fixed;
        top: 72px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    .community-form__grid,
    .community-profile__layout {
        grid-template-columns: 1fr;
    }

    .community-field--wide {
        grid-column: auto;
    }

    .community-profile__hero {
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 22px;
    }

    .community-profile__avatar {
        width: 78px;
        height: 78px;
        border-width: 4px;
        border-radius: 25px 25px 25px 9px;
    }

    .community-profile__message {
        grid-column: 1 / -1;
    }

    .community-tabs__buttons {
        padding-right: 18px;
        padding-left: 18px;
        overflow-x: auto;
    }

    .community-tabs__panel,
    .community-messages,
    .community-dialog {
        padding: 20px;
    }

    .community-messages__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .message-toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        min-width: 0;
    }

    .episode-meta-strip {
        flex-direction: column;
    }

    .pwa-install--inline {
        width: min(100%, 520px);
        min-width: 0;
        margin-left: 0;
    }

    .episode-reactions {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .episode-reactions__actions {
        width: 100%;
    }

    .episode-reactions__actions > a {
        flex: 1 1 0;
    }

    .episode-reaction {
        width: 100%;
        justify-content: center;
    }

    .hero-feature {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .hero-content h2 {
        font-size: clamp(28px, 9vw, 38px);
        letter-spacing: -1.4px;
    }

    .hero-media {
        min-height: 230px;
    }

    .hero-screen {
        inset: 15px 6px 4px 12px;
    }

    .hero-heart {
        right: -9px;
    }

    .home-section {
        margin-top: 51px;
    }

    .section-heading {
        align-items: center;
    }

    .section-heading p {
        display: none;
    }

    .episode-grid,
    .home-showcase,
    .listing-news,
    .listing-category-2,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .people-grid,
    .listing-episodes,
    .listing-retro,
    .listing-people,
    .listing-category-1,
    .listing-category-3,
    .listing-category-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-panel {
        padding: 20px;
    }

    .news-row {
        grid-template-columns: 105px 1fr;
        gap: 14px;
    }

    .retro-feature {
        min-height: 440px;
    }

    .home-seo {
        margin-top: 51px;
    }

    .home-seo__grid,
    .category-seo__topics,
    .community-social-auth--registration {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        position: relative;
        top: auto;
        max-width: 480px;
    }

    .profile-flow .profile-photo {
        float: none;
        width: min(100%, 420px);
        margin: 0 auto 27px;
    }

    .profile-flow .profile-info h1 {
        font-size: clamp(31px, 10vw, 43px);
    }

    .search-page__advanced-grid {
        grid-template-columns: 1fr;
    }

    .search-page__form,
    .search-result-card {
        padding: 19px;
        border-radius: 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .community-social-auth {
        grid-template-columns: 1fr;
    }

    .community-captcha--google > * {
        transform: scale(.8);
        transform-origin: left top;
    }

    .community-captcha--google {
        min-height: 63px;
        overflow: hidden;
    }

    .hero-feature {
        padding: 23px 20px;
        border-radius: 25px;
    }

    .pwa-install {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: center;
        gap: 7px 10px;
        padding: 10px 38px 10px 10px;
    }

    .pwa-install__icon {
        grid-column: 1;
        grid-row: 1;
    }

    .pwa-install__copy {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .pwa-install__copy strong {
        font-size: 13px;
    }

    .pwa-install__copy small {
        font-size: 10px;
    }

    .pwa-install__button {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        min-height: 34px;
        margin: 0;
        padding: 7px 13px;
        font-size: 11px;
    }

    .episode-facts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .episode-fact {
        min-width: 0;
        padding: 8px 9px;
    }

    .episode-fact__label {
        font-size: 8px;
    }

    .episode-fact__value {
        font-size: 11px;
    }

    .episode-reactions {
        padding: 15px;
        border-radius: 18px;
    }

    .episode-reactions__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .episode-reaction {
        gap: 6px;
        padding-right: 8px;
        padding-left: 10px;
        font-size: 12px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-media {
        min-height: 250px;
    }

    .hero-heart {
        width: 68px;
        height: 68px;
        font-size: 29px;
    }

    .hero-type {
        width: 62px;
        height: 62px;
    }

    .people-grid,
    .listing-episodes,
    .listing-retro,
    .listing-people,
    .listing-category-1,
    .listing-category-3,
    .listing-category-4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .person-card {
        padding: 7px 7px 13px;
    }

    .person-card h3 {
        font-size: 13px;
    }

    .person-card small {
        font-size: 11px;
    }

    .profile-facts > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

.push-invite {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: min(430px, calc(100% - 28px));
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 18px 55px rgba(63, 38, 58, .2);
}

.push-invite[hidden] {
    display: none;
}

.push-invite__close {
    position: absolute;
    top: 7px;
    right: 9px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
}

.push-invite__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--pink);
    color: #fff;
}

.push-invite strong,
.push-invite p {
    display: block;
    margin: 0;
}

.push-invite p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.push-invite__button {
    grid-column: 1 / -1;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--pink);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.push-invite small {
    grid-column: 1 / -1;
    color: var(--muted);
}

@media (max-width: 520px) {
    .push-invite {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Тематические обложки используются, пока Okko не вернул собственный постер. */
.episode-default-cover {
    display: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-card--light .episode-default-cover--light,
.episode-card--new-life .episode-default-cover--new-life,
.episode-card--after-dark .episode-default-cover--after-dark {
    display: block !important;
}

@media (max-width: 900px) {
    .category-page > .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .category-page > .listing-grid {
        grid-template-columns: 1fr;
    }
}

/* В каталоге участников сохраняем компактные две колонки даже на телефоне. */
@media (max-width: 560px) {
    .category-page > .listing-category-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .listing-category-4 .profile-card {
        max-width: none;
    }
}


/* SEO/UI audit v9.3.1 */
.section-title,
.panel-title,
.home-seo__title,
.category-seo__title,
.retro-feature__title,
.episode-seo-title {
    font-weight: 850;
}


.home-seo,
.category-seo {
    content-visibility: auto;
    contain-intrinsic-size: 1px 560px;
}

@media (max-width: 900px) {
    .listing-category-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .listing-category-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Participants catalogue: fill the wide row instead of leaving a fifth-card gap. */
.listing-category-4 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .listing-category-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .listing-category-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .listing-category-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* DOM2EFIRY DEFAULT COVER HOVER FIX v9.2.9 BEGIN
   Дефолтная обложка остаётся видимым <img>, поэтому масштабируется
   внутри карточки, а сама карточка не меняет положение. */
.episode-card .card-media > .episode-default-cover {
    opacity: 1 !important;
    transform: scale(1) !important;
    transform-origin: center center;
    transition: transform .38s cubic-bezier(.2, .65, .3, 1) !important;
    will-change: transform;
}

.episode-card:hover .card-media > .episode-default-cover,
.episode-card-link:hover .card-media > .episode-default-cover,
.card-media:hover > .episode-default-cover {
    transform: scale(1.07) !important;
}
/* DOM2EFIRY DEFAULT COVER HOVER FIX v9.2.9 END */

/* Episode page: title below player, without same-day sidebar v9.4.0 */
.full-episode .episode-article-header {
    max-width: 880px;
    margin: 22px 0 14px;
}

.full-episode .episode-article-header h1,
.full-episode .episode-page-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.25px;
}

.full-episode .episode-page-title time {
    font: inherit;
}


/* dom2efiry v9.4.1: six participant cards on the home page */
.home-page .people-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
}

@media (max-width: 1180px) {
    .home-page .people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .home-page .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Retro subcategories: compact text-only cards */
.retro-sections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 30px;
}

.retro-sections a {
    position: relative;
    min-width: 0;
    padding: 16px 17px;
    overflow: hidden;
    border: 1px solid #eadff0;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fbf7ff);
    box-shadow: 0 8px 22px rgba(83, 61, 95, .05);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.retro-sections a::after {
    content: "→";
    position: absolute;
    top: 14px;
    right: 15px;
    color: #b69ccc;
    font-weight: 900;
}

.retro-sections a:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 68, 131, .28);
    box-shadow: 0 12px 28px rgba(83, 61, 95, .09);
}

.retro-sections span,
.retro-sections small {
    display: block;
    padding-right: 22px;
}

.retro-sections span {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.retro-sections small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

/* Minimal fights block on the homepage */
.fight-feature {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid #eddfe7;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #fff8fb 60%, #f7f2ff 100%);
    box-shadow: 0 12px 34px rgba(88, 59, 80, .07);
}

.fight-feature__media,
.fight-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #251f2c;
}

.fight-feature__media {
    min-height: 255px;
}

.fight-feature__media img,
.fight-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.fight-feature:hover .fight-feature__media img,
.fight-card:hover .fight-card-media img {
    transform: scale(1.035);
}

.fight-feature__play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--pink);
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(20, 14, 24, .22);
    transform: translate(-50%, -50%);
}

.fight-feature__body {
    align-self: center;
    padding: clamp(25px, 4vw, 42px);
}

.fight-feature__label,
.fight-card-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0f5;
    color: #d92d72;
    font-size: 11px;
    font-weight: 900;
}

.fight-feature__body h3 {
    max-width: 680px;
    margin: 13px 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -.8px;
}

.fight-feature__body h3 a:hover,
.fight-feature__link:hover {
    color: var(--pink);
}

.fight-feature__description {
    max-width: 700px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.fight-feature__description p:last-child {
    margin-bottom: 0;
}

.fight-feature__link {
    display: inline-flex;
    margin-top: 17px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 850;
}

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

.fight-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(95, 69, 92, .06);
    transition: border-color .22s ease, box-shadow .22s ease;
}

.fight-card:hover {
    border-color: rgba(240, 68, 131, .28);
    box-shadow: var(--shadow);
}

.fight-card-media {
    aspect-ratio: 16 / 9;
}

.fight-card-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    background: rgba(255,255,255,.92);
}


.retro-video,
.fight-video {
    margin-bottom: 25px;
}

@media (max-width: 980px) {
    .retro-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .fight-feature {
        grid-template-columns: 1fr;
    }

    .fight-feature__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .retro-sections,
    .listing-category-5 {
        grid-template-columns: 1fr;
    }
}

/* DOM2EFIRY RETRO EPISODE LAYOUT V1.14 */
.full-retro .episode-article-header {
    max-width: 880px;
    margin: 22px 0 0;
}

.full-retro .episode-article-header h1,
.full-retro .episode-page-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.25px;
}

.full-retro .episode-page-title time {
    font: inherit;
}

.full-retro + .community-comments {
    margin-top: 38px;
}
/* DOM2EFIRY RETRO EPISODE LAYOUT V1.14 END */

/* SEO foundation v1.30: static pages and compact same-day episode links */
.static-page .article-header {
    margin-bottom: 28px;
}

.static-page .article-content {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.static-lead {
    margin-bottom: 28px;
    color: var(--text);
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.65;
}

.static-section + .static-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.static-section h2 {
    margin-bottom: 12px;
    font-size: clamp(22px, 3vw, 29px);
}

.static-contact-card,
.static-note {
    margin: 24px 0 0;
    padding: 19px 21px;
    border: 1px solid #f0dce8;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7fb, #fff);
}

.static-contact-card a {
    color: var(--pink);
    font-weight: 800;
}

.episode-day-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #f0dfe8;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
}

.episode-day-links__label {
    margin-right: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.episode-day-links__item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #efdce6;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.episode-day-links__item:hover {
    border-color: rgba(240,68,131,.38);
    color: var(--pink);
}

@media (max-width: 600px) {
    .static-page .article-content {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .episode-day-links {
        align-items: stretch;
        flex-direction: column;
    }

    .episode-day-links__item {
        justify-content: center;
        text-align: center;
    }
}

/* Participant SEO v1.32 */
.participant-links {
    display: grid;
    gap: 12px;
    margin: -8px 0 30px;
}

.participant-links__group {
    display: grid;
    gap: 8px;
}

.participant-links__title {
    color: var(--muted);
    font-size: 13px;
}

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

.participant-links__items a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.participant-links__items a:hover {
    border-color: rgba(240, 68, 131, .35);
    background: var(--pink-soft);
    color: var(--pink);
}

.participant-related {
    margin-top: 42px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(95, 69, 92, .06);
}

.participant-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.participant-related__head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.2;
}

.participant-related__head > a {
    flex: 0 0 auto;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
}

.participant-related__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.participant-related__list li {
    display: grid;
    grid-template-columns: minmax(128px, 248px) minmax(0, 1fr);
    grid-template-areas:
        "type title"
        "date title";
    align-items: start;
    column-gap: 18px;
    row-gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.participant-related__list a {
    grid-area: title;
    min-width: 0;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.participant-related__list a:hover {
    color: var(--pink);
}

.participant-related__list time {
    grid-area: date;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .participant-related {
        margin-top: 30px;
        padding: 20px;
    }

    .participant-related__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .participant-related__list li {
        grid-template-columns: 1fr;
        grid-template-areas:
            "type"
            "title"
            "date";
        gap: 6px;
    }
}
/* Participant SEO v1.32 end */

/* Deferred community shell: keeps comments lightweight until the visitor approaches the block. */
.community-lazy{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:38px;padding:18px 20px;border:1px solid #efdce8;border-radius:20px;background:#fffafd;box-shadow:0 10px 28px rgba(91,54,77,.06)}
.community-lazy__mark{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:#fff0f6;color:var(--pink);font-size:18px}
.community-lazy__content>span{color:var(--pink);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.community-lazy__content h2{margin:3px 0 2px;font-size:clamp(21px,3vw,27px)}
.community-lazy__content h2 b{color:var(--pink);font-size:.64em}
.community-lazy__content p,.community-lazy__status{margin:0;color:var(--muted);font-size:11px}
.community-lazy__button{padding:10px 16px;border:0;border-radius:999px;background:var(--text);color:#fff;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.community-lazy__button:hover{background:var(--pink)}
.community-lazy__button:disabled{cursor:wait;opacity:.65}
.community-lazy__status{grid-column:2/-1}.community-lazy__status.is-error{color:#a7384c}
@media(max-width:650px){.community-lazy{grid-template-columns:auto minmax(0,1fr);padding:16px}.community-lazy__button{grid-column:1/-1;width:100%}.community-lazy__status{grid-column:1/-1}}

/* Internal linking v1.40.0 */
.context-links {
    margin: 24px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}
.context-links__title {
    display: block;
    margin-bottom: 11px;
    font-size: 15px;
    color: var(--text);
}
.context-links__items {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.context-links__items a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}
.context-links__items a:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 55, 126, .42);
}
.participant-related__type {
    grid-area: type;
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 55, 126, .09);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

@media (max-width: 620px) {
    .participant-related__type {
        width: fit-content;
        max-width: 100%;
    }
}
/* Internal linking UI fix v1.40.2 */
.retro-neighbours {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
}
.retro-neighbours__item,
.retro-neighbours__all {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
}
.retro-neighbours__item small {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}
.retro-neighbours__item--next {
    text-align: right;
    align-items: flex-end;
}
.retro-neighbours__all {
    align-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}
.retro-neighbours__item:hover,
.retro-neighbours__all:hover {
    border-color: rgba(245, 55, 126, .42);
}
.retro-neighbours__item--empty {
    visibility: hidden;
}
@media (max-width: 720px) {
    .retro-neighbours {
        grid-template-columns: 1fr 1fr;
    }
    .retro-neighbours__all {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 48px;
    }
    .retro-neighbours__item--empty {
        display: none;
    }
}
