:root {
    --bg: #f4f4f4;
    --panel: #ffffff;
    --text: #222222;
    --muted: #6f7782;
    --line: #d9dde3;
    --accent: #1a4fa3;
    --accent-hover: #153f82;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* final override: ynews detail thread */
body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments {
    margin-top: 10px !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments h2 {
    margin: 0 0 6px !important;
    font-size: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments h2 i {
    font-size: 22px !important;
    color: #6b7280 !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-list {
    gap: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-post {
    gap: 6px !important;
    padding: 0 0 8px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-meta {
    gap: 7px !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-no {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #222 !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #7b818a !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-family,
body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-time {
    font-size: 14px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-icon {
    width: 24px !important;
    height: 24px !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-body {
    padding-right: 0 !important;
    color: #737983 !important;
    font-size: 24px !important;
    line-height: 1.72 !important;
    font-weight: 800 !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-reply-ref {
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #5f646d !important;
    display: inline-block !important;
    vertical-align: baseline !important;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8c939d;
    margin-right: 2px;
}

body.page-ynews.page-ynews-detail .ynews-detail-desktop-share i.ri-twitter-x-line,
body.page-ynews.page-ynews-detail .ynews-detail-desktop-share i.ri-facebook-circle-fill,
body.page-ynews.page-ynews-detail .ynews-detail-desktop-share i.ri-line-fill {
    font-size: 19px;
    line-height: 1;
}

/* ===== Yahoo-like news redesign ===== */
body.page-ynews {
    background: #f3f3f3;
    color: #222;
    min-height: 100vh;
}

body.page-ynews .site-header {
    display: none;
}

body.page-ynews > main {
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: 100vh;
    background: #f3f3f3;
}

.page-ynews .ynews-page-shell {
    width: 100%;
    min-height: 100vh;
}

.page-ynews a {
    color: inherit;
    text-decoration: none;
}

.page-ynews img {
    display: block;
    width: 100%;
    height: auto;
}

.page-ynews .ynews-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    color: #333;
}

.page-ynews .ynews-logo span {
    color: #ff0033;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    line-height: 1;
}

.page-ynews .ynews-desktop-topline {
    border-bottom: 1px solid #e6e6e6;
    background: #f8f8f8;
    font-size: 12px;
}

.page-ynews .ynews-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #5f6773;
    cursor: pointer;
}

.page-ynews .ynews-theme-toggle i {
    font-size: 18px;
    line-height: 1;
}

.page-ynews .ynews-desktop-topline-inner,
.page-ynews .ynews-desktop-header-inner,
.page-ynews .ynews-desktop-mainnav,
.page-ynews .ynews-desktop-subnav,
.page-ynews .ynews-desktop-page {
    width: min(1040px, calc(100% - 24px));
    margin: 0 auto;
}

.page-ynews .ynews-desktop-topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
}

.page-ynews .ynews-desktop-topline-links,
.page-ynews .ynews-desktop-user-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-ynews .ynews-desktop-header {
    background: #fff;
}

.page-ynews .ynews-desktop-header-inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 18px;
    padding: 12px 0 10px;
}

.page-ynews .ynews-desktop-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    height: 34px;
    border: 1px solid #bfc5d1;
    background: #fff;
}

.page-ynews .ynews-desktop-search input {
    border: 0;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
}

.page-ynews .ynews-desktop-search button {
    border: 0;
    border-left: 1px solid #d8dce4;
    background: #fff;
    color: #4b5563;
    font-size: 18px;
}

.page-ynews .ynews-desktop-mainnav {
    display: flex;
    align-items: center;
    background: #3c6084;
    color: #fff;
}

.page-ynews .ynews-desktop-mainnav a {
    padding: 10px 18px;
    font-size: 14px;
    color: #fff;
}

.page-ynews .ynews-desktop-mainnav a:hover {
    background: rgba(255, 255, 255, 0.09);
}

.page-ynews .ynews-desktop-subnav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid #dde2ea;
    background: #fff;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.page-ynews .ynews-desktop-subnav a {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.page-ynews .ynews-desktop-subnav a[aria-current="page"] {
    font-weight: 700;
}

.page-ynews .ynews-mobile-header {
    display: none;
}

.page-ynews .ynews-desktop-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 15px 0 24px;
}

.page-ynews .ynews-desktop-main,
.page-ynews .ynews-detail-desktop-main {
    min-width: 0;
}

.page-ynews .ynews-desktop-topics,
.page-ynews .ynews-desktop-panel,
.page-ynews .ynews-side-panel,
.page-ynews .ynews-detail-article-card {
    border: 1px solid #dde2ea;
    background: #fff;
}

.page-ynews .ynews-desktop-topics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    padding: 10px 12px 14px;
    margin-top: 0;
}

.page-ynews .ynews-desktop-topics-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted #d8dde7;
    color: #0f4db8;
    font-size: 14px;
}

.page-ynews .ynews-desktop-topics-list em,
.page-ynews .ynews-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff9f00;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.page-ynews .ynews-desktop-topics-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    font-size: 14px;
}

.page-ynews .ynews-desktop-feature {
    display: block;
}

.page-ynews .ynews-desktop-feature img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #e2e6ee;
}

.page-ynews .ynews-desktop-feature span {
    display: block;
    padding-top: 10px;
    color: #0f4db8;
    font-size: 14px;
    line-height: 1.45;
}

.page-ynews .ynews-desktop-panel {
    margin-top: 14px;
    padding: 0 14px 8px;
}

.page-ynews .ynews-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 12px;
}

.page-ynews .ynews-section-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.page-ynews .ynews-section-heading a {
    color: #0f65da;
    font-size: 13px;
}

.page-ynews .ynews-genre-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #245ac7;
    background: #eef4ff;
    border: 1px solid #d4e2ff;
    white-space: nowrap;
}

.page-ynews .ynews-genre-politics,
.page-ynews .ynews-genre-diplomacy_war {
    color: #8c1d40;
    background: #fff1f4;
    border-color: #f1c6d1;
}

.page-ynews .ynews-genre-disaster_quake,
.page-ynews .ynews-genre-local_misc {
    color: #7a5400;
    background: #fff8e2;
    border-color: #edd28a;
}

.page-ynews .ynews-genre-economy_prices,
.page-ynews .ynews-genre-logistics_supply,
.page-ynews .ynews-genre-business_bankruptcy {
    color: #8a3b06;
    background: #fff1e8;
    border-color: #efc8aa;
}

.page-ynews .ynews-genre-it_ai {
    color: #1d4ed8;
    background: #edf4ff;
    border-color: #c9dbff;
}

.page-ynews .ynews-genre-ufo_occult {
    color: #6d28d9;
    background: #f5efff;
    border-color: #dbcaff;
}

.page-ynews .ynews-genre-biology_animal {
    color: #166534;
    background: #eefcf1;
    border-color: #c8ebd1;
}

.page-ynews .ynews-genre-hobby_plamo,
.page-ynews .ynews-genre-entertainment_sns,
.page-ynews .ynews-genre-sports {
    color: #0f766e;
    background: #ecfffd;
    border-color: #c4ece9;
}

.page-ynews .ynews-desktop-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
    padding-bottom: 10px;
}

.page-ynews .ynews-desktop-trend-item,
.page-ynews .ynews-mobile-trend-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #0f4db8;
}

.page-ynews .ynews-desktop-rank,
.page-ynews .ynews-mobile-rank,
.page-ynews .ynews-side-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #ff6d00;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-align: center;
}

.page-ynews .ynews-desktop-trend-title {
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-ynews .ynews-desktop-feed-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid #edf0f4;
}

.page-ynews .ynews-desktop-feed-thumb img,
.page-ynews .ynews-desktop-side-thumb img {
    width: 74px;
    height: 74px;
    object-fit: cover;
}

.page-ynews .ynews-desktop-feed-copy a,
.page-ynews .ynews-desktop-side-copy a {
    display: block;
    color: #0f4db8;
    font-size: 16px;
    line-height: 1.45;
}

.page-ynews .ynews-desktop-feed .ynews-desktop-feed-copy a {
    font-size: 16px !important;
}

.page-ynews .ynews-desktop-feed-meta,
.page-ynews .ynews-desktop-side-copy span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.page-ynews .ynews-side-panel {
    padding: 10px 12px 12px;
}

.page-ynews .ynews-side-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.page-ynews .ynews-side-ranking {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-ynews .ynews-side-ranking li a {
    display: grid;
    grid-template-columns: 28px 74px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.page-ynews .ynews-side-ranking-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-ynews .ynews-side-ranking-title {
    color: #0f4db8;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-ynews .ynews-side-ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.page-ynews .ynews-mobile-list,
.page-ynews .ynews-detail-mobile {
    display: none;
}

.page-ynews .ynews-search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(1040px, calc(100% - 24px));
    margin: 0 auto;
    padding: 10px 0 6px;
    color: #666;
    font-size: 13px;
}

.page-ynews .ynews-detail-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    width: min(1040px, calc(100% - 24px));
    margin: 0 auto;
    padding: 10px 0 24px;
}

.page-ynews .ynews-detail-article-card {
    padding: 14px 14px 18px;
}

.page-ynews .ynews-detail-desktop-meta,
.page-ynews .ynews-detail-desktop-share {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #777;
    font-size: 12px;
}

.page-ynews .ynews-detail-desktop-share {
    gap: 12px;
    margin-top: 8px;
}

.page-ynews .ynews-detail-desktop-share i.ri-twitter-x-line,
.page-ynews .ynews-detail-desktop-share i.ri-facebook-circle-fill,
.page-ynews .ynews-detail-desktop-share i.ri-line-fill {
    font-size: 22px;
    line-height: 1;
}

.page-ynews .ynews-detail-article-card h1 {
    margin: 10px 0 10px;
    font-size: 34px;
    line-height: 1.28;
    font-weight: 800;
}

.page-ynews .ynews-detail-desktop-lead {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    margin-top: 16px;
    align-items: start;
}

.page-ynews .ynews-detail-desktop-figure {
    width: 220px;
    margin: 0;
}

.page-ynews .ynews-detail-desktop-figure img {
    width: 220px;
    height: 220px;
    object-fit: cover;
}

.page-ynews .ynews-detail-desktop-figure figcaption {
    margin-top: 8px;
    color: #0f4db8;
    font-size: 12px;
    line-height: 1.45;
}

.page-ynews .ynews-detail-desktop-summary {
    font-size: 15px;
    line-height: 1.9;
    min-width: 0;
    overflow: hidden;
    padding-top: 2px;
}

.page-ynews .ynews-detail-desktop-summary > p {
    margin: 0 0 12px;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body {
    display: block;
    min-width: 0;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body h1,
.page-ynews .ynews-detail-desktop-summary .markdown-body h2,
.page-ynews .ynews-detail-desktop-summary .markdown-body h3,
.page-ynews .ynews-detail-desktop-summary .markdown-body h4,
.page-ynews .ynews-detail-desktop-summary .markdown-body h5,
.page-ynews .ynews-detail-desktop-summary .markdown-body h6 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #222;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 700;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body p,
.page-ynews .ynews-detail-desktop-summary .markdown-body li,
.page-ynews .ynews-detail-desktop-summary .markdown-body strong {
    display: inline;
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 500;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body strong {
    font-weight: 700;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.page-ynews .ynews-detail-desktop-summary .markdown-body li {
    display: list-item;
}

.page-ynews .ynews-detail-desktop-source {
    display: block;
    padding-top: 16px;
    border-top: 1px solid #eceff4;
    margin-top: 16px;
}

.page-ynews .ynews-detail-desktop-source-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    color: #666;
}

.page-ynews .ynews-detail-desktop-source-label {
    font-size: 12px;
    font-weight: 700;
    color: #8a8f98;
    letter-spacing: 0;
    white-space: nowrap;
}

.page-ynews .ynews-detail-desktop-source-title {
    color: #0f4db8;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
    min-width: 0;
}

.page-ynews .ynews-detail-desktop-source-publisher,
.page-ynews .ynews-detail-desktop-source-time {
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.page-ynews .ynews-detail-desktop-comments {
    margin-top: 12px;
    border-top: 1px solid #eceff4;
    padding-top: 10px;
}

.page-ynews .ynews-detail-desktop-comments h2 {
    margin: 0 0 8px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-ynews .ynews-detail-desktop-comments h2 i {
    font-size: 20px;
    color: #6b7280;
}

.page-ynews .ynews-comments-genre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #245ac7;
    background: #eef4ff;
    border: 1px solid #d4e2ff;
}

.page-ynews .ai-thread-list {
    display: grid;
    gap: 10px;
}

.page-ynews .ai-thread-post {
    padding: 0 0 10px;
    border-bottom: 1px solid #edf0f4;
}

.page-ynews .ai-thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7a7a7a;
}

.page-ynews .ai-thread-no,
.page-ynews .ai-thread-family,
.page-ynews .ai-thread-name {
    font-weight: 700;
    color: #222;
}

.page-ynews .ai-thread-icon {
    width: 18px;
    height: 18px;
}

.page-ynews .ai-thread-body {
    padding-right: 0;
    color: #5f646d;
    font-size: 23px !important;
    line-height: 1.78;
    font-weight: 700;
}

.page-ynews .ai-thread-reply-ref {
    color: #0f65da;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
}

.page-ynews .ynews-desktop-side-list {
    display: grid;
    gap: 14px;
}

.page-ynews .ynews-desktop-side-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.page-ynews .ynews-desktop-side-thumb {
    display: block;
    width: 74px;
    height: 74px;
    overflow: hidden;
}

.page-ynews .ynews-desktop-side-copy {
    min-width: 0;
    padding-top: 2px;
}

.page-ynews .ynews-mobile-headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #dfe3eb;
    background: #fff;
}

.page-ynews .ynews-mobile-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #444;
    font-size: 24px;
}

.page-ynews .ynews-mobile-y {
    color: #ff0033;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
}

.page-ynews .ynews-mobile-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #dfe3eb;
    background: #fff;
    color: #0f65da;
    font-size: 14px;
    font-weight: 700;
}

.page-ynews .ynews-mobile-promo a {
    color: #333;
    font-weight: 700;
}

.page-ynews .ynews-mobile-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 10px 12px;
    border-bottom: 1px solid #dfe3eb;
    background: #fff;
}

.page-ynews .ynews-mobile-search input {
    min-width: 0;
    height: 40px;
    border: 1px solid #cfd6e2;
    border-right: 0;
    padding: 0 12px;
    font-size: 14px;
}

.page-ynews .ynews-mobile-search button {
    height: 40px;
    border: 1px solid #cfd6e2;
    background: #fff;
    color: #555;
    font-size: 18px;
}

.page-ynews .ynews-mobile-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    padding: 10px 0 0;
    background: #4d82d5;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.page-ynews .ynews-mobile-tabs::-webkit-scrollbar,
.page-ynews .ynews-desktop-subnav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.page-ynews .ynews-mobile-tabs a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 14px 16px;
    border-radius: 6px 6px 0 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.page-ynews .ynews-mobile-tabs a[aria-current="page"] {
    background: #fff;
    color: #2b5eb1;
}

html.theme-night,
html.theme-night body.page-ynews {
    background: #0f1115;
    color: #e6eaf0;
}

html.theme-night body.page-ynews > main {
    background: #0f1115;
}

html.theme-night .page-ynews .ynews-page-shell,
html.theme-night .page-ynews .ynews-desktop-header,
html.theme-night .page-ynews .ynews-desktop-topline,
html.theme-night .page-ynews .ynews-mobile-header,
html.theme-night .page-ynews .ynews-mobile-list,
html.theme-night .page-ynews .ynews-detail-mobile,
html.theme-night .page-ynews .ynews-desktop-page,
html.theme-night .page-ynews .ynews-detail-desktop,
html.theme-night .page-ynews .ynews-mobile-promo,
html.theme-night .page-ynews .ynews-search-result-head {
    background: #0f1115;
    color: #e6eaf0;
}

html.theme-night .page-ynews .ynews-desktop-topline,
html.theme-night .page-ynews .ynews-desktop-subnav,
html.theme-night .page-ynews .ynews-desktop-topics,
html.theme-night .page-ynews .ynews-desktop-panel,
html.theme-night .page-ynews .ynews-mobile-promo,
html.theme-night .page-ynews .ynews-mobile-search,
html.theme-night .page-ynews .ynews-mobile-panel,
html.theme-night .page-ynews .ynews-mobile-utility-list,
html.theme-night .page-ynews .ynews-related-mobile,
html.theme-night .page-ynews .ynews-mobile-comments,
html.theme-night .page-ynews .ynews-detail-mobile-source-row,
html.theme-night .page-ynews .ynews-mobile-card,
html.theme-night .page-ynews .ynews-related-mobile-item,
html.theme-night .page-ynews .ynews-section-heading,
html.theme-night .page-ynews .ynews-side-panel,
html.theme-night .page-ynews .ynews-side-ranking,
html.theme-night .page-ynews .ynews-desktop-feed,
html.theme-night .page-ynews .ynews-desktop-feature,
html.theme-night .page-ynews .ynews-desktop-trend,
html.theme-night .page-ynews .ynews-desktop-recommend,
html.theme-night .page-ynews .ynews-detail-desktop-main > article,
html.theme-night .page-ynews .ynews-detail-desktop-comments,
html.theme-night .page-ynews .ynews-point-card {
    border-color: #2a2f38 !important;
}

html.theme-night .page-ynews .ynews-desktop-header,
html.theme-night .page-ynews .ynews-desktop-topline,
html.theme-night .page-ynews .ynews-desktop-subnav,
html.theme-night .page-ynews .ynews-desktop-topics,
html.theme-night .page-ynews .ynews-desktop-panel,
html.theme-night .page-ynews .ynews-desktop-search,
html.theme-night .page-ynews .ynews-mobile-headbar,
html.theme-night .page-ynews .ynews-mobile-search,
html.theme-night .page-ynews .ynews-mobile-panel,
html.theme-night .page-ynews .ynews-mobile-utility-list,
html.theme-night .page-ynews .ynews-related-mobile,
html.theme-night .page-ynews .ynews-mobile-comments,
html.theme-night .page-ynews .ynews-mobile-card,
html.theme-night .page-ynews .ynews-related-mobile-item,
html.theme-night .page-ynews .ynews-side-panel,
html.theme-night .page-ynews .ynews-side-ranking,
html.theme-night .page-ynews .ynews-desktop-feed,
html.theme-night .page-ynews .ynews-desktop-feature,
html.theme-night .page-ynews .ynews-desktop-trend,
html.theme-night .page-ynews .ynews-desktop-recommend,
html.theme-night .page-ynews .ynews-detail-desktop-main > article,
html.theme-night .page-ynews .ynews-detail-desktop-comments,
html.theme-night .page-ynews .ynews-point-card,
html.theme-night .page-ynews .ynews-detail-mobile-body {
    background: #171a20 !important;
    color: #e6eaf0 !important;
}

html.theme-night .page-ynews .ynews-desktop-mainnav {
    background: #1d2735;
}

html.theme-night .page-ynews .ynews-mobile-tabs {
    background: #223657;
}

html.theme-night .page-ynews .ynews-logo,
html.theme-night .page-ynews .ynews-desktop-topline a,
html.theme-night .page-ynews .ynews-desktop-user-links a,
html.theme-night .page-ynews .ynews-desktop-subnav a,
html.theme-night .page-ynews .ynews-desktop-topics-list a,
html.theme-night .page-ynews .ynews-desktop-topics-more a,
html.theme-night .page-ynews .ynews-desktop-feature span,
html.theme-night .page-ynews .ynews-desktop-trend-title,
html.theme-night .page-ynews .ynews-side-ranking-title,
html.theme-night .page-ynews .ynews-detail-desktop-source-title,
html.theme-night .page-ynews .ynews-section-heading h2,
html.theme-night .page-ynews .ynews-section-heading a,
html.theme-night .page-ynews .ynews-mobile-utility-list a,
html.theme-night .page-ynews .ynews-mobile-trend-item,
html.theme-night .page-ynews .ynews-side-panel a,
html.theme-night .page-ynews .ynews-desktop-feed-copy a,
html.theme-night .page-ynews .ynews-related-mobile-copy a,
html.theme-night .page-ynews .ynews-desktop-side-copy a,
html.theme-night .page-ynews .ynews-mobile-card-copy a {
    color: #f3f5f8 !important;
}

html.theme-night .page-ynews .ynews-mobile-utility-list a {
    background: #171a20 !important;
    border-top-color: #2a2f38 !important;
}

html.theme-night .page-ynews .ynews-mobile-panel,
html.theme-night .page-ynews .ynews-mobile-utility-list,
html.theme-night .page-ynews .ynews-related-mobile,
html.theme-night .page-ynews .ynews-mobile-comments {
    border-top-color: #11141a !important;
}

html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-post {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-meta,
html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-no,
html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-family,
html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-time {
    color: #aeb7c2 !important;
}

html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-name,
html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-reply-ref {
    color: #b6bec9 !important;
}

html.theme-night .page-ynews .ynews-mobile-comments .ai-thread-body {
    color: #f3f5f8 !important;
}

html.theme-night .page-ynews .ynews-mobile-comments .ynews-section-heading h2 i {
    color: #97a0ab !important;
}

html.theme-night .page-ynews .ynews-mobile-reco-copy a,
html.theme-night .page-ynews .ynews-mobile-trend-item span:last-child,
html.theme-night .page-ynews .ynews-mobile-rank,
html.theme-night .page-ynews .ynews-desktop-rank,
html.theme-night .page-ynews .ynews-side-rank {
    color: #f3f5f8 !important;
}

html.theme-night .page-ynews .ynews-mobile-reco-copy span {
    color: #9aa3af !important;
}

html.theme-night .page-ynews .ynews-desktop-feed-item,
html.theme-night .page-ynews .ynews-desktop-topics-list a,
html.theme-night .page-ynews .ynews-side-ranking li a {
    border-color: #2a2f38 !important;
}

html.theme-night .page-ynews .ynews-desktop-topics-list a,
html.theme-night .page-ynews .ynews-desktop-topics-more,
html.theme-night .page-ynews .ynews-desktop-feed-meta,
html.theme-night .page-ynews .ynews-side-panel h2,
html.theme-night .page-ynews .ynews-search-result-head,
html.theme-night .page-ynews .ynews-side-ranking li span:last-child {
    color: #c7d0dc !important;
}

html.theme-night .page-ynews .ynews-desktop-search input,
html.theme-night .page-ynews .ynews-mobile-search input {
    background: #171a20 !important;
    color: #eef2f7 !important;
}

html.theme-night .page-ynews .ynews-desktop-search button,
html.theme-night .page-ynews .ynews-mobile-search button,
html.theme-night .page-ynews .ynews-theme-toggle {
    color: #c7d0dc !important;
}

html.theme-night .page-ynews .ynews-news-row-copy p,
html.theme-night .page-ynews .ynews-detail-mobile-summary,
html.theme-night .page-ynews .ynews-detail-desktop-summary,
html.theme-night .page-ynews .ynews-desktop-feed-copy span,
html.theme-night .page-ynews .ynews-desktop-side-copy span,
html.theme-night .page-ynews .ynews-mobile-comment-meta,
html.theme-night .page-ynews .ynews-detail-mobile-meta,
html.theme-night .page-ynews .ynews-detail-mobile-source-row,
html.theme-night .page-ynews .ynews-detail-desktop-meta,
html.theme-night .page-ynews .ynews-detail-desktop-source-meta,
html.theme-night .page-ynews .ai-thread-meta {
    color: #9aa3af !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-name,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-reply-ref {
    color: #b7c0cb !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-body {
    color: #f3f5f8 !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-summary,
html.theme-night .page-ynews .ynews-detail-mobile-summary,
html.theme-night .page-ynews .ynews-point-card .markdown-body,
html.theme-night .page-ynews .ynews-detail-desktop-source-label,
html.theme-night .page-ynews .ynews-detail-desktop-source-publisher,
html.theme-night .page-ynews .ynews-detail-desktop-source-time,
html.theme-night .page-ynews .ynews-detail-mobile-source-row span,
html.theme-night .page-ynews .ynews-desktop-feature span,
html.theme-night .page-ynews .ynews-desktop-topics-more,
html.theme-night .page-ynews .ynews-section-heading a,
html.theme-night .page-ynews .ynews-desktop-feed-meta,
html.theme-night .page-ynews .ynews-side-ranking-meta,
html.theme-night .page-ynews .ynews-side-panel h2 {
    color: #cfd6df !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-source-title,
html.theme-night .page-ynews .ynews-point-label,
html.theme-night .page-ynews .ynews-mobile-comment-body,
html.theme-night .page-ynews .ynews-detail-mobile-body h1,
html.theme-night .page-ynews .ynews-detail-article-card h1,
html.theme-night .page-ynews .ynews-detail-mobile-source-title {
    color: #f3f5f8 !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-summary,
html.theme-night .page-ynews .ynews-detail-desktop-summary > p,
html.theme-night .page-ynews .ynews-detail-desktop-summary .markdown-body,
html.theme-night .page-ynews .ynews-detail-desktop-summary .markdown-body p,
html.theme-night .page-ynews .ynews-detail-desktop-summary .markdown-body li,
html.theme-night .page-ynews .ynews-detail-desktop-summary .markdown-body strong {
    color: #cfd6df !important;
}

html.theme-night .page-ynews .ynews-detail-mobile-summary,
html.theme-night .page-ynews .ynews-point-card .markdown-body,
html.theme-night .page-ynews .ynews-point-card .markdown-body p,
html.theme-night .page-ynews .ynews-point-card .markdown-body li,
html.theme-night .page-ynews .ynews-detail-mobile-source-row,
html.theme-night .page-ynews .ynews-detail-mobile-source-row span,
html.theme-night .page-ynews .ynews-detail-mobile-source-meta-line,
html.theme-night .page-ynews .ynews-related-mobile-copy span {
    color: #cfd6df !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-source-meta,
html.theme-night .page-ynews .ynews-detail-desktop-source-label,
html.theme-night .page-ynews .ynews-detail-desktop-source-publisher,
html.theme-night .page-ynews .ynews-detail-desktop-source-time {
    color: #b8c1cc !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-figure figcaption,
html.theme-night .page-ynews .ynews-detail-desktop-figure figcaption a {
    color: #b8c1cc !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-meta,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-no,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-family,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-time {
    color: #aeb7c2 !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-icon {
    opacity: 0.92;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-list {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-comments .ai-thread-post {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-night .page-ynews .ynews-detail-desktop-source,
html.theme-night .page-ynews .ynews-detail-desktop-comments {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-share a,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-meta,
html.theme-night body.page-ynews.page-ynews-detail .ynews-detail-desktop-share {
    color: #b8c1cc !important;
}

.page-ynews .ynews-side-ranking .ynews-genre-badge {
    margin-top: 4px;
    padding: 3px 8px;
    font-size: 10px;
    line-height: 1;
}

.page-ynews .ynews-mobile-card,
.page-ynews .ynews-related-mobile-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #e7ebf2;
    background: #fff;
}

.page-ynews .ynews-mobile-card-thumb img,
.page-ynews .ynews-related-mobile-thumb img,
.page-ynews .ynews-mobile-reco-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.page-ynews .ynews-mobile-card-copy h2,
.page-ynews .ynews-related-mobile-copy a {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.page-ynews .ynews-mobile-card-meta,
.page-ynews .ynews-related-mobile-copy span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    color: #808080;
    font-size: 12px;
    align-items: center;
}

.page-ynews .ynews-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #2f74ff;
    font-weight: 700;
}

.page-ynews .ynews-mobile-panel,
.page-ynews .ynews-mobile-utility-list,
.page-ynews .ynews-related-mobile,
.page-ynews .ynews-mobile-comments {
    margin-top: 12px;
    border-top: 8px solid #eff2f7;
    background: #fff;
}

.page-ynews .ynews-mobile-panel .ynews-section-heading,
.page-ynews .ynews-related-mobile .ynews-section-heading,
.page-ynews .ynews-mobile-comments .ynews-section-heading {
    padding: 14px 14px 12px;
}

.page-ynews .ynews-mobile-comments .ynews-section-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.page-ynews .ynews-mobile-comments .ynews-section-heading h2 i {
    font-size: 20px;
    color: #6b7280;
}

.page-ynews .ynews-mobile-comments .ai-thread-list {
    padding: 2px 14px 14px;
    gap: 14px;
}

.page-ynews .ynews-mobile-comments .ai-thread-post {
    gap: 6px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e8edf3;
}

.page-ynews .ynews-mobile-comments .ai-thread-meta {
    gap: 6px;
    margin-bottom: 7px;
    font-size: 11px;
}

.page-ynews .ynews-mobile-comments .ai-thread-no {
    font-size: 14px;
    font-weight: 800;
    color: #222;
}

.page-ynews .ynews-mobile-comments .ai-thread-icon {
    width: 20px;
    height: 20px;
}

.page-ynews .ynews-mobile-comments .ai-thread-family,
.page-ynews .ynews-mobile-comments .ai-thread-time {
    font-size: 11px;
    color: #8d96a1;
}

.page-ynews .ynews-mobile-comments .ai-thread-name {
    font-size: 13px;
    font-weight: 800;
    color: #7b818a;
}

.page-ynews .ynews-mobile-comments .ai-thread-body {
    padding-right: 0;
    font-size: 24px;
    line-height: 1.62;
    font-weight: 800;
    color: #737983;
}

.page-ynews .ynews-mobile-comments .ai-thread-reply-ref {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: #5f646d;
}

.page-ynews .ynews-mobile-trend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 0 14px 16px;
}

.page-ynews .ynews-mobile-utility-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 14px;
    border-top: 1px solid #eef1f5;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
}

.page-ynews .ynews-pr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #3f7eea;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.page-ynews .ynews-mobile-skeleton-list,
.page-ynews .ynews-related-mobile {
    padding-bottom: 8px;
}

.page-ynews .ynews-mobile-reco-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 0 14px 14px;
}

.page-ynews .ynews-mobile-reco-copy a {
    display: block;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.page-ynews .ynews-mobile-reco-copy span {
    display: block;
    margin-top: 6px;
    color: #7d7d7d;
    font-size: 12px;
}

.page-ynews .ynews-detail-mobile-hero {
    position: relative;
    margin: 0;
    background: #fff;
}

.page-ynews .ynews-detail-mobile-hero img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.page-ynews .ynews-detail-mobile-hero figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-ynews .ynews-detail-mobile-body {
    padding: 14px 16px 0;
    background: #fff;
}

.page-ynews .ynews-detail-mobile-body h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
}

.page-ynews .ynews-detail-mobile-summary {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.65;
}

.page-ynews .ynews-detail-mobile-meta,
.page-ynews .ynews-detail-mobile-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #7b7b7b;
    font-size: 13px;
}

.page-ynews .ynews-detail-mobile-meta {
    margin-top: 10px;
}

.page-ynews .ynews-point-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid #dfe6f4;
    background: #fff;
}

.page-ynews .ynews-point-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #3b7de4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-ynews .ynews-point-card .markdown-body {
    font-size: 17px;
    line-height: 1.75;
}

.page-ynews .ynews-detail-mobile-source-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0 16px;
    border-top: 1px solid #edf0f4;
    margin-top: 18px;
}

.page-ynews .ynews-detail-mobile-source-label {
    font-size: 12px;
    font-weight: 700;
    color: #6f7782;
}

.page-ynews .ynews-detail-mobile-source-title {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: #222;
}

.page-ynews .ynews-detail-mobile-source-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #7b7b7b;
    font-size: 13px;
}

.page-ynews .ynews-mobile-comment-card {
    padding: 0 14px 16px;
}

.page-ynews .ynews-mobile-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #8a8a8a;
    font-size: 13px;
}

.page-ynews .ynews-mobile-comment-body {
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .page-ynews .ynews-desktop-topline,
    .page-ynews .ynews-desktop-header,
    .page-ynews .ynews-desktop-page,
    .page-ynews .ynews-detail-desktop {
        display: none;
    }

    .page-ynews .ynews-mobile-header,
    .page-ynews .ynews-mobile-list,
    .page-ynews .ynews-detail-mobile {
        display: block;
    }

    .page-ynews .ynews-page-shell {
        background: #f3f3f3;
    }

    .page-ynews .ynews-logo {
        font-size: 22px;
    }

    .page-ynews .ynews-search-result-head {
        width: 100%;
        margin: 0;
        padding: 10px 14px 2px;
        background: #fff;
        font-size: 12px;
    }

    .page-ynews .ynews-mobile-header,
    .page-ynews .ynews-mobile-list,
    .page-ynews .ynews-detail-mobile {
        font-size: 14px !important;
    }

    .page-ynews .ynews-mobile-header *,
    .page-ynews .ynews-mobile-list *,
    .page-ynews .ynews-detail-mobile * {
        font-size: inherit;
    }

    .page-ynews .ynews-mobile-card-copy h2,
    .page-ynews .ynews-mobile-card-copy h2 a,
    .page-ynews .ynews-related-mobile-copy a,
    .page-ynews .ynews-mobile-reco-copy a {
        font-size: 17px !important;
        line-height: 1.35;
    }

    .page-ynews .ynews-detail-mobile-body h1 {
        font-size: 30px !important;
        line-height: 1.32;
    }

    .page-ynews .ynews-section-heading h2 {
        font-size: 15px !important;
    }

    .page-ynews .ynews-detail-mobile-summary {
        font-size: 16px !important;
        line-height: 1.65;
    }

    .page-ynews .ynews-point-card .markdown-body,
    .page-ynews .ynews-mobile-comment-body,
    .page-ynews .ynews-mobile-utility-list a {
        font-size: 14px !important;
        line-height: 1.7;
    }

    .page-ynews .ynews-mobile-card-meta,
    .page-ynews .ynews-mobile-card-meta span,
    .page-ynews .ynews-related-mobile-copy span,
    .page-ynews .ynews-mobile-reco-copy span,
    .page-ynews .ynews-detail-mobile-meta,
    .page-ynews .ynews-detail-mobile-source-row,
    .page-ynews .ynews-mobile-comment-meta {
        font-size: 11px !important;
    }

    .page-ynews .ynews-mobile-promo,
    .page-ynews .ynews-mobile-promo a,
    .page-ynews .ynews-mobile-tabs a,
    .page-ynews .ynews-point-label,
    .page-ynews .ynews-readmore-button {
        font-size: 14px !important;
    }

    .page-ynews .ai-thread-body {
        font-size: 16px;
        line-height: 1.72;
    }
}

@media (min-width: 761px) {
    .page-ynews .ynews-mobile-header,
    .page-ynews .ynews-mobile-list,
    .page-ynews .ynews-detail-mobile {
        display: none;
    }
}

/* Yahoo news pages: lower non-title typography by one step */
.page-ynews .ynews-desktop-topline,
.page-ynews .ynews-desktop-topline a,
.page-ynews .ynews-desktop-user-links a,
.page-ynews .ynews-detail-desktop-meta,
.page-ynews .ynews-detail-desktop-share,
.page-ynews .ynews-desktop-feed-meta,
.page-ynews .ynews-related-mobile-copy span,
.page-ynews .ynews-mobile-reco-copy span,
.page-ynews .ynews-detail-mobile-meta,
.page-ynews .ynews-detail-mobile-source-row,
.page-ynews .ynews-mobile-comment-meta,
.page-ynews .ai-thread-meta {
    font-size: 11px !important;
}

.page-ynews .ynews-desktop-mainnav a,
.page-ynews .ynews-desktop-subnav a,
.page-ynews .ynews-desktop-search input,
.page-ynews .ynews-desktop-topics-list a,
.page-ynews .ynews-desktop-topics-more,
.page-ynews .ynews-desktop-feature span,
.page-ynews .ynews-section-heading a,
.page-ynews .ynews-desktop-trend-title,
.page-ynews .ynews-desktop-feed-copy a,
.page-ynews .ynews-side-ranking li span:last-child,
.page-ynews .ynews-detail-desktop-summary,
.page-ynews .ynews-detail-desktop-figure figcaption,
.page-ynews .ai-thread-body {
    font-size: 13px !important;
}

.page-ynews .ynews-side-panel h2,
.page-ynews .ynews-detail-desktop-comments h2,
.page-ynews .ynews-section-heading h2 {
    font-size: 16px !important;
}

.page-ynews .ynews-readmore-button {
    font-size: 16px !important;
}

.page-ynews .ynews-readmore-button-desktop {
    font-size: 14px !important;
}

.yahoo-page-frame {
    width: min(1140px, 100%);
    margin: 0 auto;
}

.yahoo-utility-bar,
.yahoo-brand-bar,
.yahoo-main-nav,
.yahoo-sub-nav {
    background: #fff;
}

.yahoo-utility-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
    color: #4a5560;
    font-size: 12px;
}

.yahoo-utility-links {
    display: flex;
    gap: 14px;
}

.yahoo-brand-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
}

.yahoo-brand-logo {
    color: #30343a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.yahoo-brand-logo span {
    color: #e60012;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.yahoo-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    max-width: 420px;
    justify-self: end;
    width: 100%;
    border: 1px solid #bac6d8;
}

.yahoo-search-box input {
    min-width: 0;
    min-height: 40px;
    padding: 10px 12px;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 14px;
}

.yahoo-search-box button {
    border: 0;
    background: #f7f9fc;
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
}

.yahoo-main-nav {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-top: 0;
    border-bottom: 0;
    background: linear-gradient(180deg, #3e6fae 0%, #355f98 100%);
}

.yahoo-main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.yahoo-main-nav a[aria-current="page"] {
    background: rgba(0, 0, 0, 0.14);
}

.yahoo-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 10px;
    border: 1px solid var(--line);
}

.yahoo-sub-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    color: #30343a;
    font-size: 14px;
    font-weight: 700;
}

.yahoo-sub-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--accent);
}

.yahoo-news-shell,
.yahoo-article-shell {
    display: grid;
    gap: 16px;
    padding: 0 0 40px;
}

.yahoo-news-header,
.yahoo-side-card,
.yahoo-feature-card,
.yahoo-headlines,
.yahoo-empty-card,
.yahoo-article-main {
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
}

.yahoo-news-header {
    display: grid;
    gap: 14px;
    padding: 18px 20px 14px;
}

.yahoo-news-header h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3.8vw, 36px);
    line-height: 1.22;
    font-weight: 800;
}

.yahoo-news-header .lead {
    max-width: none;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.yahoo-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.yahoo-news-tabs a {
    padding: 0 14px 0 0;
    color: #3c4043;
    font-size: 13px;
    font-weight: 700;
}

.yahoo-news-tabs a[aria-current="page"] {
    color: var(--accent);
}

.yahoo-news-layout,
.yahoo-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
}

.yahoo-news-main,
.yahoo-article-main {
    display: grid;
    gap: 16px;
}

.yahoo-article-main {
    gap: 0;
}

.yahoo-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    gap: 18px;
    padding: 0;
}

.yahoo-feature-copy h2,
.yahoo-headline-copy h3 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.32;
    font-weight: 800;
}

.yahoo-feature-copy p,
.yahoo-headline-copy p,
.yahoo-empty-card p {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.7;
}

.yahoo-feature-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px 20px 18px 0;
}

.yahoo-feature-image,
.yahoo-headline-image,
.news-card-image,
.yahoo-feed-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
}

.yahoo-feature-image img,
.yahoo-headline-image img,
.news-card-image img,
.yahoo-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yahoo-headlines {
    display: grid;
}

.yahoo-headline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.yahoo-headline-item:last-child {
    border-bottom: 0;
}

.yahoo-headline-copy h3 {
    font-size: 18px;
}

.yahoo-feed-list {
    display: grid;
    border: 1px solid var(--line);
    background: #fff;
}

.yahoo-feed-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.yahoo-feed-item:last-child {
    border-bottom: 0;
}

.yahoo-feed-thumb {
    aspect-ratio: 4 / 3;
}

.yahoo-feed-copy {
    display: grid;
    gap: 6px;
}

.yahoo-feed-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.yahoo-news-list-card {
    display: grid;
    border: 1px solid var(--line);
    background: #fff;
}

.yahoo-news-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.yahoo-news-row:last-child {
    border-bottom: 0;
}

.yahoo-news-row-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
}

.yahoo-news-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yahoo-news-row-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #8a93a0;
    font-size: 28px;
}

.yahoo-news-row-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-top: 2px;
}

.yahoo-news-row-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 30px);
    line-height: 1.34;
    font-weight: 800;
}

.yahoo-news-row-copy h2 a {
    color: #30343a;
}

.yahoo-news-row-copy p {
    margin: 0;
    color: #5d6571;
    font-size: 13px;
    line-height: 1.7;
}

.yahoo-news-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #7d8692;
    font-size: 12px;
    font-weight: 700;
}

.yahoo-news-row-source {
    color: var(--accent);
}

.yahoo-news-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.yahoo-empty-card {
    padding: 24px 20px;
}

.news-card h2,
.yahoo-empty-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.45;
}

.news-card p {
    margin: 0;
    color: var(--muted);
}

.news-meta,
.yahoo-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.news-meta span,
.yahoo-story-meta span {
    display: inline-flex;
    align-items: center;
}

.yahoo-news-side,
.yahoo-article-side {
    display: grid;
    gap: 16px;
}

.yahoo-side-card {
    padding: 16px;
}

.yahoo-side-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.yahoo-side-heading h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.yahoo-ranking-list,
.yahoo-topic-list,
.yahoo-related-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
}

.yahoo-ranking-list li,
.yahoo-related-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.yahoo-ranking-no {
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.yahoo-ranking-copy,
.yahoo-related-list li,
.yahoo-topic-list li {
    color: #3c4043;
    font-size: 13px;
    line-height: 1.7;
}

.yahoo-ranking-copy a,
.yahoo-related-list a,
.yahoo-feature-copy a,
.yahoo-headline-copy a {
    color: #1f1f1f;
}

.yahoo-ranking-copy span,
.yahoo-related-list span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.yahoo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.yahoo-article-main {
    padding: 20px 24px 28px;
    min-width: 0;
}

.yahoo-article-header h1 {
    margin: 8px 0 14px;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.3;
    font-weight: 800;
}

.yahoo-article-header {
    margin-bottom: 14px;
}

.yahoo-article-summary {
    margin: 0 0 14px;
    color: #444;
    font-size: 14px;
    line-height: 1.86;
}

.yahoo-article-section {
    display: block;
    margin-top: 20px;
}

.yahoo-article-section > h2 {
    margin: 0;
    padding-top: 12px;
    padding-bottom: 10px;
    border-top: 1px solid var(--line);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
}

.yahoo-article-section-light .yahoo-article-body p,
.yahoo-article-section-light .yahoo-article-body li,
.yahoo-article-section-light .yahoo-article-body strong {
    font-weight: 500;
    color: #4b5560;
}

.yahoo-article-section-light .yahoo-article-body p,
.yahoo-article-section-light .yahoo-article-body li {
    font-size: 15px;
    line-height: 1.8;
}

.yahoo-article-section-reactions {
    margin-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.yahoo-article-section-reactions > h2 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.yahoo-article-image {
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    background: #f0f2f5;
}

.yahoo-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yahoo-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.yahoo-source-actions a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.yahoo-source-compact {
    display: block;
    margin: 0;
}

.yahoo-source-compact-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.yahoo-source-inline-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.yahoo-source-inline-item strong {
    color: #8b9097;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.yahoo-source-inline-item em {
    min-width: 0;
    color: #6f7782;
    font-style: normal;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.yahoo-source-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #c8d2e1;
    background: #f7f9fc;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ai-thread-list {
    display: grid;
    gap: 22px;
    margin-top: 0;
    margin-bottom: 20px;
}

.ai-thread-post {
    display: grid;
    gap: 8px;
}

.ai-thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: #8b9097;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

.ai-thread-no {
    color: #6a3f17;
    font-size: 15px;
    font-weight: 700;
}

.ai-thread-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    margin-left: 4px;
    margin-right: 1px;
    display: block;
    background-color: #8b9097;
    -webkit-mask-image: var(--ai-thread-icon-url);
    mask-image: var(--ai-thread-icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ai-thread-name {
    color: #2d7b2f;
    font-size: 15px;
    font-weight: 700;
}

.ai-thread-name.character-link {
    color: #2d7b2f;
}

.ai-thread-name.character-link:hover {
    color: #236326;
    text-decoration: none;
}

.ai-thread-family,
.ai-thread-time {
    color: #8b9097;
    font-size: 13px;
    font-weight: 500;
}

.ai-thread-family {
    margin-right: 2px;
}

.ai-thread-time {
    margin-left: 4px;
}

.ai-thread-body {
    padding-right: min(4vw, 24px);
    color: #5f7380;
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.44;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ai-thread-reply-ref {
    display: inline-block;
    color: #5878b4;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.2;
}

.yahoo-source-info {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-top: 14px;
}

.yahoo-source-info div {
    display: grid;
    gap: 4px;
}

.yahoo-source-info dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.yahoo-source-info dd {
    margin: 0;
    color: #3c4043;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.markdown-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.yahoo-topics-link {
    justify-self: end;
}

.yahoo-topics-link a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.markdown-body h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.28;
    font-weight: 800;
}

.markdown-body h2 {
    margin: 18px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
}

.markdown-body p,
.markdown-body ul {
    margin: 0;
}

.markdown-body p,
.markdown-body li {
    color: #333;
    font-size: 17px;
    line-height: 1.72;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.markdown-body ul {
    padding-left: 1.2em;
    min-width: 0;
    max-width: 100%;
}

.markdown-body a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.markdown-body strong {
    display: inline-block;
    margin-top: 6px;
    color: #1f1f1f;
    font-size: 18px;
    font-weight: 800;
}

.character-link {
    color: var(--accent);
    text-decoration: none;
}

.character-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.character-profile {
    display: grid;
    gap: 22px;
    margin: 38px 0 56px;
    padding: clamp(22px, 5vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.character-profile-head {
    display: grid;
    gap: 10px;
}

.character-profile-avatar {
    width: 116px;
    height: 116px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

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

.character-profile h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.profile-item {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
}

.profile-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-item strong,
.profile-item p {
    margin: 0;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--text);
    background: var(--bg);
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "palt" 1;
}

body {
    min-width: 320px;
    margin: 0;
    line-height: 1.62;
    font-weight: 500;
}

.yahoo-news-shell,
.yahoo-article-shell,
.markdown-body,
.site-header,
.site-nav,
.brand {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(1120px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 245, 247, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
}

.brand,
.site-nav,
.button,
.auth-card-header,
.submit-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 9px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand i {
    color: var(--accent);
    font-size: 22px;
}

.site-nav {
    justify-self: end;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a + a::before {
    content: "｜";
    margin: 0 14px;
    color: rgba(29, 29, 31, 0.28);
}

.site-nav a i {
    font-size: 15px;
    line-height: 1;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a[aria-current="page"] {
    color: var(--text);
}

.header-user-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    margin-left: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent);
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 64px);
    align-items: center;
    padding: 3px 0 52px;
}

.hero-home {
    min-height: auto;
    align-items: start;
}

.hero-copy {
    max-width: 820px;
}

.hero-copy-home {
    display: block;
    justify-self: stretch;
    width: 100%;
    max-width: none;
}

.top-slider {
    position: relative;
    width: 100%;
    margin-bottom: 26px;
}

.top-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    scroll-snap-type: x mandatory;
}

.top-slide {
    display: block;
    width: 100%;
    scroll-snap-align: start;
}

.top-slide a {
    display: block;
    width: 100%;
}

.top-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 6px;
}

.top-slider-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
}

.top-slider-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    color: var(--text);
    cursor: pointer;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.08;
    letter-spacing: 0;
}

.lead {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    max-width: 720px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-user-copy {
    min-width: 0;
}

.hero-user-copy strong,
.hero-user-copy span {
    display: block;
}

.hero-user-copy strong {
    font-size: 18px;
}

.hero-user-copy span {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.hero-user-link {
    width: auto;
    min-width: 132px;
}

.button {
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.section,
.feature-card,
.auth-card,
.profile-hero,
.form-panel {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.section {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
    padding: clamp(24px, 4vw, 44px);
}

.section h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
}

.section-text {
    margin: 0;
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: #222;
    font-size: 14px;
    text-decoration: none;
}

.chip-link:hover {
    background: #f7f8fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 56px;
}

.feature-card {
    padding: 28px;
}

.feature-card i {
    color: var(--accent);
    font-size: 30px;
}

.feature-card h3 {
    margin: 14px 0 8px;
    font-size: 20px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 460px);
    align-items: center;
    gap: 28px;
    min-height: calc(100svh - 64px);
    padding: 42px 0 56px;
}

.auth-layout-center {
    grid-template-columns: minmax(320px, 480px);
    justify-content: center;
}

.auth-copy h1 {
    max-width: 640px;
}

.auth-card {
    display: grid;
    gap: 18px;
    width: 100%;
    padding: clamp(24px, 4vw, 36px);
}

.auth-card-header {
    gap: 12px;
}

.auth-card-header i {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent);
    font-size: 24px;
}

.auth-card-header h1,
.auth-card-header h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
}

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

.form-field span,
.check-field {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.field-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

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

.form-field input,
.form-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: rgba(0, 113, 227, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.submit-button,
.secondary-button {
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.submit-button {
    border: 0;
    background: var(--accent);
    color: #ffffff;
}

.submit-button:hover {
    background: var(--accent-hover);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.auth-links {
    text-align: center;
}

.auth-links a,
.notice a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.notice {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.notice p {
    margin-bottom: 0;
}

.notice-error {
    border: 1px solid rgba(210, 35, 35, 0.22);
    background: rgba(255, 59, 48, 0.09);
    color: #b42318;
}

.notice-success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: rgba(52, 199, 89, 0.1);
    color: #137333;
}

.logout-card {
    text-align: center;
}

.logout-card .auth-card-header {
    justify-content: center;
}

.logout-actions {
    display: grid;
    gap: 10px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 42px 0 16px;
    padding: clamp(28px, 5vw, 52px);
}

.profile-summary {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

.profile-summary strong,
.profile-summary span {
    display: block;
    text-align: center;
}

.profile-summary strong {
    font-size: 20px;
}

.profile-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.avatar {
    display: inline-grid;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: var(--accent);
    font-size: 36px;
}

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

.avatar-link {
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.avatar-link-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.92);
    box-shadow: 0 12px 24px rgba(0, 113, 227, 0.18);
    color: #ffffff;
    font-size: 15px;
}

.avatar-link-badge i {
    line-height: 1;
}

.avatar-link:hover {
    transform: translateY(-1px);
}

.profile-form {
    display: grid;
    gap: 16px;
    padding-top: 42px;
    padding-bottom: 56px;
}

.form-panel {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 24px;
    padding: clamp(24px, 4vw, 40px);
}

.profile-single-panel {
    grid-template-columns: 1fr;
}

@media (min-width: 961px) {
    .profile-single-panel {
        width: min(66.666%, 720px);
        margin: 0 auto;
    }
}

.profile-panel-header {
    --profile-arc-width: calc(100% + 80px);
    --profile-avatar-center: 104px;
    display: grid;
    justify-items: center;
    position: relative;
    overflow: hidden;
    margin: -40px -40px 0;
    padding: 66px 24px 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.profile-arc {
    position: absolute;
    top: calc(var(--profile-avatar-center) - var(--profile-arc-width));
    left: 50%;
    width: var(--profile-arc-width);
    height: var(--profile-arc-width);
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 80, 164, 0.92) 0%, rgba(255, 138, 42, 0.9) 100%);
    box-shadow: 0 18px 40px rgba(255, 120, 88, 0.22);
}

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

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

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.form-actions .submit-button {
    width: min(320px, 100%);
}

.form-actions-submit {
    margin-top: 30px;
    margin-bottom: 30px;
}

.profile-save-button {
    background: linear-gradient(135deg, #ff4fa3 0%, #ff8a2a 100%);
}

.profile-save-button:hover {
    background: linear-gradient(135deg, #f73f95 0%, #f07d24 100%);
}

.profile-hero-icon {
    margin-bottom: 18px;
}

.icon-editor-layout {
    display: grid;
    gap: 16px;
    padding-bottom: 56px;
}

.icon-editor-panel {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 24px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.icon-editor-copy {
    display: grid;
    align-content: start;
    gap: 16px;
}

.icon-editor-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.icon-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-picker-trigger {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.icon-picker-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 113, 227, 0.34);
    box-shadow: 0 14px 28px rgba(0, 113, 227, 0.12);
}

.icon-picker-name {
    overflow: hidden;
    max-width: 220px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.icon-editor-button {
    width: min(320px, 100%);
}

.icon-crop-stage {
    display: grid;
    gap: 18px;
}

.crop-shell {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.035) 75%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.035) 75%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.crop-shell img {
    display: block;
    max-width: 100%;
}

.icon-preview-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-preview-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.icon-preview {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
}

.icon-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 18, 26, 0.32);
    backdrop-filter: blur(20px) saturate(145%);
}

.modal-card {
    width: min(100%, 420px);
    padding: 28px 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
    text-align: center;
    animation: modal-bounce-in 210ms ease-in forwards;
}

.modal-card h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 34px);
}

.modal-copy {
    margin-bottom: 0;
    color: var(--muted);
}

.modal-bouncy-text {
    display: block;
}

.bouncy-char {
    display: inline-block;
    transform-origin: center bottom;
    animation: slime-bounce var(--char-duration, 320ms) cubic-bezier(0.2, 0.88, 0.26, 1.32) both;
    animation-delay: var(--char-delay, 80ms);
}

.bouncy-char-space {
    min-width: 0.34em;
}

.modal-icon {
    display: inline-grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.18), rgba(52, 199, 89, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 34px rgba(0, 113, 227, 0.15);
    color: var(--accent);
    font-size: 34px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.modal-button {
    width: min(220px, 100%);
}

@keyframes modal-bounce-in {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }

    30% {
        opacity: 1;
        transform: translateY(-12px) scale(1.035);
    }

    48% {
        transform: translateY(0) scale(0.99);
    }

    64% {
        transform: translateY(-7px) scale(1.016);
    }

    78% {
        transform: translateY(0) scale(0.996);
    }

    90% {
        transform: translateY(-3px) scale(1.006);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slime-bounce {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }

    22% {
        transform: translateY(var(--char-drop, 8px)) scaleX(var(--char-stretch, 1.12)) scaleY(var(--char-squash, 0.88));
    }

    46% {
        transform: translateY(calc(var(--char-lift, 12px) * -1)) scaleX(calc(2 - var(--char-stretch, 1.12))) scaleY(calc(2 - var(--char-squash, 0.88)));
    }

    66% {
        transform: translateY(calc(var(--char-drop, 8px) * 0.42)) scaleX(calc(1 + ((var(--char-stretch, 1.12) - 1) * 0.55))) scaleY(calc(1 - ((1 - var(--char-squash, 0.88)) * 0.55)));
    }

    82% {
        transform: translateY(calc(var(--char-lift, 12px) * -0.18)) scaleX(0.985) scaleY(1.018);
    }

    100% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }
}

@media (max-width: 760px) {
    html,
    body {
        background: #fff;
    }

    main {
        width: 100%;
    }

    .yahoo-page-frame {
        width: 100%;
        padding: 0 12px 24px;
        box-sizing: border-box;
    }

    .yahoo-utility-bar {
        display: none;
    }

    .yahoo-brand-bar,
    .yahoo-main-nav,
    .yahoo-sub-nav {
        display: none;
    }

    .yahoo-brand-bar {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 10px 12px;
    }

    .yahoo-brand-logo {
        font-size: 16px;
    }

    .yahoo-brand-logo span {
        font-size: 24px;
    }

    .yahoo-search-box {
        max-width: 164px;
    }

    .yahoo-search-box input {
        min-height: 34px;
        font-size: 13px;
    }

    .yahoo-main-nav,
    .yahoo-sub-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .yahoo-main-nav a,
    .yahoo-sub-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .yahoo-main-nav a {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .yahoo-sub-nav {
        padding: 0 6px;
    }

    .yahoo-sub-nav a {
        min-height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }

    .site-header {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
        padding: 14px 0;
        gap: 12px;
        margin: 0 auto;
    }

    .site-nav {
        width: 100%;
        justify-self: stretch;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        overflow: visible;
        min-width: 0;
    }

    .site-nav a {
        flex: 0 1 auto;
        min-width: 0;
        padding: 6px 0;
        font-size: 13px;
    }

    .site-nav a + a::before {
        display: none;
    }

    .header-user-avatar {
        justify-self: end;
        margin-left: 0;
    }

    .news-detail,
    .character-profile {
        padding: 18px 16px;
    }

    .yahoo-news-shell,
    .yahoo-article-shell {
        gap: 10px;
        padding: 0 0 20px;
    }

    .yahoo-news-layout,
    .yahoo-article-layout,
    .yahoo-feature-card,
    .yahoo-headline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .yahoo-news-side {
        display: none;
    }

    .yahoo-feature-card {
        padding: 0;
    }

    .yahoo-feature-copy {
        padding: 14px 14px 0;
    }

    .yahoo-feature-image {
        margin: 0 14px 14px;
    }

    .yahoo-news-header,
    .yahoo-article-main,
    .yahoo-side-card,
    .yahoo-feature-card,
    .yahoo-headline-item {
        padding-left: 14px;
        padding-right: 14px;
    }

    .yahoo-news-header {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .yahoo-news-header .eyebrow {
        font-size: 11px;
        line-height: 1.2;
    }

    .yahoo-news-header h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .yahoo-news-header .lead {
        font-size: 12px;
        line-height: 1.7;
    }

    .yahoo-feature-copy h2 {
        font-size: 23px;
    }

    .yahoo-headline-copy h3,
    .yahoo-empty-card h2 {
        font-size: 18px;
    }

    .yahoo-feed-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .yahoo-feed-copy h3 {
        font-size: 16px;
        line-height: 1.42;
    }

    .yahoo-news-row {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .yahoo-news-row-copy {
        gap: 6px;
    }

    .yahoo-news-row-copy h2 {
        font-size: 18px;
        line-height: 1.38;
    }

    .yahoo-news-row-copy p {
        font-size: 12px;
        line-height: 1.6;
    }

    .markdown-body {
        gap: 12px;
    }

    .ai-thread-list {
        gap: 18px;
    }

    .ai-thread-meta {
        font-size: 12px;
    }

    .ai-thread-no,
    .ai-thread-name {
        font-size: 14px;
    }

    .ai-thread-icon {
        width: 22px;
        height: 22px;
    }

    .ai-thread-family,
    .ai-thread-time {
        font-size: 12px;
    }

    .ai-thread-body {
        padding-right: 0;
        font-size: clamp(19px, 6.8vw, 28px);
        line-height: 1.46;
    }

    .ai-thread-reply-ref {
        font-size: 0.74em;
    }

    .hero {
        min-height: auto;
        padding: 3px 0 42px;
    }

    .profile-form {
        padding-top: 16px;
    }

    .profile-panel-header {
        --profile-arc-width: calc(100% + 48px);
        --profile-avatar-center: 96px;
        margin: -24px -24px 0;
        padding-top: 58px;
    }

    .section,
    .feature-grid,
    .auth-layout,
    .profile-hero,
    .icon-editor-panel,
    .profile-panel-header,
    .form-panel,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        min-height: auto;
    }

    .profile-summary {
        width: 100%;
    }

    .hero-user-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero-user-link {
        width: 100%;
    }

    .form-actions {
        margin-top: 0;
    }

    .crop-shell {
        min-height: 300px;
    }

.icon-preview-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-meta {
        font-size: 10px !important;
        gap: 5px !important;
        margin-bottom: 8px !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-no {
        font-size: 13px !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-name {
        font-size: 12px !important;
        color: #7b818a !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-family,
    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-time {
        font-size: 10px !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-icon {
        width: 18px !important;
        height: 18px !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-body {
        font-size: 25px !important;
        line-height: 1.58 !important;
        font-weight: 800 !important;
    }

    body.page-ynews.page-ynews-detail .ynews-mobile-comments .ai-thread-reply-ref {
        font-size: 13px !important;
    }
}
