*,
*::before,
*::after {
    box-sizing: border-box;
}

.dv2-highlights-football-root.ck2-highlight-page {
    margin: 0 auto;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
}

.ck2-highlight-page {
    margin: 0 auto;
}

.ck2-highlight-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "title search";
    gap: 8px 24px;
    align-items: start;
    margin-bottom: 20px;
}

.ck2-highlight-header--has-description {
    grid-template-areas:
        "title search"
        "desc desc";
}

.ck2-highlight-title {
    grid-area: title;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #000;
    line-height: 1.3;
}

.ck2-highlight-description {
    grid-area: desc;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgb(37, 76, 148);
}

.ck2-highlight-search-wrap {
    grid-area: search;
    position: relative;
    width: 280px;
    max-width: 100%;
}

.ck2-highlight-search-wrap::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

body .ck2-highlight-page .ck2-highlight-search {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a;
    margin-bottom: 0;
}

.ck2-highlight-search::placeholder {
    color: #9ca3af;
}

.ck2-highlight-search:focus {
    outline: none;
    border-color: rgb(37, 76, 148);
    box-shadow: 0 0 0 2px rgba(37, 76, 148, 0.15);
}

@media (max-width: 600px) {
    .ck2-highlight-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "search";
        gap: 12px;
    }

    .ck2-highlight-header--has-description {
        grid-template-areas:
            "title"
            "search"
            "desc";
    }

    .ck2-highlight-search-wrap {
        width: 100%;
    }

    .ck2-highlight-title {
        font-size: 1.25rem;
    }
}

.ck2-highlight-error {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.9rem;
}

.ck2-highlight-grid {
    display: grid;
    gap: 16px;
}

.ck2-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    width: auto;
    margin: 0;
    padding: 0;
}

.ck2-card:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.ck2-card:focus:not(:focus-visible) {
    outline: none;
}

.ck2-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.ck2-card-thumb-media {
    width: 100%;
    height: 100%;
}

.ck2-card-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ck2-card:hover .ck2-card-thumb-media img {
    transform: scale(1.03);
}

.ck2-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ck2-card:hover .ck2-play {
    opacity: 1;
}

.ck2-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
}

.ck2-play-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.ck2-card-body {
    padding: 12px 14px 14px;
}

body .ck2-card .ck2-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: #000;
}

.ck2-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.8rem;
}

.ck2-card-league {
    color: #666;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ck2-card-date {
    color: #666;
    flex-shrink: 0;
}

.ck2-card-date-year {
    color: rgb(37, 76, 148);
    font-weight: 500;
}

.ck2-highlight-empty {
    text-align: center;
    color: #6b7280;
    margin: 32px 0;
}

.ck2-highlight-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.ck2-btn-load-more {
    appearance: none;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #f77349;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 20px;
}

.ck2-btn-load-more svg {
    width: 20px;
    height: 20px;
}

.ck2-btn-load-more svg path {
    fill: #fff;
}

.ck2-btn-load-more:hover:not(:disabled) {
    background: #bf0426;
}

.ck2-btn-load-more:active:not(:disabled) {
    transform: scale(0.98);
}

.ck2-btn-load-more:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ck2-loading {
    font-size: 0.9rem;
    color: #6b7280;
}

.ck2-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ck2-modal[hidden] {
    display: none !important;
}

.ck2-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.ck2-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 32px);
    overflow: unset;
    background: #0f172a;
    border-radius: 12px;
    padding: 12px 12px 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

body .ck2-modal-close {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: auto;
}

.ck2-modal-close svg {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #bf0426;
    padding: 8px;
}

.ck2-modal-close:hover svg {
    background-color: #ff0505;
}

.ck2-modal-video-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.ck2-modal-video {
    width: 100%;
    display: block;
    min-height: 400px;
}

.ck2-modal-title {
    margin: 14px 8px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ck2-modal-video {
        min-height: 250px;
    }
}
