/* ===========================================================================
   Google hub — live Google updates ticker + Google search (home page).
   =========================================================================== */

.ghub {
    position: relative;
    height: 100vh;                     /* exactly one screen: results scroll inside it */
    min-height: 620px;
    display: flex;
    flex-direction: column;
    padding-top: 96px;                 /* clear of the header */
    background:
        radial-gradient(50% 40% at 50% 60%, rgba(66, 133, 244, .06), transparent 70%),
        #ffffff;
    overflow: hidden;
}

/* ---- ticker ---- */
.ghub__ticker {
    display: flex;
    align-items: stretch;
    height: 56px;
    background: #0d0d14;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}
.ghub__live {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    background: linear-gradient(125deg, #ff4d94, #f99d4e);
    position: relative;
    z-index: 2;
    box-shadow: 12px 0 24px #0d0d14;
}
.ghub__live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: ghub-pulse 1.4s ease-in-out infinite;
}
@keyframes ghub-pulse { 50% { opacity: .25; } }

.ghub__window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
}
.ghub__track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}
.ghub__track.is-running { animation: ghub-scroll var(--ghub-dur, 120s) linear infinite; }
.ghub__ticker:hover .ghub__track,
.ghub__ticker:focus-within .ghub__track,
.ghub--paused .ghub__track { animation-play-state: paused; }
@keyframes ghub-scroll { to { transform: translateX(-50%); } }

.ghub__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px;
    height: 56px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    white-space: nowrap;
    font-size: 14.5px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    transition: color .2s ease, background .2s ease;
}
.ghub__item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.ghub__tag {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
}
.ghub__tag--status  { background: #ea4335; }   /* algorithm updates */
.ghub__tag--central { background: #34a853; }
.ghub__tag--ads     { background: #fbbc05; color: #1f1f1f; }
.ghub__tag--search  { background: #4285f4; }
.ghub__date { font-size: 12px; color: rgba(255, 255, 255, .45); }
.ghub__new {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    background: #fff;
    color: #e93b6e;
    animation: ghub-pulse 1.2s ease-in-out 6;
}

/* ---- the real google.com, full section width ---- */
.ghub__frame {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #fff;
}
.ghub__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.ghub__out {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font: 600 12.5px/1 'Outfit', sans-serif;
    color: #fff;
    background: rgba(13, 13, 20, .72);
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s ease;
}
.ghub__out:hover { color: #fff; opacity: 1; }

@media (max-width: 767px) {
    .ghub { padding-top: 80px; }
    .ghub__ticker { height: 48px; }
    .ghub__live { padding: 0 14px; font-size: 10.5px; letter-spacing: 1px; }
    .ghub__item { height: 48px; padding: 0 18px; font-size: 13px; }
    .ghub__go { height: 40px; padding: 0 16px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .ghub__track.is-running { animation: none; }
    .ghub__window { overflow-x: auto; }
}
