.svl,
.svl-gate {
    --svl-green: #07513f;
    --svl-green-2: #0f6a54;
    --svl-ink: #15251f;
    --svl-muted: #68756f;
    --svl-line: #cfdad4;
    --svl-soft: #f6faf7;
    --svl-panel: #ffffff;
    color: var(--svl-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.svl-gate {
    align-items: center;
    background: linear-gradient(180deg, #fbfdfb 0%, #eef6f1 100%);
    display: flex;
    justify-content: center;
    min-height: 72vh;
    padding: 32px 16px;
}

.svl-gate__panel {
    background: var(--svl-panel);
    border: 1px solid var(--svl-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(7, 81, 63, 0.10);
    max-width: 520px;
    padding: 34px;
    width: 100%;
}

.svl-gate__eyebrow,
.svl-eyebrow {
    color: var(--svl-green);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.svl-gate h1,
.svl-topbar h1 {
    color: var(--svl-green);
    font-size: 30px;
    line-height: 1.25;
    margin: 0;
}

.svl-gate__copy {
    color: var(--svl-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 16px 0 22px;
}

.svl-gate form {
    display: grid;
    gap: 12px;
}

.svl-gate input,
.svl-search input,
.svl-filter select {
    background: #fff;
    border: 1px solid var(--svl-line);
    border-radius: 6px;
    color: var(--svl-ink);
    font: inherit;
    font-size: 17px;
    min-height: 52px;
    padding: 12px 14px;
}

.svl-gate input:focus,
.svl-search input:focus,
.svl-filter select:focus {
    border-color: var(--svl-green);
    box-shadow: 0 0 0 3px rgba(7, 81, 63, 0.13);
    outline: 0;
}

.svl-gate button,
.svl-filter button,
.svl-view-toggle button {
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}

.svl-gate button,
.svl-filter button {
    background: var(--svl-green);
    border: 1px solid var(--svl-green);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    min-height: 52px;
    padding: 12px 22px;
}

.svl {
    background: #fbfdfb;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: -130px !important;
    max-width: none !important;
    min-height: 100vh;
    padding: 24px 16px 52px;
    position: relative;
    width: 100vw !important;
}

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

.svl-header {
    display: block !important;
    margin: 0 auto 20px;
    max-width: 1240px;
    width: 100%;
}

.svl-topbar {
    align-items: center;
    border-bottom: 1px solid var(--svl-line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 6px 0 18px;
}

.svl-member-badge {
    align-items: center;
    color: var(--svl-green);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.svl-tabs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(8, minmax(96px, 1fr));
    margin: 0 0 14px;
}

.svl-tabs a {
    align-items: center;
    background: #fff;
    border: 1px solid #9fb5aa;
    border-radius: 6px;
    color: var(--svl-green);
    display: flex;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    min-height: 56px;
    padding: 8px 10px;
    text-decoration: none;
}

.svl-tabs a small {
    color: var(--svl-muted);
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

.svl-tabs a.is-active {
    background: var(--svl-green);
    border-color: var(--svl-green);
    color: #fff;
}

.svl-tabs a.is-active small {
    color: rgba(255, 255, 255, 0.78);
}

.svl-filter {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(280px, 1fr) minmax(96px, auto);
    margin-bottom: 12px;
}

.svl-search {
    display: block;
    min-width: 0;
    position: relative;
}

.svl-search span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.svl-search input {
    padding-left: 44px;
    width: 100%;
}

.svl-search::before {
    color: var(--svl-green);
    content: "⌕";
    font-size: 28px;
    left: 14px;
    line-height: 1;
    position: absolute;
    top: 12px;
}

.svl-filter select {
    color: var(--svl-ink);
    min-width: 0;
    width: 100%;
}

.svl-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0;
}

.svl-toolbar p {
    color: var(--svl-ink);
    font-size: 16px;
    margin: 0;
}

.svl-view-toggle {
    display: flex;
    gap: 8px;
}

.svl-view-toggle button {
    background: #fff;
    border: 1px solid var(--svl-line);
    color: var(--svl-green);
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
    padding: 8px 14px;
}

.svl-view-toggle button.is-active {
    background: var(--svl-green);
    border-color: var(--svl-green);
    color: #fff;
}

.svl-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1240px;
}

.svl-card {
    background: var(--svl-panel);
    border: 1px solid #d9e2dd;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(31, 55, 45, 0.05);
    min-width: 0;
    overflow: hidden;
}

.svl-card__video {
    align-items: center;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(7, 81, 63, 0.90), rgba(15, 106, 84, 0.84)),
        radial-gradient(circle at 24% 22%, rgba(255,255,255,0.24), transparent 30%),
        #0f6a54;
    display: flex;
    min-height: 260px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.svl-card__video iframe,
.svl-card__video twitter-widget {
    height: 560px !important;
    min-height: 560px !important;
    max-height: 100% !important;
    max-width: 100% !important;
    transform: translateY(-150px);
    width: 100% !important;
}

.svl-video-fallback {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    gap: 12px;
    height: 100%;
    justify-content: center;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.svl-video-thumb {
    align-items: center;
    background-color: var(--svl-green);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: center;
    min-height: 260px;
    padding: 18px;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.svl-video-thumb::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.38));
    content: "";
    inset: 0;
    position: absolute;
}

.svl-video-fallback::before {
    background: #fff;
    border-radius: 50%;
    color: var(--svl-green);
    content: "▶";
    display: inline-flex;
    font-size: 22px;
    height: 64px;
    justify-content: center;
    line-height: 64px;
    width: 64px;
}

.svl-video-thumb::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
    color: var(--svl-green);
    content: "▶";
    display: inline-flex;
    font-size: 22px;
    height: 64px;
    justify-content: center;
    line-height: 1;
    position: relative;
    width: 64px;
    z-index: 1;
}

.svl-video-fallback span {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 4px;
    font-size: 14px;
    padding: 4px 10px;
}

.svl-video-thumb span {
    background: rgba(7, 81, 63, 0.86);
    border: 1px solid rgba(255,255,255,0.44);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    position: relative;
    z-index: 1;
}

.svl-video-fallback strong,
.svl-video-thumb strong {
    font-size: 18px;
    position: relative;
    text-shadow: 0 1px 8px rgba(0,0,0,0.26);
    z-index: 1;
}

.svl-modal-open {
    overflow: hidden;
}

.svl-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 99999;
}

.svl-modal__backdrop {
    background: rgba(11, 24, 20, 0.66);
    inset: 0;
    position: absolute;
}

.svl-modal__panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    max-height: min(88vh, 820px);
    max-width: 540px;
    overflow: hidden;
    position: relative;
    width: min(100%, 540px);
    z-index: 1;
}

.svl-modal__close {
    align-items: center;
    background: rgba(7, 81, 63, 0.92);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    z-index: 2;
}

.svl-modal__clip {
    background: #f5f8f6;
    height: min(78vh, 640px);
    overflow: hidden;
    padding: 0;
}

.svl-modal__clip iframe {
    border: 0;
    display: block;
    min-height: 880px;
    transform: translateY(-132px);
    width: 100%;
}

.svl-modal__link {
    background: #fff;
    border-top: 1px solid var(--svl-line);
    color: var(--svl-green);
    display: block;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 18px;
    text-align: center;
}

.svl-card__body {
    padding: 14px 14px 16px;
}

.svl-card h2 {
    color: var(--svl-ink);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 8px;
}

.svl-card p {
    color: var(--svl-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.svl-benefit {
    background: #f2f8f5;
    border-left: 4px solid var(--svl-green);
    border-radius: 6px;
    margin: 0 0 12px;
    padding: 10px 11px;
}

.svl-benefit strong {
    color: var(--svl-green);
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.svl-benefit span {
    color: #2d453b;
    display: block;
    font-size: 13px;
    line-height: 1.6;
}

.svl-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.svl-card__meta span {
    background: #eef6f1;
    border-radius: 4px;
    color: var(--svl-green);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
}

.svl-card__source {
    color: var(--svl-green);
    font-size: 14px;
    font-weight: 700;
}

.svl-grid.is-list {
    grid-template-columns: 1fr;
}

.svl-grid.is-list .svl-card {
    display: grid;
    grid-template-columns: 160px 1fr;
}

.svl-grid.is-list .svl-card__video {
    aspect-ratio: 4 / 5;
    min-height: 200px;
}

.svl-grid.is-list .svl-video-thumb {
    min-height: 200px;
}

.svl-grid.is-list .svl-card__body {
    align-self: center;
    padding: 18px 20px;
}

.svl-empty {
    background: #fff;
    border: 1px solid var(--svl-line);
    border-radius: 8px;
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
}

.svl-empty h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

.svl-empty p {
    color: var(--svl-muted);
    margin: 0;
}

.svl-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 30px auto 0;
    max-width: 1240px;
}

.svl-pagination a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--svl-line);
    border-radius: 6px;
    color: var(--svl-green);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    min-width: 40px;
    text-decoration: none;
}

.svl-pagination a.is-current {
    background: var(--svl-green);
    color: #fff;
}

@media (max-width: 1040px) {
    .svl-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .svl-filter {
        grid-template-columns: 1fr auto;
    }

    .svl-search {
        grid-column: auto;
    }

    .svl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .svl {
        padding: 18px 12px 42px;
    }

    .svl-topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .svl-topbar h1 {
        font-size: 24px;
    }

    .svl-tabs {
        display: flex;
        gap: 8px;
        margin-left: -2px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .svl-tabs a {
        flex: 0 0 auto;
        font-size: 16px;
        min-height: 50px;
        min-width: 104px;
    }

    .svl-filter {
        grid-template-columns: 1fr;
    }

    .svl-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .svl-view-toggle {
        width: 100%;
    }

    .svl-view-toggle button {
        flex: 1;
    }

    .svl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svl-grid.is-list .svl-card {
        grid-template-columns: 110px 1fr;
    }

    .svl-grid.is-list .svl-card__video {
        min-height: 150px;
    }

    .svl-grid.is-list .svl-video-thumb {
        min-height: 150px;
    }
}

@media (max-width: 500px) {
    .svl-grid {
        grid-template-columns: 1fr;
    }

    .svl-grid.is-list .svl-card {
        display: block;
    }

    .svl-grid.is-list .svl-card__video {
        min-height: 0;
    }

    .svl-grid.is-list .svl-video-thumb {
        min-height: 260px;
    }
}
