/* =========================================================================
   Homepage — New Campus film widget
   Left: 2 feature panels · Right: cinema video
   ========================================================================= */

.new-campus {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 70% at 100% 20%, rgba(227, 6, 19, 0.12), transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 80%, rgba(14, 20, 32, 0.07), transparent 55%),
        linear-gradient(165deg, #eef1f7 0%, #fff 42%, #f6f7fb 100%);
}

.new-campus::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(227, 6, 19, 0.03) 100%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 46px,
            rgba(18, 23, 34, 0.025) 46px,
            rgba(18, 23, 34, 0.025) 47px
        );
    pointer-events: none;
}

.new-campus__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: stretch;
}

.new-campus__side {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
    min-width: 0;
}

.new-campus__kicker {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-size: clamp(0.76rem, 1.1vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

.new-campus__intro .section__title {
    max-width: 12ch;
    margin-bottom: 12px;
}

.new-campus__intro .section__lead {
    max-width: 36ch;
    margin: 0;
    font-size: 0.98rem;
}

.new-campus__features {
    display: grid;
    gap: 14px;
}

.new-campus__feature {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px 18px 18px 20px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(18, 23, 34, 0.08);
    box-shadow: 0 14px 34px -22px rgba(14, 20, 32, 0.35);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.new-campus__feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red), rgba(227, 6, 19, 0.35));
}

.new-campus__feature:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 6, 19, 0.22);
    box-shadow: 0 20px 40px -22px rgba(14, 20, 32, 0.42);
}

.new-campus__feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-campus__feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--red);
    background: rgba(227, 6, 19, 0.08);
    border-radius: 12px;
}

.new-campus__feature-icon svg {
    width: 22px;
    height: 22px;
}

.new-campus__feature-num {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(18, 23, 34, 0.28);
}

.new-campus__feature-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.new-campus__feature-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.new-campus__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}

.new-campus__play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.new-campus__play-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.new-campus__play-icon svg {
    width: 14px;
    height: 14px;
}

.new-campus__stage {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.new-campus__frame {
    position: relative;
    flex: 1;
    border-radius: calc(var(--radius-lg) + 6px);
    overflow: hidden;
    background: #0b1018;
    min-height: clamp(320px, 48vw, 520px);
    aspect-ratio: 16 / 11;
    box-shadow:
        0 36px 70px -30px rgba(14, 20, 32, 0.58),
        0 0 0 1px rgba(18, 23, 34, 0.08);
    transform: translateZ(0);
}

.new-campus__frame::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto auto;
    width: 48%;
    height: 48%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.28), transparent 68%);
    pointer-events: none;
    z-index: 1;
}

.new-campus__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 4;
}

.new-campus__poster,
.new-campus__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0b1018;
}

.new-campus__poster {
    z-index: 1;
    transition: opacity 0.35s ease;
}

.new-campus__video {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.new-campus__frame.is-playing .new-campus__poster {
    opacity: 0;
}

.new-campus__frame.is-playing .new-campus__video {
    opacity: 1;
    pointer-events: auto;
}

.new-campus__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 0;
    padding: 22px;
    display: grid;
    align-content: space-between;
    justify-items: start;
    background:
        linear-gradient(180deg, rgba(11, 16, 24, 0.28) 0%, transparent 42%),
        linear-gradient(0deg, rgba(11, 16, 24, 0.62) 0%, transparent 48%);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.35s ease;
}

.new-campus__overlay:hover .new-campus__orb,
.new-campus__overlay:focus-visible .new-campus__orb {
    transform: scale(1.07);
    box-shadow: 0 18px 42px rgba(227, 6, 19, 0.5);
}

.new-campus__badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.new-campus__orb {
    place-self: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--red), var(--red-600));
    color: #fff;
    box-shadow: 0 18px 40px rgba(227, 6, 19, 0.38);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: new-campus-pulse 2.6s ease-in-out infinite;
}

.new-campus__orb svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

.new-campus__hint {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.new-campus__caption {
    margin-top: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.new-campus__frame.is-playing .new-campus__overlay {
    opacity: 0;
    pointer-events: none;
}

@keyframes new-campus-pulse {
    0%, 100% { box-shadow: 0 18px 40px rgba(227, 6, 19, 0.38); }
    50% { box-shadow: 0 18px 48px rgba(227, 6, 19, 0.58), 0 0 0 14px rgba(227, 6, 19, 0.08); }
}

@media (max-width: 980px) {
    .new-campus__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .new-campus__intro .section__title {
        max-width: none;
    }

    .new-campus__stage {
        order: -1;
    }

    .new-campus__frame {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .new-campus__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .new-campus__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .new-campus__orb {
        width: 70px;
        height: 70px;
    }

    .new-campus__orb svg {
        width: 26px;
        height: 26px;
    }

    .new-campus__overlay {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-campus__orb,
    .new-campus__feature {
        animation: none;
        transition: none;
    }
}
