* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f82 100%);
    color: #fff;
    overflow-x: hidden;
}

.top-header {
    background: #1a4d6d;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.logo-img {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.logo-text {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    color: #fff;
}

.logo-text span {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #ddd;
}

.search-container {
    flex: 1;
    max-width: 520px;
    margin: 0 28px;
    display: flex;
    gap: 10px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.95);
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.3);
}

.search-btn {
    background: #00d9ff;
    border: none;
    padding: 10px 26px;
    border-radius: 24px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 56px;
}

.search-btn:hover {
    background: #00b8d4;
    transform: scale(1.05);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 60px;
    background: rgba(26, 77, 109, 0.95);
    transition: width 0.3s ease;
    z-index: 99;
    overflow: hidden;
    border-right: 2px solid rgba(139, 92, 246, 0.2);
}

.sidebar:hover {
    width: 250px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 217, 255, 0.25);
    border-left-color: #00d9ff;
}

.nav-item.active {
    background: rgba(0, 217, 255, 0.25);
    border-left-color: #00d9ff;
}

.nav-icon {
    font-size: 24px;
    width: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    margin-left: 15px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.main-content {
    margin-left: 60px;
    margin-top: 70px;
    padding: 0;
    min-height: calc(100vh - 70px);
}

.page-content {
    padding: 24px 24px 40px;
}


.hero-section {
    max-width: var(--stage-w);
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-showcase {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #03a9f4 100%);
    border-radius: var(--stage-radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(93, 173, 226, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 380px;
    width: 100%;
}

.game-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/some-little-adventures-cover.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.95);
    opacity: 0.3;
    z-index: 0;
}

.game-showcase::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: float2 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.15); }
}

.character-card {
    background: rgba(255,255,255,0.94);
    border-radius: 16px;
    padding: 18px;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

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

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.9);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #fff;
}

.fullscreen-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.1);
}

.character-placeholder {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    background: linear-gradient(135deg, #00d9ff 0%, #00acc1 100%);
    border: none;
    padding: 16px 52px;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 26px rgba(0, 217, 255, 0.4);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 217, 255, 0.55);
    background: linear-gradient(135deg, #74d7ff 0%, #4ec1ff 100%);
    color: #000;
}

.play-button:active {
    transform: translateY(-1px);
}

.game-title-card,
#game-title {
    margin: 0;
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a0933;
    text-align: left;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}

.view-more {
    color: #00d9ff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #00d9ff;
}

.view-more:hover {
    background: #00d9ff;
    color: #1a0933;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.game-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
    border-color: #00d9ff;
}

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

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.game-category {
    display: none;
}

.breadcrumb {
    display: none;
}

.breadcrumb a {
    color: #8b5cf6;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #00d9ff;
}

.breadcrumb span {
    color: #666;
    margin: 0 8px;
}

.footer {
    background: rgba(26, 77, 109, 0.9);
    padding: 50px 40px;
    text-align: center;
    margin-top: 80px;
    border-top: 2px solid rgba(0, 217, 255, 0.3);
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    color: #00d9ff;
    transform: translateY(-2px);
}

.disclaimer {
    color: #fff;
    font-size: 14px;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.copyright {
    color: #aaa;
    font-size: 13px;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.game-container {
    max-width: var(--stage-w);
    width: 100%;
    margin: 0 auto;
    background: rgba(0,0,0,0.85);
    border-radius: var(--stage-radius);
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

.game-iframe-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a78bfa;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.game-info-section {
    max-width: 1000px;
    margin: 60px auto;
}

.game-info-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.game-info-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
}

.game-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.5);
    color: #fff;
}

.related-games-section {
    margin-top: 80px;
}

.related-games-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px;
    background: #fff;
    border-radius: 15px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.search-result-item:hover {
    background: rgba(0, 217, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

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

.search-result-item span {
    font-size: 16px;
    font-weight: 500;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

.page-content h1 {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(0, 217, 255, 0.5);
}

.page-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #00d9ff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #4fc3f7;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 20px;
}

.page-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 12px;
    list-style-type: disc;
}

.page-content a {
    color: #00d9ff;
    text-decoration: none;
    transition: all 0.3s;
}

.page-content a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.page-content strong {
    color: #fff;
    font-weight: 600;
}
