.wpchords-wrapper {
margin: 10px 0;
contain: layout style;
overflow: visible !important;
}
.wpchords-controls {
margin-bottom: 10px;
padding: 12px;
background: #f8f9fa;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 15px;
flex-wrap: nowrap;
border: 1px solid #e9ecef;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.accordi-btn {
padding: 8px 16px;
background: #4a6fa5;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: all 0.2s ease;
min-width: auto;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
height: 40px;
}
.accordi-btn:hover {
background: #3a5a80;
}
.notation-toggle {
width: 110px;
}
.transpose-down,
.transpose-up,
.font-decrease,
.font-increase {
width: 45px;
}
.transpose-controls {
display: flex;
align-items: center;
gap: 10px;
background: white;
padding: 6px 12px;
border-radius: 8px;
border: 1px solid #dee2e6;
flex-shrink: 0;
height: 40px;
}
.current-key {
font-weight: bold;
font-size: 17px;
color: #d54e21;
min-width: 35px;
text-align: center;
padding: 3px 8px;
flex-shrink: 0;
background: rgba(213, 78, 33, 0.1);
border-radius: 4px;
transition: all 0.3s ease;
}
.current-key.transposed {
color: #2271b1;
background: rgba(34, 113, 177, 0.1);
}
.font-controls {
display: flex;
gap: 10px;
flex-shrink: 0;
height: 40px;
}
.wpchords-container {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.4;
font-size: 16px;
position: relative;
contain: layout style;
transition: font-size 0.3s ease;
white-space: nowrap !important;
overflow: visible !important;
width: auto !important;
display: inline-block !important;
}
.song-line {
position: relative;
margin-bottom: 5px;
min-height: 0;
contain: layout;
white-space: nowrap !important;
display: block !important;
}
.song-line.empty-line {
margin-bottom: 3px;
min-height: 0;
height: auto;
}
.chord-line {
position: relative;
height: 18px;
margin-bottom: 2px;
contain: layout;
}
.text-line {
min-height: 20px;
white-space: nowrap !important;
line-height: 1.3;
font-size: 1em;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
letter-spacing: 0.02em;
contain: layout;
margin-top: -2px;
display: block !important;
font-feature-settings: "tnum" 1;
font-variant-numeric: tabular-nums;
font-kerning: none;
text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased;
} .text-line strong, 
.text-line b {
font-weight: bold !important;
}
.text-line em,
.text-line i {
font-style: italic !important;
}
.text-line u {
text-decoration: underline !important;
} .text-line * {
font-family: inherit !important;
font-size: inherit !important;
line-height: inherit !important;
letter-spacing: inherit !important;
}
.text-line.empty-line {
min-height: 4px;
line-height: 0.5;
font-size: 0.5em;
opacity: 0.6;
height: auto;
} .chord {
position: absolute;
color: #d54e21;
font-weight: bold;
font-size: 0.85em;
background: transparent;
padding: 0;
border: none;
z-index: 10;
white-space: nowrap;
top: 2px;
pointer-events: none;
text-align: center;
transform: translateX(-50%) translateZ(0);
will-change: transform, opacity;
backface-visibility: hidden;
transition: all 0.2s ease;
contain: layout;
text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
transform-style: preserve-3d; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
font-weight: bold !important;
font-style: normal !important;
text-decoration: none !important;
}
.chord-marker {
display: none;
visibility: hidden;
width: 0;
height: 0;
overflow: hidden;
contain: strict;
}
.chords-only-line {
margin-bottom: 6px;
contain: layout;
}
.chords-only-line .chord-line {
height: 22px;
display: block;
text-align: center;
}
.chords-only-line .chord {
position: absolute;
top: 0;
transform: translateX(-50%) translateZ(0);
}
.chords-inline {
height: auto !important;
text-align: center;
margin-bottom: 3px;
position: relative;
display: block;
white-space: normal;
contain: layout;
}
.chords-inline .chord {
position: relative !important;
left: auto !important;
transform: none !important;
display: inline-block !important;
margin: 0 8px !important;
top: 0 !important;
}
.chord-inline {
display: inline;
color: #d54e21;
font-weight: bold;
font-size: 0.85em;
background: transparent;
padding: 0;
margin: 0 1px;
border: none;
white-space: nowrap;
vertical-align: middle;
text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}
.wpchords-container.loading {
opacity: 0.7;
pointer-events: none;
}
.wpchords-container.loading .chord {
opacity: 0.8;
} .wpchords-wrapper {
transform: translateZ(0);
}
.measure-container,
.text-measure-container,
.fake-text-container {
position: absolute !important;
visibility: hidden !important;
top: -9999px !important;
left: -9999px !important;
pointer-events: none !important;
} .wpchords-container.loading {
opacity: 0.8;
transition: opacity 0.3s ease;
}
.wpchords-container.loading .chord {
transition: all 0.3s ease;
opacity: 0.7;
} .chords-only-line .chord-line > div {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
}
.chords-only-line .chord {
position: relative !important;
left: auto !important;
transform: none !important;
display: inline-block !important;
margin: 0 4px !important;
} .wpchords-song-container {
background: transparent;
padding: 0;
padding-left: 5px !important;
margin: 0;
border: none;
width: 100%;
box-sizing: border-box;
overflow: visible !important;
white-space: nowrap !important;
}
.wpchords-song-container .wpchords-container {
white-space: nowrap !important;
overflow: visible !important;
width: auto !important;
display: inline-block !important;
}
.wpchords-song-container .song-line {
white-space: nowrap !important;
display: block !important;
}
.wpchords-song-container .text-line {
white-space: nowrap !important;
display: block !important;
} .text-line-stable {
position: relative;
display: inline-block;
width: 100%;
} .chord {
transition: none !important; }
.wpchords-container.updating .chord {
opacity: 0.9; } .wpchords-container:not(.updating) .chord {
transition: font-size 0.3s ease, color 0.3s ease;
} @media (max-width: 768px) {
.wpchords-wrapper {
margin: 8px 0;
}
.wpchords-controls {
padding: 12px;
gap: 12px;
margin-bottom: 10px;
}
.accordi-btn {
padding: 8px 14px;
font-size: 15px;
height: 38px;
}
.notation-toggle {
width: 105px;
}
.transpose-down,
.transpose-up,
.font-decrease,
.font-increase {
width: 42px;
}
.current-key {
font-size: 16px;
min-width: 33px;
padding: 3px 7px;
}
.transpose-controls {
gap: 8px;
padding: 6px 10px;
height: 38px;
}
.font-controls {
gap: 8px;
height: 38px;
}
.wpchords-container {
font-size: 15px;
}
.song-line {
margin-bottom: 4px;
}
.song-line.empty-line {
margin-bottom: 2px;
}
.chord-line {
height: 16px;
margin-bottom: 1px;
}
.text-line {
font-size: 0.95em;
min-height: 18px;
margin-top: -1px;
letter-spacing: 0.01em;
}
.text-line.empty-line {
min-height: 3px;
font-size: 0.45em;
line-height: 0.4;
}
.chord {
font-size: 0.8em;
top: 1px;
transform: translateX(-48%) translateZ(0);
}
.chords-only-line {
margin-bottom: 5px;
}
.chords-only-line .chord-line {
height: 20px;
}
} @media (max-width: 480px) {
.wpchords-controls {
gap: 10px;
padding: 10px;
}
.accordi-btn {
padding: 7px 12px;
font-size: 14px;
height: 36px;
}
.notation-toggle {
width: 95px;
}
.transpose-down,
.transpose-up,
.font-decrease,
.font-increase {
width: 38px;
}
.current-key {
font-size: 15px;
min-width: 30px;
padding: 2px 6px;
}
.transpose-controls {
gap: 6px;
padding: 5px 8px;
height: 36px;
}
.font-controls {
gap: 6px;
height: 36px;
}
.wpchords-container {
font-size: 14px;
}
.song-line {
margin-bottom: 3px;
}
.song-line.empty-line {
margin-bottom: 1px;
}
.text-line.empty-line {
min-height: 2px;
font-size: 0.4em;
}
.chord {
font-size: 0.75em;
top: 1px;
transform: translateX(-47%) translateZ(0);
}
.text-line {
letter-spacing: 0;
}
.chords-only-line .chord-line {
height: 18px;
}
} .wpchords-container {
transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chord {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordi-btn {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.current-key {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.chord {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.text-line {
text-rendering: geometricPrecision;
}
} @media print {
.wpchords-controls {
display: none;
}
.chord {
color: #000 !important;
text-shadow: none !important;
}
.wpchords-container {
font-size: 12pt !important;
}
.text-line.empty-line {
opacity: 1;
font-size: 8pt !important;
} .text-line strong,
.text-line b {
font-weight: 900 !important;
}
} .debug-mode .chord {
background: rgba(255, 255, 0, 0.3);
border: 1px dashed red;
}
.debug-mode .measure-container,
.debug-mode .text-measure-container,
.debug-mode .fake-text-container {
visibility: visible !important;
background: yellow;
color: red;
opacity: 0.7;
z-index: 9999;
} .text-line-precise {
font-kerning: none;
text-rendering: geometricPrecision;
font-smooth: never;
-webkit-font-smoothing: none;
}
.chord-precise {
transform: translateX(-50%) translateZ(0) scale(1);
backface-visibility: hidden;
perspective: 1000px;
} .text-line {
text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
} .text-line strong, 
.text-line b {
font-weight: 700 !important;
letter-spacing: 0.01em;
}