:root {
    --white: #ffffff;
    --black: #111111;
    --text: #333333;
    --muted: #707070;

    --sea-green: #20b486;
    --sea-green-dark: #12815f;
    --sea-green-light: #e9f9f3;

    --border: #e3e3e3;
    --background: #f8faf9;

    --danger: #c62828;

    --container: 1180px;
}


/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--white);
    color: var(--black);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}


/* ==========================================
   ACCESSIBILITY
========================================== */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ==========================================
   CONTAINER
========================================== */

.container {
    width: 100%;
    max-width: var(--container);

    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.logo {
    color: var(--black);

    font-size: 25px;
    font-weight: 900;

    letter-spacing: -1px;
}

.logo span {
    color: var(--sea-green);
}

.main-navigation {
    display: flex;
    align-items: center;

    gap: 22px;
}

.main-navigation a {
    color: var(--black);

    font-size: 14px;
    font-weight: 700;
}

.main-navigation a:hover {
    color: var(--sea-green-dark);
}


/* ==========================================
   HERO
========================================== */

.hero {
    padding: 15px 0 0;

    background: var(--white);

    border-bottom: 1px solid var(--border);
}

.hero-container {
    text-align: center;
}

.hero-label,
.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--sea-green-dark);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    color: var(--black);

    font-size: clamp(42px, 7vw, 72px);

    line-height: 1.05;

    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--sea-green);
}

.hero-description {
    max-width: 680px;

    margin: 20px auto 30px;

    color: var(--text);

    font-size: 17px;
}


/* ==========================================
   SEARCH
========================================== */

.search-form {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;

    display: flex;

    align-items: stretch;

    gap: 10px;
}

.search-input-wrapper {
    position: relative;

    flex: 1 1 auto;

    width: auto;

    min-width: 0;
}

.search-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--sea-green);

    font-size: 20px;

    pointer-events: none;
}

.search-form input {
    display: block;

    width: 100%;

    height: 54px;

    padding: 0 18px 0 47px;

    background: var(--white);

    color: var(--black);

    border: 2px solid #cccccc;

    border-radius: 9px;

    outline: none;

    font-size: 15px;
}

.search-form input:focus {
    border-color: var(--sea-green);

    box-shadow:
        0 0 0 3px
        rgba(32, 180, 134, 0.12);
}

.search-form input::placeholder {
    color: #777777;
}

.search-form button {
    flex: 0 0 auto;

    width: auto;

    min-width: 105px;

    height: 54px;

    padding: 0 28px;

    border: 0;

    border-radius: 9px;

    background: var(--sea-green);

    color: var(--white);

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;
}

.search-form button:hover {
    background: var(--sea-green-dark);
}

.search-form button:disabled {
    opacity: 0.6;

    cursor: wait;
}

.search-status {
    min-height: 24px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;
}


/* ==========================================
   RESULTS SECTION
========================================== */

.results-section {
    padding: 0 0 60px;

    background: var(--background);

    border-bottom: 1px solid var(--border);
}

.results-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.results-heading h2 {
    margin: 0;

    font-size: 29px;

    line-height: 1.2;
}

.result-count {
    color: var(--muted);

    font-size: 14px;

    font-weight: 700;
}

.results-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* ==========================================
   RESULT CARD
========================================== */

.result-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 4px 16px
        rgba(0, 0, 0, 0.04);
}

.result-card:hover {
    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);
}

.result-player-area {
    width: 100%;
}


/* ==========================================
   THUMBNAIL
========================================== */

.result-thumbnail {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eeeeee;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.play-overlay {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translate(-50%, -50%);

    background: var(--sea-green);

    color: var(--white);

    border-radius: 50%;

    font-size: 22px;

    padding-left: 4px;

    box-shadow:
        0 6px 20px
        rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.result-thumbnail:hover .play-overlay {
    background: var(--sea-green-dark);

    transform:
        translate(-50%, -50%)
        scale(1.05);
}


/* =========================================================
   ULTRA THIN MP3 PLAYER
========================================================= */

.mp3-player {
    width: 100%;

    padding: 4px 7px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 6px;
}


/* ==========================================
   PLAYER TOP BAR
========================================== */

.mp3-player-top {
    display: flex;

    align-items: center;

    gap: 6px;

    min-height: 30px;
}


/* ==========================================
   MUSIC ICON
========================================== */

.mp3-player-icon {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--sea-green);

    color: #ffffff;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 700;
}


/* ==========================================
   PLAYER INFORMATION
========================================== */

.mp3-player-info {
    min-width: 0;

    flex: 1;
}

.mp3-player-title {
    overflow: hidden;

    color: #111111;

    font-size: 11px;

    font-weight: 700;

    line-height: 13px;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.mp3-player-channel {
    overflow: hidden;

    margin: 0;

    color: #777777;

    font-size: 8px;

    line-height: 10px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* ==========================================
   EXTRA THIN YOUTUBE PLAYER
========================================== */

.mp3-player-youtube {
    width: 100%;

    height: 38px;

    margin-top: 4px;

    overflow: hidden;

    background: #000000;

    border-radius: 5px;
}

.mp3-player-youtube iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* ==========================================
   PLAYER DURATION
========================================== */

.mp3-player-duration {
    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 10px;

    margin-top: 2px;

    color: #777777;

    font-size: 7px;

    line-height: 9px;
}


/* ==========================================
   RESULT CONTENT
========================================== */

.result-content {
    padding: 20px;
}

.result-content h3 {
    margin: 0 0 10px;

    color: var(--black);

    font-size: 18px;

    line-height: 1.35;
}

.result-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px 15px;

    margin-bottom: 12px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;
}


/* ==========================================
   VIDEO STATS
========================================== */

.video-stats {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin: 15px 0;
}

.video-stats span {
    padding: 6px 9px;

    background: var(--sea-green-light);

    border-radius: 6px;

    color: var(--text);

    font-size: 12px;
}

.video-stats strong {
    color: var(--black);
}


/* ==========================================
   DESCRIPTION
========================================== */

.result-description {
    margin-top: 15px;
}

.result-description h4 {
    margin: 0 0 6px;

    font-size: 14px;
}

.result-description p {
    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 5;

    overflow: hidden;

    margin: 0;

    color: var(--text);

    font-size: 14px;

    line-height: 1.55;
}


/* ==========================================
   TAGS
========================================== */

.result-tags {
    margin-top: 15px;

    color: var(--text);

    font-size: 12px;
}

.tag-list {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 7px;
}

.tag {
    padding: 4px 8px;

    background: #f2f2f2;

    border: 1px solid var(--border);

    border-radius: 5px;

    color: var(--text);
}


/* ==========================================
   RESULT ACTIONS
========================================== */

.result-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-top: 18px;
}

.watch-button {
    padding: 9px 14px;

    border: 0;

    border-radius: 7px;

    background: var(--sea-green);

    color: var(--white);

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}

.watch-button:hover {
    background: var(--sea-green-dark);
}

.youtube-link {
    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 7px;

    color: var(--text);

    font-size: 12px;

    font-weight: 700;
}

.youtube-link:hover {
    color: var(--sea-green-dark);

    border-color: var(--sea-green);
}


/* ==========================================
   LOADING / ERROR / EMPTY
========================================== */

.loading-state,
.error-state,
.empty-state {
    grid-column: 1 / -1;

    padding: 70px 20px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.loading-spinner {
    width: 42px;
    height: 42px;

    margin: 0 auto 18px;

    border: 4px solid #dff4ec;

    border-top-color: var(--sea-green);

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}

.loading-state h3,
.error-state h3,
.empty-state h3 {
    margin: 0 0 8px;

    font-size: 20px;
}

.loading-state p,
.error-state p,
.empty-state p {
    max-width: 500px;

    margin: 0 auto;

    color: var(--text);

    font-size: 14px;
}

.error-state-icon,
.empty-state-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: var(--sea-green-light);

    color: var(--sea-green-dark);

    font-size: 23px;

    font-weight: 900;
}

.error-state-icon {
    background: #fff0f0;

    color: var(--danger);
}


/* ==========================================
   SEO CONTENT
========================================== */

.seo-content-section {
    padding: 10px 0;

    background: var(--white);
}

.seo-content {
    max-width: 950px;
}

.seo-content h1 {
    margin: 0 0 20px;

    font-size: 44px;

    line-height: 1.15;
}

.seo-content h2 {
    margin: 38px 0 14px;

    font-size: 27px;
}

.seo-content h3 {
    font-size: 20px;
}

.seo-content p {
    margin: 0 0 18px;

    color: var(--text);

    font-size: 16px;
}

.seo-content ul {
    padding-left: 25px;

    color: var(--text);
}

.seo-content li {
    margin-bottom: 8px;
}


/* ==========================================
   FEATURE GRID
========================================== */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-top: 35px;
}

.feature-card {
    padding: 25px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.feature-number {
    margin-bottom: 10px;

    color: var(--sea-green);

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 1px;
}

.feature-card h3 {
    margin: 0 0 8px;

    font-size: 18px;
}

.feature-card p {
    margin: 0;

    font-size: 14px;
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    padding-top: 50px;

    background: #f5f5f5;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 40px;

    padding-bottom: 40px;
}

.footer-brand p {
    max-width: 420px;

    color: var(--text);

    font-size: 14px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 8px;

    font-size: 16px;
}

.footer-column a {
    color: var(--text);

    font-size: 14px;
}

.footer-column a:hover {
    color: var(--sea-green-dark);
}

.footer-bottom {
    padding: 18px 20px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* ==========================================
   CONTACT
========================================== */

.contact-layout {
    display: grid;

    grid-template-columns:
        1.5fr 0.8fr;

    gap: 25px;

    margin-top: 40px;
}

.contact-form-card,
.contact-info-card {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    background: var(--white);

    color: var(--black);

    outline: none;

    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--sea-green);

    box-shadow:
        0 0 0 3px
        rgba(32, 180, 134, 0.1);
}

.contact-submit {
    width: 100%;

    padding: 14px 20px;

    border: 0;

    border-radius: 8px;

    background: var(--sea-green);

    color: var(--white);

    font-weight: 800;

    cursor: pointer;
}

.contact-submit:hover {
    background: var(--sea-green-dark);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .navbar {
        flex-direction: column;

        padding: 15px 0;
    }

    .main-navigation {
        flex-wrap: wrap;

        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 15px 0 0;
    }

    .hero h1 {
        font-size: 44px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }


    /* ======================================
       MOBILE SEARCH
    ====================================== */

    .search-form {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }

    .search-input-wrapper {
        width: 100%;

        flex: none;
    }

    .search-form input {
        width: 100%;

        height: 54px;

        font-size: 14px;
    }

    .search-form button {
        width: 100%;

        height: 54px;

        min-width: 0;

        padding: 0 20px;

        font-size: 15px;
    }


    /* ======================================
       RESULTS
    ====================================== */

    .results-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .result-content {
        padding: 16px;
    }


    /* ======================================
       FEATURE GRID
    ====================================== */

    .feature-grid {
        grid-template-columns: 1fr;
    }


    /* ======================================
       FOOTER
    ====================================== */

    .footer-grid {
        grid-template-columns: 1fr;
    }


    /* ======================================
       SEO
    ====================================== */

    .seo-content h1 {
        font-size: 35px;
    }

    .seo-content h2 {
        font-size: 24px;
    }


    /* ======================================
       CONTACT
    ====================================== */

    .contact-form-card,
    .contact-info-card {
        padding: 20px;
    }


    /* ======================================
       ULTRA THIN PLAYER
    ====================================== */

    .mp3-player {
        padding: 3px 6px;
    }

    .mp3-player-top {
        min-height: 27px;

        gap: 5px;
    }

    .mp3-player-icon {
        width: 23px;
        height: 23px;

        flex-basis: 23px;

        font-size: 12px;
    }

    .mp3-player-title {
        font-size: 10px;

        line-height: 12px;
    }

    .mp3-player-channel {
        font-size: 7px;

        line-height: 8px;
    }

    .mp3-player-youtube {
        height: 30px;

        margin-top: 3px;
    }

    .mp3-player-duration {
        height: 8px;

        font-size: 6px;
    }


    /* ======================================
       RESULT ACTIONS
    ====================================== */

    .result-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .watch-button,
    .youtube-link {
        width: 100%;

        text-align: center;
    }

}