/* -----------------------------------------------------------------------------
   News pages, design v2: main page, category level 1 / level 2, article.
   Loaded only by views/pc/news/* (registerCssFile, in <head>). Everything is
   prefixed nv2- so nothing here touches the old news styles in score24h.css.

   Layout: the content takes the whole site container (no league sidebar on
   News), a main column of cards plus a 300px rail. Sizes follow the design at
   its 1728px width (cards #12141b, radius 12, 14px padding).
   ----------------------------------------------------------------------------- */

.nv2-page {
    --nv2-card: var(--bg-box, #12141b);
    --nv2-line: #1c1e26;
    --nv2-text: #eee;
    --nv2-muted: #8c8c8e;
    --nv2-accent: #e1243b;
}

.nv2-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.nv2-main {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.nv2-rail {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
}

/* Heading for screen readers / crawlers where the design has no visible page title (the tabs name the page) */
.nv2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Breadcrumb sits on the page, not in a card: no rule under it as on the league pages */
.nv2-main > .home-breadcrumb {
    min-height: 28px;
    border-bottom: 0;
}

.nv2-main > .home-breadcrumb .home-breadcrumb__item {
    color: var(--nv2-muted);
    font-size: 12px;
}

/* ---- Card ---------------------------------------------------------------- */

.nv2-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--nv2-card);
    box-sizing: border-box;
}

.nv2-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}

.nv2-card__title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.nv2-card__title--light {
    font-weight: 500;
}

.nv2-card__more {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.nv2-card__more:hover {
    background: rgba(255, 255, 255, .06);
}

/* ---- Article item --------------------------------------------------------- */

.nv2-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.nv2-grid {
    display: grid;
    gap: 16px 24px;
}

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

.nv2-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    color: var(--nv2-text);
    text-decoration: none;
}

.nv2-item--thumb-left {
    flex-direction: row-reverse;
}

.nv2-item__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nv2-item__cat {
    color: var(--nv2-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
}

.nv2-item__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--nv2-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.nv2-item:hover .nv2-item__title,
.nv2-lead:hover .nv2-lead__title {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nv2-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--nv2-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
}

.nv2-item__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.nv2-item__thumb {
    flex-shrink: 0;
    width: 135px;
    height: 90px;
    border-radius: 8px;
    background: #1a1c23;
    object-fit: cover;
}

.nv2-item--sm {
    gap: 8px;
}

.nv2-item--sm .nv2-item__title {
    font-size: 14px;
    line-height: 20px;
}

.nv2-item--sm .nv2-item__thumb {
    width: 107px;
    height: 71px;
}

.nv2-item--lg .nv2-item__title {
    font-size: 16px;
    line-height: 24px;
    -webkit-line-clamp: 2;
}

.nv2-item--text .nv2-item__title {
    -webkit-line-clamp: 2;
}

/* ---- Top News (main page) and the per-category cards (category level 1) --- */

.nv2-top__grid {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 16px;
}

.nv2-section__grid {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
}

.nv2-lead {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: var(--nv2-text);
    text-decoration: none;
}

.nv2-lead__img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    background: #1a1c23;
    object-fit: cover;
}

.nv2-lead__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--nv2-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* The four headlines share the height of the lead: spread evenly next to it */
.nv2-top__headlines {
    justify-content: space-between;
}

.nv2-top__rows {
    gap: 24px;
    padding-top: 6px;
}

.nv2-top__rows .nv2-item__thumb {
    width: 135px;
    height: 90px;
}

/* ---- Category blocks, 3 per row (main page) ------------------------------- */

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

.nv2-block__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.nv2-block__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nv2-block__chevron {
    flex-shrink: 0;
    opacity: .7;
}

.nv2-block__link:hover .nv2-block__chevron {
    opacity: 1;
}

/* ---- "See more" / "Show more" bar ----------------------------------------- */

.nv2-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nv2-more-btn:hover {
    background: rgba(255, 255, 255, .08);
}

/* ---- Category tabs --------------------------------------------------------- */

.nv2-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nv2-tabs__track {
    display: flex;
    flex: 1 1 0;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nv2-tabs__track::-webkit-scrollbar {
    display: none;
}

.nv2-tabs__tab {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 100px;
    color: var(--nv2-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.nv2-tabs__tab:hover {
    color: #fff;
}

.nv2-tabs__tab.is-active {
    border-color: var(--nv2-accent);
    color: #fff;
}

.nv2-tabs__next {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.nv2-tabs__next[hidden] {
    display: none;
}

.nv2-tabs__next:hover {
    background: rgba(255, 255, 255, .06);
}

/* ---- Pagination ------------------------------------------------------------ */

.nv2-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
}

.nv2-pager__page,
.nv2-pager__nav,
.nv2-pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--nv2-card);
    box-sizing: border-box;
    color: var(--nv2-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.nv2-pager__gap {
    color: var(--nv2-muted);
}

a.nv2-pager__page:hover,
a.nv2-pager__nav:hover {
    background: #1c1f28;
    color: #fff;
}

.nv2-pager__page.is-active {
    background: var(--nv2-accent);
    color: #fff;
}

.nv2-pager__nav.is-disabled {
    opacity: .4;
}

/* One arrow file (pointing left): "Next" mirrors it */
.nv2-pager__nav--next img {
    transform: scaleX(-1);
}

/* ---- Article --------------------------------------------------------------- */

.nv2-article {
    gap: 12px;
}

.nv2-article__title {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 36px;
}

.nv2-article__summary {
    color: var(--nv2-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;
}

.nv2-article__summary p {
    margin: 0;
}

.nv2-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nv2-article__meta .nv2-item__meta {
    font-size: 12px;
}

.nv2-article__share {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.nv2-article__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.nv2-article__share-btn:hover {
    background: rgba(255, 255, 255, .12);
}

.nv2-article__share-btn img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* CMS content: typography comes from .news-detail__body (score24h.css); here only what the card needs */
.nv2-article__body {
    font-size: 15px;
    line-height: 26px;
}

/* Pictures span the article column, as in the design (CMS images are uploaded wider than the column) */
.nv2-article__body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nv2-article__body video,
.nv2-article__body iframe {
    max-width: 100%;
    border-radius: 8px;
}

.nv2-article__body figure {
    margin: 0;
}

.nv2-article__body figcaption {
    padding-top: 6px;
    color: var(--nv2-muted);
    font-size: 12px;
    font-style: italic;
    line-height: 18px;
    text-align: center;
}

.nv2-article__body a {
    color: var(--blue-accent, #1d8fff);
}

/* Related Articles: bigger thumbnail on the left, text centred against it */
.nv2-list--related {
    gap: 12px;
}

.nv2-list--related .nv2-item {
    align-items: center;
    gap: 14px;
}

.nv2-list--related .nv2-item__thumb {
    width: 180px;
    height: 120px;
}

/* ---- Narrower screens ------------------------------------------------------ */

@media (max-width: 1100px) {
    .nv2-layout {
        flex-direction: column;
    }

    .nv2-main,
    .nv2-rail {
        flex: none;
        width: 100%;
    }

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

@media (max-width: 767px) {
    .nv2-card {
        padding: 12px;
    }

    .nv2-card__title {
        font-size: 16px;
        line-height: 24px;
    }

    .nv2-top__grid,
    .nv2-section__grid,
    .nv2-grid--2,
    .nv2-blocks {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv2-item__title,
    .nv2-item--lg .nv2-item__title {
        font-size: 14px;
        line-height: 20px;
    }

    .nv2-item__thumb,
    .nv2-item--sm .nv2-item__thumb,
    .nv2-top__rows .nv2-item__thumb {
        width: 107px;
        height: 71px;
    }

    .nv2-list--related .nv2-item__thumb {
        width: 120px;
        height: 80px;
    }

    .nv2-top__rows {
        gap: 16px;
    }

    .nv2-lead__title {
        font-size: 16px;
        line-height: 24px;
    }

    .nv2-article__title {
        font-size: 20px;
        line-height: 28px;
    }

    .nv2-article__meta {
        flex-wrap: wrap;
    }

    .nv2-pager {
        gap: 6px;
    }
}

/* ---- Prediction pages (views/pc/prediction) and author page (views/pc/author) -----------------------------------
   Same cards and article items as News; only what the designs add: sub-category sub-headers on the main page, the
   author link, the author profile card and the 4-column article grid. The right rail is the AI predictions panel
   (custom.css, 300px) or the news panel, placed directly in .nv2-layout. */

.pv-list {
    gap: 20px;
}

.pv-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pv-section + .pv-section {
    padding-top: 6px;
}

.pv-section__head {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.pv-author-link {
    color: var(--nv2-text);
    font-weight: 500;
    text-decoration: none;
}

.pv-author-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pv-author {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 20px;
}

.pv-author__avatar {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #1a1c23;
    object-fit: cover;
}

.pv-author__info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pv-author__name {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    text-transform: uppercase;
}

.pv-author__role,
.pv-author__count {
    margin: 0;
    color: var(--nv2-muted);
    font-size: 14px;
    line-height: 20px;
}

.pv-author__count b {
    color: #fff;
    font-size: 18px;
}

.pv-author__bio {
    color: var(--nv2-text);
    font-size: 13px;
    line-height: 20px;
}

.pv-author__bio p {
    margin: 0;
}

.pv-author__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.pv-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: var(--nv2-text);
    text-decoration: none;
}

.pv-tile__img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 4px;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    background: #1a1c23;
    object-fit: cover;
}

.pv-tile__title,
.pv-tile__brief {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pv-tile__title {
    color: var(--nv2-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.pv-tile:hover .pv-tile__title {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pv-tile__brief {
    color: var(--nv2-muted);
    font-size: 12px;
    line-height: 18px;
}

.pv-tile__cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Prediction lists: kick-off time of the article's match in a pill, "Live" badge after the title */
.nv2-item__kickoff {
    padding: 0 6px;
    border: 1px solid var(--nv2-muted);
    border-radius: 100px;
    color: var(--nv2-text);
    line-height: 14px;
}

.nv2-item__live {
    display: inline-block;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--nv2-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    vertical-align: 2px;
}

/* Author "Recent Form" (placeholder) */
.pv-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pv-form__label {
    color: var(--nv2-muted);
    font-size: 13px;
}

.pv-form__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pv-form__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.pv-form__dot--w {
    background: #1fbf75;
}

.pv-form__dot--l {
    background: var(--nv2-accent);
}

.pv-form__dot--d {
    background: #55565f;
}

@media (max-width: 1100px) {
    .pv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pv-author {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        text-align: center;
    }

    .pv-author__socials,
    .pv-form {
        justify-content: center;
    }

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

    .pv-section__head {
        font-size: 14px;
        line-height: 20px;
    }
}
