/* ============================================================
   SUNSET GAMING — Homepage v2 (index only)
   Uses global tokens: --primary, --primary-gradient, --border
   ============================================================ */

.sg-home {
    --home-glass: rgba(14, 14, 18, 0.72);
    --home-line: rgba(255, 255, 255, 0.07);
    --home-green: #2ecc71;
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Hero ── */
.sg-home-hero {
    position: relative;
    padding: calc(88px + 2rem) 0 3rem;
    overflow: hidden;
    z-index: 10;
}

.sg-home-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 95, 109, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(255, 195, 113, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(46, 204, 113, 0.08), transparent 45%);
}

.sg-home-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.sg-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 95, 109, 0.12);
    border: 1px solid rgba(255, 95, 109, 0.35);
    margin-bottom: 1.25rem;
}

.sg-home-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-green);
    box-shadow: 0 0 10px var(--home-green);
    animation: sg-home-pulse 2s ease infinite;
}

@keyframes sg-home-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.sg-home-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.sg-home-hero__lead {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: #b8b8c0;
    max-width: 34rem;
    line-height: 1.65;
    margin: 0 0 1.75rem;
}

.sg-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sg-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    transition: transform 0.25s var(--home-ease), box-shadow 0.25s, background 0.25s;
}

.sg-home-btn:hover {
    transform: translateY(-3px);
}

.sg-home-btn--primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 12px 32px rgba(255, 95, 109, 0.35);
}

.sg-home-btn--ghost {
    background: var(--home-glass);
    border-color: var(--home-line);
    color: #fff;
    backdrop-filter: blur(12px);
}

.sg-home-btn--green {
    background: var(--home-green);
    color: #0a0c0e;
    box-shadow: 0 12px 28px rgba(46, 204, 113, 0.3);
}

.sg-home-btn--discord {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.35);
}

/* Hero visual */
.sg-home-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sg-home-logo-ring {
    position: relative;
    width: min(280px, 70vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.sg-home-logo-ring::before,
.sg-home-logo-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 95, 109, 0.25);
    animation: sg-home-spin 24s linear infinite;
}

.sg-home-logo-ring::after {
    inset: 12%;
    border-color: rgba(255, 195, 113, 0.2);
    animation-direction: reverse;
    animation-duration: 18s;
}

@keyframes sg-home-spin {
    to { transform: rotate(360deg); }
}

.sg-home-logo-ring img {
    width: 58%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 95, 109, 0.35));
    animation: sg-home-float 5s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes sg-home-float {
    from { transform: translateY(-6px); }
    to { transform: translateY(8px); }
}

.sg-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 360px;
}

.sg-home-stat {
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--home-glass);
    border: 1px solid var(--home-line);
    backdrop-filter: blur(14px);
}

.sg-home-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.sg-home-stat span {
    display: block;
    margin-top: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
}

/* ── Section head ── */
.sg-home-section {
    padding: 0 0 2.5rem;
    position: relative;
    z-index: 10;
}

.sg-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.sg-home-section-head h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.02em;
}

.sg-home-section-head p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Server cards (grid) ── */
.sg-home-server-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sc-server-card {
    display: flex;
    flex-direction: column;
    background: var(--home-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--home-line);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.35s var(--home-ease), box-shadow 0.35s, border-color 0.35s;
    margin: 0;
}

.sc-server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(46, 204, 113, 0.08);
}

.sc-server-card::before {
    display: none;
}

.sg-srv-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 108px;
    max-height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--home-line);
    background: #0a0a0c;
}

.sg-srv-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s var(--home-ease);
}

.sc-server-card:hover .sg-srv-banner__img {
    transform: scale(1.08);
}

.sg-srv-banner__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.88) 100%),
        linear-gradient(90deg, rgba(46, 204, 113, 0.12), transparent 40%, rgba(255, 95, 109, 0.08));
    pointer-events: none;
}

.sg-srv-banner__meta {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 1.1rem 14px;
}

.sg-srv-map {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.sg-srv-map > i {
    color: var(--primary);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.sg-srv-map-pretty {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
}

.sg-srv-count {
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #eee !important;
}

.sc-content {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1rem;
}

.sc-left {
    gap: 14px;
}

.sc-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.sc-title span {
    color: var(--primary);
}

.sc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--home-line);
    color: #aaa;
}

.sc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.sc-btn {
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.sc-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--home-line);
    color: #fff;
}

.sc-btn-copy {
    flex: 1;
    justify-content: center;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.25);
    color: #f39c12;
}

.sc-btn-copy:hover {
    background: #f39c12;
    color: #111;
}

.sc-btn-play {
    flex: 1;
    justify-content: center;
    background: var(--home-green);
    color: #0a0c0e;
}

.sc-btn-play:hover {
    background: #27ae60;
    color: #fff;
}

.sc-status-ring.online {
    background: var(--home-green);
    box-shadow: 0 0 12px var(--home-green);
}

/* ── Bento grid ── */
.sg-home-bento {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 1rem;
    padding-bottom: 1rem;
}

.sg-home-bento__main,
.sg-home-bento__side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* TikTok block */
.tt-promo-section {
    margin-bottom: 0;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.08) 0%, rgba(0, 242, 234, 0.06) 100%);
    border: 1px solid var(--home-line);
    backdrop-filter: blur(12px);
}

.tt-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.tt-title span {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tt-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.tt-btn-discord {
    background: #5865f2;
    color: #fff;
}

.tt-videos {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tt-video-card {
    width: 140px;
    height: 220px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--home-line);
    transition: transform 0.3s, border-color 0.3s;
}

.tt-video-card:hover {
    transform: scale(1.04);
    border-color: #ff0050;
}

.tt-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.tt-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s;
}

.tt-video-card:hover .tt-play-overlay { opacity: 1; }

/* VIP banner */
.upd-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(90deg, rgba(253, 29, 29, 0.12) 0%, rgba(131, 58, 180, 0.15) 55%, rgba(20, 23, 28, 0.9) 100%);
    border: 1px solid rgba(253, 29, 29, 0.25);
    transition: transform 0.25s, box-shadow 0.25s;
}

.upd-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(253, 29, 29, 0.15);
}

.sg-fb-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upd-icon {
    font-size: 2rem;
    color: #ff4d4d;
}

.upd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff4d4d, #8e44ad);
    color: #fff;
    margin-bottom: 6px;
}

.sg-fb-text h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-fb-text p {
    margin: 0;
    color: #bbb;
    font-size: 0.88rem;
    line-height: 1.5;
}

.upd-action {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, #fd1d1d, #8e44ad);
    color: #fff;
}

.sc-btn-copy.success-copy {
    background: var(--home-green) !important;
    color: #fff !important;
    border-color: var(--home-green) !important;
}

/* News + sidebar */
.sg-home-bottom {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1rem;
    padding-bottom: 4rem;
}

.sg-home-bottom .section-header h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    background: var(--home-glass);
    backdrop-filter: blur(16px);
    margin-bottom: 0;
}

.nc-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.3s;
    display: block;
}

.news-card:hover .nc-img {
    opacity: 1;
    transform: scale(1.02);
}

.nc-content {
    padding: 30px;
}

.nc-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

.nc-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.nc-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sidebar-box {
    border-radius: 20px;
    border: 1px solid var(--home-line);
    background: var(--home-glass);
    backdrop-filter: blur(16px);
    padding: 25px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-box:hover {
    transform: translateY(-3px);
}

.sidebar-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    box-shadow: 0 -5px 20px rgba(255, 195, 113, 0.4);
    opacity: 0.8;
}

.sb-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #ff5f6d;
    border-radius: 2px;
    box-shadow: 0 0 10px #ff5f6d;
}

.quick-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    color: #ccc;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.quick-link i {
    font-size: 1.2rem;
    color: #ff5f6d;
    min-width: 20px;
    text-align: center;
}

.quick-link:hover {
    background: #222;
    color: #fff;
    transform: translateX(5px);
    border-color: rgba(255, 95, 109, 0.35);
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    border-radius: 10px;
    transition: background 0.2s;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lb-left {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    margin-right: 10px;
}

.lb-rank {
    font-weight: 900;
    font-size: 1rem;
    color: #555;
    width: 30px;
    text-align: left;
    flex-shrink: 0;
}

.lb-row:nth-child(1) .lb-rank { color: #ffd700; }
.lb-row:nth-child(2) .lb-rank { color: #c0c0c0; }
.lb-row:nth-child(3) .lb-rank { color: #cd7f32; }

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #333;
    object-fit: cover;
    flex-shrink: 0;
}

.lb-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.lb-val {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.9rem;
    text-align: right;
    min-width: 60px;
    flex-shrink: 0;
}

/* ── Players modal (v3) ── */
.sg-pl-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--home-ease), visibility 0.35s;
}

.sg-pl-modal.active {
    opacity: 1;
    visibility: visible;
}

.sg-pl-modal__panel {
    width: min(920px, 100%);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(12, 12, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(46, 204, 113, 0.08) inset;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s var(--home-ease);
}

.sg-pl-modal.active .sg-pl-modal__panel {
    transform: translateY(0) scale(1);
}

.sg-pl-modal__hero {
    position: relative;
    height: clamp(120px, 22vw, 168px);
    overflow: hidden;
    flex-shrink: 0;
}

.sg-pl-modal__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sg-pl-modal__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.95) 100%);
}

.sg-pl-modal__hero-text h2 {
    margin: 4px 0 2px;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.sg-pl-modal__hero-text h2 span {
    color: var(--home-green);
}

.sg-pl-modal__server {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.sg-pl-modal__map {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.sg-pl-modal__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.35);
    color: #ddd;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    align-self: flex-start;
}

.sg-pl-modal__close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.sg-pl-modal__body {
    padding: 10px 12px 16px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sg-pl-modal__body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sg-pl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-pl-row {
    display: grid;
    grid-template-columns: 36px 44px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--home-ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
    animation: sgPlRowIn 0.45s var(--home-ease) both;
}

@keyframes sgPlRowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sg-pl-row:hover {
    transform: translateX(4px);
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.sg-pl-row__idx {
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
}

.sg-pl-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.sg-pl-row__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-pl-row__ping,
.sg-pl-row__time {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: #aaa;
    white-space: nowrap;
}

.sg-pl-row__ping i { color: var(--home-green); margin-right: 4px; }
.sg-pl-row__time i { color: #7eb8ff; margin-right: 4px; }

.sg-pl-empty,
.sg-pl-warn {
    text-align: center;
    padding: 36px 16px;
    color: #888;
    font-weight: 600;
}

.sg-pl-warn {
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.08);
    color: #ffd27a;
    font-size: 0.85rem;
    text-align: left;
}

@media (max-width: 640px) {
    .sg-pl-row {
        grid-template-columns: 28px 40px 1fr;
        grid-template-rows: auto auto;
    }

    .sg-pl-row__ping,
    .sg-pl-row__time {
        grid-column: 3;
    }

    .sg-pl-row__time {
        justify-self: start;
    }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .sg-home-bento,
    .sg-home-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sg-home-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sg-home-hero__lead { margin-left: auto; margin-right: auto; }
    .sg-home-hero__actions { justify-content: center; }
    .sg-home-server-grid { grid-template-columns: 1fr; }
    .sg-home-stats { max-width: none; }
}

@media (max-width: 768px) {
    .tt-videos {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .tt-video-card {
        width: 100% !important;
        height: 200px !important;
    }

    .tt-video-card:last-child {
        grid-column: span 2;
    }

    .upd-banner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .sg-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
