/* SimpleTune news listing, category and article layouts */

.news-page {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
    padding-block: clamp(24px, 4vw, 48px);
    color: #f8fafc;
}

.news-page-header {
    max-width: 780px;
    margin: 0 0 26px;
}

.news-eyebrow {
    margin: 0 0 8px;
    color: #fb7185;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.news-page-header h1 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.news-page-header > p:last-child {
    margin: 0;
    color: #aab6c8;
    font-size: 1rem;
    line-height: 1.75;
}

.news-category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0 0 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.news-category-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #26354b;
    border-radius: 999px;
    background: #0b1321;
    color: #cbd5e1;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.news-category-chip:hover,
.news-category-chip.is-active {
    border-color: #fb4664;
    background: #401626;
    color: #fff;
}

.news-category-chip span {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #e2e8f0;
    font-size: .72rem;
}

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

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #1f2b3c;
    border-radius: 16px;
    background: #0b1220;
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #374963;
    box-shadow: 0 16px 34px rgba(0,0,0,.3);
}

.news-card-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #111c2b;
}

.news-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-card-cover img {
    transform: scale(1.035);
}

.news-card-content {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.news-card-category {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    color: #fb7185;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-decoration: none;
    text-transform: uppercase;
}

.news-card-category:hover {
    color: #fecdd3;
    text-decoration: underline;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    color: #8ea0b8;
    font-size: .78rem;
}

.news-card h2,
.news-card h3 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.4;
}

.news-card h2 a,
.news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.news-card h2 a:hover,
.news-card h3 a:hover {
    color: #fda4af;
}

.news-card-excerpt {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: #aab6c8;
    font-size: .9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #fda4af;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
}

.news-read-more:hover {
    color: #fff;
}

.news-empty-state {
    display: grid;
    min-height: 250px;
    place-content: center;
    justify-items: center;
    padding: 32px;
    border: 1px solid #1f2b3c;
    border-radius: 18px;
    background: #0b1220;
    text-align: center;
}

.news-empty-state > span {
    color: #fb7185;
    font-size: 2rem;
}

.news-empty-state h2 {
    margin: 10px 0 6px;
    color: #f8fafc;
}

.news-empty-state p {
    margin: 0;
    color: #aab6c8;
}

.news-pagination {
    margin: 30px 0 0;
}

.news-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #8291a7;
    font-size: .84rem;
}

.news-breadcrumbs a {
    color: #fda4af;
    text-decoration: none;
}

.news-breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 28px;
}

.news-main {
    min-width: 0;
}

.news-article {
    overflow: hidden;
    border: 1px solid #1f2b3c;
    border-radius: 20px;
    background: #0b1220;
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.news-cover {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background: #101a29;
}

.news-article-header {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px) clamp(20px, 5vw, 56px) 0;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #98a8bc;
    font-size: .83rem;
}

.news-article h1 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: clamp(1.8rem, 3.6vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
}

.news-excerpt {
    margin: 0;
    color: #c0ccdb;
    font-size: 1.08rem;
    line-height: 1.7;
}

.news-article-body {
    max-width: 850px;
    margin: 28px auto 0;
    padding: 0 clamp(20px, 5vw, 56px) 36px;
    color: #d5deea;
    font-size: 1.04rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.news-article-body > * {
    max-width: 100%;
}

.news-article-body p {
    margin: 0 0 1.35em;
    color: inherit;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    margin: 1.55em 0 .55em;
    color: #f8fafc;
    font-weight: 800;
    line-height: 1.3;
}

.news-article-body h2 { font-size: 1.55rem; }
.news-article-body h3 { font-size: 1.3rem; }
.news-article-body h4 { font-size: 1.1rem; }

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}

.news-article-body li {
    margin: .35em 0;
}

.news-article-body a {
    color: #fda4af;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article-body blockquote {
    margin: 1.5em 0;
    padding: 12px 18px;
    border-left: 3px solid #fb4664;
    border-radius: 0 10px 10px 0;
    background: #111c2b;
    color: #e2e8f0;
}

.news-article-body img,
.news-article-body video,
.news-article-body iframe {
    max-width: 100%;
    border-radius: 12px;
}

.news-article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-article-body th,
.news-article-body td {
    padding: 9px 12px;
    border: 1px solid #35445a;
}

.news-adsense {
    margin: 26px auto;
    text-align: center;
}

.share-box {
    margin: 0 clamp(20px, 5vw, 56px) 34px;
    padding: 20px;
    border: 1px solid #223147;
    border-radius: 14px;
    background: #101a29;
}

.share-box h2 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #33445d;
    border-radius: 9px;
    color: #e2e8f0;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.share-buttons a:hover {
    border-color: #fb4664;
    background: #401626;
    color: #fff;
}

.related-news {
    margin: 30px 0;
}

.related-news > h2 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: 1.4rem;
}

.news-sidebar {
    min-width: 0;
}

@media (max-width: 1000px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-sidebar {
        margin-top: 8px;
    }

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

@media (max-width: 640px) {
    .news-page {
        width: min(100% - 24px, 1240px);
        padding-block: 22px 32px;
    }

    .news-page-header {
        margin-bottom: 20px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .news-card-content {
        min-height: 0;
        padding: 16px;
    }

    .news-category-nav {
        margin-right: -12px;
        margin-bottom: 20px;
    }

    .news-article {
        border-radius: 15px;
    }

    .news-cover {
        aspect-ratio: 1 / 1;
        max-height: 360px;
    }

    .news-article-header {
        padding: 23px 18px 0;
    }

    .news-article h1 {
        font-size: 1.75rem;
    }

    .news-excerpt {
        font-size: 1rem;
    }

    .news-article-body {
        margin-top: 22px;
        padding: 0 18px 28px;
        font-size: 1rem;
        line-height: 1.78;
    }

    .share-box {
        margin: 0 18px 26px;
        padding: 16px;
    }

    .news-breadcrumbs {
        font-size: .75rem;
    }

    .news-card-category {
        margin-bottom: 8px;
    }
}

.site-logo .site-logo-text {
    display: block;
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}

/* Single article uses the same wide desktop canvas as music detail pages. */
@media (min-width: 1024px) {
    .container.news-page.news-single-page {
        width: min(calc(100% - 48px), 1400px);
        max-width: 1400px !important;
        margin-inline: auto;
    }

    .news-single-page .news-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 35px;
        align-items: start;
    }

    .news-single-page .news-main {
        width: 100%;
        min-width: 0;
    }

    .news-single-page .news-sidebar {
        width: 320px;
        min-width: 0;
    }
}

/* Refined single-news layout on tablet and mobile. */
@media (min-width: 641px) and (max-width: 1023px) {
    .container.news-page.news-single-page {
        width: calc(100% - 40px);
        max-width: 900px !important;
        margin-inline: auto;
        padding-block: 24px 38px;
    }
    .news-single-page .news-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .news-single-page .news-sidebar {
        width: 100%;
        margin-top: 0;
    }
    .news-single-page .news-article {
        border-radius: 17px;
    }
    .news-single-page .news-cover {
        aspect-ratio: 16 / 10;
        max-height: 460px;
    }
    .news-single-page .news-article-header,
    .news-single-page .news-article-body {
        max-width: none;
        padding-inline: clamp(24px, 5vw, 46px);
    }
    .news-single-page .news-article-header {
        padding-top: 30px;
    }
    .news-single-page .news-article h1 {
        font-size: clamp(1.9rem, 4vw, 2.35rem);
    }
    .news-single-page .news-article-body {
        margin-top: 22px;
        padding-bottom: 34px;
        font-size: 1.05rem;
        line-height: 1.82;
    }
    .news-single-page .share-box {
        margin-inline: clamp(24px, 5vw, 46px);
    }
}

@media (max-width: 640px) {
    .container.news-page.news-single-page {
        width: calc(100% - 24px);
        max-width: 600px !important;
        margin-inline: auto;
        padding-block: 14px 28px;
    }
    .news-single-page .news-breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px 8px;
        margin-bottom: 14px;
        font-size: .78rem;
        line-height: 1.45;
    }
    .news-single-page .news-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .news-single-page .news-sidebar {
        width: 100%;
        margin-top: 0;
    }
    .news-single-page .news-article {
        border-radius: 15px;
    }
    .news-single-page .news-cover {
        width: 100%;
        aspect-ratio: 16 / 10;
        max-height: 330px;
        object-fit: cover;
    }
    .news-single-page .news-article-header {
        max-width: none;
        padding: 21px 19px 0;
    }
    .news-single-page .news-meta {
        gap: 6px;
        margin-bottom: 13px;
        font-size: .76rem;
    }
    .news-single-page .news-article h1 {
        margin-bottom: 12px;
        font-size: clamp(1.48rem, 6.2vw, 1.8rem);
        line-height: 1.2;
    }
    .news-single-page .news-excerpt {
        font-size: .98rem;
        line-height: 1.65;
    }
    .news-single-page .news-article-body {
        max-width: none;
        margin-top: 19px;
        padding: 0 19px 25px;
        font-size: .98rem;
        line-height: 1.78;
    }
    .news-single-page .news-article-body h2 { font-size: 1.35rem; }
    .news-single-page .news-article-body h3 { font-size: 1.18rem; }
    .news-single-page .share-box {
        margin: 0 15px 22px;
        padding: 15px;
    }
    .news-single-page .share-buttons {
        gap: 8px;
    }
    .news-single-page .share-buttons a {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 40px;
    }
}

/* Let the single article and its lead image use nearly the full small-screen width. */
@media (max-width: 1023px) {
    .container.news-page.news-single-page {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .news-single-page .news-article {
        width: 100%;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .news-single-page .news-cover {
        display: block;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .news-single-page .news-article-header,
    .news-single-page .news-article-body {
        padding-left: clamp(16px, 3vw, 24px);
        padding-right: clamp(16px, 3vw, 24px);
    }
}
