#hacken:focus {
  outline: none;
}
#series:focus {
  outline: none;
}

body {
  box-sizing: border-box;
  max-width: 100vw;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    transition: background-color 0.3s; /* 添加背景色過渡效果 */
}

body.dimmed {
    background: rgba(0, 0, 0, 0.7); /* 將背景變暗 */
}

header {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: #fff;
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2em; /* 增加導航按鈕之間的距離 */
}

header nav ul li {
    margin: 0 1em;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 18px
}

header nav ul li a:hover {
    color: #ffeb3b;
}

header nav input {
    margin-top: 10px; /* 增加搜尋框與導航按鈕之間的距離 */
    padding: 10px;
    border: none;
    border-radius: 25px;
    width: 50%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s;
}

header nav input:focus {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

header nav select {
    margin-top: 10px; /* 增加選擇框與搜尋框之間的距離 */
    padding: 10px;
    border: 1px solid #ccc; /* 添加邊框 */
    border-radius: 50px; /* 調整圓角 */
    width: auto; /* 設置自適應寬度 */
    min-width: 150px; /* 設置最小寬度 */
    max-width: 250px; /* 設置最大寬度 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s, background-color 0.3s;
    background-color: #fff;
    color: #333;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%234e54c8" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>'); /* 添加下拉箭頭圖標 */
    background-repeat: no-repeat;
    background-position: right 10px center;
}

header nav select:hover {
    background-color: #f9f9f9;
}

header nav select:focus {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 麵包屑導航樣式 */
.breadcrumb-container {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb-link {
    color: #e3f2fd;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.breadcrumb-current {
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #bdbdbd;
    font-weight: bold;
}



/* 響應式設計 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 8px 10px;
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 3px 6px;
        font-size: 11px;
    }
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 預設手機 */
    gap: 20px;
    padding: 20px;
}


.movie-item {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; /* 為tooltip定位 */
    z-index: 1; /* 提升層級 */
}

.movie-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100; /* 確保tooltip在前面 */
}


.movie-item.focused {
  outline: 3px solid #00f;
  transform: scale(1.05);
  transition: all 0.2s ease;
}




.movie-item img {
    display: block;
    margin: 0 auto 10px;
    width: 100%;
    border-radius: 8px;
}

.movie-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.movie-item a:hover {
    color: #4e54c8;
}

#pagination {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
}

#pagination button {
    margin: 0 10px;
    padding: 10px 20px;
    background: #4e54c8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#pagination button:hover:not(:disabled) {
    background: #8f94fb;
}

.tooltip {
    display: none; /* 默認隱藏 */
    position: absolute;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100; /* 確保tooltip在前面 */
    max-width: 200px;
    transition: opacity 0.3s; /* 添加過渡效果 */
}

.tooltip.show {
    display: block;
    opacity: 1;
}

.tooltip.hide {
    opacity: 0;
    display: none;
}


@media screen and (max-width: 480px) and (orientation: portrait) {
header nav ul li a {
	font-size: 15px
}	
header nav input{
	max-width:200px;
	font-size:10px;
}	
header nav select{
	font-size:10px;
}

.movie-item {
	font-size:14px;

	}

}

