@import "font.css";
@import "../font/iconfont.css";

* {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    font-family: 'UKIJ Tor';
    box-sizing: border-box;
    font-style: normal;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 14px;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: #FFFFFF;
}

img {
    vertical-align: middle;
    max-width: 100%;
}

body {
    background: #F5F5F5;
}

.bg-white {
    background: #fff;
}

.border-radius {
    border-radius: 5px;
}

.margin {
    margin: 10px;
}

#headers {
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

#headers .logo {
    width: 50%;
    text-align: right;
    font-family: Shirkhan Egme;
}

#headers .search {
    width: 90%;
    background: #eee;
    border-radius: 7px;
    height: 35px;
    overflow: hidden;
}

#headers .search form {
    position: relative;
}

#headers .search input {
    width: 100%;
    padding-left: 35px;
    height: 35px;
    background: none;
    font-size: 12px;
    text-align: right;
    padding-right: 10px;
}

#headers .search button {
    position: absolute;
    left: 0;
    top: 0;
    height: 35px;
    width: 35px;
    text-align: center;
}

.container {
    margin: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.nav_category {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* iOS流畅滚动 */
    scrollbar-width: none; /* Firefox隐藏滚动条 */
    gap: 10px;
    flex-direction: row-reverse;
    margin-bottom: 0;
}

/* 隐藏Chrome/Safari滚动条 */
.nav_category::-webkit-scrollbar {
    display: none;
}

/* 导航链接样式 */
.nav_category a {
    display: inline-block;
    padding: 0 16px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 5px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 防止flex压缩 */
    height: 30px;
    line-height: 30px;
}

/* 激活状态 */


.nav_lang {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
}

.nav_lang a {
    width: 35%;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
}

.nav_category a.active, .nav_lang a.active {
    color: #fff;
    background-color: #F44336;
    font-weight: 500;
}


.titles {
    padding: 10px;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    align-items: center;
}

.titles i {
    height: 25px;
    width: 25px;
    text-align: center;
    line-height: 25px;
    background: #f44336;
    border-radius: 5px;
    color: #fff;
}

.titles span {
    font-size: 12px;
}


.result {
    display: flex;
    flex-direction: column;
}

.result .item {
    background: #fff;
    margin-top: 10px;
    padding: 10px;
    max-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.result .item .result_item_info .num {
    width: 30px;
    background: #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    height: 30px;
}

.result .item:nth-child(1) .result_item_info .num {
    background: #03A9F4;
}

.result .item:nth-child(2) .result_item_info .num {
    background: #00BCD4;
}

.result .item:nth-child(3) .result_item_info .num {
    background: #4CAF50;
}

.result .item .result_item_info {
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.result .item .title {
    height: 30px;
    line-height: 35px;
}

.result .item .content {
    font-size: 12px;
    margin-top: 5px;
    overflow: hidden;
    color: #999;
    max-height: 100px;
    line-height: 20px;
    padding-bottom: 5px;
    text-align: right;
    direction: rtl;
}

/* 加载中样式 */
.infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #666;
    transition: opacity 0.3s;
}

.loader-spinner {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.load-more-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #e0e0e0;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/** 播放器 **/

.player_header {
    background: #fff;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.player_header .title {
    width: calc(100% - 40px);
    text-align: center;
    font-family: Shirkhan Egme;
}

.player_header .home {
    font-size: 20px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

#player {
    height: 250px;
    background: #fff;
    border-radius: 5px;
}

.refresh {
    background: #fff;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    gap: 10px;
}

.refresh i {
    font-size: 20px;
}

.refresh:active i {
    animation: spin 1s linear infinite;
    color: #f44336;
}

.refresh:active {
    color: #f44336;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.player_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.player_nav .item {
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    gap: 15px;
}

.player_nav .item i {
    font-size: 20px;
    height: 30px;
    line-height: 30px;
}

.player_nav .item span {
    font-size: 12px;
}

.player_vip_message {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.player_vip_message .iconfont {
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    font-size: 40px;
    color: #f44436;
}

.player_vip_message .message {
    font-size: 12px;
    width: calc(100% - 20px);
    text-align: center;
    padding: 10px;
}

.player_vip_message .btns {
    display: flex;
    gap: 10px;
    width: calc(100% - 20px);
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.player_vip_message .btns .item {
    font-size: 12px;
    width: 50%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 5px;
    background: #FF9800;
    color: #fff;
}

.player_vip_message .btns .item.money {
    background: #f44336;
}

#viplist {
    position: fixed;
    background: rgb(0 0 0 / 30%);
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#viplist .containers {
    width: calc(100% - 20px);
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

#viplist .title {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
}

#viplist .viplist {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#viplist .viplist .item {
    width: calc(50% - 5px);
    border: 1px solid #f5f5f5;
    border-radius: 5px;
    padding: 10px;
}

#viplist .viplist .item .day {
    padding: 10px 0;
    background: #F44336;
    color: #fff;
    border-radius: 5px;
}

#viplist .viplist .item .money {
    display: flex;
    flex-direction: column;
}

#viplist .viplist .item .money .price {
    font-size: 13px;
    color: #FF5722;
    padding-top: 11px;
}

#viplist .viplist .item .money .price font {
    font-size: 20px;
}

#viplist .viplist .item .money .currency {
    font-size: 12px;
    color: #999;
    padding: 10px 0;
    text-decoration: line-through;
}

#viplist .viplist .item .name {
    color: #FF5722;
    padding-bottom: 10px;
}

#viplist .close {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: -25px;
}

#viplist .active {
    border-color: #FF5722 !important;
    background: rgb(255 87 34 / 9%);
}

/** 自定义弹窗 **/
.custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255 255 255);
    z-index: 999999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-alert {
    background: #fff;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    z-index: 9999;
    text-align: center;
}

.custom-alert h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.custom-alert p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.custom-alert .btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.custom-alert button {
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.custom-alert .btn-login {
    background: #FF5722;
    color: white;
}

.custom-alert .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(173 173 173 / 30%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .custom-alert {
        width: 280px;
        padding: 20px;
    }

    .custom-alert .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}