@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");
@import url(colors.css);
@import url(components.css);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
    }
html {
    overflow-y: scroll
    }
body {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.01em
    }
/* Geometric grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(75, 139, 140, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 139, 140, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1
    }
/* ========== HOME PAGE ========== */
/* Floating background */
.floating-background {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    height: calc(100% - 30px);
    z-index: 0;
    opacity: 1;
    overflow: hidden
    }
/* Row groups */
.float-row-group {
    position: absolute;
    width: 100%;
    height: auto
    }
.float-row-group--top {
    top: 0;
    height: 35%
    }
.float-row-group--bottom {
    bottom: 10%;
    height: 35%
    }
.float-row {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    position: absolute;
    will-change: transform;
    width: max-content;
    z-index: 1
    }
.float-row[data-row="0"] {
    top: 10%;
    animation-name: float-right
    }
.float-row[data-row="1"] {
    top: 75%;
    animation-name: float-left
    }
.float-row[data-row="2"] {
    top: 10%;
    animation-name: float-right
    }
.float-row[data-row="3"] {
    top: 75%;
    animation-name: float-left
    }
.float-track {
    width: 350px;
    flex-shrink: 0;
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1
    }
.float-track:hover {
    transform: scale(1.05);
    opacity: 1 !important
    }
.float-track-content {
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    opacity: 0;
    transition: opacity 0.5s ease
    }
.float-track-content.loaded {
    opacity: 1
    }
.float-track-content iframe {
    flex: 1;
    min-width: 0
    }
/* Button container for floating tracks */
.float-track-buttons {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem
    }
/* Bookmark button for floating tracks */
.float-track-bookmark {
    width: 100%;
    flex: 1;
    min-height: 0
    }
/* Report button wrapper for floating tracks */
.float-track-report-wrapper {
    position: relative;
    /* For the dropdown */
    width: 100%
    }
/* Report button for floating tracks */
.float-track-report {
    width: 100%;
    height: 20px
    }
/* Report dropdown for floating tracks */
.float-report-dropdown {
    right: 0
    }
@keyframes float-left {
    from {
        transform: translateX(0);
        } to {
        transform: translateX(-50%);
        }
    }
@keyframes float-right {
    from {
        transform: translateX(-50%);
        } to {
        transform: translateX(0);
        }
    }
/* Hero section */
.hero-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none
    }
.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    pointer-events: auto;
    padding: 1.5rem;
    border-radius: 24px;
    }
/* Shared logo styling */
.logo-text {
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
    }
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    position: relative;
    padding-bottom: 1.5rem
    }
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    font-weight: 400
    }
/* Search container */
.search-container {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.2s
    }
@keyframes fadeIn {
    to {
        opacity: 1;
        }
    }
@starting-style {
    . search-container {
        opacity: 0;
        transform: translateY(20px);
        }
    }
.search-box {
    border-radius: 16px;
    padding: 1rem;
    gap: 1rem
    }
/* Gradient border effect on hover */
.search-box::before {
    border-radius: 16px
    }
/* Drop zone */
.drop-zone {
    border-radius: 16px
    }
.drop-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem
    }
/* Image preview */
.image-preview {
    width: 80px;
    height: 80px
    }
.image-preview.active {
    opacity: 0;
    animation: scaleIn 0.3s ease forwards
    }
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
        } to {
        opacity: 1;
        transform: scale(1);
        }
    }
@starting-style {
    . image-preview . active {
        opacity: 0;
        transform: scale(0.8);
        }
    }
/* Search input */
.search-input {
    font-size: 1.125rem
    }
/* Search modes */
.search-modes {
    display: flex;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease
    }
.search-modes.hidden {
    opacity: 0;
    pointer-events: none
    }
.mode-button {
    width: 40px;
    height: 40px;
    border-radius: 8px
    }
.mode-button svg {
    width: 20px;
    height: 20px
    }
/* Search button */
.search-button {
    width: 48px;
    height: 48px;
    border-radius: 12px
    }
.search-button svg {
    width: 24px;
    height: 24px
    }
.search-button:active {
    transform: translatey(0)
    }
/* ========== RESULTS PAGE ========== */
.results-page {
    background: var(--bg)
    }
/* Mini header */
.mini-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(228, 203, 168, 0);
    padding: 0.5rem 1.5rem;
    backdrop-filter: blur(10px)
    }
.mini-search-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    width: 100%
    }
.mini-header-left {
    display: flex;
    justify-content: flex-start;
    min-width: 150px
    }
.mini-header-center {
    display: flex;
    justify-content: center
    }
.mini-header-right {
    display: flex;
    justify-content: flex-end;
    min-width: 150px
    }
.logo-link {
    text-decoration: none;
    color: var(--text)
    }
.mini-logo {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.02em
    }
.mini-search-box {
    width: 600px;
    max-width: 600px;
    padding: 0.5rem 1rem;
    gap: 0.75rem
    }
.mini-search-box::before {
    inset: -1px
    }
.mini-image-preview {
    width: 40px;
    height: 40px
    }
.mini-image-preview img {
    border-radius: 6px
    }
.mini-search-input {
    font-size: 1rem
    }
.mini-search-modes {
    display: flex;
    gap: 0.25rem
    }
.mini-mode-button {
    width: 32px;
    height: 32px
    }
.mini-mode-button svg {
    width: 16px;
    height: 16px
    }
.mini-search-button {
    width: 40px;
    height: 40px
    }
.mini-search-button svg {
    width: 20px;
    height: 20px
    }
/* Bookmark navigation button */
.bookmark-nav-button {
    width: 40px;
    height: 40px;
    text-decoration: none;
    flex-shrink: 0
    }
.bookmark-nav-button svg {
    width: 20px;
    height: 20px
    }
/* Home page bookmark button */
.home-bookmark-button {
    position: fixed;
    top: 17px;
    right: 24px;
    z-index: 100
    }
.mini-drop-zone .drop-zone-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem
    }
.mini-drop-zone .drop-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0
    }
.mini-drop-zone p {
    white-space: nowrap
    }
/* Results container */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: calc(60px + 2rem);
    opacity: 0;
    animation: fadeIn 0.4s ease forwards
    }
.search-info {
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideIn 0.6s ease forwards
    }
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        } to {
        opacity: 1;
        transform: translateY(0);
        }
    }
@starting-style {
    . search-info {
        opacity: 0;
        transform: translateY(-10px);
        }
    }
.search-query {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
    }
.search-type {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    font-weight: 500
    }
/* Bookmark disclaimer */
.bookmark-disclaimer {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    animation: slideIn 0.6s ease 0.2s forwards
    }
.bookmark-disclaimer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    background: rgba(26, 29, 33, 0.8);
    border: 1px solid rgba(169, 183, 198, 0.2);
    border-radius: 8px;
    display: inline-block
    }
.bookmark-disclaimer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease
    }
.bookmark-disclaimer a:hover {
    opacity: 0.7
    }
/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 4rem 0
    }
.loading.active {
    display: block
    }
.loading p {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted)
    }
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite
    }
@keyframes spin {
    to {
        transform: rotate(360deg);
        }
    }
/* Results grid */
.results-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(var(--columns, 2), 1fr)
    }
.results-grid.layout-list {
    grid-template-columns: 1fr;
    max-width: 800px
    }
.result-item {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    opacity: 0;
    animation: resultFadeIn 0.5s ease forwards;
    overflow: hidden
    }
.result-item:hover {
    transform: translatey(-4px);
    transition: all 0.3s ease
    }
@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        } to {
        opacity: 1;
        transform: translateY(0) scale(1);
        }
    }
@starting-style {
    . result-item {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        }
    }
.result-item:nth-child(1) {
    animation-delay: 0.05s
    }
.result-item:nth-child(2) {
    animation-delay: 0.1s
    }
.result-item:nth-child(3) {
    animation-delay: 0.15s
    }
.result-item:nth-child(4) {
    animation-delay: 0.2s
    }
.result-item:nth-child(5) {
    animation-delay: 0.25s
    }
.result-item:nth-child(6) {
    animation-delay: 0.3s
    }
.result-item:nth-child(7) {
    animation-delay: 0.35s
    }
.result-item:nth-child(8) {
    animation-delay: 0.4s
    }
.result-item:nth-child(9) {
    animation-delay: 0.45s
    }
.result-item:nth-child(10) {
    animation-delay: 0.5s
    }
/* Result item action buttons */
.result-actions {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10
    }
.action-button {
    flex: 1;
    height: 32px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease
    }
/* Ensure action-button layout overrides track-button */
.action-button.track-button, .action-button.track-button--bookmark, .action-button.track-button--report {
    height: 32px;
    border-radius: 6px;
    backdrop-filter: blur(10px)
    }
.action-button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2
    }
.action-button:hover {
    transform: none
    }
/* Report/Lyrics button (first child) */
.action-button:first-child {
    flex: 1
    }
/* Bookmark button (last child) */
.action-button:last-child {
    flex: 2
    }
/* Blank placeholder button */
.action-button.blank-button {
    flex: 9;
    opacity: 0.3;
    cursor: default;
    pointer-events: none
    }
.action-spacer {
    flex: 2
    }
/* Report dropdown */
.report-wrapper {
    flex: 1;
    position: relative
    }
.report-wrapper .action-button {
    width: 100%
    }
.report-dropdown {
    left: 0
    }
.result-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease
    }
.result-card:hover {
    border-color: var(--primary);
    transform: translatey(-4px);
    box-shadow: 0 8px 24px var(--shadow)
    }
.result-score {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400
    }
.score-value {
    color: var(--primary);
    font-weight: 500
    }
/* Skeleton loader */
.skeleton {
    /* Add these properties: */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Ensure it's on top of the iframe */
    /* Keep your existing styles: */
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px
    }
@keyframes shimmer {
    0% {
        background-position: 200% 0;
        } 100% {
        background-position: -200% 0;
        }
    }
/* No results */
.no-results {
    display: none;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic
    }
.no-results.active {
    display: block
    }
/* Iframe fade-in */
iframe {
    opacity: 0;
    transition: opacity 0.4s ease
    }
iframe.loaded {
    opacity: 1
    }
/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.03em
        }
    .hero-subtitle {
        font-size: 1.25rem
        }
    .hero-content {
        padding: 2rem
        }
    .results-grid {
        grid-template-columns: 1fr
        }
    .mini-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem
        }
    .mini-search-box {
        max-width: none
        }
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 2rem
        }
    }
/* ========== FEEDBACK PAGE ========== */
.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: calc(60px + 2rem)
    }
.feedback-header {
    text-align: center;
    margin-bottom: 3rem
    }
.feedback-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0
    }
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem
    }
.feedback-section {
    display: flex;
    flex-direction: column
    }
.feedback-card {
    padding: 2rem;
    flex: 1
    }
.feedback-card h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0
    }
.feedback-description {
    font-size: 0.875rem;
    margin: 0 0 2rem 0
    }
.feedback-input, .feedback-textarea {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem
    }
.feedback-textarea {
    min-height: 150px;
    resize: vertical
    }
.feedback-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0
    }
.char-counter, .feedback-counter {
    font-size: 0.875rem
    }
.feedback-button {
    width: 100%;
    padding: 0.875rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden
    }
.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    display: none
    }
.feedback-disclaimer {
    text-align: center;
    padding: 2rem 1rem
    }
.feedback-disclaimer p {
    font-size: 0.875rem;
    margin: 0
    }