:root {
    --bg: #0f1115;
    --header: #0b0c10;
    --sidebar: #15171d;
    --content: #121419;
    --card: #1c1f26;
    --text: #e6e6e6;
    --muted: #9aa3ad;
    --accent: #4da3ff;
    --tag: #585a5d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, Arial;
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    height: 70px;
    background: var(--header);
}
.search-box{
    position:relative;
}
/* 按钮 */
.search-icon{
    position:absolute;
    right:4px;
    top:50%;
    transform:translateY(-50%);
    width:30px;
     font-size:14px;
    border:none;
    background:transparent;
    color:#aaa;

    cursor:pointer;
}

/* hover效果 */
.search-icon:hover{
    color:#fff;
}

/* focus */
.search:focus{
    outline:none;
    border-color:#4da3ff;
}
.h-top {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 600;
}

.logo img {
    height: 40px;
    display: block;
}

.search {
    width: 260px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: var(--card);
    color: white;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1200px;
    margin: auto;
}

.sidebar {
    padding: 30px;
    min-height: calc(100vh - 70px);
}

.avatar-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.avatar {
    width: 100%;
}
.topic{
    max-width: 1200px;
    margin: auto;
}
.role {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .7);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color:var(--text);
}

.name {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-menu {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: .2s;
    background: var(--text);
}

.profile-menu a:hover {
    background: var(--card);
    color: white;
}

span.e-name {
   margin-top: 8px;
   font-size: 1rem;
}
.info-title {
    font-size: 1em;
    margin: 14px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.info-title i {
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background: var(--text);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin: 5px;
}
.social-links{
    color:var(--text);
}
.meta div {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: 8px;
    transition: .2s;
}

.social-links a:hover {
    background: var(--accent);
}

.content {
    padding: 20px;
    min-height: calc(100vh - 70px);
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.gallery {
    column-count: 4;
    column-gap: 16px;
}

.gallery img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
}

.gallery img:hover {
    transform: scale(1.03);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.work-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
}

.work-card img {
    width: 100%;
}

.work-card h3 {
    margin: 0;
    padding: 12px;
    font-size: 16px;
}

.i-video {
    height: 200px;
}

.i-video:hover .play-btn {
    background: #ff2c55;
    transform: translate(-50%, -50%) scale(1.1);
}

.i-video-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.video-grid {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-height: 220px;
}

.video-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: .2s;
}

.video-card:hover .play-button {
    background: #ff2c2c;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card iframe {
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 10px;
}

footer {
    background: var(--header);
    padding: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.section {
    margin-bottom: 60px;
}

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

.section-header a,
.section-head a {
    font-size: 13px;
    color: #999;
}

.section-head h2 {
    font-size: 22px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.image-grid img {
    width: 100%;
    border-radius: 6px;
}

.work-title {
    padding: 6px 8px 0;
    font-weight: 500;
}

.work-meta {
    padding: 0 8px 8px;
    font-size: 12px;
    color: #777;
}

.people-card {
    position: relative;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.people-card img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

.people-card div {
    text-align: center;
    font-size: 1em;
    margin-top: 6px;
    font-weight: 600;
}

.info-list {
    margin-top: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9em;
}

.info-label {
    width: 80px;
    color: var(--bg);
    flex-shrink: 0;
}

.info-value {
    color: var(--bg);
    font-weight: 500;
    flex: 1;
}

.works-table {
    margin-top: 14px;
}

.works-head {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 0;
    font-size: 12px;
    color: #222;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
}

.work-item {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 0;
    font-size: 14px;
    align-items: center;
    border-bottom: 1px solid #1e1e1e;
    transition: background .15s;
}
span.num{
    text-align: center;
}
.work-item:hover {
    background: #1a1a1a;
    color:var(--text);
}

.work-item .code {
    font-weight: 600;
}

.work-item .date {
    font-size: 13px;
}

.work-item .duration,
.work-item .runtime {
    font-size: 13px;
}

.work-item .studio {
    font-size: 13px;
}

.code {
    letter-spacing: 0.4px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-num,
.page-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #bbb;
    background: #1a1a1a;
    transition: 0.2s;
}

.page-num:hover,
.page-btn:hover {
    background: #333;
    color: #fff;
}

.page-num.active {
    background: #ff2c55;
    color: #fff;
    font-weight: 600;
}

#viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#viewer img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.pic-item img {
    cursor: pointer;
}

.v-b {
    max-width: 100%;
    min-width: 100%;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    cursor: pointer;
    transition: .25s;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .35s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .6);
}

.card:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 1em;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    color:var(--text);
}

.duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, .7);
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
}

.video {
    aspect-ratio: 4/3;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: .25s;
}

.video:hover .play-btn {
    background: #ff2c55;
    transform: translate(-50%, -50%) scale(1.1);
}

.video:hover img {
    transform: scale(1.08);
}

.people {
    aspect-ratio: 3/4;
}

.igallery {
    aspect-ratio: 4/5;
    column-gap: 16px;
}

.gallery-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10;
}

.load {
    margin-top: 40px;
}


.movie-table{
    display: flex;
    gap: 14px;
    flex-wrap:wrap;
    margin-right:-14px;
}
.movie-item {
    width: calc(100% / 5 - 14px);
}
.work-card{
    width:100%;
}

.work-card a{
    display:block;
    color:#fff;
    text-decoration:none;
}

/* 海报 */
.poster{
    position:relative;
    overflow:hidden;
    border-radius:8px;
    min-height: 231px;
}

.poster img{
    width:100%;
    display:block;
    transition:transform .35s ease;
    object-fit: cover;
    min-height: 231px;
}

/* hover 放大 */
.work-card:hover img{
    transform:scale(1.08);
}

/* 评分角标 */
.rating{
    position:absolute;
    top:8px;
    right:8px;

    background:rgba(0,0,0,.75);
    color:#ffd700;

    font-size:12px;
    font-weight:600;

    padding:4px 6px;
    border-radius:6px;
}

/* 信息区 */
.info{
    padding:8px 4px;
}

/* 标题 */
.title{
    font-size:14px;
    font-weight:600;

    line-height:1.4;
    margin-bottom:4px;

    /* 超出省略 */
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* 元信息 */
.meta{
    font-size:12px;
    color:#aaa;
    display:flex;
    justify-content:space-between;
    flex-direction: column;
}
.meta span{
    padding:3px 0;
}
#load-more {
    display: inline-block;
    padding: 10px 28px;
    background: var(--muted);
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: .25s;
    border: 1px solid #2a2f38;
    cursor:pointer;
}

#load-more:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}

#load-more i {
    margin-right: 6px;
}

.c-h {
    padding: 15px;
    border-radius: 15px;
    background: #f5f6f8;
    margin-bottom: 20px;
}

.c-h h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #222;
}

.c-h p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
}

.v-b {
    width: 100%;
    height: 500px;
}
@media (max-width: 900px) {
    .layout{
        display: block;
    }
    .layout {
        grid-template-columns: 1fr;
    }
    .gallery {
        column-count: 2;
    }
     .grid {
        grid-template-columns: repeat(3, 1fr)!important;
    }
    .movie-item {
        width: calc(100% / 4 - 14px);
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 0 20px;
    }
    .search {
        width: 160px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr)!important;
    }
    .container {
        max-width: 100%!important;
        padding: 20px!important;
    }
    .movie-item{
        width:calc(100%/3 - 14px);
    }
}
@media (max-width: 400px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .movie-item{
        width:calc(100%/2 - 14px);
    }
    
}