body {
    max-width: 660px;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0d1b2a 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: #e0e0ff;
}

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #06b6d4);
    animation: glow-line 3s ease-in-out infinite;
}

@keyframes glow-line {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}

.hdfvb-nav-logo img {
    height: 4vh;
    display: block;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

.hdfvb-navbar {
    display: flex;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.hdfvb-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 35px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    border-left: 2px solid #7c3aed;
}

.hdfvb-menu li {
    position: relative;
}

.hdfvb-menu li a:hover {
    color: #06b6d4;
}

.hdfvb-menu.open {
    display: flex;
    flex-direction: column;
}

.hdfvb-menu.open #nav-open {
    display: none;
}

.hdfvb-menu.open #nav-close {
    display: block;
}

.hdfvb-menu li a {
    font-size: 1rem;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.hdfvb-menu li a:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    transform: translateX(5px);
}

#hdfvb-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }
    100% {
        opacity: 1;
        width: 30%;
    }
}

.hdfvb-game-item {
    border-radius: 16px;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 10px;
    box-shadow: 0 8px 0 #312e81;
    transition: all 0.3s;
    border: 2px solid #4f46e5;
    overflow: hidden;
}

.hdfvb-game-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(139, 92, 246, 0.4);
    border-color: #06b6d4;
}

.hdfvb-game-item a {
    text-decoration: none;
}

.hdfvb-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    border: 2px solid #6366f1;
}

.hdfvb-game-cover img:hover {
    transform: scale(1.08);
    border-radius: 16px;
    border-color: #06b6d4;
}

.hdfvb-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 2px solid #6366f1;
    transition: all 0.3s;
}

.hdfvb-game-cover-recommend img:hover {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.hdfvb-game-item h3 {
    color: #c4b5fd;
    margin: 8px 0px;
    font-size: 0.85rem;
    font-weight: bold;
}

.hdfvb-game-item p {
    color: #e0e0ff;
    margin: 0px;
    font-size: 1rem;
}

.hdfvb-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 5px;
}

.hdfvb-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 1rem;
    color: #cbd5e1;
}

.hdfvb-game-info p:last-child { 
    font-size: 0.8rem;
    color: #94a3b8;
}

.common-game-right {
    display: flex;
    width: 20%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 8px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 #5b21b6;
}

.hdfvb-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;
}

.hdfvb-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;
}

.hdfvb-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 0 #0e7490;
    position: relative;
}

.hdfvb-common-recommend-title p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hdfvb-common-recommend-title img {
    width: 26px;
    height: 26px;
    position: absolute;
    right: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.hdfvb-common-recommend-title img:hover {
    transform: scale(1.15);
}

.hdfvb-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hdfvb-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.hdfvb-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    text-align: center;
    margin-top: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -3px 20px rgba(124, 58, 237, 0.3);
    border-top: 2px solid #4f46e5;
}

.hdfvb-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hdfvb-footer-links a {
    font-size: 0.7em;
    color: #c4b5fd;
    text-decoration: none;
    transition: all 0.3s;
}

.hdfvb-footer-links a:hover {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

footer .hdfvb-copyright {
    font-size: 0.8em;
    color: #94a3b8;
    margin: 10px 0px;
}

#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.8));
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 0.5rem;
    gap: 10PX;
    border-radius: 10rem;
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
    transition: all 0.3s;
    border: 1px solid #4f46e5;
}

#flow:hover {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
}

.hdfvb-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
    border-radius: 10px;
}

.game-detail-iframe {
    width: 100%;
}

.hdfvb-game-detail-img {
    width: 100%;
}

.hdfvb-game-detail-img img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    border: 2px solid #6366f1;
}

.hdfvb-detail-info {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px;
    order: 1;
}

.hdfvb-detail-info h2 {
    color: #c4b5fd;
    font-size: 1rem;
    margin: 10px;
    font-weight: 300;
}

.hdfvb-detail-info p {
    color: #cbd5e1;
    font-size: 1rem;
    margin: 10px 0px;
}

.hdfvb-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.hdfvb-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    border: 1px solid #4f46e5;
}

.hdfvb-game-instructions p {
    color: #e0e0ff;
    line-height: 1.5rem;
    font-size: 1rem;
}

.hdfvb-game-gameplay-button {
    display: flex;
    background: linear-gradient(45deg, #06b6d4 0%, #8b5cf6 100%);
    border-radius: 10px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px; 
    right: -30px;  
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.hdfvb-game-gameplay-button img {
    width: 120px;
    height: 120px;
}

.hdfvb-game-gameplay-button p {
    color: #fff;
    margin: 0px;
}

.hdfvb-game-iframe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}

#iframe-menu-btn {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
}

#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    height: 50px;
}

.hdfvb-news-detail {
    color: #e0e0ff;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}

.hdfvb-news-detail img {
    width: 100%;
    object-fit: contain;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page h1 {
    font-size: 2em;
    color: #c4b5fd;
}

.error-page p {
    font-size: 1.4em;
    color: #cbd5e1;
    padding: 1rem;
}

.error-page img {
    width: 100%;
    padding: 2rem 1rem;
}

.hdfvb-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: -10px;
    left: -10px;
}

.hdfvb-game-mark img {
    width: 50px;
    height: 25px;
}

.hdfvb-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
}

.hdfvb-game-new img {
    width: 50px;
    height: 50px;
}

.hdfvb-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#hdfvb-game-body {
    margin-top: 30px;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 10px 10px;
    border-left: 2px solid #7c3aed;
}

.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 1rem;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.iframe-menu li a:hover {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.iframe-list-item a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

#iframe-close-btn {
    right: 0px;
    top: 0px;
}

.search-container {
    margin: 15px 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #4f46e5;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e0e0ff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-box:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.search-box::placeholder {
    color: #64748b;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #06b6d4;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 20px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: #e0e0ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #4f46e5;
}

.category-btn:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.4);
    border-color: #06b6d4;
}

.game-guide-section {
    margin: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px;
    border: 2px solid #4f46e5;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.game-guide-section h2 {
    color: #c4b5fd;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.guide-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #6366f1;
    transition: all 0.3s;
    cursor: pointer;
}

.guide-card:hover {
    border-color: #06b6d4;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.guide-card h3 {
    color: #06b6d4;
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.guide-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.guide-card .guide-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    margin-top: 8px;
}

.floating-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.daily-pick {
    margin: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.daily-pick::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.2;
}

.daily-pick h2 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    text-align: center;
}

.daily-pick-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.daily-pick-content img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #fff;
}

.daily-pick-info h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.daily-pick-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid #4f46e5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #312e81;
}

.search-result-item:hover {
    background: rgba(6, 182, 212, 0.1);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-item p {
    color: #e0e0ff;
    font-size: 0.9rem;
    margin: 0;
}
