body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(to bottom right, #eef2f3, #dfe9f3);
    min-height: calc(100vh - 4em);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.4);
    padding: 1em;
    border-radius: 1em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

#searchBox {
    padding: 0.75em 1em;
    font-size: 1rem;
    border: none;
    border-radius: 0.5em;
    flex: 1;
    outline: none;
    min-width: 0;
}

#searchBtn {
    padding: 0.75em 1em;
    font-size: 1rem;
    border: none;
    background: #007BFF17;
    color: white;
    border-radius: 0.5em;
    cursor: pointer;
}

#searchBtn:hover {
    background: #0056c136;
}

#loader {
    height: 4px;
    width: 0%;
    background-color: #007BFF;
    transition: width 0.4s ease;
    margin-bottom: 1em;
}

#results {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-bottom: 2em;
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 1.5em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.entry {
    font-size: 1.5em;
    font-weight: bold;
    color: navy;
    margin-bottom: 0.5em;
}

.paraphrase {
    font-size: 1rem;
    color: #333;
}

footer {
    margin-top: auto;
    margin-bottom: 2em;
    text-align: center;
    color: #333;
    opacity: 0.8;
    font-size: 0.9rem;
}

.hw {font-size:120%; color:navy; font-weight:bold;}
.roma {font-weight:bold; background-color:GAINSBORO;}
.table {display:table;}
.num {display:table-cell; color:#262626; font-weight:bold;}
.line {display:table-cell; padding-left:0.25em;}
.ex {display:inline; color:steelblue;}
.ex::before {
      content:"\27A4";
}
.ex_c::after {
      content: "\00A";
      white-space: pre ;
}
.ex_c {display:inline; margin-left:5px;color:DIMGRAY;}
.phmk {color:#262626;}
.phrase {font-size:105%; font-weight:bold;}
.tag1 {color:DARKSLATEGRAY; font-size:13px;}
.tag2 {color:darkred;}
.tag3 {color:darkgreen; font-weight:bold; background-color:LIGHTCYAN; border-radius:3px;}
.tag4 {color:SIENNA;}
hr.hr_1 {margin:0.5em 0; border:solid 1.5px Navy;border-style:dashed none none none;}
sup {font-size:70%; font-family:arial;}
sub {font-size:70%; font-family:arial;}
