* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --simple-card-bg: rgba(255, 255, 255, 0.72);
    --simple-glass-border: rgba(255, 255, 255, 0.45);
    --simple-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --simple-overlay: 0.4;
}

.simple-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.simple-bg-video {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.simple-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-page.simple-has-bg-image::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.simple-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, var(--simple-overlay));
    pointer-events: none;
}

.simple-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    position: relative;
    z-index: 1;
}

.simple-cover {
    margin: -24px -20px 0;
    max-height: 220px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--simple-shadow);
}

.simple-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.simple-profile {
    text-align: center;
    padding: 28px 0 20px;
}

.simple-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.simple-avatar-ph {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-block;
}

.simple-profile h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.simple-username {
    font-size: 14px;
    opacity: 0.72;
    margin-bottom: 10px;
    font-weight: 500;
}

.simple-bio {
    font-size: 15px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
    opacity: 0.88;
}

.simple-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.simple-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--simple-card-bg);
    border: 1px solid var(--simple-glass-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--simple-shadow);
}

.simple-social-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

.simple-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.simple-btn {
    display: block;
    text-align: center;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    background: var(--simple-btn-bg, #0095f6);
    color: var(--simple-btn-color, #fff);
    border-radius: var(--simple-btn-radius, 12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border: none;
}

.simple-btn:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.simple-btn-block {
    margin-top: 0;
}

/* Shared block styles */
.simple-block {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: var(--simple-card-bg);
    border: 1px solid var(--simple-glass-border);
    backdrop-filter: blur(16px);
    box-shadow: var(--simple-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.simple-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.simple-block-media img,
.simple-block-card img,
.simple-block-card_reverse img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.simple-block-body strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.simple-block-body span {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.45;
}

.simple-block-caption {
    padding: 12px 16px;
    font-size: 14px;
    opacity: 0.85;
}

/* Card horizontal */
.simple-block-card,
.simple-block-card_reverse {
    display: flex;
    align-items: stretch;
    min-height: 96px;
}

.simple-block-card .simple-block-media,
.simple-block-card_reverse .simple-block-media {
    width: 96px;
    flex-shrink: 0;
}

.simple-block-card .simple-block-body,
.simple-block-card_reverse .simple-block-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.simple-block-card_reverse {
    flex-direction: row-reverse;
}

/* Banner */
.simple-block-banner {
    min-height: 140px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-image: var(--block-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.simple-block-banner-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.simple-block-banner-inner strong {
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.simple-block-banner-inner span {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-top: 4px;
}

/* Image only */
.simple-block-image_only img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Image + button stack */
.simple-block-image_button {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.simple-block-image_button:hover {
    transform: none;
    box-shadow: none;
}

.simple-block-image_top {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--simple-shadow);
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.simple-block-image_top img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.simple-block-image_button:hover .simple-block-image_top {
    transform: scale(1.01);
}

.simple-block-image_button .simple-block-caption {
    text-align: center;
    padding: 4px 8px 0;
}

/* Minimal row */
.simple-block-minimal {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.simple-block-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.simple-block-minimal-text {
    flex: 1;
    min-width: 0;
}

.simple-block-minimal-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-block-minimal-text span {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-block-arrow {
    opacity: 0.45;
    font-size: 18px;
    flex-shrink: 0;
}

/* Featured */
.simple-block-featured {
    min-height: 180px;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #334155);
    background-image: var(--block-bg);
    background-size: cover;
    background-position: center;
}

.simple-block-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
}

.simple-block-featured-content {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.simple-block-featured-content strong {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.simple-block-featured-content span {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.45;
}

/* Video block */
.simple-block-video {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
    box-shadow: var(--simple-shadow);
}

.simple-block-video video {
    width: 100%;
    display: block;
    background: #000;
}

.simple-brand {
    text-align: center;
    margin-top: 36px;
    font-size: 12px;
    opacity: 0.55;
}

.simple-brand a {
    color: inherit;
    text-decoration: none;
}

.simple-page.dark {
    --simple-card-bg: rgba(255, 255, 255, 0.08);
    --simple-glass-border: rgba(255, 255, 255, 0.12);
    --simple-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.simple-page.dark .simple-social-icon {
    background: rgba(255, 255, 255, 0.1);
}

.simple-page.simple-has-bg-media .simple-profile h1,
.simple-page.simple-has-bg-media .simple-username,
.simple-page.simple-has-bg-media .simple-bio {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
    .simple-block-card,
    .simple-block-card_reverse {
        flex-direction: column;
        min-height: 0;
    }

    .simple-block-card .simple-block-media,
    .simple-block-card_reverse .simple-block-media {
        width: 100%;
        height: 160px;
    }

    .simple-block-card_reverse {
        flex-direction: column;
    }
}
