body {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.navbar {
    width: 100vw;
    max-width: 100vw;
    background: rgba(30, 30, 30, 0.85);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1db954;
    letter-spacing: 2px;
    padding: 18px 0;
}

.navbar-links {
    display: flex;
    gap: 24px;
    max-width: 60vw;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.08rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.navbar-links a:hover {
    opacity: 1;
    color: #1db954;
}

header {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #b3b3b3;
    margin-bottom: 32px;
}

.search-bar {
    margin: 0 auto 32px auto;
    display: flex;
    justify-content: center;
}

.search-bar input {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 1.08rem;
    width: 260px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    margin-right: 8px;
    outline: none;
}

.search-bar input::placeholder {
    color: #b3b3b3;
}

.widget-buttons {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
    max-width: 900px;
}

.widget-btn {
    background: rgba(35,37,38,0.92);
    border-radius: 16px;
    padding: 18px 24px 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: border 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 2.5px solid #1db954;
    backdrop-filter: blur(2px);
}

.widget-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    filter: brightness(1.08);
}

.widget-btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--icon-bg, rgb(255, 0, 0));
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.widget-btn span {
    font-size: 1.18rem;
    font-weight: 600;
    color: #1db954;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
}

.widget-btn .desc {
    font-size: 0.98rem;
    color: #b3b3b3;
    text-align: center;
    margin-bottom: 2px;
}

.footer {
    margin-top: 8px;
    font-size: 1.08rem;
    opacity: 0.8;
    text-align: center;
    background: rgba(30,30,30,0.85);
    padding: 8px 0;
    border-top: 1px solid #222;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

main {
    width: 100%;
    max-width: 100vw;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    transform-origin: center center;
}

section:not(.active) {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(35,37,38,0.98);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    padding: 32px 28px;
    max-width: 95vw;
    width: 370px;
    text-align: center;
    animation: fadeIn 0.7s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#adModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,20,0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#adModal.hidden {
    display: none;
}

#adModal:not(.hidden) {
    display: flex;
}

@media (max-width: 1024px) {
    section {
        padding: 10px;
        zoom: 1;
    }
}

@media (max-width: 768px) {
    main {
        padding: 10px;
    }
    section {
        padding: 8px;
        zoom: 0.92;
    }
    h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 700px) {
    .widget-buttons {
        gap: 18px;
        padding: 0 8px;
    }
    .widget-btn {
        width: calc(100vw - 32px);
        max-width: 400px;
        padding: 24px 20px 16px 20px;
    }
    .widget-btn img {
        width: 80px;
        height: 80px;
    }
    .widget-btn span {
        font-size: 1.3rem;
    }
    .widget-btn .desc {
        font-size: 1.05rem;
    }
    .navbar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
        align-items: center;
    }
    .navbar-logo {
        font-size: 1.4rem;
        padding: 4px 0;
    }
    .navbar-links {
        gap: 12px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        max-width: 100%;
    }
    .navbar-links a {
        padding: 8px 20px;
        font-size: 1.05rem;
        flex: 1;
        text-align: center;
    }
    main {
        padding: 16px 8px;
        overflow-y: auto;
    }
    section {
        padding: 16px 8px;
    }
    .search-bar input {
        width: calc(100vw - 48px);
        max-width: 400px;
        font-size: 1.1rem;
        padding: 12px 18px;
    }
    .modal-content {
        width: calc(100vw - 32px);
        padding: 24px 16px;
    }
    #adModal > div {
        width: calc(100vw - 32px);
        max-width: 400px;
        padding: 32px 24px;
    }
    h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        margin-bottom: 16px;
    }
    .subtitle {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        font-size: 1.2rem;
    }
    .navbar-links a {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    .widget-btn {
        padding: 20px 16px 14px 16px;
    }
    .widget-btn img {
        width: 70px;
        height: 70px;
    }
    .widget-btn span {
        font-size: 1.15rem;
    }
    .widget-btn .desc {
        font-size: 0.95rem;
    }
    main {
        padding: 12px 6px;
    }
    section {
        padding: 12px 6px;
    }
}
