/* 모바일 홈 시안. PC와 다른 페이지에는 적용하지 않습니다. */
/* 디자이너 MD의 반복 UI 색상만 공통화. 배너·서비스 색상·개별 테두리·그림자는 해당 규칙에 유지합니다. */
body.page-main {
  --mf-primary: var(--main-color1);
  --mf-accent-text: #b2392e;
  --mf-text: #1e1e1f;
  --mf-muted: #666666;
  --mf-muted-dark: #858585;
  --mf-surface: #ffffff;
  --mf-divider: #eaedf2;
  --mf-soft: #f4f6f8;
  --mf-selected: #fdf3f4;
  --mf-dark: #1e1e1f;
  --mf-radius-card: 16px;
  --mf-radius-lg: 12px;
  --mf-radius-sm: 8px;
}
.page-main .main-feed,

.page-main .feed-loading,

.page-main .feed-loading-error,

.stage-switch-close,

.stage-switch-open {
  display: none;
}

html[data-layout-ready='error'] .page-main .feed-loading-error {
  display: block;
  padding: 24px;
  text-align: center;
}

@media (max-width: 1024px) {
  body.page-main {

    --color-text: var(--mf-text);
    padding-top: 0;
    background: var(--mf-surface);
  }
  body.page-main #main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    background: var(--mf-divider);
  }
  body.page-main #main > :not(.main-feed, .feed-loading) {
    display: none !important;
  }
  body.page-main.main-feed-ready .main-feed {
    display: block;
    width: 100%;
    max-width: 768px;
    margin: auto;
    background: var(--mf-surface);
    color: var(--mf-text);
  }
  .main-feed [hidden] {
    display: none !important;
  }
  .main-feed :is(h1, h2, h3, p, small, strong, summary, button) {
    font-family: var(--font-family);
  }
  .main-feed :is(h2, h3, p) {
    margin: 0;
  }
  .main-feed :is(a, button, summary):focus-visible {
    outline: 2px solid var(--mf-accent-text);
    outline-offset: 3px;
  }
  .main-feed img {
    display: block;
    max-width: 100%;
  }
  .main-feed h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 22px;
    letter-spacing: -0.3px;
    font-weight: 500;
  }
  .main-feed small {
    display: block;
    color: var(--mf-muted);
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
    letter-spacing: -0.3px;
  }
  .main-feed em {
    color: var(--mf-primary);
    font-style: normal;
  }
  .main-feed .mf-panel {
    padding: 20px 16px;
    border-bottom: 10px solid var(--mf-divider);
  }
  .main-feed .mf-heading {
    margin-bottom: 16px;
    font-size: max(min(14px, 20px), calc(20px - var(--font-size-step, 0px)));
    line-height: 26px;
    letter-spacing: -0.5px;
    font-weight: 700;
  }
  .main-feed .mf-heading > a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .main-feed .mf-heading > a > span {
    margin-left: auto;
    flex: 0 0 20px;
    color: var(--mf-muted);
    text-align: center;
    font-size: max(min(14px, 24px), calc(24px - var(--font-size-step, 0px)));
    font-weight: 400;
  }
  .main-feed .mf-hero {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--mf-dark);
  }
  .main-feed .mf-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .main-feed .mf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgb(0 0 0 / 18%) 60%, rgb(0 0 0 / 72%) 100%);
    pointer-events: none;
  }
  .main-feed .mf-hero strong {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    left: 16px;
    right: 16px;
    color: #fff;
    font-size: max(min(14px, clamp(0.875rem, calc((100vw - 32px) * 0.0539215686), 1.375rem)), calc(clamp(0.875rem, calc((100vw - 32px) * 0.0539215686), 1.375rem) - var(--font-size-step, 0px)));
    line-height: 1.454545;
    letter-spacing: -0.015909em;
  }
  .main-feed .mf-lead-list {
    border-bottom: 10px solid var(--mf-divider);
  }
  .main-feed .mf-news-row {
    display: flex;
    gap: 16px;
    min-width: 0;
  }
  .main-feed .mf-news-row + .mf-news-row {
    margin-top: 20px;
  }
  .main-feed .mf-news-row > img {
    flex: 0 0 31%;
    width: 31%;
    aspect-ratio: 128/90;
    height: auto;
    align-self: flex-start;
    object-fit: cover;
    border-radius: var(--mf-radius-sm);
  }
  .main-feed .mf-news-row > div {
    min-width: 0;
    flex: 1;
  }
  .main-feed .mf-news-row h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .main-feed .mf-news-row small {
    margin-top: 8px;
  }
  .main-feed .mf-community-item {
    border-radius: var(--mf-radius-lg);
    background: var(--mf-soft);
    overflow: hidden;
  }
  .main-feed .mf-community-item + .mf-community-item {
    margin-top: 8px;
  }
  .main-feed summary {
    list-style: none;
    cursor: pointer;
  }
  .main-feed summary::-webkit-details-marker {
    display: none;
  }
  .main-feed .mf-community-item .mf-community-head {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--mf-radius-lg);
  }
  .main-feed .mf-community-item .mf-community-head strong {
    flex: 1;
    min-width: 0;
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main-feed .mf-rank {
    font-family: 'Inter', sans-serif;
    font-size: max(min(14px, 19px), calc(19px - var(--font-size-step, 0px)));
    line-height: 20px;
    font-weight: 600;
    color: var(--mf-accent-text);
  }
  .main-feed .mf-chevron {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    line-height: 0;
    color: var(--mf-muted-dark);
    text-align: center;
  }
  .main-feed .mf-chevron svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .main-feed .mf-community-item.is-expanded {
    background: var(--mf-selected);
  }
  .main-feed .mf-community-item.is-expanded .mf-community-head {
    border-color: var(--mf-primary);
    background: var(--mf-surface);
  }
  .main-feed .mf-community-item.is-expanded .mf-chevron {
    transform: rotate(180deg);
  }
  .main-feed {
    --mf-community-height: 71px;
  }
  .main-feed .mf-community-preview {
    display: block;
  }
  .main-feed .mf-community-preview p {
    font-size: max(min(14px, 15px), calc(15px - var(--font-size-step, 0px)));
    font-weight: 400;
    line-height: 22px;
    height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .main-feed .mf-shortcuts > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .main-feed .mf-shortcuts a {
    text-align: center;
    font-size: max(min(14px, 13px), calc(13px - var(--font-size-step, 0px)));
    line-height: 20px;
  }
  .main-feed .mf-shortcuts img {
    width: 46px;
    height: 46px;
    margin: 0 auto 4px;
  }
  .main-feed .mf-series-item + .mf-series-item {
    margin-top: 0;
  }
  .main-feed .mf-series-item[open] {
    border: 1px solid #252525;
    border-radius: var(--mf-radius-card);
  }
  .main-feed .mf-series-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 16px;
    cursor: pointer;
  }
  .main-feed .mf-series-item summary img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
  }
  .main-feed .mf-series-item summary strong {
    flex: 1;
    font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-series-item[open]:not(.is-closing) summary {
    padding: 12px 16px;
  }
  .main-feed .mf-series-item[open]:not(.is-closing) summary img {
    width: 45px;
    height: 45px;
  }
  .main-feed .mf-series-timeline {
    padding: 18px 16px 24px 26px;
    border-top: 1px solid #e6e6e6;
  }
  .main-feed .mf-series-timeline > a {
    display: flex;
    gap: 12px;
    position: relative;
    padding: 0 0 16px 16px;
  }
  .main-feed .mf-series-timeline > a::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mf-muted-dark);
  }
  .main-feed .mf-series-timeline > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 2px;
    width: 2px;
    background: #ddd;
  }
  .main-feed .mf-series-timeline > a:last-child {
    padding-bottom: 0;
  }
  .main-feed .mf-series-timeline > a > div {
    min-width: 0;
    flex: 1;
  }
  .main-feed .mf-series-timeline h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .main-feed .mf-series-timeline img {
    width: 72px;
    height: 72px;
    border-radius: var(--mf-radius-sm);
    object-fit: cover;
  }
  .main-feed .mf-image-banner {
    display: block;
  }
  .main-feed .mf-image-banner img {
    display: block;
    width: 100%;
    height: auto;
  }
  .main-feed .mf-publisher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }
  .main-feed .mf-publisher > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .main-feed .mf-publisher > div {
    flex: 1;
  }
  .main-feed .mf-publisher strong {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-outline {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 1px solid currentColor;
    color: var(--mf-primary);
    padding: 0 8px;
    font-size: max(min(14px, 13px), calc(13px - var(--font-size-step, 0px)));
    line-height: 1;
  }
  .main-feed .mf-video-title {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
  }
  .main-feed .mf-player {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--mf-radius-card);
    clip-path: inset(0 round var(--mf-radius-card));
    isolation: isolate;
    background: var(--mf-dark);
  }
  .main-feed .mf-player button {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .main-feed .mf-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .main-feed .mf-player iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .main-feed .mf-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--mf-radius-sm);
    background: #f03;
    color: #fff;
    padding: 8px 22px;
    font-size: max(min(14px, 24px), calc(24px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-feed .mf-two-col a {
    min-width: 0;
  }
  .main-feed .mf-two-col h3 {
    margin-top: 8px;
  }
  .main-feed .mf-two-col small {
    margin-top: 4px;
  }
  .main-feed .mf-shorts img {
    width: 100%;
    aspect-ratio: 196/295;
    object-fit: cover;
    border-radius: var(--mf-radius-card);
  }
  .main-feed .mf-guide {
    padding: 0 16px 20px;
    background: var(--mf-dark);
    color: #fff;
    border-bottom: 10px solid var(--mf-divider);
  }
  .main-feed .mf-guide-cover {
    display: block;
    position: relative;
    margin: 0 -16px 16px;
  }
  .main-feed .mf-guide-cover img {
    width: 100%;
    clip-path: inset(0 0 1px 0);
  }
  body[data-stage='remaining'] .main-feed .mf-guide-cover {
    margin-bottom: 0;
    overflow: hidden;
  }
  body[data-stage='remaining'] .main-feed .mf-guide-cover img {
    display: block;
    aspect-ratio: 2.08;
    object-fit: cover;
    border-radius: 0;
    clip-path: none;
  }
  body[data-stage='remaining'] .main-feed .mf-guide-cover::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, var(--mf-dark));
    content: '';
  }
  body[data-stage='remaining'] .main-feed .mf-guide-cover :is(h2, .mf-guide-label) {
    z-index: 1;
  }
  .main-feed .mf-guide-cover h2 {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    font-size: max(min(14px, 20px), calc(20px - var(--font-size-step, 0px)));
    line-height: 26px;
    text-shadow: 0 1px 6px #000;
  }
  .main-feed .mf-guide-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main-feed .mf-guide-track > a {
    min-width: 0;
  }
  .main-feed .mf-guide-track img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--mf-radius-sm);
    object-fit: cover;
  }
  .main-feed .mf-guide-track small {
    color: var(--mf-muted-dark);
    margin-top: 8px;
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-guide-track h3 {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
    font-weight: 500;
  }
  .main-feed [data-feed-poll] {
    border-radius: var(--mf-radius-lg);
    background: var(--mf-soft);
  }
  .main-feed .mf-poll-question {
    display: flex;
    gap: 8px;
  }
  .main-feed .mf-poll-question > span {
    color: var(--mf-accent-text);
    font-weight: 700;
  }
  .main-feed .mf-poll-total {
    color: var(--mf-muted);
    margin-bottom: 8px;
  }
  .main-feed .mf-poll-question .mf-poll-total {
    display: none;
  }
  .main-feed .mf-poll-options {
    display: grid;
  }
  .main-feed .mf-poll-options label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;

    background: var(--mf-surface);
    border-radius: var(--mf-radius-lg);
  }
  .main-feed .mf-poll-options input {
    order: 2;
    margin-left: auto;
    accent-color: var(--mf-primary);
  }
  .main-feed .mf-poll-options small {
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-poll-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .main-feed .mf-poll-actions :is(button, a) {
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: var(--mf-radius-sm);
    background: var(--mf-surface);
    color: var(--mf-text);
  }
  .main-feed .mf-poll-actions button {
    background: var(--mf-primary);
  }
  .main-feed .mf-poll-feedback {
    margin-top: 8px;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-popular-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--mf-radius-sm);
  }
  .main-feed .mf-popular-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--mf-radius-sm);
  }
  .main-feed .mf-popular-image .mf-rank {
    font-family: 'Roboto', sans-serif;
    position: absolute;
    bottom: -18px;
    left: 8px;
    color: #fff;
    font-size: max(min(14px, 80px), calc(80px - var(--font-size-step, 0px)));
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    -webkit-text-stroke: 3px #1e1e1f;
    paint-order: stroke fill;
    text-shadow: 0 2px 3px rgb(0 0 0 / 25%);
  }
  .main-feed .mf-news .mf-news-row {
    position: relative;
  }
  .main-feed .mf-news .mf-news-row:nth-child(2)::before,
  .main-feed .mf-news .mf-news-row:nth-child(3)::before {
    content: '';
    position: absolute;
    top: -10px;
    left: calc(31% + 16px);
    right: 0;
    height: 1px;
    background: var(--mf-divider);
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 5)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--mf-divider);
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) {
    display: block;
    margin-top: 0;
    padding: 12px 0;
  }
  .main-feed .mf-news .mf-news-row:nth-child(4) {
    margin-top: 8px;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) :is(img, small) {
    display: none;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) h3 {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
  }
  .main-feed .mf-overview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  body.page-main.page-main-feed .stage-switch {
    position: fixed;
    top: auto;
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 41;
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    max-width: calc(100vw - 24px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--mf-radius-lg);
    box-shadow: 0 4px 20px #0002;
    background: var(--mf-surface);
    color: var(--mf-text);
  }
  body.page-main.page-main-feed .stage-switch label {
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
  }
  body.page-main.page-main-feed .stage-switch select {
    min-height: 44px;
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: var(--mf-radius-sm);
    background: var(--mf-surface);
    color: var(--mf-text);
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
  }
  body.page-main.page-main-feed .stage-switch-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--mf-radius-sm);
    background: #f3f4f6;
    color: var(--mf-text);
    font-size: max(min(14px, 24px), calc(24px - var(--font-size-step, 0px)));
    cursor: pointer;
  }
  body.page-main.page-main-feed .stage-switch-open {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 41;
    display: block;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: var(--mf-radius-sm);
    background: var(--mf-surface);
    color: var(--mf-text);
    box-shadow: 0 4px 20px #0002;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    cursor: pointer;
  }
  body.page-main.page-main-feed :is(.stage-switch, .stage-switch-open)[hidden] {
    display: none;
  }

  body.page-main.page-main-feed .quick-menu {
    display: none;
  }
  body.page-main.page-main-feed .site-footer {
    background: var(--mf-dark);
    color: #fff;
    padding: 24px 16px 48px;
  }
  body.page-main.page-main-feed .site-footer > .container {
    width: 100%;
    max-width: 736px;
    margin: auto;
  }
  body.page-main.page-main-feed .site-footer .footer-links {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
  }
  body.page-main.page-main-feed .site-footer .footer-bottom {
    color: var(--mf-muted-dark);
    border-top: 1px solid #333;
  }
  body.page-main.page-main-feed .site-footer .footer-info-row {
    color: #fff;
    font-weight: 400;
  }
  body.page-main:not(.main-feed-ready) .feed-loading {
    display: block;
    max-width: 768px;
    margin: auto;
    padding: 0 16px 20px;
    background: var(--mf-surface);
  }
  .feed-loading-banner {
    aspect-ratio: 16/9;
    margin: 0 -16px 20px;
    background: var(--mf-divider);
  }
  .feed-loading-cards {
    display: grid;
    gap: 16px;
  }
  .feed-loading-cards > div {
    height: 90px;
    border-radius: var(--mf-radius-sm);
    background: var(--mf-soft);
  }
  html[data-layout-ready='error'] .feed-loading {
    display: none !important;
  }
}





/* 닫힘 이동이 끝날 때까지 dialog를 열어 두어 내부 레이아웃을 유지합니다. */



/* 440px design: section dividers and lead article rows. */
@media (max-width: 1024px) {
  body.page-main.page-main-feed #main > .main-feed {
    background: var(--mf-divider);
  }
  body.page-main.page-main-feed #main > .main-feed > :is(section, a) {
    border-top: 0;
    border-bottom: 0;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-panel {
    padding: 20px 16px;
    background: var(--mf-surface);
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-overview {
    border-bottom: 10px solid var(--mf-divider);
  }
  .main-feed .mf-lead-list .mf-news-row {
    align-items: center;
    gap: 16px;
  }
  .main-feed .mf-lead-list .mf-news-row > img {
    flex: 0 0 26.715686%;
    width: 26.715686%;
    aspect-ratio: 109/77;
    align-self: center;
  }
  .main-feed .mf-lead-list .mf-news-row > div {
    position: relative;
  }
  .main-feed .mf-lead-list .mf-news-row h3 {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
  }
  .main-feed .mf-lead-list .mf-news-row small {
    margin-top: 4px;
    color: var(--mf-muted);
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
    font-weight: 400;
    letter-spacing: -0.3px;
  }
  .main-feed .mf-lead-list .mf-news-row + .mf-news-row {
    position: relative;
    margin-top: 16px;
  }
  .main-feed .mf-lead-list .mf-news-row + .mf-news-row::before {
    content: '';
    position: absolute;
    top: -8px;
    left: calc(26.715686% + 14px);
    right: 0;
    height: 1px;
    background: var(--mf-divider);
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-new-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 14px;
    align-self: center;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--mf-primary);
    line-height: 0;
    overflow: visible;
  }
  .main-feed .mf-new-badge svg {
    display: block;
    width: 14px;
    height: 14px;
    overflow: visible;
    fill: currentColor;
    stroke: none;
  }
  .main-feed .mf-new-badge path {
    fill: #fff;
  }
  .main-feed .mf-series-item {
    position: relative;
    border: 1px solid transparent;
    border-bottom-color: #e6e6e6;
  }
  .main-feed .mf-series-author {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
  }
  .main-feed .mf-series-item:is(:not([open]), .is-closing) .mf-series-author {
    display: none;
  }
  .main-feed .mf-series-item[open]:not(.is-closing) summary {
    padding-right: 96px;
  }
  .main-feed .mf-series-item[open]:not(.is-closing) summary > .mf-chevron {
    display: none;
  }
  .main-feed .mf-series-more {
    position: absolute;
    right: 12px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    line-height: 1;
    font-weight: 500;
    text-align: center;
  }
  .main-feed .mf-series-item:is(:not([open]), .is-closing) .mf-series-more {
    display: none;
  }
  .main-feed .mf-news-notice {
    display: flex;
    align-items: center;

    margin-bottom: 16px;
    border: 1px solid #ffd9df;
    border-radius: var(--mf-radius-lg);
    background: #fff4f5;
  }
  .main-feed .mf-news-notice > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: var(--mf-radius-sm);
    padding: 0 7px;
    line-height: 1;
    text-align: center;
    background: var(--mf-primary);
    color: white;

    font-weight: 700;
  }
  .main-feed .mf-news-notice > span > .mf-control-label {
    position: relative;
    inset-block-start: -0.5px;
  }

  .main-feed .mf-poll-total {
    display: flex;
    align-items: center;
  }
  .main-feed .mf-poll-total img {
    border-radius: 50%;
    object-fit: contain;
  }
  .main-feed .mf-poll-total strong {
    color: var(--mf-text);
    font-weight: 700;
  }
}

/* Mobile community: exclusive expansion, matching the 440px design. */
@media (max-width: 1024px) {
  .main-feed .mf-heading-copy {
    font: inherit;
  }
  .main-feed .mf-community-item {
    transition: background-color 0.4s ease-out;
  }
  .main-feed .mf-community-item .mf-community-head {
    min-height: 52px;
    height: 52px;
    padding: 12px 14px;
    transition:
      background-color 0.4s ease-out,
      border-color 0.4s ease-out,
      box-shadow 0.4s ease-out;
  }
  .main-feed .mf-community-item .mf-community-head strong {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    line-height: 24px;
    overflow: visible;
  }
  .main-feed .mf-community-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main-feed .mf-community-item .mf-rank {
    display: grid;
    place-items: center;
    flex: 0 0 17px;
    height: 24px;
    line-height: 24px;
    transform: translateY(1px);
  }
  .main-feed .mf-community-item .mf-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: var(--mf-radius-sm);
    background: #e6e6e6;
  }
  .main-feed .mf-community-item.is-expanded .mf-community-toggle {
    display: none;
  }
  .main-feed .mf-community-item.is-expanded .mf-community-head {
    box-shadow: 0 2px 3px #e038301a;
  }
  .main-feed .mf-community-preview {
    position: relative;
    padding: 13px 14px 14px;
  }
}

/* 모든 항목의 높이를 같은 프레임에서 정수 px로 갱신해 끝의 반올림 튐을 방지합니다. */
@media (max-width: 1024px) {
  .main-feed .mf-community-head {
    width: 100%;
    text-align: left;
    background: transparent;
  }
  .main-feed .mf-community-reveal {
    height: 0;
    overflow: hidden;
  }
  .main-feed .mf-community-inner {
    min-height: 0;
    overflow: hidden;
  }
  .main-feed .mf-community-preview > * {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.15s ease-out,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .main-feed .mf-community-item.is-expanded .mf-community-preview > * {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.3s;
    transition-delay: 0.18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-feed .mf-community-reveal,
  .main-feed .mf-community-preview > * {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-community-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-self: stretch;
  }
  .main-feed .mf-community-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 50px;
    margin: -12px -6px -12px 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .main-feed .mf-series-item {
    overflow: hidden;
    overflow-anchor: none;
  }
  .main-feed .mf-series-item[open].is-closing {
    border-color: transparent;
    border-bottom-color: #e6e6e6;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-feed .mf-series-item[open] .mf-series-timeline {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-series-item:last-child:not([open]) {
    border-bottom-color: transparent;
  }
  .main-feed .mf-series-item summary > .mf-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--mf-primary);
    border-radius: 50%;
    color: var(--mf-primary);
  }
  .main-feed .mf-series-item summary > .mf-chevron svg {
    width: 16px;
    height: 16px;
  }
  .main-feed .mf-series-item summary strong {
    min-width: 0;
    line-height: 24px;
  }
  .main-feed .mf-series-timeline > a::before {
    background: #252525;
  }
  .main-feed .mf-series-item:has(+ .mf-series-item[open]:not(.is-closing)) {
    border-bottom-color: transparent;
  }
  .main-feed .mf-series-item[open]:not(.is-closing) + .mf-series-item {
    border-top-color: transparent;
  }
  .main-feed .mf-video-title {
    margin: 12px 0 0;
  }
  .main-feed .mf-guide-label {
    position: absolute;
    left: 16px;
    bottom: 46px;
    color: #fff;
  }
  .main-feed .mf-overview-card {
    position: relative;
  }
  .main-feed .mf-overview-badge {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 24px;
    padding: 0 8px;
    line-height: 1;
    text-align: center;
    border-radius: 20px;
    background: var(--mf-primary);
    color: #fff;
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
    font-weight: 700;
  }
  .main-feed .mf-overview-card:has(.is-pending) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .main-feed .mf-overview-card:has(.is-pending) > img {
    grid-area: 1 / 1;
    opacity: 0.2;
  }
  .main-feed .mf-overview-badge.is-pending {
    position: relative;
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
    top: auto;
    left: auto;
    transform: none;
    background: #666;
    white-space: nowrap;
    font-weight: 400;
  }
  .main-feed .mf-overview-card > img {
    border-radius: var(--mf-radius-sm);
  }
  .main-feed .mf-shorts .mf-channel {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .main-feed .mf-shorts .mf-channel img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: contain;
  }
  .main-feed .mf-publisher > img {
    object-fit: contain;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-series-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    line-height: 0;
  }
  .main-feed .mf-publisher > .mf-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 26px;
    padding: 0 8px;
    line-height: 1;
    font-weight: 500;
    text-align: center;
  }

  .main-feed .mf-guide-controls {
    display: grid;
    grid-template-columns: 88px 56px 88px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px auto 0;
    color: #fff;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    text-align: center;
  }
  .main-feed .mf-guide-controls button {
    display: grid;
    place-items: center;
    width: 88px;
    height: 40px;
    padding: 0;
    border: 1px solid #555;
    border-radius: 8px;
    color: #aaa;
    font-size: max(min(14px, 28px), calc(28px - var(--font-size-step, 0px)));
    line-height: 1;
  }
  .main-feed .mf-guide-controls button:disabled {
    opacity: 0.4;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-poll {
    background: #edf0f5;
  }

  .main-feed .mf-poll-options label {
    background: var(--mf-soft);
  }
  .main-feed .mf-poll-actions button {
    background: var(--mf-accent-text);
    color: #fff;
  }
  .main-feed .mf-poll-actions a {
    border: 1px solid #dce0e6;
    background: #fff;
  }
  .main-feed .mf-guide-controls .mf-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
  }
  .main-feed .mf-guide-controls svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .main-feed .mf-guide-controls button:first-child svg {
    transform: rotate(180deg);
  }
  .main-feed .mf-guide-controls > span {
    display: grid;
    place-items: center;
    height: 40px;
    line-height: 20px;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-news-notice > span {
    position: relative;
    overflow: hidden;
  }
  .main-feed .mf-overview-badge {
    overflow: hidden;
  }
  .main-feed .mf-news-notice > span::before,
  .main-feed .mf-overview-badge:not(.is-pending)::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 66px;
    height: 144px;
    background-image: linear-gradient(to right, transparent, #fff, #fff, transparent);
    opacity: 0;
    pointer-events: none;
    animation: mf-badge-shine 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }
}
@keyframes mf-badge-shine {
  0% {
    transform: rotate(45deg) translateX(-77px);
    opacity: 1;
  }
  10% {
    opacity: 0.7;
  }
  35%,
  100% {
    transform: rotate(45deg) translateX(33px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-feed .mf-news-notice > span::before,
  .main-feed .mf-overview-badge:not(.is-pending)::before {
    animation: none;
  }
}

@media (max-width: 1024px) {
  body.page-main.page-main-feed .site-footer .footer-intro > strong {
    font-size: max(min(14px, 21px), calc(21px - var(--font-size-step, 0px)));
  }
  body.page-main.page-main-feed .site-footer .footer-intro > strong > span:last-child {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
  }
  body.page-main.page-main-feed .site-footer .footer-bottom p,
  body.page-main.page-main-feed .site-footer .footer-bottom small {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
  }
}

/* 작은 모바일 화면: 제목과 기획 시리즈 내부 글자 위계를 조정합니다. */
@media (max-width: 375px) {
  .main-feed .mf-heading {
    
    line-height: 24px;
  }
  .main-feed .mf-series-item summary strong {
    
    line-height: 22px;
  }
  .main-feed .mf-series-timeline h3 {
    
    line-height: 20px;
    font-weight: 500;
  }
  .main-feed .mf-series-timeline small {
    
    line-height: 18px;
    font-weight: 400;
  }
}

@media (max-width: 375px) {
  .main-feed {
    --mf-community-height: 67px;
  }
  .main-feed .mf-community-preview p {
    
    line-height: 20px;
    height: 40px;
  }
  .main-feed .mf-shortcuts a {
    
  }
}

/* 오픈채팅 로그인 안내 */

@media (max-width: 1024px) {
  .main-feed .mf-type-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
  }
  .main-feed .mf-type-tabs::-webkit-scrollbar {
    display: none;
  }
  .main-feed .mf-type-tabs button {
    flex-shrink: 0;
    min-width: 52px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e3e5e9;
    border-radius: 999px;
    background: #fff;
    color: var(--mf-text);
    font: 400 max(min(14px, 14px), calc(14px - var(--font-size-step, 0px))) /1 var(--font-family);
  }
  .main-feed .mf-type-tabs button[aria-selected='true'] {
    background: var(--mf-primary);
    border-color: var(--mf-primary);
    color: #fff;
    font-weight: 700;
  }
  .main-feed .mf-type-preview {
    display: block;
  }
  .main-feed .mf-type-preview > img {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 1.45;
    padding: 20px;
    object-fit: contain;
    border: 1px solid #e6e7eb;
    border-radius: 12px;
    background: var(--mf-soft);
  }
  .main-feed .mf-type-preview > p {
    margin: 12px 0 0;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 400;
  }
  .main-feed .mf-type-preview > p strong {
    font-weight: 500;
  }
  .main-feed .mf-interior {
    position: relative;
  }
  .main-feed .mf-interior-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
  }
  .main-feed .mf-interior-image > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
  }
  .main-feed .mf-interior-image > .mf-interior-incoming {
    position: absolute;
    aspect-ratio: auto;
    pointer-events: none;
  }
  .main-feed .mf-interior-image::after {
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, #000d);
    content: '';
    pointer-events: none;
  }
  .main-feed .mf-interior-image > strong {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    left: 16px;
    color: #fff;
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-interior-tabs {
    position: absolute;
    z-index: 2;
    bottom: 36px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .main-feed .mf-interior-tabs button {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff40;
  }
  .main-feed .mf-interior-tabs button[hidden] {
    display: none;
  }
  .main-feed .mf-interior-tabs button[data-queue='1'] {
    z-index: 2;
  }
  .main-feed .mf-interior-tabs button[data-queue='2'] {
    z-index: 1;
    margin-right: -14px;
    transform: scale(0.84);
    transform-origin: right center;
    opacity: 0.65;
  }
  .main-feed .mf-interior-tabs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 1024px) {
  body[data-stage='remaining'] .main-feed .mf-video {
    display: flex;
    flex-direction: column;
  }
  body[data-stage='remaining'] .main-feed .mf-video .mf-heading {
    order: 0;
  }
  body[data-stage='remaining'] .main-feed .mf-video .mf-publisher {
    order: 1;
  }
}

@media (max-width: 375px) {
  .main-feed .mf-outline {
    
  }
}

/* Trim the font metrics inside centered controls, not their outer boxes. */
@supports (text-box-trim: trim-both) {
  .main-feed .mf-outline > span:not([aria-hidden]),
  .mf-control-label {
    display: block;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}

.main-feed :is(.mf-series-plus) svg {
  display: block;
  width: 10px;
  height: 10px;
}
.mf-section-nav,

.mf-top-news {
  display: none;
}
@media (max-width: 767px) {
  body.page-main {
    --mf-primary: var(--main-color1);
    --mf-accent-text: #b2392e;
    --mf-selected: #fdf3f4;
    --mf-purple: #4132b6;
    --mf-divider: #eaedf2;
    --mf-text: #1e1e1f;
    --mf-dark: #1e1e1f;
  }

  body.page-main.page-main-feed #main > .main-feed > .mf-section-nav {
    display: flex;
    gap: 4px;
    justify-content: space-around;
    height: 37px;
    padding: 0 12px;
    background: #ff1725;
    color: #fff;
    margin-top: 0;
  }
  .main-feed .mf-section-nav a {
    display: flex;
    align-items: center;
    min-height: 24px;
    white-space: nowrap;
    opacity: 0.75;
  }
  .main-feed .mf-section-nav a[aria-current] {
    opacity: 1;
    font-weight: 700;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-top-news {
    display: block;
    margin-top: 0;
    padding: 20px 0 24px;
    background: var(--mf-dark);
    color: #fff;
    overflow: hidden;
  }
  .main-feed .mf-top-topics {
    display: flex;
    justify-content: center;

    padding: 0 12px 20px;
  }
  .main-feed .mf-top-topics button {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #454547;
    border-radius: 999px;
    background: #303032;
    color: #bbb;
    font: 500 max(min(14px, 13px), calc(13px - var(--font-size-step, 0px))) /18px var(--font-family);
    white-space: nowrap;
  }
  .main-feed .mf-top-topics button[aria-pressed='true'] {
    color: #fff;
    font-weight: 700;
  }
  .main-feed .mf-top-track {
    display: flex;
    position: relative;
    overflow-x: auto;
    padding-inline: 8%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .main-feed .mf-top-track::-webkit-scrollbar {
    display: none;
  }
  .main-feed .mf-top-card {
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: center;
    text-align: center;
  }
  .main-feed .mf-top-visual {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #303032;
  }
  .main-feed .mf-top-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .main-feed .mf-top-play {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: max(min(14px, 22px), calc(22px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-top-card h2 {

    word-break: keep-all;
  }
  .main-feed .mf-top-card small {
    color: var(--mf-muted-dark);
  }
  body.page-main .main-feed > .mf-hero {
    display: none;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-lead-list {
    position: relative;
  }
  .main-feed :is(#mf-shortcuts, #mf-series, #mf-video, #mf-guide, #mf-top-news) {
    scroll-margin-top: 58px;
  }
  .main-feed .mf-series-more {
    background: var(--mf-primary);
    border-color: var(--mf-primary);
    color: #fff;
  }
  .main-feed .mf-news-notice {
    background: var(--mf-selected);
    border-color: #efd9d9;
  }
  .main-feed .mf-community-item.is-expanded .mf-community-head {
    box-shadow: 0 2px 3px #e038301a;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-poll {
    background: var(--mf-divider);
  }
  .main-feed .mf-poll-actions button {
    background: var(--mf-primary);
  }
  .main-feed .mf-poll-options label:has(input:checked) {
    background: var(--mf-selected);
    color: #BE0012;
    font-weight: 700;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) {
    display: flex;
    margin-top: 20px;
    padding: 0;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) img {
    display: block;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) small {
    display: block;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4) h3 {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 4)::before {
    top: -10px;
    left: calc(31% + 16px);
  }
  .main-feed .mf-news .mf-news-row:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 767px) {

  .main-feed .mf-community-item:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 767px) {
  body[data-stage='remaining'] .main-feed .mf-video .mf-video-title {
    order: 3;
    margin: 16px 0 0;
  }
  body[data-stage='remaining'] .main-feed .mf-video .mf-player {
    order: 2;
  }
}

/* Header status tooltip: share the existing NEW badge shimmer. */
@media (max-width: 767px) {
  .main-feed .mf-top-visual {
    aspect-ratio: 407 / 247;
    border-radius: 14px;
  }
  .main-feed .mf-top-topics button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .main-feed .mf-top-play {
    display: grid;
    place-items: center;
    line-height: 1;
  }
}

/* Mobile reading sizes stay consistent across the two home editions. */
@media (max-width: 767px) {
  .main-feed .mf-top-topics {
    gap: 8px;
    padding-inline: 12px;
  }
  .main-feed .mf-top-topics button {
    padding-inline: 12px;
  }
  .main-feed .mf-video-title,
  .main-feed .mf-guide-track h3 {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 24px;
  }
}
@media (max-width: 375px) {
  .main-feed .mf-top-topics {
    gap: 6px;
  }
  .main-feed .mf-top-topics button {
    padding-inline: 10px;
  }
}
@media (max-width: 767px) {
  .main-feed .mf-series .mf-heading > a {
    display: block;
    position: relative;
    padding-right: 24px;
  }
  .main-feed .mf-series .mf-heading > a > span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Mobile typography: matching roles, even sizes, +2px above 375px. */
@media (max-width: 767px) {
  .main-feed {
    --mf-title-size: 18px;
    --mf-title-line: 26px;

    --mf-meta-line: 22px;
    --mf-section-size: 22px;
    --mf-section-line: 30px;
  }
  .main-feed h3,
  .main-feed .mf-lead-list .mf-news-row h3,
  .main-feed .mf-series-timeline h3,
  .main-feed .mf-guide-track h3,
  .main-feed .mf-community-item .mf-community-head strong,
  .main-feed .mf-news-notice strong,
  .main-feed .mf-video-title,
  .main-feed .mf-poll-question strong {
    font-size: max(min(14px, var(--mf-title-size)), calc(var(--mf-title-size) - var(--font-size-step, 0px)));
    line-height: var(--mf-title-line);
  }
  .main-feed .mf-heading,
  .main-feed .mf-guide-cover h2,
  .main-feed .mf-top-card h2 {
    font-size: max(min(14px, var(--mf-section-size)), calc(var(--mf-section-size) - var(--font-size-step, 0px)));
    line-height: var(--mf-section-line);
  }
  .main-feed small,
  .main-feed .mf-lead-list .mf-news-row small,
  .main-feed .mf-series-timeline small,
  .main-feed .mf-guide-track small,
  .main-feed .mf-poll-total {
    font-size: max(min(14px, var(--mf-meta-size)), calc(var(--mf-meta-size) - var(--font-size-step, 0px)));
    line-height: var(--mf-meta-line);
  }
  .main-feed .mf-community-preview p {
    font-size: max(min(14px, var(--mf-body-size)), calc(var(--mf-body-size) - var(--font-size-step, 0px)));
    line-height: var(--mf-body-line);
    height: calc(var(--mf-body-line) * 2);
  }
  .main-feed .mf-poll-options label {
    font-size: max(min(14px, var(--mf-body-size)), calc(var(--mf-body-size) - var(--font-size-step, 0px)));
    line-height: var(--mf-body-line);
  }
  .main-feed .mf-shortcuts a,
  .main-feed .mf-section-nav a,
  .main-feed .mf-top-topics button,
  .main-feed .mf-poll-actions :is(button, a),
  .main-feed .mf-outline,
  .main-feed .mf-publisher strong,
  .main-feed .mf-type-tabs button,
  .main-feed .mf-type-preview > p,
  .main-feed .mf-guide-controls {
    font-size: max(min(14px, var(--mf-meta-size)), calc(var(--mf-meta-size) - var(--font-size-step, 0px)));
  }
}
@media (max-width: 375px) {
  .main-feed {
    
    --mf-title-line: 24px;
    
    --mf-meta-line: 20px;
    
    --mf-section-line: 28px;
    
    --mf-body-line: 22px;
    --mf-community-height: 71px;
  }

  .main-feed .mf-news-notice > span,
  .main-feed .mf-overview-badge {
    
  }
  .main-feed .mf-interior-image > strong {
    
  }
  .main-feed .mf-rank {
    
  }
}

/* One masked surface keeps the tooltip shimmer continuous through its tail. */


/* Reference layout for the mobile lead carousel. */
@media (max-width: 767px) {
  body.page-main.page-main-feed #main > .main-feed > .mf-top-news {
    background: #13141b;
    padding-top: 20px;
  }
  .main-feed .mf-top-topics {
    padding-bottom: 20px;
  }
  .main-feed .mf-top-topics button {
    background: #292a31;
    border-color: #3c3d44;
  }
  .main-feed .mf-top-topics button[aria-pressed='true'] {
    background: var(--mf-primary);
    border-color: var(--mf-primary);
  }
  .main-feed .mf-top-track {
    gap: 16px;
  }
  .main-feed .mf-top-card {
    opacity: 0.35;
    transition: opacity 240ms ease;
  }
  .main-feed .mf-top-card.is-active {
    opacity: 1;
  }
  .main-feed .mf-top-card h2 {
    max-width: 94%;
    font-weight: 700;
  }
  .main-feed .mf-top-card small {
    color: #8b8b90;
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-feed .mf-top-card {
    transition: none;
  }
}

@media (max-width: 767px) {
  .main-feed .mf-top-card h2 {
    white-space: pre-line;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-top-topics button,
  .main-feed .mf-top-topics button[aria-pressed] {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    padding-block: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 20px;
  }
}

/* Keep the original lead height, crop thumbnail letterboxing, and center topic labels. */
@media (max-width: 1024px) {
  .main-feed .mf-top-topics .mf-control-label {
    position: relative;
    top: -1px;
  }
  .main-feed .mf-top-visual {
    aspect-ratio: 407 / 247;
  }
  .main-feed .mf-top-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
  }
  .main-feed .mf-hero img {
    object-fit: contain;
  }
}

@media (max-width: 1024px) {
  body.page-main.page-main-feed {
    padding-bottom: 0;
  }
}

/* Emphasize only the active navigation labels. */
@media (max-width: 1024px) {
  .main-feed .mf-section-nav a {
    color: rgb(255 255 255 / 65%);
    font-weight: 400;
    opacity: 1;
  }
  .main-feed .mf-section-nav a[aria-current] {
    color: #fff;
    font-weight: 700;
    opacity: 1;
  }
  .main-feed .mf-top-topics button[aria-pressed='false'] {
    color: rgb(255 255 255 / 60%);
    font-weight: 400;
  }
  .main-feed .mf-top-topics button[aria-pressed='true'] {
    color: #fff;
    font-weight: 700;
  }
}

/* White spacing only immediately above and below image banners. */
@media (max-width: 1024px) {
  body.page-main.page-main-feed #main > .main-feed > :is(section, a) + .mf-image-banner,
  body.page-main.page-main-feed #main > .main-feed > .mf-image-banner + :is(section, a) {
    margin-top: 0;
    border-top: 10px solid #fff;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-overview:has(+ .mf-image-banner) {
    border-bottom-color: #fff;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-shortcuts a > span {
    font-weight: 500;
  }
}

/* Publisher identity must not shrink with compact metadata. */
@media (max-width: 1024px) {
  .main-feed .mf-video .mf-publisher strong {
    display: block;
  }
  .main-feed .mf-video .mf-publisher small {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
    font-weight: 400;
  }
}

/* Approved mobile design tokens: radii, photo spacing and palette. */
@media (max-width: 1024px) {
  body.page-main {
    --mf-primary: var(--main-color1);
    --mf-accent-text: #b2392e;
    --mf-selected: #fdf3f4;
    --mf-purple: #4132b6;
    --mf-divider: #eaedf2;
    --mf-text: #1e1e1f;
    --mf-dark: #1e1e1f;
    --mf-radius-sm: 8px;
    --mf-radius-lg: 12px;
    --mf-radius-card: 16px;
  }
  .main-feed
    :is(
      .mf-news-row > img,
      .mf-guide-track img,
      .mf-series-timeline img,
      .mf-popular-image,
      .mf-popular-image img,
      .mf-overview .mf-two-col img
    ) {
    border-radius: 8px;
  }
  .main-feed .mf-community-item,
  .main-feed .mf-community-head {
    border-radius: 12px;
  }
  .main-feed .mf-series-item[open],
  .main-feed .mf-top-visual,
  .main-feed .mf-player {
    border-radius: 16px;
  }
  .main-feed .mf-two-col,
  .main-feed .mf-popular .mf-two-col,
  .main-feed .mf-overview .mf-two-col {
    gap: 16px 10px;
  }
  .main-feed .mf-guide-track {
    gap: 16px 8px;
  }
  .main-feed button,
  .main-feed .mf-outline,
  .main-feed .mf-series-more,
  .main-feed .mf-poll-actions a {
    border-radius: 8px;
  }
}
/* Poll card: consistent readable sizing, including narrow mobile screens. */
@media (max-width: 1024px) {
  .main-feed [data-feed-poll] {
    padding: 16px;
    border: 1px solid #dce0e6;
    border-radius: 12px;
    background: #fff;
  }
  .main-feed .mf-poll-total {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 24px;
    margin: 0;
    gap: 4px;
  }
  .main-feed .mf-poll-total img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
  .main-feed .mf-poll-question {
    margin: 16px 0;
  }
  .main-feed .mf-poll-question strong {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 24px;
    font-weight: 700;
  }
  .main-feed .mf-poll-options {
    gap: 8px;
  }
  .main-feed .mf-poll-options label {
    min-height: 44px;
    padding: 10px 12px;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 22px;
    border-radius: 12px;
  }
  .main-feed .mf-poll-options input {
    appearance: none;
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 0 0 auto;
    border: 1px solid #858585;
    border-radius: 50%;
    background: #fff;
  }
  .main-feed .mf-poll-options input:checked {
    border-color: var(--mf-primary);
    background: var(--mf-primary);
  }
  .main-feed .mf-poll-options input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .main-feed .mf-poll-options input:focus-visible {
    outline: 2px solid var(--mf-purple);
    outline-offset: 3px;
  }
  .main-feed .mf-poll-actions {
    margin-top: 16px;
    gap: 8px;
  }
  .main-feed .mf-poll-actions :is(button, a) {
    min-height: 42px;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 700;
    border-radius: 8px;
  }
  .main-feed .mf-poll-feedback:empty {
    display: none;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-video .mf-video-title {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 24px;
    font-weight: 500;
  }
  .main-feed .mf-video .mf-publisher strong {
    font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px)));
    line-height: 26px;
    font-weight: 700;
  }
  .main-feed .mf-news-notice {
    background: #f8f8f8;
    border-color: #dedede;
    padding: 12px;
    gap: 12px;
  }
  .main-feed .mf-news-notice > span {
    background: var(--mf-purple);
    border-radius: 999px;
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    height: 28px;
    min-width: 40px;
  }
  .main-feed .mf-news-notice strong {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 700;
  }
  .main-feed .mf-news .mf-news-row h3 {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 22px;
    font-weight: 500;
  }
  .main-feed .mf-news .mf-news-row small {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
  }
  .main-feed .mf-news .mf-news-row + .mf-news-row::before {
    content: '';
    position: absolute;
    top: -10px;
    left: calc(31% + 16px);
    right: 0;
    height: 1px;
    background: #e6e6e6;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-guide-cover::after {
    content: '';
    position: absolute;
    inset: 25% 0 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgb(30 30 31 / 0) 0%, rgb(30 30 31 / 55%) 55%, #1e1e1f 100%);
  }
  .main-feed .mf-guide-cover :is(h2, .mf-guide-label) {
    z-index: 1;
  }
  .main-feed .mf-guide-cover img {
    clip-path: none;
  }
}

/* Keep banner spacing white even when hidden stage sections intervene. */
@media (max-width: 1024px) {
  body.page-main.page-main-feed #main > .main-feed > a.mf-image-banner {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-block: 10px;

    box-shadow:
      0 -10px 0 #fff,
      0 10px 0 #fff;
  }
  body.page-main.page-main-feed #main > .main-feed > a.mf-image-banner + :is(section, a) {
    margin-top: 0;
    border-top: 0;
  }
}

/* Shared type scale for both before and remaining mobile editions. */
@media (max-width: 767px) {
  .main-feed {
    --mf-title-size: 18px;
    --mf-title-line: 24px;
    --mf-meta-size: 14px;
    --mf-meta-line: 20px;
    --mf-section-size: 20px;
    --mf-section-line: 28px;
    --mf-body-size: 16px;
    --mf-body-line: 24px;
    --mf-community-height: 75px;
  }

  .main-feed .mf-heading,
  .main-feed .mf-guide-cover h2,
  .main-feed .mf-top-card h2 {
    font-size: max(min(14px, 20px), calc(20px - var(--font-size-step, 0px)));
    line-height: 28px;
  }
  .main-feed h3,
  .main-feed .mf-lead-list .mf-news-row h3,
  .main-feed .mf-news .mf-news-row h3,
  .main-feed .mf-series-timeline h3,
  .main-feed .mf-guide-track h3,
  .main-feed .mf-community-item .mf-community-head strong,
  .main-feed .mf-community-preview p,
  .main-feed .mf-news-notice strong,
  .main-feed .mf-video .mf-video-title,
  .main-feed .mf-poll-question strong,
  .main-feed .mf-poll-options label {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 24px;
  }
  .main-feed small,
  .main-feed .mf-lead-list .mf-news-row small,
  .main-feed .mf-news .mf-news-row small,
  .main-feed .mf-series-timeline small,
  .main-feed .mf-guide-track small,
  .main-feed .mf-video .mf-publisher small,
  .main-feed .mf-poll-total,
  .main-feed .mf-shortcuts a,
  .main-feed .mf-section-nav a,
  .main-feed .mf-top-topics button,
  .main-feed .mf-poll-actions :is(button, a),
  .main-feed .mf-outline,
  .main-feed .mf-type-tabs button,
  .main-feed .mf-type-preview > p,
  .main-feed .mf-guide-controls {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
  }
  .main-feed .mf-video .mf-publisher strong {
    font-size: max(min(14px, 18px), calc(18px - var(--font-size-step, 0px)));
    line-height: 26px;
  }
  .main-feed .mf-news-notice > span,
  .main-feed .mf-overview-badge {
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-interior-image > strong {
    font-size: max(min(14px, 16px), calc(16px - var(--font-size-step, 0px)));
    line-height: 24px;
  }
  .main-feed .mf-rank {
    font-size: max(min(14px, 20px), calc(20px - var(--font-size-step, 0px)));
  }
  .main-feed .mf-popular-image .mf-rank {
    font-size: max(min(14px, 80px), calc(80px - var(--font-size-step, 0px)));
  }
}
@media (max-width: 1024px) {
  body.page-main.page-main-feed #main > .main-feed {
    background: #fff;
  }
  body.page-main.page-main-feed #main > .main-feed > :is(section, a) + :is(section, a) {
    margin-top: 0;
    border-top: 10px solid var(--mf-divider);
  }
  body.page-main.page-main-feed #main > .main-feed > a.mf-image-banner {
    margin: 0;
    padding: 10px 0;
    border: 0;
    background: #fff;
    box-shadow: 0 10px 0 #fff;
  }
  body.page-main.page-main-feed #main > .main-feed > a.mf-image-banner + :is(section, a) {
    border-top-color: #fff;
  }
}

/* Schedule / post-subscription sheets — 440px design, readable narrow screens. */

@media (max-width: 767px) {
  body[data-stage='remaining'] .main-feed .mf-top-visual img {
    transform: none;
  }
  body[data-stage='remaining'] .main-feed .mf-top-card h2 {
    white-space: pre-line;
  }
}

@media (max-width: 1024px) {
  body[data-stage='remaining'] .main-feed .mf-video .mf-video-title {
    order: 2;
    margin: 0 0 16px;
  }
  body[data-stage='remaining'] .main-feed .mf-video .mf-player {
    order: 3;
  }
  body[data-stage='remaining'] .main-feed .mf-player button {
    display: none;
  }
  .main-feed .mf-player .mf-video-poster[hidden] {
    display: none;
  }
  .main-feed .mf-series-item summary > .mf-chevron svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-series-more.mf-outline {
    height: 24px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px)));
    line-height: 1;
    font-weight: 500;
    gap: 2px;
  }
  .main-feed .mf-series-more.mf-outline span {
    font-size: inherit;
  }
  .main-feed .mf-series-more.mf-outline svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-top-art-copy {
    position: absolute;
    bottom: 12px;
    left: 14px;
    display: grid;
    color: white;
    text-align: left;
    pointer-events: none;
    text-shadow: 0 1px 4px #0008;
  }
  .main-feed .mf-top-art-copy > span {
    font-size: max(min(14px, 20px), calc(20px - var(--font-size-step, 0px)));
    font-weight: 700;
    line-height: 1.2;
  }
  .main-feed .mf-top-art-copy > strong {
    font-size: max(min(14px, 32px), calc(32px - var(--font-size-step, 0px)));
    font-weight: 800;
    line-height: 1.15;
  }
  .main-feed .mf-video-poster[role='button'] {
    cursor: pointer;
  }
}

@media (max-width: 375px) {
  .mf-control-label {
    
  }
}
@media (max-width: 767px) {
  body.page-main.page-main-feed #main > .main-feed > .mf-lead-list {
    margin-top: -16px;
    margin-bottom: 0;
    background: #fff;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }
}

@media (max-width: 767px) {
  .main-feed .mf-community-preview p {
    font-size: max(min(14px, 14px), calc(14px - var(--font-size-step, 0px)));
    line-height: 20px;
    height: 40px;
  }
}



/* Responsive main-feed presentation. */
@media (max-width: 767px) {
  html body .main-feed .mf-top-topics {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 0;
  }
  html body .main-feed .mf-top-topics button {
    min-width: 7px !important;
    width: 7px !important;
    min-height: 7px !important;
    height: 7px !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #888;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
  }
  html body .main-feed .mf-top-topics button[aria-pressed='true'] {
    background: #ff1725;
  }
  html body .main-feed .mf-top-topics button > * {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  html body .mf-section-nav {
    top: 88px !important;
    min-height: 37px;
    box-sizing: border-box;
  }
  html body .main-feed [id] {
    scroll-margin-top: 136px !important;
  }
}

@media (max-width: 767px) {
  .main-feed .mf-top-card small {
    display: none;
  }
  .main-feed .mf-top-card h2 {
    margin: 24px auto 0;
    letter-spacing: 0;
  }
  .main-feed .mf-lead-list .mf-news-row {
    gap: 14px;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-lead-list {
    padding: 16px 16px 20px;
  }
  body.page-main.page-main-feed #main > .main-feed > .mf-top-news {
    padding-bottom: 36px;
  }
}

@media (max-width: 767px) {
  .stage-switch-panel {
    display: none;
  }
  .main-feed .mf-top-play {
    z-index: 2;
  }
}



@media (max-width: 1024px) {
  .main-feed .mf-video .mf-video-title { margin: 0 0 12px; }
}

/* 확정된 모바일 폰트 위계: 카드 18/16, 보조 정보 14 고정. */
@media (max-width: 1024px) {
  .main-feed .mf-top-card h2,
  .main-feed .mf-news-row h3,
  .main-feed .mf-series-timeline h3,
  .main-feed .mf-series-item summary strong,
  .main-feed .mf-guide-track h3,
  .main-feed .mf-community-head strong,
  .main-feed .mf-video .mf-video-title {
    font-size: calc(18px - var(--font-size-step, 0px));
    line-height: 24px;
  }
  .main-feed .mf-publisher strong,
  .main-feed .mf-publisher small,
  .main-feed .mf-series-author {
    font-size: 14px;
    line-height: 20px;
  }
  .main-feed .mf-overview-badge,
  .main-feed .mf-news-notice > span {
    font-size: 12px;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-lead-list .mf-news-row h3 {
    font-size: calc(16px - var(--font-size-step, 0px));
  }
  .main-feed .mf-news .mf-news-row h3 {
    font-size: calc(16px - var(--font-size-step, 0px));
  }
  .main-feed .mf-series-timeline h3 {
    font-size: calc(16px - var(--font-size-step, 0px));
    line-height: 24px;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-video .mf-video-title {
    font-size: calc(16px - var(--font-size-step, 0px));
    font-weight: 400;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-guide-track h3 {
    font-size: calc(16px - var(--font-size-step, 0px));
    font-weight: 500;
  }
}
@media (max-width: 1024px) {
  .main-feed .mf-poll-options label {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .main-feed .mf-top-card h2 {
    font-size: calc(20px - var(--font-size-step, 0px));
  }
}
