/*
Theme Name: Sportvideos Classic
Description: Een zelfstandig videomagazine voor Sportvideos.tv, met rubrieken en een automatisch videomozaïek.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: sportvideos-classic
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --sv-red: #d52424;
    --sv-ink: #222;
    --sv-muted: #5f5f5f;
    --sv-border: #dedede;
    --sv-shell: 1170px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--sv-ink); background: #e8e8e8; font: 16px/1.55 "Open Sans", Arial, sans-serif; }
a { color: #ac1d1d; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid #157cbc; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.sv-shell { width: min(var(--sv-shell), calc(100% - 40px)); margin-inline: auto; }
.sv-visually-hidden, .screen-reader-text, .sv-skip:not(:focus) { clip-path: inset(50%); position: absolute; overflow: hidden; width: 1px; height: 1px; white-space: nowrap; }
.sv-skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100000; padding: .5rem 1rem; background: #fff; }
.sv-headline { background: #f2f2f2; border-bottom: 1px solid #ddd; font-size: .82rem; }
.sv-headline-inner { display: flex; min-height: 36px; align-items: center; gap: 12px; }
.sv-headline-label { background: var(--sv-red); color: #fff; padding: .19rem .49rem; font-size: .67rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.sv-headline a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sv-ink); text-decoration: none; }
.sv-headline a:hover { text-decoration: underline; }
.sv-brand { background: #232323; }
.sv-brand .sv-shell { min-height: 98px; display: flex; align-items: center; }
.sv-brand a { display: inline-block; }
.sv-brand img { width: min(390px, 100%); max-height: 75px; object-fit: contain; object-position: left center; }
.sv-navigation { background: #393939; }
.sv-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sv-menu, .sv-menu .sub-menu { list-style: none; padding: 0; margin: 0; }
.sv-menu { display: flex; flex-wrap: wrap; }
.sv-menu li { position: relative; }
.sv-menu a { display: block; padding: .86rem 1.02rem; color: #fff; text-decoration: none; font-size: .83rem; font-weight: 800; text-transform: uppercase; }
.sv-menu a:hover, .sv-menu a[aria-current="page"], .sv-menu > .current-menu-ancestor > a { background: var(--sv-red); }
.sv-menu .sub-menu { display: none; position: absolute; z-index: 5; top: 100%; left: 0; min-width: 155px; background: #393939; }
.sv-menu li:hover > .sub-menu, .sv-menu li:focus-within > .sub-menu { display: block; }
.search-form { display: flex; align-items: center; gap: 4px; }
.search-form input[type="search"], .sv-comments input:not([type="submit"]):not([type="checkbox"]), .sv-comments textarea { width: 100%; padding: .4rem .65rem; border: 1px solid #c5c5c5; background: #fff; color: var(--sv-ink); font: inherit; }
.search-form .search-submit, .sv-comments .submit { border: 0; padding: .48rem .6rem; background: #ae1c1c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sv-nav-inner .search-form { font-size: .78rem; }
.sv-nav-inner .search-field { max-width: 146px; }
.sv-home, .sv-inner { padding-block: 20px 35px; min-height: 60vh; }
.sv-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 5px;
    min-height: 0;
    aspect-ratio: 4.1;
    margin-bottom: 20px;
}
.sv-hero > :nth-child(1), .sv-hero > :nth-child(4) { grid-row: span 2; }
.sv-hero:has(> :last-child:nth-child(-n+3)) { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-template-rows: 1fr; }
.sv-hero:has(> :last-child:nth-child(-n+3)) > * { grid-row: auto; }
.sv-card { min-width: 0; }
.sv-card-link { display: block; color: inherit; text-decoration: none; }
.sv-card-link:hover .sv-card-title { color: #ac1d1d; }
.sv-thumb { display: block; position: relative; background: #383838; aspect-ratio: 3/2; overflow: hidden; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.sv-card-link:hover img { transform: scale(1.035); }
.sv-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 36px; height: 36px; translate: -50% -50%; border-radius: 50%; background: #171717bd; border: 1px solid #fff9; }
.sv-play::before { content: ""; position: absolute; top: 50%; left: 52%; translate: -40% -50%; border: 6px solid transparent; border-right: 0; border-left: 9px solid #fff; }
.sv-card-link:hover .sv-play { background: var(--sv-red); }
.sv-placeholder { position: absolute; inset: 0; background: linear-gradient(145deg, #484848, #242424); }
.sv-card-title { margin: .48rem 0 .14rem; font-size: 1rem; line-height: 1.27; font-weight: 800; }
.sv-card time, .sv-article time { color: var(--sv-muted); font-size: .77rem; }
.sv-card--hero .sv-card-link, .sv-card--hero .sv-thumb { height: 100%; position: relative; aspect-ratio: auto; }
.sv-card--hero .sv-card-link { display: grid; }
.sv-card--hero .sv-thumb { grid-area: 1 / 1; }
.sv-card--hero .sv-card-copy { grid-area: 1 / 1; z-index: 2; align-self: end; padding: 24px 12px 12px; color: #fff; background: linear-gradient(transparent, #000d); }
.sv-card--hero .sv-card-title { margin: .27rem 0 0; font-size: clamp(.77rem, 1.35vw, 1.16rem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sv-card--hero .sv-card-link:hover .sv-card-title { color: #fff; text-decoration: underline; }
.sv-card--hero .sv-play { top: 36%; }
.sv-category { display: inline-block; padding: .12rem .4rem; background: #b51d1d; font-size: .65rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.sv-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 22px; align-items: start; }
.sv-feed, .sv-sidebar { display: grid; gap: 18px; min-width: 0; }
.sv-panel, .sv-widget { min-width: 0; padding: 18px; background: #fff; }
.sv-panel--autosport, .sv-panel--featured { background: #d2d2d2; }
.sv-section-header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.sv-heading { margin: 0 0 15px; padding: 0 0 .38rem; border-bottom: 1px solid var(--sv-border); font-size: 1.03rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .035em; font-weight: 800; }
.sv-heading::before { display: inline-block; content: ""; width: 4px; height: .9em; margin-right: 8px; vertical-align: -.05em; background: var(--sv-red); }
.sv-section-header .sv-heading { flex: 1; }
.sv-section-link { font-size: .76rem; font-weight: 700; white-space: nowrap; }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 14px; }
.sv-card--small + .sv-card--small { border-top: 1px solid #eee; margin-top: 10px; padding-top: 10px; }
.sv-card--small .sv-card-link { display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 10px; }
.sv-card--small .sv-card-title { font-size: .84rem; margin-top: 0; }
.sv-card--small .sv-play { width: 24px; height: 24px; }
.sv-card--small .sv-play::before { border-width: 4px; border-right: 0; border-left-width: 6px; }
.sv-article-header { margin-bottom: 20px; }
.sv-article-header h1 { margin: .25rem 0 .5rem; font-size: clamp(1.65rem, 3.5vw, 2.55rem); line-height: 1.12; overflow-wrap: anywhere; }
.sv-article-category { font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.sv-entry { overflow-wrap: anywhere; }
.sv-entry img { display: inline-block; }
.sv-entry iframe, .sv-entry video, .sv-entry embed { max-width: 100%; }
.sv-entry .aligncenter { margin-inline: auto; text-align: center; }
.sv-entry .alignleft { float: left; margin: 0 1rem 1rem 0; }
.sv-entry .alignright { float: right; margin: 0 0 1rem 1rem; }
.sv-entry::after { display: block; clear: both; content: ""; }
.sv-entry .wp-caption, .sv-entry pre { max-width: 100%; }
.sv-entry pre, .sv-entry .wp-block-table { overflow: auto; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-tags a { padding: .15rem .45rem; background: #efefef; font-size: .81rem; }
.pagination, .comment-navigation { margin-top: 18px; }
.page-numbers { display: inline-block; padding: .25rem .5rem; }
.page-numbers.current { background: #ae1c1c; color: #fff; }
.sv-comments textarea { display: block; }
.sv-comment-list { padding-left: 1.25rem; }
.sv-footer { background: #252525; color: #fff; padding-block: 22px; border-bottom: 4px solid var(--sv-red); }
.sv-footer a { color: inherit; text-decoration: none; font-size: .84rem; }
@media (max-width: 920px) {
    .sv-columns { grid-template-columns: minmax(0, 1fr) minmax(215px, 255px); gap: 15px; }
    .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-menu a { padding-inline: .64rem; }
    .sv-hero { aspect-ratio: 3.3; }
}
@media (max-width: 690px) {
    .sv-shell { width: calc(100% - 24px); }
    .sv-brand .sv-shell { min-height: 74px; }
    .sv-brand img { width: min(300px, 100%); }
    .sv-nav-inner { flex-wrap: wrap; gap: 0; padding-bottom: 8px; }
    .sv-nav-inner .search-field { max-width: none; }
    .sv-menu a { padding: .58rem .5rem; font-size: .76rem; }
    .sv-home, .sv-inner { padding-top: 12px; }
    .sv-hero, .sv-hero:has(> :last-child:nth-child(-n+3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; aspect-ratio: auto; }
    .sv-hero > :nth-child(1), .sv-hero > :nth-child(4) { grid-row: auto; }
    .sv-card--hero .sv-card-link { aspect-ratio: 3/2; }
    .sv-hero > :first-child, .sv-hero > :last-child:nth-child(even) { grid-column: 1 / -1; }
    .sv-hero > :first-child .sv-card-link, .sv-hero > :last-child:nth-child(even) .sv-card-link { aspect-ratio: 16/9; }
    .sv-hero > :first-child .sv-card-title { font-size: 1rem; }
    .sv-card--hero .sv-card-copy { padding-inline: 8px; padding-bottom: 8px; }
    .sv-columns { grid-template-columns: minmax(0, 1fr); }
    .sv-panel, .sv-widget { padding: 13px; }
    .sv-grid { gap: 12px 9px; }
    .sv-grid .sv-card-title { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-thumb img { transition: none; }
}

.sv-ad { min-height: 120px; padding: .35rem .55rem; margin: 0 0 18px; background: #f7f7f7; text-align: center; }
.sv-article .sv-ad { margin-top: 20px; }
.sv-ad-label { color: #5f5f5f; font-size: .68rem; text-transform: uppercase; }

/* Header advertising and featured images */
.sv-brand-row { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.sv-brand-logo { flex:0 1 350px; min-width:180px; }
.sv-header-banner { flex:0 1 728px; min-width:0; width:100%; }
.sv-header-banner img { width:100%; height:auto; max-height:120px; object-fit:contain; }
.sv-header-banner .sv-ad { margin:0; padding:4px; background:#fff; color:#555; }
.sv-featured-image { margin:0 0 24px; }
.sv-featured-image img { width:100%; height:auto; }
.sv-ad { clear:both; max-width:100%; overflow:hidden; }
.sv-ad--article_inline { margin:24px 0; }
.sv-x-consent { margin:20px 0; padding:16px; border:1px solid var(--sv-border); background:#f7f7f7; }
.sv-x-consent button { padding:10px 14px; border:0; background:var(--sv-red); color:white; cursor:pointer; }
@media(max-width:900px) { .sv-brand-row { flex-wrap:wrap; justify-content:center; } .sv-brand-logo { flex:0 1 350px; } .sv-header-banner { flex-basis:728px; } }
.sv-brand .sv-header-banner img { width:100%; max-height:120px; object-position:center; }
.sv-header-banner .sv-ad { min-height:100px; }
.sv-brand .sv-header-banner > a { display:block; width:100%; }
