.spt-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 1.25rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spt-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-family: sans-serif;
}

.spt-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: sans-serif;
}

.spt-user-badge {
    font-size: 0.8rem;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
}

.spt-auth-btn {
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.spt-auth-login {
    background: #3ea6ff;
    color: #000;
}

.spt-feed {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #0d0d0d;
}

.spt-card {
    position: relative;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.spt-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 50%, rgba(13,13,13,0.95) 100%);
    z-index: 1;
}

.spt-card-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem 1.25rem 3.5rem 1.25rem;
    gap: 0.75rem;
}

.spt-card-content {
    max-width: 600px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.spt-card-meta {
    font-size: 0.85rem;
    color: #3ea6ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-family: sans-serif;
    font-weight: bold;
}

.spt-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.spt-card-title a {
    color: #ffffff;
    transition: color 0.2s;
}

.spt-card-title a:hover {
    color: #3ea6ff;
}

.spt-card-excerpt {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spt-card-author {
    font-size: 0.82rem;
    color: #aaa;
    font-family: sans-serif;
}

/* Sidebar Azioni Stile TikTok */
.spt-actions-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
    z-index: 2;
}

.spt-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    user-select: none;
}

.spt-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.spt-action-item:hover .spt-icon-circle {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.25);
}

.spt-action-item:active .spt-icon-circle {
    transform: scale(0.92);
}

.spt-action-item.active .spt-icon-circle {
    background: rgba(62, 166, 255, 0.35);
    border-color: #3ea6ff;
    box-shadow: 0 0 12px rgba(62, 166, 255, 0.6);
}

.spt-action-label {
    font-size: 0.72rem;
    font-family: sans-serif;
    margin-top: 0.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* Modal Stili */
.spt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.spt-modal-overlay.active {
    display: flex;
}

.spt-modal-content {
    width: 100%;
    max-width: 540px;
    height: 70vh;
    background: #181818;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
    animation: spt-slide-up 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.spt-share-box {
    height: auto;
    padding-bottom: 2rem;
}

@keyframes spt-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.spt-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: sans-serif;
}

.spt-modal-header h3 {
    font-size: 1rem;
    color: #fff;
}

.spt-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
}

.spt-modal-body {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    font-family: sans-serif;
}

.spt-modal-footer {
    padding: 0.8rem 1.25rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    background: #121212;
}

.spt-chat-notice {
    font-size: 0.8rem;
    color: #00ff88;
    background: rgba(0,255,136,0.1);
    padding: 0.6rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.spt-chat-msg {
    margin-bottom: 0.75rem;
    line-height: 1.35;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

.spt-chat-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.2rem;
}

.spt-chat-nick {
    font-weight: bold;
    color: #3ea6ff;
}

.spt-chat-text {
    color: #eee;
    background: rgba(255,255,255,0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    display: inline-block;
    max-width: 85%;
    word-break: break-word;
}

.spt-chat-msg.me .spt-chat-text {
    background: rgba(62, 166, 255, 0.2);
    border: 1px solid rgba(62, 166, 255, 0.4);
    align-self: flex-end;
}

.spt-action-btn-main {
    background: #3ea6ff;
    color: #000;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.spt-action-btn-wa {
    background: #25d366;
    color: #000;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.spt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    color: #aaa;
    font-family: sans-serif;
    text-align: center;
    padding: 2rem;
}

.spt-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #3ea6ff;
    border-radius: 50%;
    animation: spt-spin 0.9s linear infinite;
    margin-bottom: 1.2rem;
}

@keyframes spt-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .spt-card-container {
        padding: 3rem 4rem 4rem 4rem;
    }
    .spt-card-title {
        font-size: 2.5rem;
    }
    .spt-card-excerpt {
        font-size: 1.15rem;
        -webkit-line-clamp: 4;
    }
}