* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    overflow: hidden;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: white;
    position: relative;
}
.nav-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.nav-header {
    font-size: 1.2rem;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.page-info {
    background: rgba(74, 144, 226, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.btn-group {
    display: flex;
    gap: 10px;
}
.btn {
    flex: 1;
    padding: 10px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn:hover {
    background: #357ae8;
    transform: translateY(-2px);
}
.btn-prev::before {
    content: "← ";
}
.btn-next::after {
    content: " →";
}
.btn-home {
    background: #28a745;
}
.btn-home:hover {
    background: #218838;
}
.btn-random {
    background: #ff9500;
}
.btn-random:hover {
    background: #e68a00;
}
iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}
.current-title {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 30px;
    z-index: 1000;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 768px) {
    .nav-controls {
        top: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .nav-header {
        flex: 0 0 100%;
    }
    .page-info {
        flex: 0 0 100%;
    }
    .btn-group {
        flex: 1;
    }
    .current-title {
        font-size: 0.9rem;
        bottom: 10px;
        padding: 8px 15px;
    }
}
