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

body {
    font-family: arial, sans-serif;
    background: #fff;
    color: #202124;
    font-size: 14px;
}

a {
    color: #202124;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    fill: #5f6368;
}

.icon-btn:hover {
    background: #f1f3f4;
}

.sign-in-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 9px 23px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.sign-in-btn:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.landing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
}

.logo-large {
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: -2px;
}

.search-box-landing {
    width: 584px;
    max-width: 90%;
    height: 44px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 16px;
    margin-bottom: 30px;
}

.search-box-landing:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

.search-icon-landing {
    fill: #9aa0a6;
    height: 20px;
    width: 20px;
    margin-right: 13px;
}

.search-input-landing {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: arial, sans-serif;
}

.search-tools-landing {
    display: flex;
    gap: 4px;
}

.icon-btn-landing {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.icon-btn-landing svg {
    width: 24px;
    height: 24px;
}

.icon-btn-landing:hover {
    background: #f1f3f4;
}

.search-buttons {
    display: flex;
    gap: 10px;
}

.search-buttons button {
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #3c4043;
}

.search-buttons button:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
}

.landing-footer {
    background: #f2f2f2;
    border-top: 1px solid #e4e4e4;
}

.footer-country {
    padding: 15px 30px;
    color: #70757a;
    border-bottom: 1px solid #dadce0;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    display: flex;
    gap: 27px;
}

.footer-links a {
    color: #70757a;
    font-size: 14px;
}

/* Results Page Styles */
.results-page {
    min-height: 100vh;
}

.header {
    padding: 6px 20px 0;
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo {
    padding: 18px 0 18px 6px;
}

.logo-text {
    font-size: 22px;
    font-weight: normal;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-block;
}

.search-box-container {
    flex: 1;
    max-width: 584px;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 8px 0 16px;
    background: #fff;
    height: 44px;
}

.search-box-wrapper:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.search-icon {
    fill: #9aa0a6;
    height: 20px;
    width: 20px;
    margin-right: 13px;
}

.search-box {
    flex: 1;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    font-family: arial, sans-serif;
}

.search-tools {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 8px;
}

.search-btn {
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: #5f6368;
}

.search-btn:hover {
    background: #f1f3f4;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sign-in-btn-small {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 9px 23px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.sign-in-btn-small:hover {
    background: #1765cc;
}

.nav-tabs {
    padding: 0 20px 0 180px;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ebebeb;
    margin-top: -1px;
}

.nav-tab {
    padding: 12px 12px 12px;
    color: #5f6368;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-bottom: -1px;
}

.nav-tab svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.nav-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.nav-tab:hover:not(.active) {
    color: #202124;
}

.results-container {
    padding: 0 20px 0 180px;
    max-width: 1000px;
}

.result-stats {
    color: #70757a;
    font-size: 14px;
    padding: 12px 0 0;
    margin-bottom: 20px;
}

.result-item {
    margin-bottom: 28px;
    max-width: 600px;
}

.result-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.result-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #70757a;
    flex-shrink: 0;
    font-weight: 500;
}

.result-breadcrumb {
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    padding-top: 1px;
}

.result-domain {
    color: #202124;
}

.result-path {
    color: #5f6368;
}

.result-title {
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 3px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    font-weight: normal;
    padding-top: 5px;
}

.result-title:hover {
    text-decoration: underline;
}

.result-title:visited {
    color: #681da8;
}

.result-metadata {
    font-size: 13px;
    color: #70757a;
    margin-top: 4px;
    margin-bottom: 4px;
}

.result-meta {
    margin-right: 12px;
}

.ai-overview {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    max-width: 652px;
    position: relative;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-icon {
    width: 24px;
    height: 24px;
}

.ai-title {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-gemini-icon {
    width: 24px;
    height: 24px;
}

.ai-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    font-size: 20px;
    line-height: 1;
}

.ai-menu-btn:hover {
    background: #f1f3f4;
}

.ai-content {
    color: #202124;
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 0;
}

.ai-content p {
    margin: 0 0 12px 0;
}

.ai-content p:last-child {
    margin-bottom: 0;
}

.ai-name-highlight {
    font-weight: 500;
    color: #202124;
}

.ai-collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.ai-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.ai-overview.expanded .ai-collapsed {
    max-height: none;
}

.ai-overview.expanded .ai-collapsed::after {
    display: none;
}

.ai-sources {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.ai-source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #70757a;
}

.ai-source-bullet {
    width: 4px;
    height: 4px;
    background: #70757a;
    border-radius: 50%;
}

.ai-show-more {
    background: transparent;
    border: 1px solid #dadce0;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 100px;
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-show-more:hover {
    background: #f8f9fa;
}

.ai-show-more svg {
    width: 16px;
    height: 16px;
    fill: #1a73e8;
    transition: transform 0.2s;
}

.ai-overview.expanded .ai-show-more svg {
    transform: rotate(180deg);
}

.results-with-panel {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.main-results {
    flex: 1;
    min-width: 0;
}

.knowledge-panel {
    width: 350px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 0;
    flex-shrink: 0;
}

.kp-title {
    font-size: 22px;
    color: #202124;
    margin: 16px 16px 4px 16px;
    font-weight: normal;
    line-height: 28px;
}

.kp-subtitle {
    font-size: 14px;
    color: #70757a;
    margin: 0 16px 12px 16px;
    line-height: 20px;
}

.kp-description {
    font-size: 14px;
    color: #202124;
    line-height: 20px;
    margin: 0 16px 8px 16px;
}

.kp-source {
    font-size: 12px;
    color: #1a0dab;
    margin: 0 16px 16px 16px;
    cursor: pointer;
}

.kp-source:hover {
    text-decoration: underline;
}

.kp-facts {
    border-top: 1px solid #ebebeb;
    padding: 12px 16px;
}

.kp-fact {
    display: flex;
    padding: 6px 0;
    gap: 8px;
    align-items: flex-start;
}

.kp-fact-label {
    font-size: 14px;
    color: #70757a;
    min-width: 100px;
    font-weight: 500;
}

.kp-fact-value {
    font-size: 14px;
    color: #202124;
    flex: 1;
    line-height: 20px;
}

.kp-fact-value a {
    color: #1a0dab;
    text-decoration: none;
}

.kp-fact-value a:hover {
    text-decoration: underline;
}

.kp-section {
    border-top: 1px solid #ebebeb;
    padding: 16px;
}

.kp-section-title {
    font-size: 16px;
    color: #202124;
    margin-bottom: 12px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kp-section-title svg {
    width: 16px;
    height: 16px;
    fill: #70757a;
}

.kp-song {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.kp-song:hover {
    background: #f8f9fa;
    margin: 0 -16px;
    padding: 8px 16px;
}

.kp-song-thumbnail {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kp-song-info {
    flex: 1;
    min-width: 0;
}

.kp-song-title {
    font-size: 14px;
    color: #202124;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-song-artist {
    font-size: 12px;
    color: #70757a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.people-also-ask {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    max-width: 652px;
}

.paa-title {
    font-size: 20px;
    color: #202124;
    margin-bottom: 12px;
    font-weight: normal;
}

.paa-question {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    color: #202124;
    font-size: 16px;
    cursor: pointer;
}

.paa-question:last-child {
    border-bottom: none;
}

.paa-question:hover {
    background: #f8f9fa;
    margin: 0 -16px;
    padding: 12px 16px;
}

.result-date {
    color: #70757a;
    font-size: 14px;
    line-height: 1.58;
}

.result-snippet {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
    word-wrap: break-word;
}

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

.loading-state {
    padding: 40px 20px;
    text-align: center;
    color: #70757a;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination-container {
    padding: 30px 20px 50px 180px;
    max-width: 1000px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 30px;
}

.pagination-logo {
    font-size: 28px;
    font-weight: normal;
    letter-spacing: -1px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number,
.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.page-number:hover,
.page-nav:hover {
    background: #f1f3f4;
    border-radius: 50%;
}

.page-number.active {
    color: #202124;
    font-weight: bold;
    pointer-events: none;
}

.page-nav svg {
    width: 24px;
    height: 24px;
    fill: #1a73e8;
}

@media (max-width: 1024px) {
    .results-container,
    .nav-tabs,
    .pagination-container {
        padding-left: 20px;
    }
    
    .results-with-panel {
        flex-direction: column;
    }
    
    .knowledge-panel {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px 0;
    }
    
    .logo {
        padding: 12px 0;
    }
    
    .search-box-container {
        width: 100%;
        max-width: 100%;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .nav-tabs {
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .results-container {
        padding: 0 16px;
    }
    
    .result-stats {
        font-size: 13px;
    }
    
    .result-item {
        margin-bottom: 24px;
    }
    
    .result-title {
        font-size: 18px;
    }
    
    .result-snippet {
        font-size: 13px;
    }
    
    .pagination-container {
        padding: 20px 16px 40px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .pagination-logo {
        font-size: 24px;
    }
    
    .pagination-numbers {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding-bottom: 8px;
    }
    
    /* Landing page mobile */
    .landing-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .landing-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .landing-content {
        padding: 0 16px;
        margin-top: -50px;
    }
    
    .logo-large {
        margin-bottom: 24px;
    }
    
    .logo-large span {
        font-size: 60px !important;
    }
    
    .search-box-landing {
        width: 100%;
        max-width: 100%;
    }
    
    .search-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .search-buttons button {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        padding: 12px 16px;
    }
    
    .footer-left,
    .footer-right {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-country {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .search-box-wrapper,
    .search-box-landing {
        height: 40px;
    }
    
    .search-icon,
    .search-icon-landing {
        width: 18px;
        height: 18px;
    }
    
    .search-box,
    .search-input-landing {
        font-size: 14px;
    }
    
    .search-btn,
    .icon-btn-landing {
        width: 36px;
        height: 36px;
    }
    
    .search-btn svg,
    .icon-btn-landing {
        width: 18px;
        height: 18px;
    }
    
    .result-title {
        font-size: 16px;
    }
    
    .result-snippet,
    .result-date {
        font-size: 12px;
    }
    
    .page-number,
    .page-nav {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
