/* =========================================================
   AL KARAMA - INTERNAL PAGES
========================================================= */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--karama-red-dark),
            var(--karama-red)
        );
    color: white;
}

.page-hero.has-image {
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    background-color: #111;
}

.page-hero-background {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.page-hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .88),
            rgba(0, 0, 0, .25)
        );
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    padding: 85px 0;
}

.has-image .page-hero-inner {
    padding-top: 120px;
    padding-bottom: 65px;
}

.page-eyebrow {
    font-size: 13px;
    font-weight: 900;
    opacity: .82;
    margin-bottom: 8px;
}

.page-title {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
}

.page-description {
    max-width: 760px;
    margin-top: 16px;
    font-size: 17px;
    color: rgba(255,255,255,.82);
}

.internal-section {
    padding: 80px 0;
}

.internal-section-gray {
    background: var(--karama-gray-100);
}

.internal-section-dark {
    background: var(--karama-black);
    color: white;
}

.internal-heading {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.15;
}

.internal-heading-wrap {
    margin-bottom: 34px;
}

.internal-eyebrow {
    color: var(--karama-red);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.k-empty {
    padding: 45px;
    border: 1px dashed #d4d4d4;
    border-radius: 20px;
    text-align: center;
    color: var(--karama-gray-500);
    background: white;
}


/* =========================================================
   NEWS
========================================================= */

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-page-card {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.news-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.news-page-image-wrap {
    height: 245px;
    background: #eee;
    overflow: hidden;
}

.news-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}

.news-page-card:hover .news-page-image {
    transform: scale(1.03);
}

.news-page-body {
    padding: 21px;
}

.news-page-category {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.news-page-title {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.45;
    margin-top: 5px;
}

.news-page-date {
    margin-top: 8px;
    color: var(--karama-gray-500);
    font-size: 12px;
}

.news-page-excerpt {
    margin-top: 10px;
    color: var(--karama-gray-700);
    font-size: 14px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 35px;
    align-items: start;
}

.article-card {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 26px;
    overflow: hidden;
}

.article-main-image {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
}

.article-content {
    padding: 38px;
}

.article-meta {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap;
    color: var(--karama-gray-500);
    font-size: 12px;
    margin-bottom: 25px;
}

.article-text {
    font-size: 17px;
    line-height: 2;
    color: #383838;
}

.article-text p {
    margin-bottom: 18px;
}

.article-sidebar {
    position: sticky;
    top: 115px;
}

.related-news-list {
    display: grid;
    gap: 13px;
}

.related-news-card {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: white;
    border: 1px solid #ececec;
}

.related-news-card img {
    width: 95px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
}

.related-news-title {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 900;
}


/* =========================================================
   TEAMS
========================================================= */

.teams-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.team-page-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    overflow: hidden;
    transition: .25s;
}

.team-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.team-card-cover {
    height: 260px;
    overflow: hidden;
    background: #eee;
}

.team-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 22px;
}

.team-card-head {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-card-category {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.team-card-title {
    font-size: 23px;
    font-weight: 900;
}

.team-card-description {
    margin-top: 14px;
    color: var(--karama-gray-700);
    font-size: 14px;
}

.team-profile-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-profile-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.roster-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    transition: .25s;
}

.roster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.roster-image {
    height: 310px;
    background: #ececec;
}

.roster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roster-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #999;
}

.roster-body {
    padding: 17px;
}

.roster-number {
    color: var(--karama-red);
    font-size: 12px;
    font-weight: 900;
}

.roster-name {
    font-size: 19px;
    font-weight: 900;
}

.roster-position {
    color: var(--karama-gray-500);
    font-size: 12px;
}

.staff-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.staff-page-card {
    background: #202020;
    border-radius: 20px;
    overflow: hidden;
}

.staff-page-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.staff-page-body {
    padding: 17px;
}

.staff-page-name {
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.staff-page-job {
    color: #ff8b93;
    font-size: 13px;
}


/* =========================================================
   PLAYERS
========================================================= */

.player-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 32px;
}

.player-filter-button {
    border: 1px solid #dedede;
    background: white;
    color: #222;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 900;
    cursor: pointer;
}

.player-filter-button.active,
.player-filter-button:hover {
    background: var(--karama-red);
    border-color: var(--karama-red);
    color: white;
}

.players-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.player-page-card {
    position: relative;
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.player-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.player-page-number {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-end: 14px;

    min-width: 45px;
    height: 45px;
    padding: 0 9px;

    display: grid;
    place-items: center;

    background: var(--karama-red);
    color: white;
    border-radius: 50%;

    font-weight: 900;
}

.player-page-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    background: #eee;
}

.player-page-body {
    padding: 18px;
}

.player-page-team {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.player-page-name {
    font-size: 21px;
    font-weight: 900;
}

.player-page-position {
    color: var(--karama-gray-500);
    font-size: 13px;
}

.player-captain {
    display: inline-flex;
    margin-top: 9px;
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--karama-red-light);
    color: var(--karama-red);
    font-size: 10px;
    font-weight: 900;
}

.player-profile-hero {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: var(--karama-black);
    color: white;
}

.player-profile-grid {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 35px;
}

.player-profile-info {
    padding: 80px 0;
}

.player-profile-number {
    font-size: 110px;
    line-height: .9;
    font-weight: 900;
    color: var(--karama-red);
}

.player-profile-team {
    color: #ff8d95;
    font-weight: 900;
    margin-top: 12px;
}

.player-profile-name {
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
}

.player-profile-position {
    color: #bbb;
    margin-top: 9px;
}

.player-profile-photo-wrap {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.player-profile-photo {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    object-position: bottom;
}

.player-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.player-detail {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 20px;
}

.player-detail-label {
    color: var(--karama-gray-500);
    font-size: 11px;
}

.player-detail-value {
    font-size: 17px;
    font-weight: 900;
    margin-top: 3px;
}


/* =========================================================
   MATCHES
========================================================= */

.matches-stack {
    display: grid;
    gap: 18px;
}

.match-list-card {
    display: grid;
    grid-template-columns: 165px 1fr 180px;
    align-items: stretch;
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.match-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.match-list-date {
    display: grid;
    place-items: center;
    align-content: center;
    padding: 20px;
    border-inline-end: 1px solid #ececec;
    text-align: center;
}

.match-list-day {
    color: var(--karama-red);
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.match-list-month {
    color: var(--karama-gray-500);
    font-size: 12px;
    margin-top: 5px;
}

.match-list-main {
    padding: 22px;
}

.match-list-competition {
    color: var(--karama-red);
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 13px;
}

.match-list-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.match-list-team {
    text-align: center;
    font-weight: 900;
}

.match-list-team img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin: 0 auto 7px;
}

.match-list-score,
.match-list-vs {
    color: var(--karama-red);
    font-size: 28px;
    font-weight: 900;
}

.match-list-side {
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 20px;
    border-inline-start: 1px solid #ececec;
}

.match-status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 11px;
    background: var(--karama-red-light);
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.match-stadium {
    margin-top: 8px;
    color: var(--karama-gray-500);
    font-size: 11px;
}

.match-center-hero {
    padding: 75px 0;
    background:
        radial-gradient(
            circle at 50% 20%,
            #372027,
            #111 65%
        );
    color: white;
}

.match-center-competition {
    text-align: center;
    color: #ff8c94;
    font-size: 12px;
    font-weight: 900;
}

.match-center-meta {
    text-align: center;
    color: #aaa;
    margin-top: 4px;
}

.match-scoreboard {
    max-width: 850px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
}

.match-score-side {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
}

.match-score-side img {
    width: 115px;
    height: 115px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.match-score-value {
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
}

.match-score-state {
    margin-top: 8px;
    text-align: center;
    color: #ff8b93;
    font-size: 12px;
    font-weight: 900;
}

.match-center-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #bbb;
    margin-top: 30px;
    font-size: 13px;
}

.match-content-layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    align-items: start;
}

.match-panel {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 22px;
    padding: 25px;
}

.match-panel + .match-panel {
    margin-top: 20px;
}

.match-panel-title {
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 20px;
}

.match-event-list {
    display: grid;
    gap: 3px;
}

.match-event {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 12px;
}

.match-event:nth-child(odd) {
    background: #f8f8f8;
}

.match-event-minute {
    color: var(--karama-red);
    font-size: 17px;
    font-weight: 900;
}

.match-event-title {
    font-weight: 900;
}

.match-event-player {
    color: var(--karama-gray-500);
    font-size: 12px;
}

.lineup-list {
    display: grid;
    gap: 10px;
}

.lineup-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    border-radius: 13px;
    padding: 10px;
}

.lineup-row img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.lineup-player-name {
    font-size: 13px;
    font-weight: 900;
}

.lineup-position {
    color: var(--karama-gray-500);
    font-size: 10px;
}

.lineup-shirt {
    margin-inline-start: auto;
    color: var(--karama-red);
    font-weight: 900;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-wrap {
    margin-top: 40px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .news-page-grid,
    .teams-page-grid {
        grid-template-columns: 1fr 1fr;
    }

    .roster-grid,
    .players-page-grid,
    .staff-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout,
    .match-content-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .player-details-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 750px) {

    .player-profile-grid {
        grid-template-columns: 1fr;
    }

    .player-profile-info {
        padding-bottom: 20px;
    }

    .player-profile-photo-wrap {
        max-height: 450px;
    }

    .match-list-card {
        grid-template-columns: 1fr;
    }

    .match-list-date,
    .match-list-side {
        border: 0;
    }

    .match-list-date {
        border-bottom: 1px solid #ececec;
    }

    .match-list-side {
        border-top: 1px solid #ececec;
    }

}

@media (max-width: 600px) {

    .news-page-grid,
    .teams-page-grid,
    .roster-grid,
    .players-page-grid,
    .staff-page-grid,
    .player-details-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-inner {
        padding: 60px 0;
    }

    .page-title {
        font-size: 42px;
    }

    .article-content {
        padding: 23px;
    }

    .player-profile-number {
        font-size: 80px;
    }

    .match-scoreboard {
        gap: 9px;
    }

    .match-score-side {
        font-size: 13px;
    }

    .match-score-side img {
        width: 65px;
        height: 65px;
    }

    .match-score-value {
        font-size: 37px;
    }

}