* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #0a0a0a;
    background-image: radial-gradient(circle at 30% 30%, rgba(0, 180, 255, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.02) 0%, transparent 40%);
    color: #eaeaea;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Header with Glassmorphism --- */
.header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 680px;
    z-index: 100;
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.logo svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #00aaff;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.3));
}

.id-display {
    color: #8888aa;
    font-size: 11px;
    font-weight: 500;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

/* --- Container & Posts --- */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 90px 0 0 0;
}

.post {
    background: transparent;
    margin: 0 8px 12px 8px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(12, 12, 16, 0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 8px 0 12px 0;
    scroll-margin-top: 80px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 180, 255, 0.05);
}

/* --- Post Header --- */
.post-header {
    padding: 0 16px 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #00d4ff);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.username {
    font-weight: 600;
    font-size: 15px;
    color: #f0f0f0;
    letter-spacing: -0.2px;
}

.post-id {
    color: #6a6a8a;
    font-size: 10px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Media --- */
.media-wrapper {
    background: #08080a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    max-height: 75vh;
    overflow: hidden;
    margin: 0 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.media-wrapper video,
.media-wrapper img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    background: #08080a;
    border-radius: 16px;
}

/* --- Actions --- */
.post-actions {
    padding: 12px 16px 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #a0a0b0;
    cursor: pointer;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.action-btn.download svg {
    stroke: #4a9eff;
    filter: drop-shadow(0 0 6px rgba(74, 158, 255, 0.2));
}

.action-btn.share svg {
    stroke: #00d4ff;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.2));
}

.like-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #a0a0b0;
    cursor: pointer;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.like-btn:active {
    transform: scale(0.95);
}

.like-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-btn.liked {
    color: #ff3040;
}

.like-btn.liked svg {
    fill: #ff3040;
    stroke: #ff3040;
    filter: drop-shadow(0 0 10px rgba(255, 48, 64, 0.3));
}

.like-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 16px;
}

/* --- Post Body --- */
.post-body {
    padding: 0 16px 8px 16px;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.post-desc {
    font-size: 13px;
    color: #9090a8;
    line-height: 1.5;
}

/* --- Meta & Footer --- */
.post-meta {
    padding: 8px 16px 4px 16px;
    font-size: 11px;
    color: #5a5a7a;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 6px;
    padding-top: 12px;
}

.icon-badge {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.unmute-section {
    padding: 6px 16px 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unmute-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #b0b0c0;
    padding: 5px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.unmute-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.unmute-btn.unmuted {
    background: rgba(0, 150, 255, 0.08);
    border-color: rgba(0, 150, 255, 0.15);
    color: #4a9eff;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.05);
}

.unmute-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.loading {
    color: #5a5a7a;
    padding: 80px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer {
    text-align: center;
    padding: 40px 20px 30px 20px;
    color: #3a3a5a;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 10px;
    letter-spacing: 0.3px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 600px) {
    .header {
        top: 8px;
        padding: 6px 16px;
        width: 96%;
        border-radius: 16px;
    }
    .logo {
        font-size: 15px;
    }
    .logo svg {
        width: 22px;
        height: 22px;
    }
    .id-display {
        font-size: 9px;
        padding: 3px 10px;
    }
    .container {
        padding: 80px 0 0 0;
    }
    .post {
        margin: 0 4px 10px 4px;
        border-radius: 18px;
    }
    .post-header {
        padding: 0 12px 10px 12px;
    }
    .username {
        font-size: 13px;
    }
    .media-wrapper {
        min-height: 45vh;
        max-height: 65vh;
        border-radius: 12px;
        margin: 0 2px;
    }
    .media-wrapper video,
    .media-wrapper img {
        max-height: 65vh;
    }
    .post-actions {
        padding: 8px 12px 4px 12px;
        gap: 6px;
    }
    .action-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    .like-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .like-btn svg {
        width: 16px;
        height: 16px;
    }
    .post-body {
        padding: 0 12px 6px 12px;
    }
    .post-title {
        font-size: 14px;
    }
    .post-desc {
        font-size: 12px;
    }
    .post-meta {
        padding: 6px 12px 4px 12px;
        font-size: 10px;
    }
    .unmute-section {
        padding: 4px 12px 6px 12px;
    }
    .unmute-btn {
        font-size: 10px;
        padding: 4px 12px;
    }
}

@media (max-width: 400px) {
    .media-wrapper {
        min-height: 35vh;
        max-height: 55vh;
    }
    .media-wrapper video,
    .media-wrapper img {
        max-height: 55vh;
    }
}