html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; background-color: #f3f4f6; color: #1f2937; line-height: 1.6; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
/* On larger screens, allow the container to be wider */
@media (min-width: 1536px) { /* Tailwind 2xl breakpoint */
    .container {
        max-width: 1440px; /* Adjust as needed */
    }
}

header { 
    background-color: #8e44ad; 
    color: white; 
    padding: 0.75rem 0; 
    margin-bottom: 1rem; 
    border-radius: 0;
}
header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
header nav { 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: nowrap;
}
header nav ul li { display: inline; margin: 0; }
header nav ul li a { color: white; text-decoration: none; font-weight: 500; }

/* 右侧导航组 */
.nav-right {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 简化的Logo样式 */
.site-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}
.site-logo:hover {
    color: #e5e7eb !important;
    text-decoration: none;
}
.site-logo .logo-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: white;
}

@media (min-width: 1536px) {
    header .header-container {
        max-width: 1440px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0.5rem;
    }
    header .header-container {
        padding: 0 0.5rem;
    }
    /*header nav ul { flex-direction: column; gap: 1rem; }*/
    .nav-right { flex-direction: column; gap: 1rem; }
    /*.nav-links { gap: 1rem; }*/
    .site-logo {
        font-size: 1.2rem;
    }
    .site-logo .logo-icon {
        font-size: 1.2rem;
        margin-right: 0.25rem;
    }
}

.breadcrumbs { margin-bottom: 1rem; font-size: 0.875rem; color: #6b7280; }

.breadcrumbs a { color: #8e44ad; text-decoration: none; }

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs span:not(:last-child):after { content: ' / '; margin: 0 0.25rem; }

.main-layout-wrapper { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }

.game-content-column { flex: 1; min-width: 0; order: 1; }

.game-title-section { margin-bottom: 0.75rem; text-align: left; }

.game-title-section h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; color: #111827; }

.subtitle { font-size: 1rem; color: #4b5867; margin-top: 0; margin-bottom: 1rem; line-height: 1.5; }

.game-embed-area {

    background-color: #1f2937;

    width: 100%;

    border-radius: 0.5rem; margin-bottom: 1rem; position: relative;

    overflow: hidden; display: flex; flex-direction: column;

}

.game-visual-and-overlay {
    width: 100%; 
    height: 600px; /* 固定高度600px */
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background-color: #f8f9fa;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-iframe:fullscreen {
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.game-launch-overlay {
    display: none; /* 隐藏启动覆盖层 */
}

.game-launch-overlay .game-title-iframe {
    font-size: 1.75rem; font-weight: 600; color: #1f2937; margin-bottom: 1.25rem;
}

.play-now-button-iframe {
    background-color: #e74c3c; color: white; padding: 0.75rem 1.5rem; text-decoration: none;
    font-size: 1.25rem; font-weight: 600; border-radius: 0.375rem; border: none;
    cursor: pointer; transition: background-color 0.2s ease-in-out; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.play-now-button-iframe:hover { background-color: #c0392b; }

.game-embed-controls {

    background-color: #374151; padding: 0.5rem 1rem; display: flex;

    align-items: center; justify-content: space-between; color: #e5e7eb;

    min-height: 52px; border-top: 1px solid #4b5563;

}

.game-embed-controls .game-info-bar { display: flex; align-items: center; }

.game-embed-controls .game-logo-bar {
    width: 32px; height: 32px; border-radius: 0.25rem;
    margin-right: 0.75rem; object-fit: contain;
    background-color: #c39bd3;
}

.game-embed-controls .game-title-in-bar { font-size: 0.95rem; font-weight: 500; margin-right: 1rem; }

.game-embed-actions button {

    background: transparent; border: none; color: #d1d5db; font-size: 0.875rem;

    margin-left: 0.5rem; cursor: pointer; padding: 0.375rem 0.625rem; border-radius: 0.25rem;

    display: inline-flex; align-items: center;

    transition: background-color 0.2s, color 0.2s;

}

.game-embed-actions button:hover { background-color: #4b5563; color: #fff; }

.game-embed-actions button .icon { margin-right: 0.375rem; font-size: 1.1em; }

.icon-share::before { content: "🔗"; }
.icon-fullscreen::before { content: "↔️"; }

.related-games-main { margin-bottom: 1.5rem; padding: 1rem; background-color: #fff; border-radius: 0.5rem; border: 1px solid #e5e7eb; }

.related-games-main h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: #1f2937; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem;}

/* 轮播容器样式 */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.related-games-grid { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    gap: 1.25rem; 
    transition: transform 0.4s ease;
    width: 200%; /* 8个卡片，显示4个，所以是200% */
}

/* 轮播按钮样式 */
.carousel-btn {
    background-color: #8e44ad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #7d3c98;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.4);
}

.carousel-btn span {
    font-size: 1rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
    letter-spacing: 0;
}

.carousel-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

/* 游戏缩略图优化样式 */
.game-thumbnail {
    width: 100%; 
    height: 180px; /* 固定高度180px */
    border-radius: 0.75rem; 
    margin-bottom: 0.75rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.game-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-thumbnail:hover::before {
    opacity: 1;
}

/* 游戏卡片样式优化 */
.game-card { 
    border: none; 
    text-align: center; 
    border-radius: 0.75rem; 
    background-color: transparent; 
    overflow: visible; 
    padding: 0;
    transition: transform 0.3s ease;
    min-width: 0; /* 防止flex收缩问题 */
}

.game-card:hover {
    transform: translateY(-2px);
}

.game-card p { 
    margin: 0; 
    font-size: 0.95rem; 
    color: #4b5563; 
    font-weight: 500; 
    min-height: auto; 
    display: block;
    line-height: 1.4;
}

.game-card a { 
    text-decoration: none; 
    display: block; 
}

.game-card a:hover p { 
    color: #1f2937; 
}

/* 响应式优化 */
@media (max-width: 640px) {
    .related-games-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1rem;
        width: 400%; /* 移动端显示2个，所以8个需要400% */
    }
    
    .game-thumbnail {
        height: 120px; /* 移动端减小高度 */
        font-size: 0.85rem;
        padding: 0.375rem;
    }
    
    .game-card p {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn span {
        font-size: 0.9rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1rem;
        width: 266.67%; /* 平板端显示3个，所以8个需要266.67% */
    }
    
    .game-thumbnail {
        height: 150px;
    }
}

@media (min-width: 769px) {
    .related-games-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.25rem;
        width: 200%; /* 桌面端显示4个，所以8个需要200% */
    }
}

.content-details-wrapper {

    display: grid;

    grid-template-columns: 1fr; /* Default for small screens */

    gap: 1.5rem; /* Default gap */

}

@media (min-width: 768px) { /* md breakpoint */

    .content-details-wrapper {

        grid-template-columns: repeat(3, 1fr);

        gap: 1rem; /* Slightly reduced gap for medium screens */

    }

}

@media (min-width: 1024px) { /* lg breakpoint */

     .content-details-wrapper {

        gap: 1.5rem; /* Restore or adjust gap for larger screens */

    }

}

.tabs-and-content-column {

    width: 100%;

}

@media (min-width: 768px) { /* md breakpoint */

    .tabs-and-content-column {

        grid-column: span 2 / span 2;

    }

}

.reviews-and-ads-column {

    width: 100%;

}

@media (min-width: 768px) { /* md breakpoint */

    .reviews-and-ads-column {

        grid-column: span 1 / span 1;

    }

}

.game-details-meta {

    padding: 1rem; background-color: #f9fafb; border: 1px solid #e5e7eb;

    border-radius: 0.5rem; margin-bottom: 1.5rem;

}

.game-details-meta .meta-item { margin-bottom: 0.5rem; font-size: 0.9rem; }

.game-details-meta .meta-item strong { color: #374151; min-width: 110px; display: inline-block; font-weight: 500;}

.game-details-meta .rating { color: #f59e0b; font-weight: 600; }

.game-details-meta .tags span { background-color: #e5e7eb; color: #4b5563; padding: 0.25rem 0.625rem; border-radius: 9999px; margin-right: 0.375rem; font-size: 0.8rem; display: inline-block; margin-top: 0.25rem;}

.game-details-meta .tags a { text-decoration: none; color: inherit; }

.game-details-meta .tags a:hover span { background-color: #d1d5db; }

.content-nav {

    display: flex;

    flex-wrap: wrap;

    border-bottom: 2px solid #e5e7eb;

    margin-bottom: 1.5rem;

    background-color: #fff;

    padding: 0.5rem 0.25rem;

    border-radius: 0.5rem 0.5rem 0 0;

    position: sticky;

    top: 0;

    z-index: 50;

}

.nav-link-button {

    padding: 0.625rem 0.75rem;

    cursor: pointer; background-color: transparent;

    border: none; border-bottom: 3px solid transparent;

    margin-right: 0.25rem; margin-bottom: 0.25rem;

    font-size: 0.875rem;

    font-weight: 500; color: #6b7280; white-space: nowrap; text-decoration: none;

    transition: color 0.2s, border-bottom-color 0.2s;

}

.nav-link-button:hover { color: #8e44ad; }

.nav-link-button.active { border-bottom-color: #8e44ad; font-weight: 600; color: #8e44ad; }

.content-section {

    padding: 1.25rem; border: 1px solid #e5e7eb; border-radius: 0.5rem;

    background-color: #fff; margin-bottom: 1.5rem; scroll-margin-top: 70px;

}

.content-section h2 { font-size: 1.5rem; font-weight: 600; margin-top: 0; color: #111827; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.75rem; margin-bottom:1rem; }

.content-section h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.25rem; color: #1f2937; margin-bottom: 0.5rem;}

.content-section h4 { font-size: 1rem; font-weight: 600; margin-top: 1rem; color: #374151; margin-bottom: 0.25rem;}

.content-section ul, .content-section ol { padding-left: 1.25rem; margin-bottom: 1rem;}

.content-section li { margin-bottom: 0.5rem; }

.video-placeholder { width: 100%; aspect-ratio: 16 / 9; background-color: #e5e7eb; display:flex; align-items:center; justify-content:center; text-align:center; border-radius:0.375rem; margin-bottom:0.75rem; }

.overview-layout {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}

@media (min-width: 768px) {

    .overview-layout {

        flex-direction: row;

        align-items: flex-start;

    }

}

.overview-text {

    flex: 1;

}

.overview-screenshot-container {

    flex-shrink: 0;

    width: 100%;

    margin-top: 1rem;

}

@media (min-width: 768px) {

    .overview-screenshot-container {

        width: 30%;

        max-width: 250px;

        margin-top: 0;

        margin-left: 1rem;

    }

}

.inline-screenshot {

    width: 100%;

    height: auto;

    border-radius: 0.375rem;

    border: 1px solid #e5e7eb;

    display: block;

}

.inline-screenshot-caption {

    font-size: 0.75rem;

    color: #6b7280;

    margin-top: 0.25rem;

    text-align: center;

}

.feature-item-with-screenshot {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.75rem;

    margin-bottom: 1rem;

}

@media (min-width: 640px) {

    .feature-item-with-screenshot {

        flex-direction: row;

        align-items: center;

    }

}

.feature-item-with-screenshot img {

    width: 120px;

    height: 80px;

    object-fit: cover;

    border-radius: 0.25rem;

    border: 1px solid #e5e7eb;

    flex-shrink: 0;

}

.feature-item-with-screenshot .feature-text {

    flex-grow: 1;

}

.screenshots-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.25rem;
}

.screenshot-card {
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

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

@media (max-width: 640px) {
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
@media (min-width: 641px) and (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshot-card p { font-size: 0.875rem; text-align: center; margin-top: 0.25rem; color: #6b7280;}

.reviews-and-ads-column .section, .sidebar-column .section { background-color: #fff; padding: 1rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; margin-bottom: 1.5rem; }

.reviews-and-ads-column .section-title, .sidebar-column .section-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; color: #1f2937; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem;}

.review { border-bottom: 1px solid #f3f4f6; padding-bottom: 0.75rem; margin-bottom: 0.75rem; }

.review:last-child { border-bottom: none; margin-bottom: 0; }

.review p { margin-bottom: 0.25rem; font-size: 0.9rem; }

.review .stars { color: #f59e0b; }

.review cite { font-style: normal; font-size: 0.8rem; color: #6b7280; display:block; margin-top:0.25rem; }

.sidebar-game-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 0.75rem;

}

footer { background-color: #1f2937; color: #e5e7eb; text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-radius: 0 0 0.5rem 0.5rem;}

footer p { margin: 0.25rem 0; font-size: 0.875rem; }

footer a { color: #60a5fa; text-decoration: none; }

footer a:hover { text-decoration: underline; }

.chart-container {

    position: relative; width: 100%; max-width: 600px; margin-left: auto; margin-right: auto;

    height: 300px; max-height: 350px;

}

/* Ensure consistent width for tabs and reviews columns on medium screens and up */

@media (min-width: 768px) {

    .chart-container { height: 350px; max-height: 400px; }

    /* .tabs-and-content-column { width: 66.666667%; } */ /* Replaced by grid-column */

    /* .reviews-and-ads-column { width: 33.333333%; } */ /* Replaced by grid-column */

}

@media (max-width: 1024px) {

    .main-layout-wrapper { flex-direction: column; }

    .game-content-column, .sidebar-column { flex-basis: 100%; order: initial; }

    .sidebar-column { margin-top: 1.5rem; }

}

@media (max-width: 767px) {

    /* .content-details-wrapper { grid-template-columns: 1fr; } */ /* Already default */

    .content-nav {position: static;}

    .game-title-section h1 { font-size: 1.875rem; }

    .subtitle { font-size: 0.95rem; }

    .game-launch-overlay .game-title-iframe { font-size: 1.25rem; }

    .play-now-button-iframe { font-size: 1rem; padding: 0.5rem 1rem; }

    .game-embed-controls { flex-wrap: wrap; justify-content: center; gap: 0.5rem;}

    .game-embed-controls .game-info-bar { flex-basis: 100%; justify-content: center; margin-bottom: 0.25rem;}

    .game-embed-controls .game-embed-actions { flex-basis: 100%; display: flex; justify-content: space-around; }

    .game-embed-actions button { margin-left: 0.25rem; margin-right: 0.25rem; padding: 0.375rem 0.5rem; font-size: 0.8rem;}

    .overview-layout { flex-direction: column; }

    .overview-screenshot-container { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }

    .feature-item-with-screenshot { flex-direction: column; align-items: flex-start; }

    .feature-item-with-screenshot img { width: 150px; margin-bottom: 0.5rem; }

    .comment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comment-card {
        padding: 1rem;
    }
    
    #section-player-comments h2 {
        font-size: 1.375rem;
    }
    
    .player-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    .comment-text {
        font-size: 0.875rem;
    }

}

/* Player Comments Section */
#section-player-comments {
    background-color: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

#section-player-comments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.02) 0%, rgba(155, 89, 182, 0.03) 100%);
    pointer-events: none;
}

#section-player-comments h2 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.player-comments-container {
    position: relative;
    z-index: 1;
}

.comment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.comment-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #8e44ad;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
    gap: 0.875rem;
}

.player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.1), transparent, rgba(142, 68, 173, 0.1));
    border-radius: 50%;
    z-index: -1;
}

.avatar-emoji {
    filter: none;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
    text-shadow: none;
}

.player-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    text-shadow: none;
}

/* Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal.show {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.share-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.share-modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.share-modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.share-url-section {
    margin-bottom: 2.5rem;
}

.share-url-container {
    display: flex;
    gap: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 0.5rem;
    align-items: center;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #374151;
    outline: none;
}

.copy-url-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3);
}

.copy-url-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.4);
}

.copy-url-btn.copied {
    background-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.share-buttons-section {
    text-align: center;
}

@media (max-width: 640px) {
    .share-modal-content {
        padding: 2rem;
        margin: 1rem;
        width: auto;
    }
    
    .share-modal-title {
        font-size: 1.5rem;
    }
    
    .share-url-container {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 12px;
    }
    
    .copy-url-btn {
        width: 100%;
        border-radius: 12px;
    }
}

/* 视频框架样式 */
.videos-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 1.5rem; 
}

.video-card {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(231, 76, 60, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.25rem;
}

.video-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.video-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* 视频框架响应式 */
@media (max-width: 640px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-thumbnail {
        height: 250px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h4 {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #8e44ad;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #7d3c98;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.back-to-top-icon {
    line-height: 1;
    transition: transform 0.2s ease;
}

.back-to-top-icon::before {
    content: "Λ";
    font-size: 1rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: block;
    letter-spacing: 0;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .back-to-top-icon::before {
        font-size: 0.9rem;
    }
}

/* 焦点样式 */
.back-to-top:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3), 0 0 0 3px rgba(142, 68, 173, 0.2);
}

/* More Games Grid Layout Styles */
.games-grid-container {
    margin: 20px 0;
    padding: 0 20px;
}

.games-grid-2col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease;
}

.game-item:hover {
    transform: translateY(-4px);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-thumbnail-small {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.game-title-overlay {
    display: none;
}

.game-title-text {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .games-grid-2col {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .games-grid-2col {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .game-thumbnail-small {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .games-grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .games-grid-container {
        padding: 0 15px;
    }
    
    .game-thumbnail-small {
        height: 100px;
    }
    
    .game-title-text {
        font-size: 12px;
    }
}

.view-all-games-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.view-all-games-btn {
    display: inline-block;
    background-color: #8e44ad;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-all-games-btn:hover {
    background-color: #7d3c98;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.view-all-games-btn:active {
    background-color: #6c3483;
    transform: translateY(1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's on top */
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-menu-open .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-open .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 767px) {
    header nav {
        flex-wrap: wrap;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links-wrapper {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out;
        background-color: #8e44ad; /* Match header */
    }
    
    .nav-links-wrapper.show {
        max-height: 500px; /* Adjust as needed */
        padding-top: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-right {
        display: none;
    }
}

@media (min-width: 1536px) {
    header .header-container {
        max-width: 1440px;
    }
    header nav ul { flex-direction: column; gap: 1rem; }
    .nav-right { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; }
    .site-logo {
        font-size: 1.2rem;
    }
    .site-logo .logo-icon {
        font-size: 1.2rem;
        margin-right: 0.25rem;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links-wrapper {
        display: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    }
    
    .nav-links-wrapper.show {
        display: block;
        max-height: 500px;
        padding-top: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
} 