 /* for index.php */
.footer {
    width: 100%;
    background: linear-gradient(175deg, #ffffff 0%, #f5fbff 100%);
    padding: 12px 0;
    position: relative;
    border-top: 1px solid rgba(0, 150, 255, 0.15);
    box-shadow: 0 -6px 20px rgba(56, 172, 255, 0.1);
    backdrop-filter: blur(2px);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 172, 255, 0.4), transparent);
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}
.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 6px 25px;
    box-shadow: 0 2px 8px rgba(56, 172, 255, 0.1);
    border: 1px solid rgba(56, 172, 255, 0.1);
}
.logo-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent 10%, rgba(56, 172, 255, 0.6) 50%, transparent 90%);
    margin: 0 12px;
    position: relative;
}
.logo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: #38acff;
    border-radius: 50%;
    box-shadow: 0 0 6px #38acff;
}
.company-logo {
    height: 26px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 1px 2px rgba(56, 172, 255, 0.2));
}
.game-logo {
    height: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 1px 3px rgba(56, 172, 255, 0.3));
}
.company-logo:hover, .game-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 4px rgba(56, 172, 255, 0.4));
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 10px;
}
.footer-link {
    color: #4a6b8a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    padding: 2px 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #38acff, #0066cc);
    transition: width 0.3s ease;
}
.footer-link:hover {
    color: #0066cc;
    text-shadow: 0 0 6px rgba(56, 172, 255, 0.15);
}
.footer-link:hover::before {
    width: 100%;
}
.copyright {
    text-align: center;
    font-size: 11px;
    color: #7a9cc6;
    letter-spacing: 0.5px;
    position: relative;
}
.copyright::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 172, 255, 0.4), transparent);
    margin: 6px auto;
}
.link-menu ul {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.link-menu.active ul {
    opacity: 1;
    visibility: visible;
}
.content-list {
    display: none;
}
.content-list.active {
    display: block;
}
.content li.type2 {
    float: left;
    width: 33.3%;
    border: none;
    box-sizing: border-box;
}
.content li.type2 .grid-item {
    margin: 0 auto;
    text-align: center;
    height: 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.1rem;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content li.type2 .grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
}
.content li.type2 .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.content li.type2 p {
    font-size: 0.26rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.12rem 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: rgba(120, 200, 242, 0.9);
    color: #fff;
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}
.genre {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 3;
    transition: all 0.3s ease;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.language {
    position: absolute;
    top: 6px;
    right: 6px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    z-index: 3;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.grid-item:hover .genre {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}
.stream-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 1px;
}
.stream-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.stream-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}
.stream-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 172, 255, 0.1) 0%, transparent 100%);
}
.stream-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3366;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stream-viewers {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
}
.stream-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stream-title {
    font-weight: 600;
    font-size: 14px;
    color: #2a4a6a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stream-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stream-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    border: 1px solid rgba(56, 172, 255, 0.2);
}
.stream-username {
    font-size: 12px;
    color: #4a6b8a;
    font-weight: 500;
}
.stream-game {
    font-size: 11px;
    color: #7a9cc6;
}



/* for watch.html */
.juzhong {text-align: center;}
.download-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #37b4f6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') no-repeat center;
    background-size: 50%;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}
.download-btn:hover {
    transform: scale(1.1);
}
.download-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.download-popup-content {
    background-color: #fff;
    width: 85%;
    max-width: 450px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}
.download-popup-header {
    background-color: #37b4f6;
    color: white;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}
.download-popup-body {
    padding: 15px 20px;
}
.download-section {
    margin-bottom: 15px;
}
.download-section-title {
    color: #37b4f6;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.download-section-title:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #37b4f6;
    margin-right: 8px;
    border-radius: 2px;
}
.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.download-option {
    display: block;
    padding: 12px 8px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}
.download-option:hover {
    background-color: #eef7ff;
    border-color: #37b4f6;
}
.download-option .quality {
    font-size: 14px;
    color: #37b4f6;
    margin-top: 4px;
}
.download-popup-close {
    display: block;
    text-align: center;
    padding: 12px;
    color: #37b4f6;
    cursor: pointer;
    font-weight: bold;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.download-popup-close:hover {
    background-color: #f8f8f8;
}

/* others inside index.php*/

.genre-tag {
    color: #ffcc00;
    cursor: pointer;
    text-decoration: underline;
    margin-right: 5px;
}
.genre-tag:hover {
    color: #ffdd33;
}
.genre-results {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    display: none;
}
.genre-results-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #41aaff;
}
.genre-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.genre-result-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}
.genre-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.genre-result-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.genre-result-title {
    padding: 12px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f8f8f8;
}
.genre-result-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.loader.active {
    opacity: 1;
    pointer-events: all;
}
.loader-content {
    width: 80px;
    height: 80px;
    position: relative;
}
.loader-spinner {
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #41aaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-spinner:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 8px solid transparent;
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.fade-in {
    animation: fadeIn 0.3s forwards;
}
.fade-out {
    animation: fadeOut 0.3s forwards;
}
@media (max-width: 768px) {
    .genre-results-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .genre-result-item img {
        height: 120px;
    }
}
@media (max-width: 480px) {
    .genre-results-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .genre-result-item img {
        height: 100px;
    }
}
.stream-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 800px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}
.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.description-btn {
    background: #ffcc00;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}
.description-btn:hover {
    background: #ffdd33;
}
.description-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    display: none;
}
.description-popup-content {
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    color: #333;
}
.description-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffcc00;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}
.description-popup-close:hover {
    background: #ffdd33;
}
.comment-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: calc(100vh - 600px);
    display: flex;
    flex-direction: column;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.comment-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #41aaff;
}
.comment-refresh-btn {
    background: #41aaff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}
.comment-refresh-btn:hover {
    background: #2d8fd6;
}
.comment-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.comment-form img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcc00;
}
.comment-form textarea {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    resize: none;
    min-height: 45px;
    font-size: 15px;
    background: #f1f8ff;
    transition: min-height 0.2s;
}
.comment-form textarea:focus {
    min-height: 70px;
    outline: none;
}
.comment-form button {
    background: #41aaff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.2s;
}
.comment-form button:hover {
    background: #2d8fd6;
}
.comment-list {
    list-style: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}
.comment-item {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.comment-item:hover {
    background: #f8faff;
    transform: translateY(-2px);
}
.comment-item-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.comment-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcc00;
}
.comment-item-details {
    flex: 1;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}
.comment-author {
    font-weight: bold;
    color: #41aaff;
}
.comment-date {
    color: #777;
}
.comment-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
}
.comment-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    margin-left: 50px;
    display: none;
}
@media (max-width: 768px) {
    .comment-section {
        padding: 15px;
    }
    .comment-form {
        padding: 8px 12px;
        gap: 10px;
    }
    .comment-form img {
        width: 40px;
        height: 40px;
    }
    .comment-form textarea {
        font-size: 14px;
        min-height: 40px;
    }
    .comment-form button {
        padding: 8px 16px;
        font-size: 14px;
    }
    .comment-item {
        padding: 12px;
    }
    .comment-item img {
        width: 40px;
        height: 40px;
    }
    .comment-meta {
        font-size: 13px;
    }
    .comment-author {
        font-size: 14px;
    }
    .comment-content {
        font-size: 14px;
    }
    .comment-error {
        margin-left: 45px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .comment-form img {
        width: 35px;
        height: 35px;
    }
    .comment-form textarea {
        font-size: 13px;
        min-height: 35px;
    }
    .comment-form button {
        padding: 6px 12px;
        font-size: 13px;
    }
    .comment-item {
        padding: 10px;
    }
    .comment-item img {
        width: 35px;
        height: 35px;
    }
    .comment-meta {
        font-size: 12px;
    }
    .comment-author {
        font-size: 13px;
    }
    .comment-content {
        font-size: 13px;
    }
    .comment-error {
        margin-left: 40px;
        font-size: 12px;
    }
}
.live-progress {
    background: #f0f0f0;
    height: 5px;
    position: relative;
    margin-bottom: 10px;
}
.live-progress-bar {
    background: #ff0000;
    height: 100%;
    width: 0;
    transition: width 1s linear;
}
.timer {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #41aaff;
}
.view-count {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}
.download-page {
    padding: 20px;
    background: #f9f9f9;
    height: 100vh;
    overflow-y: auto;
}

.download-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.btn_back:hover {
    background: #555;
}