/* Welcome Modal */
.cs-welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.cs-welcome-modal.cs-fade-out {
    opacity: 0;
    pointer-events: none;
}

.cs-welcome-card {
    text-align: center;
    padding: 48px 40px;
    max-width: 600px;
    width: 90%;
    background: #1a1a1a;
    border-radius: 16px;
    border: 3px solid #e8735a;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.cs-welcome-logo {
    width: 80px;
    height: auto;
    margin-bottom: 32px;
}

.cs-welcome-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 47px;
    font-weight: 500;
    color: rgb(246, 107, 113);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: center;
}

.cs-welcome-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0 0 36px;
    line-height: 1.5;
}

.cs-welcome-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #e8735a;
    color: #fff;
    border: none;
    outline: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.cs-welcome-cta:hover {
    background: #d4624b;
    transform: translateY(-1px);
}

/* Hide Jupiter page title section */
#mk-page-introduce {
    display: none !important;
}

/* Hide Jupiter post navigation arrows */
.cs-showcase-page .mk-post-nav {
    display: none !important;
}

/* Reset & Base */
.cs-showcase-page {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cs-page {
    min-height: 100vh;
}

/* Header */
.cs-header {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.cs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 47px;
    font-weight: 500;
    color: rgb(246, 107, 113);
    margin: 0 0 24px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: center;
}

.cs-divider {
    width: 60px;
    height: 2px;
    background: #e8735a;
    margin: 0 auto 24px;
}

.cs-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    line-height: 38px;
    letter-spacing: 0px;
    text-align: center;
    margin: 0;
}

/* Post Grid */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.cs-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.cs-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cs-card-placeholder {
    position: absolute;
    inset: 0;
    background: #222;
}

.cs-card:hover .cs-card-img {
    transform: scale(1.05);
}

.cs-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 28px;
    transition: background 0.8s ease;
}

.cs-card:hover .cs-card-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.cs-card-center {
    position: absolute;
    top: 50%;
    left: 28px;
    right: 28px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.cs-card:hover .cs-card-center {
    transform: translateY(calc(-50% - 16px));
}

.cs-card-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 16px;
    font-weight: 700;
    color: #f6f6f6;
    text-transform: uppercase;
    height: 16px;
    min-height: 16px;
    margin: 0 0 10px;
    padding: 0;
    word-wrap: break-word;
    hyphens: auto;
}

.cs-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    line-height: 26px;
    font-weight: 300;
    color: #ffffff;
    height: 60px;
    min-height: 60px;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-card-tag {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-size: 1rem;
    color: #e8735a;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cs-card:hover .cs-card-tag {
    opacity: 1;
}

/* Load More */
.cs-loadmore-wrap {
    text-align: center;
    padding: 40px 20px;
    background: #000;
}

.cs-loadmore-btn {
    display: inline-block;
    padding: 14px 48px;
    background: transparent;
    color: #fff;
    border: 2px solid #e8735a;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

.cs-loadmore-btn:hover {
    background: #e8735a;
    transform: translateY(-1px);
}

/* Video Bubble */
.cs-video-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.cs-bubble-ring {
    width: 16vw;
    height: 16vw;
    border-radius: 50%;
    border: 5px solid #e8735a;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.cs-bubble-ring:hover {
    transform: scale(1.08);
}

.cs-bubble-ring video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-bubble-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cs-bubble-play.hidden {
    opacity: 0;
}

.cs-video-bubble .cs-bubble-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e8735a !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cs-video-bubble .cs-bubble-close:hover {
    background: #f0f0f0 !important;
}

/* Expanded Video */
.cs-video-expanded {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-expanded-inner {
    position: relative;
    width: 90%;
    max-width: 640px;
}

.cs-expanded-inner video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.cs-expanded-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #e8735a;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .cs-header {
        padding: 48px 20px 40px;
    }

    .cs-bubble-ring {
        width: 20vw;
        height: 20vw;
    }
}
