* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f4f4f4;
    color: #333;
    font: 14px/1.7 Arial, "Microsoft YaHei", sans-serif;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #f00;
    text-decoration: underline;
}

img {
    max-width: 100%;
    border: 0;
}

.wp {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
}

.header {
    background: #fff;
    border-top: 4px solid #e60012;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 116px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 64px;
    background: #e60012;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
}

.logo:hover {
    color: #fff;
    text-decoration: none;
}

.header-right {
    flex: 1;
    min-width: 0;
}

.top-links {
    margin-bottom: 10px;
    color: #888;
}

.top-links a {
    margin-right: 18px;
    color: #666;
}

.search {
    display: flex;
    max-width: 720px;
    height: 42px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 2px solid #e60012;
    border-right: 0;
    padding: 0 14px;
    color: #555;
    font-size: 14px;
    outline: 0;
}

.search button {
    width: 118px;
    border: 0;
    background: #e60012;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.site-note {
    margin-top: 10px;
    color: #777;
    font-size: 13px;
}

.nav {
    background: #222;
}

.nav .wp {
    display: flex;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 12px 14px;
    color: #fff;
}

.nav a:hover {
    background: #e60012;
    text-decoration: none;
}

.adbar {
    padding: 12px 0;
    background: #fff;
}

.adbar .wp {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(135deg, #f7f7f7, #f7f7f7 8px, #efefef 8px, #efefef 16px);
    border: 1px solid #e5e5e5;
    color: #888;
}

.main {
    padding: 20px 0 30px;
}

.layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
}

.sidebar,
.content,
.details {
    min-width: 0;
}

.rank-box,
.content,
.details {
    background: #fff;
    border: 1px solid #ddd;
}

.rank-box h2 {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    background: #f8f8f8;
    color: #333;
    font-size: 18px;
}

.rank-box ol {
    list-style: none;
    margin: 0;
    padding: 8px 12px 12px;
}

.rank-box li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #ddd;
}

.rank-box li:last-child {
    border-bottom: 0;
}

.rank-box li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #999;
    color: #fff;
    font-size: 12px;
}

.rank-box li:nth-child(-n+3) > span {
    background: #e60012;
}

.rank-box strong {
    color: #f00;
    font-weight: 700;
}

.rank-box em {
    margin-left: 4px;
    color: #666;
    font-style: normal;
}

.rank-box small {
    color: #777;
}

.crumb {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    background: #f8f8f8;
    color: #666;
}

.notice,
.empty {
    margin: 16px;
    padding: 12px 14px;
    background: #fff8f8;
    border: 1px solid #ffd6d6;
    color: #666;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 14px;
    gap: 16px 18px;
}

.movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    min-height: 178px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #ddd;
}

.poster {
    display: block;
    width: 120px;
    height: 168px;
    background: #eee;
    overflow: hidden;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 20px;
    font-weight: 700;
}

.movie-copy {
    min-width: 0;
}

.movie-copy h3 {
    margin: -2px 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-copy h3 a {
    color: #f00;
}

.movie-copy p {
    height: 102px;
    margin: 0 0 7px;
    overflow: hidden;
    color: #555;
}

.meta {
    display: block;
    color: #777;
    font-size: 13px;
}

.meta a {
    margin-left: 8px;
    color: #f00;
}

.pages {
    padding: 16px 14px 20px;
    text-align: center;
    font-size: 16px;
}

.pages a,
.pages b,
.pages span {
    display: inline-block;
    margin: 0 3px 6px;
    padding: 3px 8px;
}

.pages a {
    border: 1px solid #ddd;
    background: #fff;
}

.pages b {
    color: #e60012;
}

.single {
    max-width: 1000px;
}

.details {
    padding-bottom: 18px;
}

.detail-head {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.detail-poster {
    width: 170px;
    max-height: 240px;
    object-fit: cover;
    background: #eee;
}

.detail-title {
    min-width: 0;
}

.detail-title h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: 26px;
    line-height: 1.35;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #666;
}

.text-block,
.download-box,
.related,
.tip {
    margin: 0 20px;
    padding: 18px 0;
    border-bottom: 1px dashed #ddd;
}

.text-block p {
    margin: 0 0 10px;
}

.text-block h2,
.download-box h2,
.related h2 {
    margin: 10px 0 12px;
    color: #f00;
    font-size: 20px;
}

.movie-facts {
    margin: 0 0 14px;
}

.movie-facts div {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 8px;
    margin-bottom: 5px;
}

.movie-facts dt,
.movie-facts dd {
    margin: 0;
}

.download-box p {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.download-box a {
    color: #0055aa;
}

.download-widget-wrap {
    margin-top: 14px;
}

.download-widget-wrap iframe {
    display: block;
    width: 100%;
    min-height: 200px;
    border: 0;
}

.download-widget-wrap iframe.is-modal-active {
    position: relative;
    z-index: 9999;
}

.download-widget-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

.related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related li::before {
    content: ">";
    margin-right: 6px;
    color: #e60012;
}

.tip {
    border-bottom: 0;
    color: #777;
}

.footer {
    padding: 24px 0;
    background: #333;
    color: #aaa;
    text-align: center;
    font-size: 13px;
}

.footer p {
    margin: 4px 0;
}

@media (max-width: 900px) {
    .header-inner,
    .detail-head {
        display: block;
    }

    .logo {
        margin: 16px 0;
    }

    .layout,
    .movie-grid,
    .related ul {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .movie-card {
        grid-template-columns: 96px 1fr;
    }

    .poster {
        width: 96px;
        height: 136px;
    }

    .movie-copy p {
        height: 78px;
    }

    .detail-poster {
        width: 150px;
        margin-bottom: 12px;
    }
}

@media (max-width: 560px) {
    .wp {
        width: calc(100% - 16px);
    }

    .search {
        height: auto;
    }

    .search input,
    .search button {
        height: 40px;
    }

    .search button {
        width: 94px;
    }

    .nav a {
        padding: 10px 9px;
        font-size: 13px;
    }

    .movie-card {
        grid-template-columns: 82px 1fr;
        gap: 10px;
    }

    .poster {
        width: 82px;
        height: 116px;
    }

    .movie-copy h3 {
        font-size: 15px;
    }

    .movie-copy p {
        height: 54px;
    }

    .detail-title h1 {
        font-size: 22px;
    }

    .movie-facts div {
        display: block;
    }
}
