/* cricket-live-blocks.css — TMN Sports content block styles
 *
 * Covers all editorial/content block components:
 *   Top Stories, Videos, Trending Players, Team Fixtures,
 *   Writers, Spotlight, Match Coverage, and detail page layouts.
 *
 * Depends on cricket-live.css (base) — enqueued as a WordPress dependency
 * so the browser always loads the base stylesheet first.
 */

/* ── Top Stories ────────────────────────────────────────────────────────────── */

.cl-stories-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 24px;
}

.cl-story-card{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:0;
}

.cl-story-card > a{
    flex:0 0 90px;
}

.cl-story-card__img{
    width:90px;
    height:55px;
    object-fit:cover;
    border-radius:4px;
    display:block;
    margin:0;
}

.cl-story-card__body{
    flex:1;
    min-width:0;
}

.cl-story-card__cat{
    display:block;
    margin:0 0 4px;
    font-size:10px;
    font-weight:700;
    color:#2563eb;
    text-transform:uppercase;
    letter-spacing:.04em;
    line-height:1;
}

.cl-story-card__title{
    margin:0 0 4px;
    font-size:13px;
    font-weight:600;
    line-height:1.35;
}

.cl-story-card__title a{
    color:#222;
    text-decoration:none;
}

.cl-story-card__title a:hover{
    color:#0b5ed7;
}

.cl-story-card__meta{
    font-size:11px;
    color:#8b8b8b;
    line-height:1.2;
}

/* Mobile */
@media(max-width:768px){

    .cl-stories-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .cl-story-card > a{
        flex:0 0 80px;
    }

    .cl-story-card__img{
        width:80px;
        height:50px;
    }

}
/* ── Videos ────────────────────────────────────────────────────────────────── */

.cl-videos-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 20px;
}

.cl-video-card{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:8px;
}

.cl-video-card__thumb{
    position:relative;
    flex:0 0 90px;
    display:block;
}

.cl-video-card__thumb img{
    width:90px;
    height:55px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}

.cl-video-card__play{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(0,0,0,.65);
    color:#fff;
    font-size:11px;
    line-height:1;
}

.cl-video-card__body{
    flex:1;
}

.cl-video-card__title{
    margin:0 0 4px 0;
    font-size:13px;
    font-weight:500;
    line-height:1.35;
}

.cl-video-card__title a{
    color:#222;
    text-decoration:none;
}

.cl-video-card__title a:hover{
    color:#0b5ed7;
}

.cl-video-card__meta{
    font-size:11px;
    color:#8b8b8b;
    line-height:1.2;
}
/* ── Trending Players ───────────────────────────────────────────────────────── */
.cl-trending-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.cl-trending-tag {
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 12px;
    color: #374151;
    text-decoration: none;
}
.cl-trending-tag:hover { background: #f3f4f6; }
.cl-trending-features{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    width:100%;
}

.cl-player-feature{
    width:100%;
}

.cl-player-feature__img{
    width:100%;
    height:220px;
    object-fit:cover;
}
.cl-player-feature {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 160px;
}
.cl-player-feature__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.cl-player-feature__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 12px;
    color: #fff;
}
.cl-player-feature__body h3 { font-size: 13px; margin: 0 0 4px; }
.cl-player-feature__body a { color: #fff; text-decoration: none; }
.cl-player-feature__author { font-size: 11px; opacity: 0.8; }

/* ── Team Fixtures ──────────────────────────────────────────────────────────── */

.cl-team-logos{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:flex-start;
}

.cl-team-logo-link,
.cl-team-logo-card{
    width:62px;
    min-height:72px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:4px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:8px 6px;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
}

.cl-team-logo{
    width:34px;
    height:34px;
    object-fit:contain;
    border:none;
    border-radius:0;
    margin-bottom:6px;
}

.cl-team-code{
    font-size:10px;
    font-weight:600;
    color:#555;
    text-transform:uppercase;
    line-height:1;
    text-align:center;
}

.cl-team-logo-placeholder{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    border-radius:4px;
    margin-bottom:6px;
    font-size:10px;
    font-weight:700;
    color:#555;
}
/* ── Writers ────────────────────────────────────────────────────────────────── */
.cl-writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.cl-writer-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.cl-writer-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cl-writer-card__body h4 { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.cl-writer-card__body h4 a { color: #111; text-decoration: none; }
.cl-writer-card__latest { font-size: 11px; color: #6b7280; margin: 0; }

/* ── Spotlight ──────────────────────────────────────────────────────────────── */
.cl-sponsored-label {
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.cl-spotlight-list { list-style: none; padding: 0; margin: 0; }
.cl-spotlight-item {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.cl-spotlight-item a { color: #111; text-decoration: none; }
.cl-spotlight-item a:hover { color: #2563eb; }

/* ── Match Coverage ─────────────────────────────────────────────────────────── */
/* Single-column layout — add a stats widget and re-introduce a sidebar column when ready */
.cl-coverage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.cl-coverage-card { border-radius: 8px; overflow: hidden; }
.cl-coverage-img-placeholder {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
}
.cl-coverage-body { padding: 16px 0; }
.cl-coverage-headline { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 8px; }
.cl-coverage-result { font-size: 13px; color: #2563eb; margin: 0 0 12px; }
.cl-coverage-link { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: 600; }

/* ── Detail pages (/match/{id}/, /player/{id}/) ──────────────────────────────── */
.cl-detail { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.cl-detail__head { margin-bottom: 20px; }
.cl-detail__title { font-size: 24px; font-weight: 800; color: #1a2e4a; margin: 0; }
.cl-detail__status { font-size: 14px; color: #2563eb; margin: 6px 0 0; font-weight: 600; }
.cl-detail__scorecard,
.cl-detail__profile { margin-top: 24px; }