/*
Theme Name: 歌詞格子
Description: Gezi lyrics, artist profiles, and writing tools.
Version: 1.1.0
Text Domain: custom-lyrics-theme
*/

/*=============================
    Global Styles
=============================*/

/* Typography */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll issues */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #222;
}

/* Color Scheme */
body {
    background-color: #f4f4f4;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/*=============================
    Layout and Spacing
=============================*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Sticky Footer */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/*=============================
    Header Styles
=============================*/

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    position: relative;
}

header .site-logo {
    margin-right: 10px;
}

.site-logo img {
    max-height: 40px;
    height: auto;
    content: url('https://gezi.tw/wp-content/themes/custom-lyrics-theme/images/logonoback.png');
}

.site-title-description .site-title {
    font-size: 1.5em;
    margin: 0;
    line-height: 1.2;
}

.site-title-description .site-title a {
    text-decoration: none;
    color: inherit;
}

/*=============================
    Buttons
=============================*/

/* Updated Button Styles */
button, .btn {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    display: block; /* Ensures buttons are block elements */
    width: 100%; /* Full-width buttons on mobile */
    max-width: 200px; /* Maximum width */
    margin: 10px auto; /* Centers the buttons and adds vertical spacing */
    text-align: center; /* Centers text inside the buttons */
}

button:hover, .btn:hover {
    background-color: #0056b3;
    transition: none;
}

.login-button-wrapper {
    position: relative;
}

.artist-login-button {
    align-items: center;
    background-color: #111;
    border: 2px solid #111;
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    max-width: none;
    min-height: 42px;
    padding: 0 18px;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    width: auto;
}

.artist-login-button:hover,
.artist-login-button:focus-visible {
    background-color: #fff;
    color: #111;
}

.artist-login-button:active {
    transform: translateY(1px);
}


/*=============================
    Footer Styles
=============================*/

footer {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    background-color: #333;
    color: #FFF;
    text-align: center;
}
footer .footer-links {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 30px;
}

footer .footer-links > div {
    margin-bottom: 20px;
}

footer h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: 500;
}

footer ul {
    list-style-type: none;
    padding: 0;
    font-size: 1em;
    line-height: 2;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #FFF;
    text-decoration: none;
}

footer ul li a:hover {
    color: #ccc;
}

footer .top-button {
    margin-bottom: 40px;
}

footer .top-button a {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1em;
    background-color: #b18f47;
    color: #faf3e0;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

footer .top-button a:hover {
    background-color: #a07a3b;
}

footer .footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    width: 100%;
    max-width: 1000px;
}

footer p {
    font-size: 0.9em;
    color: #bbb;
}

/* Column-like Structure for Mobile Footer */
footer .footer-column {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

/*=============================
    Responsive Adjustments
=============================*/

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .artist-login-button {
        font-size: 0.9rem;
        min-height: 38px;
        padding: 0 14px;
    }

    .login-form {
        max-width: calc(100vw - 24px);
        min-width: 260px;
        right: 0;
        top: 48px;
    }
}

/* Links Section on Desktop */
@media (min-width: 769px) {
    footer .footer-links {
        flex-direction: row;
        justify-content: space-between;
    }
    footer .footer-links > div {
        margin-bottom: 0;
    }
}

/* Hide specific titles on mobile */
@media (max-width: 768px) {
    footer .footer-links > div h3:nth-child(1) {
        display: none; /* Hide the titles on screens smaller than 768px */
    }
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        font-size: 0.9em;
    }

    footer a {
        margin-bottom: 10px;
        display: block;
        text-align: center;
    }

    footer .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Further adjustments for very small devices */
@media (max-width: 375px) {
    footer {
        font-size: 0.8em;
        padding: 15px;
    }

    footer a {
        font-size: 0.85em;
    }

    footer .footer-column {
        padding: 8px 0;
    }

    .container {
        padding: 0 5px;
    }

    header {
        padding: 5px;
    }

    button, .btn {
        max-width: 150px;
    }
}

/*=============================
    Custom Components
=============================*/

/* Song List Hover Effect */
.song-item {
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: none;
}

.song-item a {
    display: block;
    padding: 15px;
    font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    font-size: 1em;
    color: #333;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    text-align: left;
}

.song-item a:hover {
    color: #fff;
}

.song-item:hover .hover-bg {
    left: 0;
}

.song-item .hover-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #b88a44, #000);
    transition: left 0.5s ease;
}

/*=============================
    Miscellaneous
=============================*/

/* Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Error Message */
.error-message {
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    color: #fff;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    right: 0;
    top: 40px;
    z-index: 1000;
    min-width: 180px;
    font-family: 'Noto Sans TC', sans-serif;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.dropdown-menu a:hover {
    background-color: #007BFF;
    color: white;
}

/* Login Form */
.login-form {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
    top: 40px;
    right: 0;
    z-index: 1000;
    min-width: 280px;
    font-family: 'Noto Sans TC', sans-serif;
}

.login-form label {
    display: block;
    font-size: 1em;
    margin-bottom: 8px;
    color: #333;
}

.login-form input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 10px;
    font-size: 1.1em;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0056b3;
}

.login-form a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.login-form a:hover {
    text-decoration: underline;
}

.login-form .error {
    color: red;
    margin-top: 10px;
    text-align: center;
}

/* Adjust the header and form styling */
.page-header {
    display: block; /* Change from flex to block to stop any unwanted flex behavior */
    padding: 0; /* Remove any padding */
    margin: 0 auto 20px; /* Center and add spacing below */
    max-width: 800px; /* Ensure the container aligns with the search results width */
}

/* Ensure the form is centered within the header */
.page-header form {
    width: 100%;
    max-width: 600px; /* Adjust max-width for a more proportional look */
    margin: 0 auto; /* Center the form within the header */
    padding: 0; /* Remove padding */
}

/* Style the search field */
.page-header .search-field {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


#logout-link {
    display: block;
    padding: 10px 15px;
    background-color: #007BFF; /* Visible background color */
    color: white; /* Visible text color */
    text-align: center;
    border-radius: 5px;
    z-index: 10000; /* Ensure it's on top of other elements */
}
/* ----------------Mobile-specific styles for front page----------------------------- */

/* Shared 404 page */
.gezi-not-found {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 72px 24px 100px;
    text-align: center;
    font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
}

.gezi-not-found-code {
    color: #222;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(100px, 22vw, 168px);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 1;
}

.gezi-not-found-code span {
    color: #007bff;
}

.gezi-not-found-eyebrow {
    margin: 24px 0 12px;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.gezi-not-found h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
    line-height: 1.5;
}

.gezi-not-found-description {
    margin: 18px 0 32px;
    color: #666;
    font-size: 1rem;
    line-height: 1.9;
}

.gezi-not-found-search {
    max-width: 560px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #fff;
    text-align: left;
}

.gezi-not-found-search label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.gezi-not-found-search-controls {
    display: flex;
    gap: 10px;
}

.gezi-not-found-search input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
    color: #222;
    font: inherit;
    font-size: 1rem;
}

.gezi-not-found-search input::placeholder {
    color: #727272;
}

.gezi-not-found-search button {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 13px 18px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.gezi-not-found-search button:hover {
    background: #0056b3;
}

.gezi-not-found-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    font-size: 0.95rem;
}

.gezi-not-found-links > span {
    color: #aaa;
}

.gezi-not-found :focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 4px;
}

@media (max-width: 480px) {
    .gezi-not-found {
        padding: 48px 20px 72px;
    }

    .gezi-not-found-search {
        padding: 18px;
    }

    .gezi-not-found-search-controls {
        flex-direction: column;
    }
}

/*=============================
    Rhyme Duck
=============================*/

.duck-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 56px 20px 110px;
    width: 100%;
}

.duck-hero {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 96px;
    margin: 0 auto 34px;
    max-width: 900px;
}

.duck-eyebrow {
    color: #777;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.duck-hero h1 {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

.duck-hero p:last-child {
    color: #555;
    font-size: 1.12rem;
    line-height: 1.75;
    margin: 0;
}

.duck-icon {
    height: auto;
    justify-self: end;
    width: 86px;
}

.duck-workspace,
.duck-lab-card {
    background: #fff;
    border: 4px solid #111;
    border-radius: 10px;
}

.duck-workspace {
    padding: 24px;
}

.duck-search-card {
    border-bottom: 2px solid #111;
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.duck-search-card label,
.duck-lab-card h2 {
    color: #222;
    display: block;
    font-size: 1.24rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.duck-search-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.duck-search-row input,
.duck-lab textarea {
    border: 2px solid #111;
    border-radius: 8px;
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    font-size: 1.12rem;
    padding: 14px 16px;
    width: 100%;
}

.duck-search-row button,
.duck-lab button {
    background: #111;
    border: 2px solid #111;
    border-radius: 8px;
    color: #fff;
    font-size: 1.05rem;
    max-width: none;
    min-width: 116px;
    padding: 12px 18px;
    width: auto;
}

.duck-search-row button:hover,
.duck-lab button:hover,
.duck-search-row button:focus-visible,
.duck-lab button:focus-visible {
    background: #fff;
    color: #111;
}

.duck-reading {
    color: #666;
    margin: 12px 0 0;
}

.duck-results-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duck-result-column {
    border: 2px solid #111;
    border-radius: 8px;
    min-height: 220px;
    padding: 16px;
}

.duck-column-head {
    align-items: center;
    border-bottom: 2px solid #111;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.duck-column-head h2 {
    font-size: 1.25rem;
    margin: 0;
}

.duck-column-head span {
    background: #111;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 32px;
    padding: 4px 9px;
    text-align: center;
}

.duck-chip-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duck-chip {
    align-items: flex-start;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 7px;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    max-width: none;
    min-height: 64px;
    padding: 10px 11px;
    text-align: left;
    width: 100%;
}

.duck-chip:hover,
.duck-chip:focus-visible {
    background: #111;
    border-color: #111;
    color: #fff;
}

.duck-chip strong {
    font-size: 1.05rem;
    line-height: 1.25;
}

.duck-chip span {
    color: #777;
    font-size: 0.78rem;
}

.duck-chip:hover span,
.duck-chip:focus-visible span {
    color: #ddd;
}

.duck-empty {
    color: #777;
    margin: 0;
}

.duck-lab {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 28px;
}

.duck-lab-card {
    padding: 22px;
}

.duck-lab textarea {
    min-height: 190px;
    resize: vertical;
}

.duck-analysis,
.duck-examples {
    border-top: 2px solid #111;
    margin-top: 18px;
    padding-top: 16px;
}

.duck-analysis section {
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.duck-analysis h3 {
    align-items: center;
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    margin: 0 0 8px;
}

.duck-analysis h3 span,
.duck-examples span {
    color: #777;
    font-size: 0.82rem;
}

.duck-analysis p,
.duck-examples article {
    border-top: 1px solid #eee;
    margin: 0;
    padding: 9px 0;
}

.duck-analysis em {
    color: #777;
    display: inline-block;
    font-style: normal;
    font-weight: 800;
    margin-right: 10px;
    min-width: 22px;
}

.duck-examples article {
    display: grid;
    gap: 4px;
}

@media (max-width: 900px) {
    .duck-results-grid,
    .duck-lab {
        grid-template-columns: 1fr;
    }

    .duck-result-column {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .duck-page {
        padding: 36px 14px 80px;
    }

    .duck-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .duck-icon {
        justify-self: center;
        width: 72px;
    }

    .duck-workspace,
    .duck-lab-card {
        border-width: 3px;
        padding: 16px;
    }

    .duck-search-row {
        grid-template-columns: 1fr;
    }

    .duck-search-row button,
    .duck-lab button {
        width: 100%;
    }

    .duck-chip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-container .mobile-title {
        font-size: 2.5em !important; /* Force the font size for mobile */
        margin-bottom: 20px !important;
    }

    .mobile-container .mobile-search {
        width: 100% !important;
        display: flex;
        justify-content: center; /* Center the search bar horizontally */
    }

    .mobile-container .mobile-search input[type="text"] {
        font-size: 1.2em !important; /* Force the search box text size for mobile */
        padding: 12px !important; /* Adjust padding */
        width: 100% !important; /* Full width of parent container */
        max-width: 600px !important; /* Limit max-width to ensure it doesn't go too wide */
        margin: 0 auto !important; /* Center the input */
        box-sizing: border-box !important; /* Ensure padding is included in width */
    }
}

@media (max-width: 480px) {
    .mobile-container .mobile-title {
        font-size: 2.5em !important; /* Maintain the font size for smaller screens */
    }

    .mobile-container .mobile-search {
        width: 100% !important;
        display: flex;
        justify-content: center; /* Center the search bar horizontally */
    }

    .mobile-container .mobile-search input[type="text"] {
        font-size: 1.5em !important; /* Further reduce the text size for the search box */
        padding: 10px !important; /* Adjust padding */
        width: 90% !important; /* Ensure full width within parent */
        max-width: 600px !important; /* Limit max-width to control overflow */
        margin: 0 auto !important; /* Center the input */
        box-sizing: border-box !important; /* Ensure padding is included in width */
    }
}
/* ----------------Mobile-specific styles for front page----------------------------- */

/* Catalog navigation and server-rendered discovery. */
.gezi-catalog { box-sizing: border-box; max-width: 1100px; width: 100%; margin: 0 auto; padding: 40px 20px 80px; }
.gezi-catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; list-style: none; padding: 0; }
.gezi-catalog-grid li { padding: 20px; border: 1px solid #ddd; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.gezi-catalog-grid li > a:first-child { font-size: 1.2rem; font-weight: 600; }
.gezi-catalog-secondary { display: block; color: #666; margin-top: 8px; }
.gezi-breadcrumbs { max-width: 1000px; margin: 24px auto; padding: 0 20px; font-size: .9rem; text-align: left; }
.gezi-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.gezi-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #888; }
.gezi-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.gezi-pagination a { padding: 8px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.gezi-pagination [aria-current] { background: #222; color: #fff; border-color: #222; }
.gezi-related { max-width: 700px; margin: 40px auto; padding: 0 20px; }
.gezi-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.gezi-home-discovery { margin: 72px auto 0; max-width: 760px; width: 100%; text-align: left; }
.gezi-discovery-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.gezi-discovery-heading h2 { margin: 0; color: #111; font-size: clamp(1.5rem, 4vw, 1.8rem); line-height: 1.3; }
.gezi-discovery-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.gezi-discovery-nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #333; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gezi-discovery-nav a:hover, .gezi-discovery-nav a:focus-visible { color: #111; text-decoration: underline; text-underline-offset: 4px; }
.gezi-home-discovery .gezi-discovery-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.gezi-home-discovery .gezi-discovery-links li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.gezi-discovery-song { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 88px; padding: 16px; border: 1px solid #e4e4e4; border-radius: 9px; background: #fff; color: #111; text-decoration: none; transition: border-color .18s, background-color .18s, transform .18s; }
.gezi-discovery-song:hover, .gezi-discovery-song:focus-visible { border-color: #999; background: #f8f8f8; color: #111; transform: translateY(-2px); }
.gezi-discovery-song:focus-visible, .gezi-discovery-nav a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.gezi-discovery-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 8px; background: #f2f2f2; color: #555; }
.gezi-discovery-icon svg { display: block; width: 21px; height: 21px; }
.gezi-discovery-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.gezi-discovery-title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.gezi-discovery-artist { color: #777; font-size: .85rem; line-height: 1.4; }
.gezi-discovery-arrow { flex: none; color: #888; font-size: 1.35rem; line-height: 1; }
@media (max-width: 600px) { .gezi-home-discovery { margin-top: 56px; } .gezi-discovery-heading { align-items: start; flex-direction: column; gap: 16px; } .gezi-home-discovery .gezi-discovery-links { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .gezi-discovery-song { transition: none; } .gezi-discovery-song:hover, .gezi-discovery-song:focus-visible { transform: none; } }
.gezi-lyrics .gezi-lyric-text { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em; }
.gezi-search-title { text-align: center; font-size: clamp(1.5rem, 5vw, 2rem); overflow-wrap: anywhere; }
@media (max-width: 480px) { .gezi-song .lyric-line { padding-left: 12px; padding-right: 12px; } .gezi-song h1 { overflow-wrap: anywhere; } }
/* Include shared footer padding within its declared width. */
footer { box-sizing: border-box; }
.site-content { min-width: 0; width: 100%; }

.gezi-affiliate { margin: 32px 0; padding: 24px; border: 1px solid #e8e1da; border-radius: 12px; background: #faf8f5; }
.gezi-affiliate-heading { margin-bottom: 16px; }
.gezi-affiliate h2 { margin: 0 0 5px; color: #292624; font-size: 1.25rem; line-height: 1.4; }
.gezi-affiliate .gezi-affiliate-disclosure { margin: 0; color: #766e67; font-size: .8rem; line-height: 1.5; }
.gezi-affiliate-products { display: grid; gap: 8px; }
.gezi-affiliate-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 15px; border: 1px solid #eee8e2; border-radius: 8px; background: #fff; color: #292624; text-decoration: none; line-height: 1.45; transition: border-color .15s, background-color .15s; }
.gezi-affiliate-row:hover, .gezi-affiliate-row:focus-visible { border-color: #b98b76; background: #fffdfb; color: #292624; }
.gezi-affiliate-row:focus-visible { outline: 2px solid #9a6b58; outline-offset: 2px; }
.gezi-affiliate-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; font-weight: 600; }
.gezi-affiliate-cta { flex: none; color: #96604a; font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) { .gezi-affiliate { padding: 18px; } .gezi-affiliate-row { gap: 10px; padding: 12px; } .gezi-affiliate-name { font-size: .9rem; } }


        body {
            font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
        }

      
      /* Desktop Menu Styling */
.menu-desktop a {
    text-decoration: none;
    font-size: 1.1em; /* Slightly reduced for a more subtle look */
    font-weight: 400; /* Lighter weight for a modern and soft appearance */
    color: #333; /* Softer black for a gentler look */
    font-family: 'Lato', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; /* More modern and stylish font */
    transition: color 0.3s ease, font-weight 0.3s ease; /* Smooth transitions */
}

.menu-desktop a:hover {
    color: #555; /* Subtle color change on hover */
    font-weight: 500; /* Slightly bolder when hovered for emphasis */
}

/* Ensure layout aligns with overall tone */
.menu-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
}
      
      
      
      
       /* Mobile Styles */
.menu-mobile-toggle {
    display: none;
    background-color: #000; /* Black background */
    border: none; /* Remove border */
    padding: 10px;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    position: fixed;
    bottom: 10px; /* Move to the bottom */
    right: 10px;  /* Right edge of the screen */
    z-index: 2000;
    width: 50px; /* Slightly bigger */
    height: 50px; /* Slightly bigger */
}

.menu-mobile-toggle div {
    width: 30px; /* Slightly bigger */
    height: 3px; /* Slightly thicker lines */
    background-color: #fff; /* White lines */
    margin: 6px 0; /* Spacing between lines */
}

/* Mobile Menu Styling */
.menu-mobile {
    display: none;
    flex-direction: column;
    gap: 20px; /* Spacing between menu items for a clean layout */
    background-color: #f9f9f9;
    position: fixed; /* Floating under the button */
    bottom: 60px; /* Positioned near the bottom */
    right: 10px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Soft shadow for a floating effect */
    z-index: 1000;
    font-family: 'Lato', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; /* A mix of modern and traditional fonts */
}

.menu-mobile a {
    text-decoration: none;
    font-size: 1.3em; /* Slightly reduced for elegance */
    font-weight: 400; /* Lighter font weight for a modern touch */
    color: #333; /* Softer black for subtlety */
    text-align: center;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.menu-mobile a:hover {
    color: #555; /* Gentle color change on hover */
    font-weight: 500; /* Slightly bolder on hover for emphasis */
}

@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

    
.gezi-song .gezi-lyric-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;min-height:1.5em}.gezi-song h1{overflow-wrap:anywhere}.migration-note{text-align:center;font-size:.9rem;padding:8px;background:#f5f5f5;color:#555}.candidate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:20px;margin-bottom:50px}.candidate-card{padding:10px;border:2px solid #e0e0e0;border-radius:8px;background:#f5f5f5;display:flex;justify-content:space-between;align-items:center}.candidate-card a{font-size:1.5em;color:#333;overflow:hidden;text-overflow:ellipsis}.candidate-card span{padding:5px 10px;border-radius:15px;background:#e0e0e0;color:#333}.candidate-artist-song{padding:20px;border:2px solid #e0e0e0;border-radius:8px;background:#fefefe;text-align:center}.candidate-artist-song a{font-size:1.3em;color:#1a1a1a;font-weight:600}.candidate-title-box{padding:20px;border:4px solid #000;border-radius:10px;display:inline-block;color:#222;max-width:100%;overflow-wrap:anywhere}.candidate-title-box h1{font-size:2.5em;font-weight:bold;margin:0;font-family:inherit}.candidate-footer a{color:#ccc}.candidate-footer{padding:40px 20px;background:#1c1c1c;color:#eee;text-align:center}.candidate-footer ul{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;list-style:none;padding:0}


    .blog-search-container {
        text-align: center;
        margin: 20px 0;
    }

    .blog-search-container input[type="text"] {
        width: 50%;
        padding: 10px;
        font-size: 1.2em;
        border: 2px solid #333;
        border-radius: 5px;
        font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    }

    .category-links {
        text-align: center;
        margin: 20px 0;
    }

    .category-links a {
        margin: 0 10px;
        font-size: 1.2em;
        text-decoration: none;
        color: #333;
        font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    }

    .category-links a.active {
        font-weight: bold;
        color: #111;
        border-bottom: 2px solid #333;
    }

    .blog-posts {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .blog-post {
        border: 2px solid #000;
        padding: 20px;
        border-radius: 10px;
        background-color: #f9f9f9;
        font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    }

    .blog-post h2 {
        margin-top: 0;
        font-size: 1.5em;
        color: #111 !important;
        text-decoration: none;
    }

    .blog-post p {
        font-size: 1em;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .reading-time {
        font-size: 0.9em;
        color: #999;
        margin-top: 5px;
    }

    .no-results {
        text-align: center;
        font-size: 1.2em;
        color: #666;
        margin-top: 20px;
        font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    }



    .single-post-container {
        max-width: 800px;
        margin: 0 auto; /* Center the container */
        padding: 20px;
        font-family: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 10px;
        text-align: left; /* Align text to the left */
    }

    .single-post-container h1 {
        font-size: 2.5em;
        color: #333;
        text-align: center; /* Center the title */
        margin-bottom: 5px;
    }

    .single-post-container .publish-date {
        font-size: 0.9em;
        color: #777;
        text-align: center; /* Center the date */
        margin-bottom: 20px;
    }

    .single-post-container .post-content {
        font-size: 1.2em;
        color: #555;
        line-height: 1.6;
        text-align: left; /* Ensure text is left-aligned */
    }

    .single-post-container .post-content img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .related-posts {
        max-width: 800px;
        margin: 40px auto; /* Center the related posts container */
        padding: 20px;
        background-color: #eee;
        border: 1px solid #ccc;
        border-radius: 10px;
        text-align: center; /* Left-align text */
    }

    .related-posts h2 {
        font-size: 1.8em;
        color: #333;
        margin-bottom: 20px;
    }

    .related-posts ul {
        list-style: none;
        padding: 0;
        text-align: center; /* Ensure text is left-aligned */
    }

    .related-posts ul li {
        margin-bottom: 10px;
    }

    .related-posts ul li a {
        color: #0073aa;
        text-decoration: none;
    }

    .related-posts ul li a:hover {
        text-decoration: underline;
    }

    .more-link {
        display: inline-block;
        margin-top: 10px;
        color: #0073aa;
    }

    .author-bio {
        margin-top: 40px;
        padding: 20px;
        background-color: #f1f1f1;
        border: 1px solid #ddd;
        border-radius: 10px;
        text-align: center;
    }

    .author-bio h3 {
        font-size: 1.5em;
        color: #333;
        margin-bottom: 10px;
        display: inline-block; /* Ensures the text and icon are aligned */
    }

    .author-bio .author-link-icon {
        align-items: center;
        border: 1px solid #333;
        border-radius: 50%;
        color: #333;
        display: inline-flex;
        height: 22px;
        justify-content: center;
        margin-left: 10px;
        text-decoration: none;
        vertical-align: middle;
        width: 22px;
    }

    .author-bio .author-link-icon:hover {
        background: #333;
        color: #fff;
    }

    .author-bio .instagram-icon {
        width: 20px;
        height: 20px;
        vertical-align: middle;
    }

    .author-bio .website-icon {
        display: block;
        height: 14px;
        width: 14px;
    }

    .author-bio p {
        font-size: 1.1em;
        color: #555;
    }

.single-post-container{box-sizing:border-box;overflow-wrap:anywhere}.post-content pre{overflow:auto}.post-content table{max-width:100%;display:block;overflow-x:auto}.blog-search-container input[type=search]{max-width:70%;padding:10px;font:inherit}.blog-search-container button{padding:10px}.post-content iframe{max-width:100%}

.candidate-footer-grid{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;max-width:1000px;margin:auto;text-align:left}.candidate-footer-grid ul{display:block;margin:0;padding:0;line-height:2}.candidate-footer-grid h3,.candidate-footer-grid summary{font-size:1.1rem;font-weight:600;margin:0 0 15px}.candidate-footer-grid summary{cursor:pointer}.candidate-footer-grid p{max-width:250px;font-size:.9rem;line-height:1.5}.candidate-footer-grid details p{margin:8px 0}.candidate-footer-grid .footer-preview-consent{color:#ccc}.gezi-affiliate-row[aria-disabled=true]{cursor:default}

.post-content img{max-width:100%;height:auto}.post-content .gezi-media-link{display:inline-block;padding:.5rem 0;overflow-wrap:anywhere}

/* Restore the original WordPress homepage inline stylesheet. */
.gezi-home {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
        padding: 112px 20px 126px;
        text-align: center;
        width: 100%;
    }

    .gezi-home *,
    .gezi-home *::before,
    .gezi-home *::after {
        box-sizing: border-box;
    }

    .gezi-home-hero {
        max-width: 820px;
        width: 100%;
    }

    .gezi-home-title {
        color: #111;
        font-size: clamp(2.6rem, 7vw, 4.8rem);
        font-weight: 700;
        line-height: 1.12;
        margin: 0;
    }

    .gezi-home-subtitle {
        color: #666;
        font-size: 1.08rem;
        line-height: 1.8;
        margin: 18px auto 34px;
        max-width: 680px;
    }

    .gezi-home-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        margin: 0 auto;
        max-width: 680px;
        width: 100%;
    }

    .gezi-home-search input {
        background: #fff;
        border: 3px solid #111;
        border-radius: 8px;
        color: #111;
        font: inherit;
        font-size: 1.2rem;
        min-height: 58px;
        min-width: 0;
        padding: 12px 16px;
        width: 100%;
    }

    .gezi-home-search input:focus {
        outline: 3px solid rgba(17, 17, 17, 0.14);
        outline-offset: 2px;
    }

    .gezi-home-search button,
    .gezi-home-more a {
        align-items: center;
        background: #111;
        border: 3px solid #111;
        border-radius: 8px;
        color: #fff;
        display: inline-flex;
        font: inherit;
        font-weight: 700;
        justify-content: center;
        margin: 0;
        max-width: none;
        min-height: 58px;
        padding: 0 24px;
        text-decoration: none;
        white-space: nowrap;
        width: auto;
    }

    .gezi-home-search button:hover,
    .gezi-home-search button:focus-visible,
    .gezi-home-more a:hover,
    .gezi-home-more a:focus-visible {
        background: #fff;
        color: #111;
        text-decoration: none;
    }

    .gezi-home-lyric {
        background: #f9f9f9;
        border: 3px solid #111;
        border-radius: 8px;
        margin: 42px auto 0;
        max-width: 760px;
        padding: 26px;
        text-align: left;
        width: 100%;
    }

    .gezi-home-lyric-label {
        color: #777;
        font-size: 0.88rem;
        font-weight: 700;
        margin: 0 0 14px;
    }

    .gezi-home-lyric-line {
        color: #111;
        font-size: clamp(1.55rem, 4vw, 2.35rem);
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
    }

    .gezi-home-lyric-meta {
        color: #666;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        line-height: 1.6;
        margin: 18px 0 0;
    }

    .gezi-home-lyric-meta a {
        color: #111;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }

    .gezi-home-lyric-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 22px;
    }

    .gezi-home-random-button {
        background: #111;
        border: 3px solid #111;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        font: inherit;
        font-weight: 700;
        margin: 0;
        max-width: none;
        min-height: 48px;
        padding: 0 18px;
        width: auto;
    }

    .gezi-home-random-button:hover,
    .gezi-home-random-button:focus-visible {
        background: #fff;
        color: #111;
    }

    .gezi-home-listen {
        color: #111;
        font-weight: 700;
        text-decoration: none;
    }

    .gezi-home-listen:hover {
        color: #666;
    }

    .gezi-home-posts {
        display: grid;
        gap: 24px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 96px auto 0;
        max-width: 1240px;
        width: 100%;
    }

    .gezi-home-post {
        background: #f9f9f9;
        border: 3px solid #111;
        border-radius: 8px;
        color: #333;
        display: flex;
        min-height: 156px;
        padding: 22px;
        text-align: left;
        text-decoration: none;
        transition: transform 0.18s ease, background-color 0.18s ease;
    }

    .gezi-home-post:hover,
    .gezi-home-post:focus-visible {
        background: #fff;
        color: #111;
        text-decoration: none;
        transform: translateY(-2px);
    }

    .gezi-home-post h2 {
        color: inherit;
        font-size: 1.3rem;
        line-height: 1.45;
        margin: 0 0 14px;
    }

    .gezi-home-reading {
        color: #888;
        font-size: 0.92rem;
        font-weight: 700;
        margin: auto 0 0;
    }

    .gezi-home-more {
        margin: 56px 0 0;
    }

    @media only screen and (max-width: 820px) {
        .gezi-home {
            padding: 68px 18px 104px;
        }

        .gezi-home-subtitle {
            font-size: 1rem;
            margin-bottom: 28px;
        }

        .gezi-home-search {
            grid-template-columns: 1fr;
        }

        .gezi-home-search input {
            font-size: 1.05rem;
            min-height: 56px;
        }

        .gezi-home-search button,
        .gezi-home-more a,
        .gezi-home-random-button {
            width: 100%;
        }

        .gezi-home-lyric {
            margin-top: 34px;
            padding: 20px;
        }

        .gezi-home-lyric-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .gezi-home-listen {
            text-align: center;
        }

        .gezi-home-posts {
            gap: 16px;
            grid-template-columns: 1fr;
            margin-top: 64px;
        }

        .gezi-home-post {
            min-height: auto;
            padding: 18px;
        }

        .gezi-home-more {
            margin-top: 44px;
            max-width: 320px;
            width: 100%;
        }
    }
