.page {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
}

.topbar {
    --tab-unselected-opacity: 0.62;
    --color-on-surface: var(--phone-text);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.topbar .tabs {
    display: flex;
    gap: 20px;
}

.topbar .tab {
    font-size: 18px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    color: var(--color-on-surface);
    opacity: var(--tab-unselected-opacity);
    font-weight: 400;
}

.topbar .tab.active {
    opacity: 1;
    font-weight: 600;
    color: var(--color-on-surface);
}

.search {
    position: absolute;
    right: 14px;
    font-size: 18px;
    color: var(--muted-text);
    text-decoration: none;
}

.menu-scroll {
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

.menu-scroll::-webkit-scrollbar {
    height: 6px;
}

.menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.menu-scroll::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 900px) {
    .menu-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu-scroll::-webkit-scrollbar {
        display: none;
    }
}

.menu {
    display: inline-flex;
    padding: 10px;
    gap: 10px;
}

.menu-item {
    padding: 6px 10px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted-text);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.menu-item.active {
    color: var(--app-nav-active);
    background: var(--accent-weak);
}

.content {
    padding: 10px 10px 76px;
    flex: 1;
    background: var(--app-phone-bg);
}

.section {
    margin-bottom: 16px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--phone-text);
}

.section-sub {
    font-size: 11px;
    color: var(--accent);
    margin-left: 6px;
}

.change {
    font-size: 12px;
    color: var(--muted-text);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #2d3540 center/cover no-repeat;
    border-radius: 6px;
    overflow: hidden;
}

.video-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.video-ribbon--free {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.video-ribbon--vip {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.video-ribbon__text {
    position: absolute;
    top: 6px;
    right: -14px;
    width: 62px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 1.5px 0;
    transform: rotate(45deg);
    transform-origin: center;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.meta-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05));
}

.card-title {
    font-size: 12px;
    line-height: 1.45;
    color: var(--phone-text);
    margin: 4px 0 0;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-ad-wrap {
    padding: 12px 10px 10px;
}

.home-ad-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-ad-list::-webkit-scrollbar {
    display: none;
}

.home-ad-item {
    flex: 0 0 60px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.home-ad-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.home-ad-title {
    width: 60px;
    color: #000;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}