:root {
    --footer-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --accent-color: #ff2e63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f5f6f5;
    color: #1a1a1a;
    line-height: 1.6;
    width: 100%;
}

/* Hero Section */
.hero-container {
    width: 100%;
    max-width: 1440px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.6);
    z-index: 1;
}

.hero-headline {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    padding: 20px;
    letter-spacing: -0.02em;
    max-width: 80%;
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.main-content {
    flex: 2;
    min-width: 280px;
    width: 100%;
}

.side-panel {
    flex: 1;
    min-width: 280px;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

/* Custom Scrollbar for Side Panel */
.side-panel::-webkit-scrollbar {
    width: 8px;
}

.side-panel::-webkit-scrollbar-track {
    background: #f5f6f5;
    border-radius: 4px;
}

.side-panel::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background: #e02b56;
}

.side-panel {
    scrollbar-color: var(--accent-color) #f5f6f5;
    scrollbar-width: thin;
}

/* Advertisements */
.leaderboard-ad, .rectangle-ad {
    width: 100%;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.leaderboard-ad:hover, .rectangle-ad:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaderboard-ad {
    height: 100px;
}

.rectangle-ad {
    height: 260px;
}

.leaderboard-ad img, .rectangle-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article */
.article-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    width: 100%;
}

.article-content:hover {
    transform: translateY(-4px);
}

.article-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 1rem;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    object-fit: cover;
}

/* Video Player */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
}

.video-player-container:hover .video-controls,
.video-player-container:focus-within .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: #fff;
}

.play-pause-btn.playing i::before,
.play-pause-btn-small.playing i::before {
    content: "\f28b"; /* Font Awesome pause icon */
}

.play-pause-btn:not(.playing) i::before,
.play-pause-btn-small:not(.playing) i::before {
    content: "\f144"; /* Font Awesome play icon */
}

.play-pause-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 62, 255, 0.3);
}

.control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-radius: 0 0 12px 12px;
    transform: translateY(100%);
    transition: var(--transition);
}

.video-player-container:hover .control-bar,
.video-player-container:focus-within .control-bar {
    transform: translateY(0);
}

.play-pause-btn-small {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.play-pause-btn-small:hover {
    color: var(--accent-color);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-filled {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.progress-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.time-display {
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.volume-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--accent-color);
}

.volume-btn.muted i::before {
    content: "\f6a9"; /* Font Awesome volume-mute icon */
}

.volume-btn:not(.muted) i::before {
    content: "\f028"; /* Font Awesome volume-up icon */
}

.volume-slider-container {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    display: none;
}

.volume-control:hover .volume-slider-container,
.volume-slider-container:focus-within {
    display: block;
}

.volume-slider {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-filled {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.fullscreen-btn:hover {
    color: var(--accent-color);
}

.fullscreen-btn.fullscreen i::before {
    content: "\f066"; /* Font Awesome compress icon */
}

/* Share Buttons */
.social-share {
    position: relative;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.share-toggle {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #5e3eff, #ff2e63) 1;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 150px;
    justify-content: center;
}

.share-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(94, 62, 255, 0.1), rgba(255, 46, 99, 0.1));
}

.share-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 62, 255, 0.3);
}

.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 10;
    width: 90%;
    max-width: 240px;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: var(--transition);
}

.social-share:hover .share-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-menu a, .share-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.share-menu a:hover, .share-menu button:hover {
    background: #f0f2f5;
}

.share-copy .copy-feedback {
    display: none;
    position: absolute;
    right: 10px;
    background: #1a1a1a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.share-copy.copied .copy-feedback {
    display: block;
}

/* Upcoming Releases and Popular Posts */
.upcoming-releases, .popular-posts {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    width: 100%;
    transition: var(--transition);
}

.upcoming-releases:hover, .popular-posts:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.upcoming-releases h3, .popular-posts h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-releases h3::before, .popular-posts h3::before {
    content: "\f005"; /* Font Awesome star icon for Popular Posts */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.upcoming-releases h3::before {
    content: "\f135"; /* Font Awesome rocket icon for Upcoming Releases */
}

.game-list, .post-list {
    list-style: none;
    width: 100%;
}

.game-list-item, .post-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.game-list-item:hover, .post-list-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-list-item.hidden, .post-list-item.hidden {
    display: none;
}

.game-list-item img, .post-list-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

.post-list-item:hover img {
    transform: scale(1.05);
}

.game-info, .post-info {
    flex: 1;
}

.game-title, .post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta, .post-meta {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.game-meta span, .post-meta span {
    display: block;
}

.post-excerpt {
    font-size: 0.75rem;
    color: #4a5568;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-overlay, .post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 12px;
    opacity: 0;
    transform: translateY(100%);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.game-list-item:hover .game-overlay, .post-list-item:hover .post-overlay {
    opacity: 1;
    transform: translateY(0);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

/* View All Button */
.view-all-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff2e63, #5e3eff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ff4b7a, #6e4eff);
}

/* Show More Button */
.show-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    margin: 12px auto 0;
    background: linear-gradient(135deg, #5e3eff, #ff2e63);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.show-more:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #6e4eff, #ff4b7a);
}

.show-more:focus {
    box-shadow: 0 0 0 3px rgba(94, 62, 255, 0.3);
}

.arrow-down {
    font-size: 1rem;
    transition: var(--transition);
}

.show-more.expanded .arrow-down {
    transform: rotate(180deg);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 16px;
    color: #6b7280;
    font-size: 0.85rem;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #5e3eff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Comment and Ad Section */
.comment-ad-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.disqus-section {
    flex: 2;
    min-width: 280px;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 30px 0;
    margin-top: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.footer-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-brand img {
    max-width: 180px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-brand img:hover {
    transform: scale(1.05);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.footer-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper, .comment-ad-container {
        padding: 16px;
    }

    .hero-container {
        height: 400px;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .game-list-item img, .post-list-item img {
        width: 60px;
        height: 60px;
    }

    .video-player-container {
        margin: 16px auto;
    }

    .play-pause-btn {
        width: 50px;
        height: 50px;
    }

    .play-pause-btn i {
        font-size: 1.2rem;
    }

    .volume-slider-container {
        width: 60px;
    }

    .post-title {
        font-size: 0.9rem;
    }

    .post-meta, .post-excerpt {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: 320px;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .content-wrapper, .comment-ad-container {
        flex-direction: column;
        padding: 12px;
    }

    .side-panel {
        max-height: none;
        border-radius: 12px;
    }

    .leaderboard-ad {
        height: 80px;
    }

    .rectangle-ad {
        height: 200px;
    }

    .game-list-item, .post-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-list-item img, .post-list-item img {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .game-title, .post-title {
        font-size: 0.95rem;
    }

    .game-meta, .post-meta {
        font-size: 0.75rem;
    }

    .post-excerpt {
        font-size: 0.7rem;
    }

    .video-player-container {
        margin: 12px auto;
    }

    .play-pause-btn {
        width: 40px;
        height: 40px;
    }

    .play-pause-btn i {
        font-size: 1rem;
    }

    .control-bar {
        padding: 8px;
        gap: 8px;
    }

    .volume-slider-container {
        width: 50px;
    }

    .time-display {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: 240px;
    }

    .hero-headline {
        font-size: 1.4rem;
        padding: 12px;
    }

    .leaderboard-ad {
        height: 60px;
    }

    .rectangle-ad {
        height: 160px;
    }

    .article-content {
        padding: 16px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 0.9rem;
    }

    .side-panel {
        padding: 12px;
    }

    .upcoming-releases, .popular-posts {
        padding: 16px;
    }

    .upcoming-releases h3, .popular-posts h3 {
        font-size: 1.4rem;
    }

    .game-title, .post-title {
        font-size: 0.85rem;
    }

    .game-meta, .post-meta, .post-excerpt {
        font-size: 0.65rem;
    }

    .video-player-container {
        margin: 12px auto;
    }

    .play-pause-btn {
        width: 40px;
        height: 40px;
    }

    .play-pause-btn i {
        font-size: 1rem;
    }

    .control-bar {
        flex-wrap: wrap;
        padding: 6px;
    }

    .volume-slider-container {
        width: 100%;
        margin-top: 5px;
    }

    .time-display {
        font-size: 0.75rem;
    }

    .play-pause-btn-small, .volume-btn, .fullscreen-btn {
        font-size: 0.9rem;
    }

    .view-all-btn {
        font-size: 0.75rem;
    }
}