/* ============================================
   Template 4 - PC - Dark Cyber Neon Theme
   ============================================ */

:root {
    --bg-primary: #080818;
    --bg-secondary: #0c0c22;
    --bg-card: #0f0f2a;
    --bg-card-hover: #161636;
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --gradient-main: linear-gradient(135deg, #00d4ff, #8b5cf6);
    --gradient-hover: linear-gradient(135deg, #00b8e0, #7c3aed);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(0, 212, 255, 0.15);
    --border-hover: rgba(0, 212, 255, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --header-h: 64px;
    --container-width: 1240px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--accent-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* ============ Container ============ */
.ny-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Header ============ */
.ny-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(8, 8, 24, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.ny-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.ny-logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.ny-logo:hover { opacity: .85; }
.ny-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0; /* 避免 flex 子项把搜索框挤出可点击区域 */
}
.ny-nav a {
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}
.ny-nav a:hover,
.ny-nav a.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}
.ny-nav a.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.12);
}
.ny-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    flex-shrink: 0;
    position: relative;
    z-index: 2; /* 避免窄屏下被 flex 导航区域盖住导致点击无反应 */
}
.ny-search:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}
.ny-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 16px;
    width: 200px;
    font-size: 13px;
}
.ny-search input::placeholder { color: var(--text-muted); }
.ny-search button {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity .2s;
}
.ny-search button:hover { opacity: .85; }

/* ============ Main Layout ============ */
.ny-main {
    margin-top: var(--header-h);
    padding: 24px 0;
}
.ny-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}
.ny-content { flex: 1; min-width: 0; }
.ny-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ============ Section / Card ============ */
.ny-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.ny-section-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ny-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ny-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--gradient-main);
    border-radius: 2px;
}
.ny-section-more {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ny-section-more:hover { color: var(--accent-cyan); }
.ny-section-body { padding: 20px; }

/* ============ Video Card Grid ============ */
.ny-vodlist {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: start;
}
.ny-vodlist-4 { grid-template-columns: repeat(4, 1fr); }
.ny-vodlist-5 { grid-template-columns: repeat(5, 1fr); }
.ny-vodlist-6 { grid-template-columns: repeat(6, 1fr); }
.ny-vodlist-8 { grid-template-columns: repeat(8, 1fr); }

/* min-width:0 防止 grid item 被长文本（演员名等）撑宽，导致列宽不一致 */
.ny-vod-item {
    min-width: 0;
    overflow: hidden;
}
.ny-vod-thumb {
    position: relative;
    padding-top: 140%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a1a3a;
    display: block;
}
.ny-vod-thumb img,
.ny-vod-thumb-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform .4s;
}
.ny-vod-thumb:hover img,
.ny-vod-thumb:hover .ny-vod-thumb-bg { transform: scale(1.06); }
.ny-vod-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,24,.85) 0%, transparent 50%);
    pointer-events: none;
}
.ny-vod-badge {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    background: rgba(8,8,24,.75);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.ny-vod-badge-top {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    background: var(--gradient-main);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.ny-vod-title {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}
.ny-vod-title a { color: inherit; }
.ny-vod-title a:hover { color: var(--accent-cyan); }
.ny-vod-sub {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
}
.ny-vod-sub a { color: inherit; }
.ny-vod-sub a:hover { color: var(--text-secondary); }

/* ============ Carousel / Banner ============ */
.ny-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1a3a;
}
.ny-banner-slides { position: relative; padding-top: 50%; }
.ny-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s;
}
.ny-banner-slide.active { opacity: 1; }
.ny-banner-slide a {
    display: block;
    width: 100%; height: 100%;
    position: relative;
}
.ny-banner-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(8,8,24,.9), transparent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.ny-banner-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.ny-banner-dot {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s;
}
.ny-banner-dot.active { width: 20px; background: var(--accent-cyan); }

/* ============ Quick Nav Icons ============ */
.ny-quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.ny-quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all .2s;
    color: var(--text-secondary);
    font-size: 13px;
}
.ny-quick-nav-item:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}
.ny-quick-nav-icon {
    width: 40px; height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ============ Genre Tags ============ */
.ny-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
}
.ny-tag {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all .2s;
}
.ny-tag:hover, .ny-tag.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

/* ============ Filter Bar ============ */
.ny-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.ny-filter-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    flex-wrap: wrap;
    gap: 8px;
}
.ny-filter-row:last-child { border-bottom: none; }
.ny-filter-label {
    color: var(--text-muted);
    font-size: 12px;
    width: 56px;
    flex-shrink: 0;
}
.ny-filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ny-filter-item {
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all .2s;
}
.ny-filter-item:hover { color: var(--accent-cyan); }
.ny-filter-item.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============ Rank List ============ */
.ny-rank-list { }
.ny-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ny-rank-item:last-child { border-bottom: none; }
.ny-rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
    color: var(--text-muted);
}
.ny-rank-num.top1 { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.ny-rank-num.top2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.ny-rank-num.top3 { background: linear-gradient(135deg, #f97316, #b45309); color: #fff; }
.ny-rank-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ny-rank-name a { color: inherit; }
.ny-rank-name a:hover { color: var(--accent-cyan); }
.ny-rank-info {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============ Media List (Sidebar) ============ */
.ny-media-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ny-media-item:last-child { border-bottom: none; }
.ny-media-thumb {
    width: 64px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a3a;
    display: block;
}
.ny-media-thumb-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .3s;
}
.ny-media-thumb:hover .ny-media-thumb-img { transform: scale(1.08); }
.ny-media-detail { flex: 1; min-width: 0; }
.ny-media-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}
.ny-media-name a { color: inherit; }
.ny-media-name a:hover { color: var(--accent-cyan); }
.ny-media-meta {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
}
.ny-media-meta a { color: var(--text-muted); }
.ny-media-meta a:hover { color: var(--text-secondary); }

/* ============ Content Detail Page ============ */
.ny-detail-wrap {
    display: flex;
    gap: 28px;
    padding: 20px;
}
.ny-detail-cover {
    width: 180px;
    flex-shrink: 0;
}
.ny-detail-cover-img {
    width: 100%;
    padding-top: 140%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #1a1a3a;
    display: block;
}
.ny-detail-cover-img img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ny-detail-info { flex: 1; }
.ny-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}
/* Star Rating */
.ny-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ny-stars-track {
    position: relative;
    width: 100px;
    height: 16px;
}
.ny-stars-track::before {
    content: '★★★★★';
    color: rgba(255,255,255,.15);
    font-size: 16px;
    letter-spacing: 2px;
    position: absolute;
}
.ny-stars-fill {
    position: absolute;
    top: 0; left: 0;
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
}
.ny-stars-fill::before { content: '★★★★★'; }
.ny-stars-score {
    font-size: 20px;
    font-weight: 700;
    color: #f59e0b;
}
.ny-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 14px;
}
.ny-detail-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}
.ny-detail-meta-item span { color: var(--text-muted); }
.ny-detail-meta-item a { color: var(--accent-cyan); }
.ny-detail-meta-item a:hover { color: #fff; }
.ny-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.ny-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
    white-space: nowrap;
}
.ny-btn-primary {
    background: var(--gradient-main);
    color: #fff;
}
.ny-btn-primary:hover { opacity: .85; color: #fff; }
.ny-btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.ny-btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.ny-platform-links { display: flex; align-items: center; gap: 10px; }
.ny-platform-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
    transition: all .2s;
}
.ny-platform-link.tencent { border-color: #0080ff; color: #0080ff; }
.ny-platform-link.tencent:hover { background: #0080ff; color: #fff; }
.ny-platform-link.iqiyi { border-color: #00C851; color: #00C851; }
.ny-platform-link.iqiyi:hover { background: #00C851; color: #fff; }
.ny-platform-link.youku { border-color: #0066ff; color: #0066ff; }
.ny-platform-link.youku:hover { background: #0066ff; color: #fff; }
.ny-platform-link.mangguo { border-color: #fbbf24; color: #fbbf24; }
.ny-platform-link.mangguo:hover { background: #fbbf24; color: #fff; }

/* ============ Playlist ============ */
.ny-playlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    max-height: 240px;
    overflow-y: auto;
}
.ny-playlist-item {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .2s;
    white-space: nowrap;
}
.ny-playlist-item:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.ny-playlist-item.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

/* ============ Intro / Detail Text ============ */
.ny-intro {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 20px;
}
.ny-intro p { margin-bottom: 1em; text-indent: 2em; }

/* ============ Pagination ============ */
.ny-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
}
.ny-page-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all .2s;
    padding: 0 8px;
}
.ny-page-item:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.ny-page-item.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}
.ny-page-item.disabled { opacity: .4; pointer-events: none; }

/* ============ People Profile ============ */
.ny-profile-wrap {
    display: flex;
    gap: 28px;
    padding: 20px;
}
.ny-profile-avatar {
    width: 160px;
    flex-shrink: 0;
}
.ny-profile-avatar-img {
    width: 100%;
    padding-top: 125%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #1a1a3a;
    border: 2px solid var(--border-color);
    display: block;
}
.ny-profile-avatar-img img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ny-profile-info { flex: 1; }
.ny-profile-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.ny-profile-meta-item {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13px;
}
.ny-profile-meta-item:last-child { border-bottom: none; }
.ny-profile-meta-label { color: var(--text-muted); width: 72px; flex-shrink: 0; }
.ny-profile-meta-val { color: var(--text-secondary); }

/* ============ Role grid (TV / Film detail) ============ */
.ny-role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 4px 0 8px;
}
@media (max-width: 1024px) {
    .ny-role-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .ny-role-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.ny-role-card {
    display: block;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 10px 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.ny-role-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.ny-role-card--static {
    cursor: default;
    pointer-events: none;
}
.ny-role-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 118%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #12122a;
    margin-bottom: 8px;
}
.ny-role-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ny-role-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
a.ny-role-card .ny-role-card-name { color: var(--text-primary); }
a.ny-role-card:hover .ny-role-card-name { color: var(--accent-cyan); }
.ny-role-card-actor {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* ============ 侧栏角色（与模板1一致：2 列 × 最多 4 行，勿加 clearfix） ============ */
.ny-sidebar-roles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
    align-content: start;
}
.ny-sidebar-roles__item {
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    overflow: hidden;
}
.ny-sidebar-roles__link,
.ny-sidebar-roles__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 5px;
    color: var(--text-primary);
    text-decoration: none;
    min-height: 100%;
    box-sizing: border-box;
    font-size: 12px;
}
.ny-sidebar-roles__link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.ny-sidebar-roles__thumb {
    flex-shrink: 0;
    width: 34px;
    height: 46px;
    border-radius: 3px;
    overflow: hidden;
    background: #12122a;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.ny-sidebar-roles__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ny-sidebar-roles__meta {
    flex: 1;
    min-width: 0;
}
.ny-sidebar-roles__name {
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}
.ny-sidebar-roles__link:hover .ny-sidebar-roles__name {
    color: var(--accent-cyan);
}
.ny-sidebar-roles__actor {
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.25;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ Text List (news/rank simple) ============ */
.ny-text-list { }
.ny-text-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13px;
}
.ny-text-item:last-child { border-bottom: none; }
.ny-text-item-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
    flex-shrink: 0;
}
.ny-text-item a {
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ny-text-item a:hover { color: var(--accent-cyan); }

/* ============ News List ============ */
.ny-news-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ny-news-item:last-child { border-bottom: none; }
.ny-news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}
.ny-news-title a { color: inherit; }
.ny-news-title a:hover { color: var(--accent-cyan); }
.ny-news-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ny-news-actions { display: flex; gap: 10px; }
.ny-btn-sm {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    transition: all .2s;
}
.ny-btn-sm.primary {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}
.ny-btn-sm.default {
    border-color: var(--border-color);
    color: var(--text-muted);
}
.ny-btn-sm.default:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ============ Special (Hot Topic) ============ */
.ny-special-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ny-special-item {
    position: relative;
    padding-top: 60%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a1a3a;
    display: block;
}
.ny-special-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s;
}
.ny-special-item:hover .ny-special-item-bg { transform: scale(1.06); }
.ny-special-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,24,.8) 0%, transparent 60%);
}
.ny-special-item-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ============ Rich Content ============ */
.ny-rich-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}
.ny-rich-content p { margin-bottom: 1.2em; text-indent: 2em; }
.ny-rich-content img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* ============ Friend Links ============ */
.ny-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
}
.ny-link-item {
    padding: 4px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all .2s;
}
.ny-link-item:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============ Footer ============ */
.ny-footer {
    margin-top: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.ny-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
}
.ny-footer-inner a { color: var(--text-muted); }
.ny-footer-inner a:hover { color: var(--accent-cyan); }
.ny-footer-unified{display:flex;flex-direction:column;align-items:center;max-width:720px;margin:0 auto}
.ny-footer-brand{font-size:13px;line-height:1.75}
.ny-footer-brand a{font-weight:600}
.ny-footer-sep{margin:0 .4em;opacity:.45}
.ny-footer-domain{opacity:.85}
.ny-footer-disclaimer{margin-top:14px;padding-top:14px;border-top:1px solid var(--border-color);font-size:12px;line-height:1.8;color:var(--text-muted);max-width:100%}
.ny-footer-disclaimer a{color:var(--accent-cyan)}

/* ============ Index Layout ============ */
.ny-index-top {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    margin-bottom: 20px;
}

/* 热播区块：左侧榜单 + 右侧大卡片网格 */
.ny-hot-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}
.ny-hot-rank {
    min-width: 0;
}
.ny-hot-grid {
    min-width: 0;
}

/* ============ Utility ============ */
.ny-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny-mt16 { margin-top: 16px; }
.ny-mt8 { margin-top: 8px; }

/* ============ Animation ============ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ny-section { animation: fadeIn .3s ease both; }
