:root {
    --pink: #d98258;
    --pink-dark: #9f4436;
    --fox-gold: #f0c879;
    --fox-ink: #281821;
    --body: #f6f3ef;
    --text: #211b1d;
    --muted: #695f5e;
    --line: #ded6cf;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(240, 200, 121, .12), rgba(246, 243, 239, 0) 180px),
        var(--body);
    color: var(--text);
    font-family: Arial, "Microsoft Yahei", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    height: 72px;
    background:
        radial-gradient(circle at 12% 0, rgba(240, 200, 121, .30), transparent 30%),
        linear-gradient(90deg, var(--fox-ink), #8f4a52 48%, var(--pink));
    color: #fff;
    box-shadow: 0 8px 24px rgba(40, 24, 33, .10);
}

.header-inner {
    display: flex;
    align-items: center;
    width: 1200px;
    height: 72px;
    margin: 0 auto;
}

.menu-icon {
    display: none;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    position: relative;
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    padding-left: 26px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .16);
}

.brand-logo::before,
.brand-logo::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #fff 0 48%, rgba(255, 255, 255, .70) 49%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-logo::before {
    left: 0;
    transform: rotate(-18deg);
}

.brand-logo::after {
    left: 14px;
    transform: rotate(18deg);
}

.brand-domain {
    overflow: hidden;
    max-width: 220px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    font-weight: 800;
}

.top-nav a:hover {
    color: #fff;
}

.page-main {
    width: 1200px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

.topic-wrap {
    display: grid;
    gap: 8px;
    margin-bottom: 26px;
}

.topic-row {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 38px;
}

.topic-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink));
    color: #fff;
    font-weight: 900;
}

.topic-items {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    box-shadow: 0 1px 5px rgba(40, 24, 33, .16);
}

.topic-row.tall .topic-items {
    grid-template-rows: repeat(2, 37px);
}

.topic-items a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    color: var(--muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-items a:hover {
    color: var(--pink-dark);
}

.topic-items a::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 7px;
    width: 13px;
    height: 6px;
    border: 2px solid rgba(217, 130, 88, .20);
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 10px 0 0;
    opacity: 0;
    transition: opacity .16s ease;
}

.topic-items a:hover::after {
    opacity: 1;
}

.search-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 120px);
    gap: 8px;
    margin-bottom: 28px;
}

.search-strip form,
.search-strip > a {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
}

.search-strip form {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) 92px;
    align-items: center;
}

.search-strip strong {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 4px 0 0 4px;
    background: var(--pink);
    color: #fff;
}

.search-strip input {
    width: 100%;
    height: 42px;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
}

.search-strip button {
    height: 34px;
    margin-right: 5px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-strip > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 800;
}

.search-page {
    grid-template-columns: 1fr;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}

.module-grid a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 132px;
    overflow: hidden;
    border-radius: 4px;
    background: url("../../loading.svg") center / cover no-repeat;
    box-shadow: 0 1px 7px rgba(40, 24, 33, .18);
}

.module-grid a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(40, 24, 33, .22), rgba(40, 24, 33, 0) 66%),
        rgba(0, 0, 0, .05);
}

.module-grid a::before {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 1;
    width: 54px;
    height: 28px;
    border: 7px solid rgba(255, 255, 255, .74);
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 34px 0 0;
    transform: rotate(-12deg);
}

.module-grid span {
    position: relative;
    z-index: 1;
    padding-left: 14px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
}

.video-section {
    margin-bottom: 34px;
}

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

.section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.section-head a {
    color: var(--pink-dark);
    font-size: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 38px;
    row-gap: 26px;
}

.video-card {
    min-width: 0;
}

.video-card a {
    display: block;
}

.thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 22%, rgba(240, 200, 121, .34), transparent 30%),
        linear-gradient(135deg, #3a232b, var(--pink));
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    padding: 3px 5px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .65);
}

.thumb-meta span:first-child {
    padding: 3px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .55);
}

.video-card h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 6px 0 0;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.detail-box,
.play-box,
.player-wrap,
.empty {
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
}

.detail-box {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
}

.detail-cover {
    overflow: hidden;
    background: #e8e8e8;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1,
.playing-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-meta span,
.line-name,
.playlist a,
.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--muted);
}

.detail-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.play-box {
    padding: 12px 16px 16px;
}

.line-name {
    margin: 4px 0 10px;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink));
    color: #fff;
    font-weight: 900;
}

.playlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.playlist a:hover,
.playlist a.current,
.pager span {
    border-color: var(--pink);
    background: var(--pink);
    color: #fff;
}

.player-wrap {
    padding: 10px;
    background: var(--fox-ink);
}

.player-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.MacPlayer,
.MacPlayer table,
.MacPlayer iframe,
.MacPlayer video {
    width: 100% !important;
    height: 100% !important;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 28px;
}

.empty {
    padding: 30px 20px;
    color: var(--muted);
    text-align: center;
}

.site-foot {
    margin-top: 36px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
}

.site-foot p {
    margin: 0;
}

.contact-email {
    color: #5b2a1b;
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 1240px) {
    .header-inner,
    .page-main {
        width: calc(100% - 24px);
    }

    .video-grid {
        column-gap: 24px;
    }
}

@media (max-width: 760px) {
    body {
        background: #f7f7f7;
        font-size: 13px;
    }

    .site-header {
        height: 52px;
    }

    .header-inner {
        width: 100%;
        height: 52px;
        padding: 0 12px;
    }

    .menu-icon {
        display: inline-flex;
    }

    .brand {
        gap: 0;
        margin-left: 8px;
    }

    .brand-logo {
        font-size: 20px;
        padding-left: 20px;
    }

    .brand-logo::before,
    .brand-logo::after {
        top: -6px;
        width: 14px;
        height: 14px;
    }

    .brand-logo::after {
        left: 11px;
    }

    .brand-domain,
    .top-nav {
        display: none;
    }

    .page-main {
        width: 100%;
        padding: 0 0 28px;
    }

    .topic-wrap {
        gap: 6px;
        margin: 0 0 14px;
        padding: 8px;
    }

    .topic-row {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .topic-label {
        min-height: 54px;
        border-radius: 4px 0 0 4px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
    }

    .topic-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 0 4px 4px 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    }

    .topic-row.tall .topic-items {
        grid-template-rows: none;
    }

    .topic-items a {
        height: 27px;
        padding: 0 4px;
        font-size: 12px;
    }

    .search-strip {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 8px;
        margin-bottom: 18px;
    }

    .search-strip > a {
        display: none;
    }

    .search-strip form {
        grid-template-columns: 76px minmax(0, 1fr) 64px;
        min-height: 40px;
    }

    .search-strip input {
        height: 38px;
        font-size: 13px;
    }

    .search-strip button {
        height: 30px;
        font-size: 13px;
    }

    .video-section,
    .module-grid,
    .detail-box,
    .play-box,
    .player-wrap,
    .empty {
        width: calc(100% - 16px);
        margin-right: auto;
        margin-left: auto;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 18px;
    }

    .module-grid a {
        min-height: 82px;
    }

    .module-grid span {
        padding-left: 10px;
        font-size: 20px;
    }

    .section-head {
        height: 34px;
        margin-bottom: 7px;
    }

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

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 10px;
    }

    .video-card h3 {
        min-height: 34px;
        font-size: 13px;
    }

    .detail-box {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .detail-info h1,
    .playing-title {
        font-size: 20px;
    }
}
