:root {
    --body-bg-color: #fff !important;
    --color-main: #4489FF !important;
    --color-main-light: #F3F2FC !important;
    --color-main-hover: #4489FF !important;
}

/**
 * 系统头部nav
 */
body[class^="index-plugins-video-index-"] .header-top,
body[class^="index-plugins-video-index-"] .top-nav-right {
    background-color: #232323;
    border-bottom-color: #303030;
}

body[class^="index-plugins-video-index-"] .top-nav-right {
    background: transparent;
    border: 0;
}

body[class^="index-plugins-video-index-"] .header-top a,
.header-top * {
    color: #FFFFFF;
}
.header-top .am-badge-danger {
    color: var(--color-badge-danger-text);
}

body[class^="index-plugins-video-index-"] .header-top ul.am-dropdown-content>li>a,
body[class^="index-plugins-video-index-"] .header-top ul.am-dropdown-content>li>a * {
    color: #333333;
}



/**
 * 头部
 */
.video-header .head-logo {
    max-height: 5rem;
}

.video-search-input .am-dropdown-content {
    width: 100%;
    min-width: 35rem;
    padding: 1.6rem;
    background: #2D313A;
    border-radius: 0.8rem;
    border: 0.1rem solid #565A62;
    right: auto;
}

.video-search-input .am-dropdown-content:before, .video-search-input .am-dropdown-content:after {
    border: 0;
}

@media (max-width: 480px) {
    .video-search-input .am-dropdown-content {
        min-width: calc(100vw - 7.4rem);
    }
}

.history-top {
    padding-bottom: 1.4rem;
}

.history-top-title {
    font-weight: 400;
    font-size: 1.4rem;
    color: #DDDDDD;
    line-height: 2rem;
    font-style: normal;
}

.clear-history {
    float: right;
    font-size: 1.2rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.search-keywords { 
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-keywords .item {
    position: relative;
    font-weight: 400;
    font-size: 1.4rem;
    color: #DDDDDD;
    line-height: 2rem;
    text-align: left;
    font-style: normal;
    padding: 0.3rem 1.8rem;
    background: #454650;
    border-radius: 0.2rem;
    cursor: pointer;
}

.search-keywords .item .remove {
    position: absolute;
    top: -0.7rem;
    right: -0.7rem;
    color: #999;
    display: none;
}

.search-keywords .item:hover .remove {
    display: block;
}

.hot-search ul {
    list-style: none;
    padding: 0;
}

.hot-search li {
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.7rem;
    font-style: normal;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.hot-search li:last-child {
    margin-bottom: 0rem;
}

.hot-search li .hot-num {
    display: inline-block;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    font-weight: 500;
    font-size: 1.4rem;
    color: #999999;
    line-height: 2rem;
    text-align: center;
    color: #fff;
}

.hot-search li a:hover {
    font-weight: bold;
}

/* 修改六边形样式 */
.hexagon-top {
    position: relative;
    width: 2rem;
    height: 1rem !important;
    border-radius: 0.1rem;
}

.hexagon-top::before,
.hexagon-top::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
}

.hexagon-top::before {
    bottom: 100%;
    border-bottom: 0.5rem solid #E93633;
}

.hexagon-top::after {
    top: 100%;
    border-top: 5px solid #E93633;
}

.hexagon-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.hexagon-top-1 {
    background: #E93633;
}

.hexagon-top-2 {
    background: #F5C242;
}

.hexagon-top-2::before {
    border-bottom: 0.5rem solid #F5C242;
}

.hexagon-top-2::after {
    border-top: 5px solid #F5C242;
}

.hexagon-top-3 {
    background: #F19F58;
}

.hexagon-top-3::before {
    border-bottom: 0.5rem solid #F19F58;
}

.hexagon-top-3::after {
    border-top: 5px solid #F19F58;
}
/* 热门搜索 */
.hot-search .hot-tabs {
    display: flex;
    margin: 1rem 0;
    overflow: hidden;
    padding-bottom: 0.6rem;
    overflow-x: auto;
    -webkit-tap-highlight-color: #3C3C3C !important;
}

.hot-search .hot-tabs::-webkit-scrollbar, .hot-search .hot-tabs::-webkit-scrollbar-track {
    background-color: #3C3C3C !important;
}

.hot-search .hot-tabs span {
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    padding-bottom: 0.5rem;
}

.hot-search .hot-tabs span:not(:last-child) {
    margin-right: 2rem;
}

.hot-search .hot-tabs span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DDDDDD;
    transition: width 0.5s ease;
}

.hot-search .hot-tabs span.active::after {
    width: 100%;
}

.hot-search .hot-tabs span.active {
    color: #DDDDDD;
}

.video-header {
    width: 100%;
    height: 100%;
    padding: 2rem 0;
    background: #232323;
}

.video-header-search { 
    width: 100%;
    max-width: 50rem;
    height: 4.4rem;
    background: #3C3C3C;
    border-radius: 2.2rem;
    border: 0.1rem solid #333333;
}

.video-header-search .input-clearout-submit {
    background: transparent;
}

.video-header-search .video-search-input { 
    flex: 1;
    height: 100%;
}

.video-header-search .video-search-input input { 
    width: 100%;
    height: 100%;
    border-top-left-radius: 2.2rem;
    border-bottom-left-radius: 2.2rem;
    padding-left: 2.3rem;
    background: #3C3C3C;
    outline: none;
    border: 0 !important;
    box-shadow: none;
    font-size: 1.4rem;
    color: #DDDDDD;
    line-height: 2rem;
}

.video-header-search input::placeholder  { 
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 2rem;
    font-style: normal;
}

.search-button {
    width: 9.5rem;
    height: 4.2rem;
    background: var(--color-main);
    border-radius: 0rem 2.2rem 2.2rem 0rem;
    font-weight: 400;
    font-size: 1.6rem;
    color: #FFFFFF;
    line-height: 2.2rem;
    font-style: normal;
    gap: 1rem;
    border: 0;
}

/* 视频列表 */
.video-content .video-list {
    margin-top: 2rem;
    width: 100%;
}
.video-list {
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 1;
}

.video-item {
    width: calc(25% - 2rem);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 95 / 64;
    object-fit: cover;
}
.video-item .video-item-content {
    padding: 1.3rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.video-item-content .title {
    font-weight: 500;
    font-size: 1.8rem;
    color: #333333;
    line-height: 2.5rem;
}

.video-item-content .meta {
    font-weight: 400;
    font-size: 1.4rem;
    color: #999999;
    line-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-item-content .meta span:last-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .video-item {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 500px) {
    .video-item-content .title {
        font-size: 1.6rem;
        line-height: 2rem;
    }
    .video-item-content .meta {
        font-size: 1.2rem;
    }
    .video-item .video-item-content {
        padding: 1rem 0.9rem 0.7rem 0.9rem;
    }
    .search-button {
        width: 8rem;
        gap: 0.5rem;
    }
}

@media only screen and (max-width: 640px) {
    .video-header-search {
        max-width: 100%;
    }
    .search-keywords .item .remove {
        display: block;
    }
}