/**
 * Landing v3 — divider-matches band (aligned with divider-v2 / divider-clubs)
 * Used by resources/views/landing/v3/components/divider-matches.blade.php
 */

.divider-section-matches {
    position: relative;
    z-index: 1;
}

.divider-section-matches .dm-neon-top,
.divider-section-matches .dm-neon-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(132, 204, 22, 0.4) 20%,
        rgba(196, 229, 56, 0.7) 50%,
        rgba(132, 204, 22, 0.4) 80%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(196, 229, 56, 0.5), 0 0 20px rgba(132, 204, 22, 0.2);
}

.divider-section-matches .dm-neon-top {
    top: 0;
}

.divider-section-matches .dm-neon-bottom {
    bottom: 0;
}

.divider-section-matches .dm-court-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 35px, #2a2e35 35px, #2a2e35 37px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, #2a2e35 35px, #2a2e35 37px);
    pointer-events: none;
}

.divider-section-matches .dm-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.divider-section-matches .dm-glow-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    left: 15%;
    background: rgba(132, 204, 22, 0.08);
}

.divider-section-matches .dm-glow-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: 10%;
    background: rgba(132, 204, 22, 0.06);
}

.divider-section-matches .dm-glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.divider-section-matches .dm-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.1) 35%,
        rgba(132, 204, 22, 0.35) 70%,
        rgba(255, 255, 255, 0.08) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.divider-section-matches .dm-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 45%;
    border-radius: 1.25rem 1.25rem 60% 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.divider-section-matches .dm-glass > .dm-row {
    position: relative;
    z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .divider-section-matches .dm-glass {
        background: rgba(15, 23, 42, 0.9);
    }
}

.divider-section-matches .dm-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    min-height: 6rem;
}

@media (min-width: 768px) {
    .divider-section-matches .dm-row {
        min-height: 7rem;
    }
}

@media (min-width: 1024px) {
    .divider-section-matches .dm-row {
        justify-content: space-between;
        gap: 2rem;
    }
}

.divider-section-matches .dm-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 0;
}

.divider-section-matches .live-pill-dm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
    animation: dm-live-pill-blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

.divider-section-matches .live-dot-dm {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    flex-shrink: 0;
    animation: dm-live-dot-pulse 2s ease-in-out infinite;
}

@keyframes dm-live-pill-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

@keyframes dm-live-dot-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.15);
    }
}

.divider-section-matches .dm-hero-title {
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #c4e538;
    font-size: 2.25rem;
}

.divider-section-matches .dm-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.35rem;
}

.divider-section-matches .dm-caption {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
}

@media (min-width: 640px) {
    .divider-section-matches .dm-hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .divider-section-matches .dm-hero-title {
        font-size: 3.25rem;
    }
}

.divider-section-matches .dm-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .divider-section-matches .dm-right {
        width: auto;
        min-width: 400px;
        max-width: 460px;
    }
}

.divider-section-matches .dm-page {
    display: none;
}

.divider-section-matches .dm-page.is-active {
    display: block;
    animation: dm-fade-in 0.45s ease;
}

@keyframes dm-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider-section-matches .dm-match-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    padding: 1.15rem 1.25rem 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.divider-section-matches .dm-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.divider-section-matches .dm-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.divider-section-matches .dm-badge--happening {
    background: #ef4444;
    color: #fff;
}

.divider-section-matches .dm-badge--finished {
    background: #10b981;
    color: #fff;
}

.divider-section-matches .dm-badge--latest {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.divider-section-matches .dm-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem 0.65rem;
    align-items: start;
}

.divider-section-matches .dm-team {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.divider-section-matches .dm-team--b {
    text-align: right;
    align-items: flex-end;
}

.divider-section-matches .dm-player {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.divider-section-matches .dm-vs {
    align-self: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 0.15rem;
}

.divider-section-matches .dm-score {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #b7d84b;
    text-align: center;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.divider-section-matches .dm-place {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.divider-section-matches .dm-place i {
    color: #84cc16;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.divider-section-matches .dm-place-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.divider-section-matches .dm-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.divider-section-matches .dm-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.divider-section-matches .dm-dot.is-active {
    width: 1.5rem;
    background: #b7d84b;
    box-shadow: 0 0 8px rgba(183, 216, 75, 0.4);
}

.divider-section-matches .dm-empty-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.divider-section-matches .dm-empty-card i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
}

.divider-section-matches .dm-empty-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.65rem;
}

.divider-section-matches .dm-empty-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.divider-section-matches [data-animate='fade-up'] {
    opacity: 0;
    transform: translateY(16px);
    animation: dm-fade-up-in 0.5s ease-out forwards;
}

.divider-section-matches [data-animate='scale-in'] {
    opacity: 0;
    transform: scale(0.95);
    animation: dm-scale-in 0.4s ease-out forwards;
}

.divider-section-matches [data-delay='100'] {
    animation-delay: 0.05s;
}

@keyframes dm-fade-up-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dm-scale-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tablet / mobile — centered header, inset glass, full-width match card */
@media (max-width: 1023px) {
    .divider-section-matches .dm-glass {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 1.35rem 1rem 1.25rem;
    }

    .divider-section-matches .dm-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        min-height: 0;
    }

    .divider-section-matches .dm-left {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
        text-align: center;
    }

    .divider-section-matches .divider-matches-live-pill {
        order: -1;
        align-self: center;
    }

    .divider-section-matches .dm-title-copy {
        max-width: 100%;
        width: 100%;
    }

    .divider-section-matches .dm-hero-title {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
        line-height: 0.9;
    }

    .divider-section-matches .dm-right {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .divider-section-matches .dm-match-card,
    .divider-section-matches .dm-empty-card {
        width: 100%;
    }

    .divider-section-matches .dm-badge {
        display: flex;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .divider-section-matches .dm-dots {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .divider-section-matches .dm-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .divider-section-matches .divider-matches-live-pill {
        order: 0;
    }
}

@media (max-width: 768px) {
    .divider-section-matches .dm-glass {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .divider-section-matches .dm-player {
        font-size: 0.72rem;
    }

    .divider-section-matches .dm-score {
        font-size: 1.25rem;
    }
}
