.shufflr-logo {
    width: 200px;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0px;
    background: #ffffff;
    color: #2c3e50;
    font-family: Arial, sans-serif;
    text-align: center;
}

.banner-container {
    position: relative;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    height: 100%;
    min-height: 60px;
}

.banner-left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    display: flex;
    align-items: center;
    height: auto;
}

.banner-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    min-height: 40px;
}

#url-display {
    position: absolute;
    top: 50%;
    left: calc(50% + 270px);
    transform: translateY(-50%);
    margin: 0;
    font-size: 12px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    z-index: 1000;
}

#current-url {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

#current-url:hover {
    text-decoration: underline;
}

.controls {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}

#new-random-btn {
    background: linear-gradient(180deg, #2b9cff 0%, #007BFF 100%);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(26,115,232,0.18);
    cursor: pointer;
    -webkit-appearance: none;
}

.utility-buttons {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(110px, -50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: default;
}

.icon-btn:hover {
    background: rgba(0,0,0,0.04);
}

.report-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: default;
}

.icon-btn.pending {
    opacity: 0.8;
    transform: translateY(0);
}

.icon-btn.done {
    background: transparent;
    color: #0b6623;
}

.hamburger-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn:hover {
    background: rgba(0,0,0,0.1);
}

.menu-label {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

.menu-action-btn {
    font-size: 16px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 1000;
    display: none;
}

.menu-container {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 0;
}

.menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #2c3e50;
}

.menu-items {
    padding: 10px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.menu-current {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    max-width: 360px;
}

.menu-current a {
    color: #1a73e8;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-current-label {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.menu-keyword {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    max-width: 360px;
}

.menu-keyword-value {
    color: #374151;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

#banner-frame,
#content-frame {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#banner-frame {
    height: 65px;
    border: 1px solid #ccc;
    border-bottom: 2px solid #333;
    overflow: hidden;
}

#content-frame {
    height: calc(100vh - 100px);
    border: 1px solid #ccc;
    margin-top: 0;
}

/* Mobile overrides */
@media (max-width: 600px) {
    .shufflr-logo {
        width: 100px;
    }
    #url-display {
        display: none !important;
    }
    .menu-label {
        display: none !important;
    }
    .icon-btn[data-action="thumbs_up"],
    .icon-btn[data-action="thumbs_down"],
    .report-btn {
        display: none !important;
    }
    #banner-frame {
        height: 60px !important;
    }
    #content-frame {
        height: calc(100vh - 60px) !important;
    }
}

@media (max-width: 1000px) {
    #url-display {
        display: none !important;
    }
}
