.top-ten-view,
.parties-view {
    width: 100%;
    padding: 4px 0 12px;
}

@media (min-width: 769px) {
    body[data-current-view='top10'] .content,
    body[data-current-view='parties'] .content {
        width: min(1120px, calc(100vw - 420px));
        max-width: 1120px;
    }

    body[data-current-view='top10'] .main-content,
    body[data-current-view='parties'] .main-content {
        width: 100%;
        max-width: none;
    }
}

.top-ten-panel,
.parties-panel {
    position: relative;
    overflow: hidden;
    padding: 20px 18px 22px;
    border: 1px solid rgba(120, 190, 255, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 213, 74, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(8, 19, 48, 0.96), rgba(38, 9, 34, 0.92));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(85, 180, 255, 0.14);
}

.top-ten-panel::before,
.parties-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.view-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}

.view-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 215, 106, 0.16);
    color: #ffe88e;
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.view-title {
    margin: 0;
    color: #fff6c8;
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: 1.65rem;
    line-height: 1.15;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.view-intro {
    margin: 0;
    color: #d6e2ff;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: left;
}

.top-ten-status {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(105, 215, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    color: #cbe4ff;
    font-size: 0.94rem;
    text-align: left;
}

.top-ten-status.is-error {
    border-color: rgba(255, 120, 140, 0.32);
    color: #ffc1ca;
}

.top-ten-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-ten-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(147, 196, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.16));
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-ten-item:hover,
.top-ten-item:focus-visible {
    border-color: rgba(255, 215, 106, 0.52);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), 0 0 18px rgba(255, 215, 106, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.top-ten-item.is-current {
    border-color: rgba(255, 109, 136, 0.56);
    box-shadow: 0 0 20px rgba(255, 109, 136, 0.16);
}

.top-ten-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 106, 0.22), rgba(84, 145, 255, 0.14));
    color: #ffe88e;
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.top-ten-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.top-ten-item-title {
    color: #fffdf6;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.top-ten-item-meta {
    color: #c9d8f8;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    body[data-current-view='top10'] .content,
    body[data-current-view='parties'] .content {
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    body[data-current-view='top10'] .content::-webkit-scrollbar,
    body[data-current-view='parties'] .content::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    body[data-current-view='top10'] .main-content,
    body[data-current-view='parties'] .main-content {
        width: min(calc(100vw - 22px), 720px);
        max-width: 720px;
        margin: 0 auto;
        padding: 16px 0 24px;
        min-height: 0;
    }

    .top-ten-view,
    .parties-view {
        width: 100%;
        max-width: 100%;
    }

    .top-ten-panel,
    .parties-panel {
        padding: 16px 12px 18px;
        border-radius: 16px;
    }

    .view-title {
        font-size: 1.42rem;
    }

    .top-ten-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 12px 13px;
    }

    .top-ten-rank {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}